facebook

XDoclet generation on OSX problem (path – IClasspathEntry)

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #264269 Reply

    dexes
    Member

    Dear all,

    I’m using MyEclipse since 2 years now (on XP) with no major problem, and I have recently switch to OSX and I have a (path) problem with the Xdoclet generation.

    To reproduce the error: I did create a simple EJB projet called testEJB containing a simple Stateless Session bean called TestEJB. I did add “XDoclet – Standard EJB” to my project. I did not change any path. The only non absolute path are the “destDir=src/META-INF” created by default.

    When I’m running “MyEclipse” – “Run XDoclet” and I have got the following error message “An internal error occured during: “XDoclet Generation” .

    I try to start Ecplise, with the clean command, rebuild my project, … but no solution since now.

    I’m running MyEclipse 5.1.0 GA (build id: 20061111-5.1.0-GA) on Eclipse 1.2.1v20060815_M (build id: 200609261748) on Mac OS X 10.4.8 (8N1051).

    Any help will be welcome.

    Thanks.

    Patrick

    Here is the stacktrace. 😥

    !ENTRY org.eclipse.core.jobs 4 2 2007-01-07 16:03:59.363
    !MESSAGE An internal error occurred during: “XDoclet Generation”.
    !STACK 0
    org.eclipse.core.runtime.AssertionFailedException: assertion failed: Path for IClasspathEntry must be absolute
    at org.eclipse.core.runtime.Assert.isTrue(Assert.java:109)
    at org.eclipse.jdt.core.JavaCore.newLibraryEntry(JavaCore.java:3385)
    at org.eclipse.jdt.core.JavaCore.newLibraryEntry(JavaCore.java:3275)
    at org.eclipse.jdt.launching.JavaRuntime.newArchiveRuntimeClasspathEntry(JavaRuntime.java:602)
    at org.eclipse.ant.internal.ui.launchConfigurations.ContributedClasspathEntriesEntry.addToolsJar(ContributedClasspathEntriesEntry.java:127)
    at org.eclipse.ant.internal.ui.launchConfigurations.ContributedClasspathEntriesEntry.getRuntimeClasspathEntries(ContributedClasspathEntriesEntry.java:106)
    at org.eclipse.jdt.internal.launching.DefaultEntryResolver.resolveRuntimeClasspathEntry(DefaultEntryResolver.java:35)
    at org.eclipse.jdt.launching.JavaRuntime.resolveRuntimeClasspathEntry(JavaRuntime.java:901)
    at org.eclipse.jdt.launching.StandardClasspathProvider.resolveClasspath(StandardClasspathProvider.java:73)
    at org.eclipse.jdt.internal.launching.RuntimeClasspathProvider.resolveClasspath(RuntimeClasspathProvider.java:60)
    at org.eclipse.jdt.launching.JavaRuntime.resolveRuntimeClasspath(JavaRuntime.java:1182)
    at org.eclipse.jdt.launching.AbstractJavaLaunchConfigurationDelegate.getClasspath(AbstractJavaLaunchConfigurationDelegate.java:415)
    at org.eclipse.jdt.launching.JavaLaunchDelegate.launch(JavaLaunchDelegate.java:71)
    at org.eclipse.ant.internal.ui.launchConfigurations.AntLaunchDelegate.runInSeparateVM(AntLaunchDelegate.java:550)
    at org.eclipse.ant.internal.ui.launchConfigurations.AntLaunchDelegate.launch(AntLaunchDelegate.java:209)
    at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:639)
    at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:565)
    at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:558)
    at org.jboss.ide.eclipse.xdoclet.run.ui.XDocletRunAction$2.run(XDocletRunAction.java:375)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)

    #264360

    Riyad Kalla
    Member

    Patrick I’m going to ask our Mac guy to test this, hang tight…

    #264548

    Greg
    Member

    Patrick, can you post the .classpath file for your project? Also can you switch your xdoclet build policy to “use xdoclet-build.xml”? (Right-click project > Properties > MyEclipse > XDoclet > Build). Then post the contents of your xdoclet-build.xml file here to the forums for us to inspect?

    Thanks

    #264579

    dexes
    Member

    Here is the .classpath

    <?xml version=”1.0″ encoding=”UTF-8″?>
    <classpath>
    <classpathentry kind=”src” path=”src”/>
    <classpathentry kind=”con” path=”org.eclipse.jdt.launching.JRE_CONTAINER”/>
    <classpathentry kind=”con” path=”com.genuitec.eclipse.j2eedt.core.J2EE14_CONTAINER”/>
    <classpathentry kind=”output” path=”classes”/>
    </classpath>

    and the (oups very long) xdoclet-build.xml

    <?xml version=”1.0″ encoding=”UTF-8″?>

    <!– DO NOT EDIT –>
    <!– This file is automatically regenerated for each new XDoclet generation. –>
    <!– Any changes you make to this file will be overwritten. If you want –>
    <!– to edit this file, make a copy and rename it for your own use. –>

    <project name=”TestEJB XDoclet Generation” default=”_xdoclet_generation_”><property file=”xdoclet-build.properties”/>
    <property name=”xdoclet.basedir” value=”/Applications/DVP/eclipse/MyEclipse Enterprise Workbench 5.1.0 GA/eclipse/plugins/com.genuitec.jboss.ide.eclipse.xdoclet.core_5.1.0/”/>
    <path id=”xdoclet.classpath”><pathelement location=”/Users/dexes/Documents/eclipse/dimona/TestEJB/classes”/>
    <pathelement location=”/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/classes.jar”/>
    <pathelement location=”/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/ui.jar”/>
    <pathelement location=”/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/laf.jar”/>
    <pathelement location=”/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/jsse.jar”/>
    <pathelement location=”/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/jce.jar”/>
    <pathelement location=”/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/charsets.jar”/>
    <pathelement location=”/System/Library/Java/Extensions/CoreAudio.jar”/>
    <pathelement location=”/System/Library/Java/Extensions/dns_sd.jar”/>
    <pathelement location=”/System/Library/Java/Extensions/j3daudio.jar”/>
    <pathelement location=”/System/Library/Java/Extensions/j3dcore.jar”/>
    <pathelement location=”/System/Library/Java/Extensions/j3dutils.jar”/>
    <pathelement location=”/System/Library/Java/Extensions/jai_codec.jar”/>
    <pathelement location=”/System/Library/Java/Extensions/jai_core.jar”/>
    <pathelement location=”/System/Library/Java/Extensions/mlibwrapper_jai.jar”/>
    <pathelement location=”/System/Library/Java/Extensions/MRJToolkit.jar”/>
    <pathelement location=”/System/Library/Java/Extensions/QTJava.zip”/>
    <pathelement location=”/System/Library/Java/Extensions/QTJSupport.jar”/>
    <pathelement location=”/System/Library/Java/Extensions/vecmath.jar”/>
    <pathelement location=”/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/ext/apple_provider.jar”/>
    <pathelement location=”/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/ext/dnsns.jar”/>
    <pathelement location=”/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/ext/localedata.jar”/>
    <pathelement location=”/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/ext/sunjce_provider.jar”/>
    <pathelement location=”/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/ext/sunpkcs11.jar”/>
    <pathelement location=”/Applications/DVP/eclipse/MyEclipse Enterprise Workbench 5.1.0 GA/eclipse/plugins/com.genuitec.eclipse.j2eedt.core_5.1.0/data/libraryset/1.4/activation.jar”/>
    <pathelement location=”/Applications/DVP/eclipse/MyEclipse Enterprise Workbench 5.1.0 GA/eclipse/plugins/com.genuitec.eclipse.j2eedt.core_5.1.0/data/libraryset/1.4/javax.servlet.jar”/>
    <pathelement location=”/Applications/DVP/eclipse/MyEclipse Enterprise Workbench 5.1.0 GA/eclipse/plugins/com.genuitec.eclipse.j2eedt.core_5.1.0/data/libraryset/1.4/javax.servlet.jsp.jar”/>
    <pathelement location=”/Applications/DVP/eclipse/MyEclipse Enterprise Workbench 5.1.0 GA/eclipse/plugins/com.genuitec.eclipse.j2eedt.core_5.1.0/data/libraryset/1.4/jboss-j2ee.jar”/>
    <pathelement location=”/Applications/DVP/eclipse/MyEclipse Enterprise Workbench 5.1.0 GA/eclipse/plugins/com.genuitec.eclipse.j2eedt.core_5.1.0/data/libraryset/1.4/jboss-jaxrpc.jar”/>
    <pathelement location=”/Applications/DVP/eclipse/MyEclipse Enterprise Workbench 5.1.0 GA/eclipse/plugins/com.genuitec.eclipse.j2eedt.core_5.1.0/data/libraryset/1.4/jboss-jsr77.jar”/>
    <pathelement location=”/Applications/DVP/eclipse/MyEclipse Enterprise Workbench 5.1.0 GA/eclipse/plugins/com.genuitec.eclipse.j2eedt.core_5.1.0/data/libraryset/1.4/jboss-saaj.jar”/>
    <pathelement location=”/Applications/DVP/eclipse/MyEclipse Enterprise Workbench 5.1.0 GA/eclipse/plugins/com.genuitec.eclipse.j2eedt.core_5.1.0/data/libraryset/1.4/mail.jar”/>
    <pathelement location=”/Applications/DVP/eclipse/MyEclipse Enterprise Workbench 5.1.0 GA/eclipse/plugins/com.genuitec.eclipse.j2eedt.core_5.1.0/data/libraryset/1.4/namespace.jar”/>
    <pathelement location=”/Applications/DVP/eclipse/MyEclipse Enterprise Workbench 5.1.0 GA/eclipse/plugins/com.genuitec.eclipse.j2eedt.core_5.1.0/data/libraryset/1.4/xml-apis.jar”/>

    <fileset dir=”${xdoclet.basedir}”>
    <include name=”*.jar”/>
    <exclude name=”*xjavadoc*.jar”/>
    <include name=”jdk5/*.jar”/>
    </fileset>
    </path>
    <target name=”_xdoclet_generation_” depends=”N65540″/>
    <target name=”N65540″ description=”Standard EJB”>
    <taskdef name=”ejbdoclet” classname=”xdoclet.modules.ejb.EjbDocletTask” classpathref=”xdoclet.classpath”/><ejbdoclet ejbSpec=”2.0″ excludedTags=”@version,@author,@todo” destDir=”src” verbose=”true” addedTags=”@xdoclet-generated at ${TODAY},@copyright The XDoclet Team,@author XDoclet,@version ${version}” >

    <fileset dir=”src” includes=”**/*.java” >

    </fileset>
    <packageSubstitution packages=”ejb” substituteWith=”interfaces” >

    </packageSubstitution>
    <remoteinterface>

    </remoteinterface>
    <localinterface>

    </localinterface>
    <homeinterface>

    </homeinterface>
    <localhomeinterface>

    </localhomeinterface>
    <dataobject>

    </dataobject>
    <valueobject>

    </valueobject>
    <entitypk>

    </entitypk>
    <entitycmp>

    </entitycmp>
    <entitybmp>

    </entitybmp>
    <session>

    </session>
    <dao>

    <PackageSubstitution packages=”ejb” substituteWith=”dao” >

    </PackageSubstitution>
    </dao>
    <utilobject includeGUID=”true” cacheHomes=”true” >

    </utilobject>
    <deploymentdescriptor validateXML=”true” >

    </deploymentdescriptor>
    </ejbdoclet></target></project>

    #264961

    dexes
    Member

    Dear Greg,

    any news for this problem ?

    Thanks.

    Patrick

    #266278

    dexes
    Member

    After more than one month, I’m still stuck 🙁

    #266286

    Riyad Kalla
    Member

    Patrick,
    I’m really sorry about the delay. I double-checked with Greg on this and our Mac test machine blew up, so we have nothing to test this on at the moment, that’s why there has been no followup.

    #266407

    Patric, I’m trying 5.5M1 and don’t see the problem. I’m downloading 5.1 and will check there too. Can you try your project in 5.5M1?

    #266411

    I can’t reproduce the issue on 5.1.1. Can you try to reproduce the issue on a new workspace?
    What ME distribution did you use? (Installer or manual)

    #266781

    dexes
    Member

    I’m using Version: 5.1.0 GA Build id: 20061111-5.1.0-GA

    Using a new workspace, it’s working perfectly !

    I try several times in several existing workspaces and it does not works at all (within a new project or an existing one).

    I’ll create a new workspace and move my project one by one.

    Thanks for your help.

    #266792

    Riyad Kalla
    Member

    I am glad it’s working now , here are some tips on creating a new workspace: http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-14682.html

Viewing 11 posts - 1 through 11 (of 11 total)
Reply To: XDoclet generation on OSX problem (path – IClasspathEntry)

You must be logged in to post in the forum log in