- This topic has 6 replies, 3 voices, and was last updated 20 years, 3 months ago by hktgan.
-
AuthorPosts
-
hktganMemberWhat’s wrong when I try to run XDoclet whent sunone subtask is set
Buildfile: C:\utv\java\workspace\TestJ2EE\xdoclet-build.xml
N10004:
BUILD FAILED: C:\utv\java\workspace\TestJ2EE\xdoclet-build.xml:22: Can’t create a sunone element under ejbdoclet. Make sure the jar file containing the corresponding subtask class is on the classpath specified in the <taskdef> that defined {2}.I ‘m running Version 3.8.1+QF20040825
Riyad KallaMemberChecking with our XDoclet guy right now about this. We are running patched XDoclet 1.2 libraries so this might ahve been added later.
hktganMemberant 1.6.2 is the last ! see http://ant.apache.org/index.html
GregMemberDo you have a “sunone” subtask defined under the “ejbdoclet” in your MyEclipse XDoclet propeties? Could you post your generated xdoclet-build.xml file? Because I tested the “sunone” subtask locally and didn’t get any build errors when running xdoclet.
hktganMemberHer it comes …
<?xml version=”1.0″ encoding=”UTF-8″?>
<project default=”_generation_” name=”XDoclet Generator”>
<property file=”xdoclet-build.properties”/>
<path id=”xdoclet.classpath”><pathelement location=”classes”/>
<pathelement location=”C:/Program Files/MyEclipse/eclipse/plugins/com.genuitec.eclipse.j2eedt.core_3.8.1/data/libraryset/1.4/activation.jar”/>
<pathelement location=”C:/Program Files/MyEclipse/eclipse/plugins/com.genuitec.eclipse.j2eedt.core_3.8.1/data/libraryset/1.4/javax.servlet.jar”/>
<pathelement location=”C:/Program Files/MyEclipse/eclipse/plugins/com.genuitec.eclipse.j2eedt.core_3.8.1/data/libraryset/1.4/javax.servlet.jsp.jar”/>
<pathelement location=”C:/Program Files/MyEclipse/eclipse/plugins/com.genuitec.eclipse.j2eedt.core_3.8.1/data/libraryset/1.4/jboss-j2ee.jar”/>
<pathelement location=”C:/Program Files/MyEclipse/eclipse/plugins/com.genuitec.eclipse.j2eedt.core_3.8.1/data/libraryset/1.4/jboss-jaxrpc.jar”/>
<pathelement location=”C:/Program Files/MyEclipse/eclipse/plugins/com.genuitec.eclipse.j2eedt.core_3.8.1/data/libraryset/1.4/jboss-jsr77.jar”/>
<pathelement location=”C:/Program Files/MyEclipse/eclipse/plugins/com.genuitec.eclipse.j2eedt.core_3.8.1/data/libraryset/1.4/jboss-saaj.jar”/>
<pathelement location=”C:/Program Files/MyEclipse/eclipse/plugins/com.genuitec.eclipse.j2eedt.core_3.8.1/data/libraryset/1.4/mail.jar”/>
<pathelement location=”C:/Program Files/MyEclipse/eclipse/plugins/com.genuitec.eclipse.j2eedt.core_3.8.1/data/libraryset/1.4/namespace.jar”/>
<pathelement location=”C:/Program Files/MyEclipse/eclipse/plugins/com.genuitec.eclipse.j2eedt.core_3.8.1/data/libraryset/1.4/xml-apis.jar”/><fileset dir=”/c:/eclipse/plugins/org.jboss.ide.eclipse.xdoclet.core_1.3.30/”>
<include name=”*.jar”/>
</fileset>
</path>
<target name=”_generation_” depends=”N10004″/>
<target name=”N10004″ description=”Standard EJB”>
<taskdef classpathref=”xdoclet.classpath” classname=”xdoclet.modules.ejb.EjbDocletTask” name=”ejbdoclet”/><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><valueobject>
</valueobject>
<session>
</session><utilobject includeGUID=”true” cacheHomes=”true” >
</utilobject>
<deploymentdescriptor validateXML=”true” destDir=”src/META-INF” >
</deploymentdescriptor>
<jboss Version=”4.0″ destDir=”src/META-INF” ></jboss>
<sunone Version=”8.0″ destDir=”src/META-INF” >
</sunone>
</ejbdoclet></target>
</project>
GregMemberIt looks like that this xdoclet-build.xml file was generated using JBossIDE. Are you trying to use JBossIDE and MyEclipse at the same time? Both use the xdoclet-build.xml file to run XDoclet. Make sure that you use MyEclipse-XDoclet property page to generate the xdoclet-build.cml file. And use the “Run XDoclet” that is under the MyEclipse group in the right-click menu for the project.
hktganMemberThanks !
It works now !
Have a goood day !
-
AuthorPosts