- This topic has 4 replies, 2 voices, and was last updated 17 years, 9 months ago by
Riyad Kalla.
-
AuthorPosts
-
hudaraMemberHi,
Im using MyEclipse 5.5.1 on top of Eclipse 3.2.2.
I have created a new XDoclet Enterprise JavaBean module inside an EJB project.
Whenever I save my Bean module, The XDoclet starts running And I see the following message:Buildfile: J:\Workspaces\Cms\v1.0\.metadata\.plugins\org.eclipse.jst.j2ee.ejb.annotations.xdoclet\tempAnt.xml
init:
ejbdoclet:[ejbdoclet] XDoclet classpath missing J2EE classes
[ejbdoclet] at xdoclet.modules.ejb.EjbDocletTask.validateOptions(EjbDocletTask.java:86)
[ejbdoclet] at xjavadoc.ant.XJavadocTask.execute(XJavadocTask.java:89)
[ejbdoclet] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[ejbdoclet] at org.apache.tools.ant.Task.perform(Task.java:364)
[ejbdoclet] at org.apache.tools.ant.Target.execute(Target.java:341)
[ejbdoclet] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[ejbdoclet] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
[ejbdoclet] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
[ejbdoclet] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
[ejbdoclet] at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
[ejbdoclet] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
[ejbdoclet] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
[ejbdoclet] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
[ejbdoclet] Caused by: Make sure the jar file containing the javax.ejb.EntityBean class is on the classpath specified in the <taskdef> that defined ejbdoclet. These classes are needed in order to generate correct output.
[ejbdoclet] at xdoclet.DocletTask.checkClass(DocletTask.java:513)
[ejbdoclet] at xdoclet.modules.ejb.EjbDocletTask.validateOptions(EjbDocletTask.java:83)
[ejbdoclet] … 12 moreIf I choose to Run XDoclet from the MyEclipse menu item, it works fine.
If I choose to Run XDoclet from “Right-Click on the project” I get the error above.What is wrong here?
Why there are 2 “Run XDoclet” menu items? (one on the Right-Click menu, and one under the MyEclipse)Why 1 of them is wokring and one of them isn’t working?
Thanks
Guy Hudara
Riyad KallaMemberGuy,
The problem is that you have both MyEclipse and WTP enabled. The Run XDoclet entry under the MyEclipse menu is ours, the other one is from WTP. I don’t know how the WTP one works, where it’s configuration settings lie or any of that, so I can’t really help with using it, sorry.But if you wish to use ours, all those settings are under your project properties, under MyEclipse > XDoclet.
hudaraMemberHi,
Thanks for the reply.So…how do I disable the WTP.
hudaraMemberOoops, sorry,
My question is: How do I disable the WTP?
Thanks Guy
Riyad KallaMemberIt’s hard to say because it’s a large feature set and installs under your main plugin dir. You can try going to Help > Software Updates > Manage Config, and disabling it that from there. But if some of the libs are being used by other features you will get error messages trying to disable it.
I would encourage you instead, to download our MyEclipse 5.5.1 “All in One” installer, about 190mb, and run the installer and install it to a *brand new* directory. Then first up that new install and open your old workspace and keep working with a brand new “best case” install of MyEclipse.
-
AuthorPosts