For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 4 replies, 2 voices, and was last updated 21 years, 1 month ago by
Riyad Kalla.
-
AuthorPosts
-
Michael FlanakinMember[Eclipse 3.0.1, MyEclipse 3.8.4, OC4J 9.0.4]
My project seems to be setup a little different than MyEclipse wants. Here’s the basic directory structure:
– build_java <– all .class files are created here
– build_webapp <– functional app is “deployed” here
– src_java
– src_webapp
– src_xml <– application.xml, web.xml, etc.Obviously, all my JSP’s are in the src_webapp directory. When the app is built, they are copied to the build_webapp directory. My build script creates and copies the appropriate config files from the src_xml directory. Before I get into this too far, let me say that I have a big project and am not able to change this structure (as much as I’d love to).
My first question is: When I add web capabilities, which web directory should I specify? My initial thought was to specify the src_webapp directory. The problem is, when I do that, it doesn’t finish. I specify “/src_webapp”, “/myapp” (where I browse to localhost:8080/myapp), do not create web.xml, and J2EE 1.3. When I click finish, a screen pops up for about half a millisecond, and then returns me to the “MyEclipse Web Capabilities” dialog box. If I specify any other directory in place of src_webapp, it works fine. Obviously, I can’t use this, tho, because all my JSPs are in the src_webapp directory.
I checked out Eclipse’s log file and there are 730 lines produced from this one action. I don’t want to paste all that (unless you really want me to), so here’s the synopsis:
!ENTRY org.eclipse.core.runtime 4 2 May 17, 2005 08:43:57.90 !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.runtime". !STACK 0 java.lang.NullPointerException at com.genuitec.eclipse.j2eedt.taglib.AbstractTaglibRegistry.processResourceChanged(Unknown Source) ...(removed stack trace)The previous message happens 6 or 8 times. I can’t tell if the first two are from the same problem or not, tho. The first two are at 8:43:33, while the other 6 are at 8:43:57.
!ENTRY com.genuitec.eclipse.j2eedt.core 1 1 May 17, 2005 08:43:57.184 !MESSAGE WebProject Capabilities Error: !STACK 1 Java Model Exception: Java Model Status [Build path contains duplicate entry: 'C:Program Files/MyEclipse/eclipse/plugins/com.genuitec.eclipse.j2eedt.core_3.8.4/data/libraryset/1.3/activation.jar' for project EMS] at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:735) ...(removed stack trace)... !SUBENTRY 1 org.eclipse.jdt.core 4 977 May 17, 2005 08:43:57.184 !MESSAGE Build path contains duplicate entry: 'C:Program Files/MyEclipse/eclipse/plugins/com.genuitec.eclipse.j2eedt.core_3.8.4/data/libraryset/1.3/activation.jar' for project EMS!ENTRY com.genuitec.eclipse.j2eedt.core 1 1 May 17, 2005 08:43:57.215 !MESSAGE Error !STACK 0 java.lang.reflect.InvocationTargetException at com.genuitec.eclipse.j2eedt.ui.wizard.WebProjectConversionWizard$1.run(Unknown Source) ...(removed stack trace)... Caused by: Java Model Exception: Java Model Status [Build path contains duplicate entry: 'C:Program Files/MyEclipse/eclipse/plugins/com.genuitec.eclipse.j2eedt.core_3.8.4/data/libraryset/1.3/activation.jar' for project EMS] at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:735) ...(removed stack trace)... ... 42 more Root exception: Java Model Exception: Java Model Status [Build path contains duplicate entry: 'C:Program Files/MyEclipse/eclipse/plugins/com.genuitec.eclipse.j2eedt.core_3.8.4/data/libraryset/1.3/activation.jar' for project EMS] at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:735) ...(removed stack trace)Hope this helps figure something out. If not, I saved all of the possibly helpful log events and I can email them to you, if need be.
May 17, 2005 at 6:31 pm #229739
Riyad KallaMemberflanakin,
My gut reaction is to say that this project layout will not work with MyEclipse because of the separated web root structure you have, but let me double check with another to make sure.May 17, 2005 at 9:43 pm #229750
Riyad KallaMemberI have verified with one of the devs that because of the webroot dir being split out (your descriptors are in a separate dir instead of being under your src_webapp/WEB-INF dir) this will not work with MyEclipse currently. These and other flexibility issues are exactly what we will be targetting with our 5.0 release near the end of August.
May 18, 2005 at 7:02 am #229768
Michael FlanakinMemberTrust me when I say that I wish I could change this. I hate the layout. Besides that, what would need to be in the WEB-INF directory? I installed 4.0M1 and setting up a new project worked fine (completely clean version). I haven’t added JSF capabilities, yet, but will try that today. I’m hoping that I can keep the src_webapp/WEB-INF directory and just overwrite anything necessary (like the web.xml).
Is there any way to get the capabilities of the faces-config.xml editor in MyEclipse without setting up the JSF capabilities?
Thanks for the help!
May 18, 2005 at 10:02 am #229792
Riyad KallaMemberI haven’t added JSF capabilities, yet, but will try that today. I’m hoping that I can keep the src_webapp/WEB-INF directory and just overwrite anything necessary (like the web.xml).
Yes actually if you can tollerate the WEB-INF dir that MyEclipse creates, and make copies fo the descriptors into that dir, you should be fine.
Is there any way to get the capabilities of the faces-config.xml editor in MyEclipse without setting up the JSF capabilities?
Not at this time, part of adding “Capabilities” is setting up the context information that MyEclipse needs to know about in order to provide accurate analysis and tooling.
-
AuthorPosts
