- This topic has 3 replies, 2 voices, and was last updated 17 years, 5 months ago by
Loyal Water.
-
AuthorPosts
-
ahoffmanMemberMyEclipse,
I am experiencing two problems with local installation of MyEclipse 6.0.1 (full install) when working with JSF page resources. First, the JSF Visual Designer is not loading, issuing an error in Eclipse log of:
!MESSAGE Unable to create editor ID com.genuitec.eclipse.jsf.designer.editor: The editor class could not be instantiated. This usually indicates that the editor’s class name was mistyped in plugin.xml.
!STACK 0
java.lang.NoClassDefFoundError: org/eclipse/jst/pagedesigner/editors/IVisualDesignerPage
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)Second, when I just open JSF-specific JSPs in the plain MyEclispe JSP editor, I’m getting syntax check errors in pages where other JSPs containing JSF tags are included through <%@include %> directives.
Here’s my installation info:
*******************
*** Date: Friday, February 1, 2008 1:03:58 PM EST ** System properties: OS=Windows2003 OS version=5.2 Java version=1.5.0_08 *** MyEclipse details: MyEclipse Enterprise Workbench Version: 6.0.1 GA Build id: 6.0.1-GA-200710 *** Eclipse details: MyEclipse Enterprise Workbench Version: 6.0.1 GA Build id: 6.0.1-GA-200710 Eclipse Graphical Editing Framework Version: 3.3.1.v20070814 Build id: 20070814-1555 Eclipse Platform Version: 3.3.0.v20070612-_19UEkLEzwsdF9jSqQ-G Build id: I20070625-1500 Eclipse Java Development Tools Version: 3.3.0.v20070606-0010-7o7jCHEFpPoqQYvnXqejeR Build id: I20070625-1500 Eclipse Plug-in Development Environment Version: 3.3.0.v20070607-7N7M-DUUEF6Ez0H46IcCC Build id: I20070625-1500 Eclipse Project SDK Version: 3.3.0.v20070607-7M7J-BIolz-OcxWxvWAPSfLPqevO Build id: I20070625-1500 Eclipse RCP Version: 3.3.0.v20070607-8y8eE8NEbsN3X_fjWS8HPNG Build id: I20070625-1500 Eclipse startup command=-os win32 -ws win32 -arch x86 -showsplash -launcher C:\Program Files\MyEclipse 6.0\eclipse\eclipse.exe -name Eclipse --launcher.library C:\Program Files\MyEclipse 6.0\eclipse\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.0.v20070523\eclipse_1017a.dll -startup C:\Program Files\MyEclipse 6.0\eclipse\plugins\org.eclipse.equinox.launcher_1.0.0.v20070606.jar -vm C:\Program Files\Java\jrockit-R27.1.0-jdk1.5.0_08\jre\bin\javaw.exe -vm C:\Program Files\Java\jrockit-R27.1.0-jdk1.5.0_08\bin\..\jre\bin\jrockit\jvm.dll
********************
There 3 syntax errors which are reported in the Problems view are the following:
Syntax error on token “}”, delete this token
Syntax error on token “catch”, Identifier expected
Syntax error, insert “Finally” to complete TryStatementThese seem to occur when I have a main JSF view which includes MULTIPLE sub-pages (with minimal JSF content) using <%@include %> directives.
I’ve been able to reproduce this locally with the following simple test setup…
1) Create new Web project with JSF capabilities (MyFaces 1.1)
2) Create new JSF view page called “test_main.jsp” in WebRoot as the following:<%@ page language="java" pageEncoding="ISO-8859-1"%> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <f:view> <html> <body> <h:form id="testMain"> <h:messages showDetail="true" showSummary="false"></h:messages> <h:panelGroup styleClass=""> <h:panelGrid columns="2"> <h:outputText value="Testing"></h:outputText> <h:outputText value="123"></h:outputText> </h:panelGrid> <%@include file="/WEB-INF/jsp/test_include.jsp" %> <%@include file="/WEB-INF/jsp/test_include.jsp" %> </h:panelGroup> </h:form> </body> </html> </f:view>
3) Create new JSF view page called “test_include.jsp” in WebRoot/WEB-INF/jsp folder as the following:
<%@ page language="java" pageEncoding="ISO-8859-1"%> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <h:panelGroup style="display: block;"> <h:panelGroup style="font-weight: bold; display: inline;"> <h:outputText value="bold text"/> </h:panelGroup> <h:panelGroup style="font-variant: italic; display: inline;"> <h:outputText value="italic text"/> </h:panelGroup> </h:panelGroup>
As soon as the main JSP page contains 2 includes, the syntax errors surface.
I hope you can reproduce this in your test environments, or have some suggestions for updates, etc. Thanks.
February 4, 2008 at 11:39 am #281428
Loyal WaterMemberCan you switch to a new workspace and test if the JSF Visual Editor works.
I was unable to reproduce the errors using the code you pasted. Maybe if you fix the 1st issue, the 2nd would get resolved on its own.
February 5, 2008 at 9:12 am #281449
ahoffmanMemberSwitched to a new workspace but error is still occurring. First added JSF capabilities (1.1 for JDK 1.4), then added ICEFaces 1.6.2 capabilities. Open JSP page with JSF visual page designer and the error occurs. Note: page can be opened with JSP visual designer, just not the visual JSF designer. Does this have something to do with ICEFaces MyEclipse integration 1.6.2?
February 7, 2008 at 11:50 am #281566
Loyal WaterMemberYou will have to download Sun’s 1.5.0_11 JRE and use that to run MyEclipse. You can modify the -vm argument in the eclipse.ini file to launch MyEclipse with the Sun 1.5 JRE.
-
AuthorPosts