- This topic has 3 replies, 2 voices, and was last updated 19 years, 10 months ago by Greg.
-
AuthorPosts
-
Thomas SMETSMemberMy X-doclet-build.xml lookes like this
<?xml version="1.0" encoding="UTF-8"?> <project default="_generation_" name="XDoclet Generator"> <path id="xdoclet.classpath"> <fileset dir="/opt/MyEclipse/eclipse/plugins/com.genuitec.jboss.ide.eclipse.xdoclet.core_3.8.1"> <include name="*.jar" /> </fileset> <pathelement location="/home/tsmets/workspace/IMCore/classes" /> <pathelement location="/opt/IBMJava2-141/jre/lib/core.jar" /> <pathelement location="/opt/IBMJava2-141/jre/lib/graphics.jar" /> <pathelement location="/opt/IBMJava2-141/jre/lib/security.jar" /> <pathelement location="/opt/IBMJava2-141/jre/lib/server.jar" /> <pathelement location="/opt/IBMJava2-141/jre/lib/xml.jar" /> <pathelement location="/opt/IBMJava2-141/jre/lib/charsets.jar" /> <pathelement location="/opt/IBMJava2-141/jre/lib/ext/indicim.jar" /> <pathelement location="/opt/IBMJava2-141/jre/lib/ext/gskikm.jar" /> <pathelement location="/opt/IBMJava2-141/jre/lib/ext/log4j-1.2.9.jar" /> <pathelement location="/opt/IBMJava2-141/jre/lib/ext/ldapsec.jar" /> <pathelement location="/opt/IBMJava2-141/jre/lib/ext/ibmjceprovider.jar" /> <pathelement location="/opt/IBMJava2-141/jre/lib/ext/jaccess.jar" /> <pathelement location="/opt/IBMJava2-141/jre/lib/ext/oldcertpath.jar" /> <pathelement location="/opt/MyEclipse/eclipse/plugins/com.genuitec.eclipse.j2eedt.core_3.8.2/data/libraryset/1.4/activation.jar" /> <pathelement location="/opt/MyEclipse/eclipse/plugins/com.genuitec.eclipse.j2eedt.core_3.8.2/data/libraryset/1.4/jboss-saaj.jar" /> <pathelement location="/opt/MyEclipse/eclipse/plugins/com.genuitec.eclipse.j2eedt.core_3.8.2/data/libraryset/1.4/mail.jar" /> <pathelement location="/opt/MyEclipse/eclipse/plugins/com.genuitec.eclipse.j2eedt.core_3.8.2/data/libraryset/1.4/javax.servlet.jar" /> <pathelement location="/opt/MyEclipse/eclipse/plugins/com.genuitec.eclipse.j2eedt.core_3.8.2/data/libraryset/1.4/jboss-jaxrpc.jar" /> <pathelement location="/opt/MyEclipse/eclipse/plugins/com.genuitec.eclipse.j2eedt.core_3.8.2/data/libraryset/1.4/javax.servlet.jsp.jar" /> <pathelement location="/opt/MyEclipse/eclipse/plugins/com.genuitec.eclipse.j2eedt.core_3.8.2/data/libraryset/1.4/namespace.jar" /> <pathelement location="/opt/MyEclipse/eclipse/plugins/com.genuitec.eclipse.j2eedt.core_3.8.2/data/libraryset/1.4/xml-apis.jar" /> <pathelement location="/opt/MyEclipse/eclipse/plugins/com.genuitec.eclipse.j2eedt.core_3.8.2/data/libraryset/1.4/jboss-j2ee.jar" /> <pathelement location="/opt/MyEclipse/eclipse/plugins/com.genuitec.eclipse.j2eedt.core_3.8.2/data/libraryset/1.4/jboss-jsr77.jar" /> <pathelement location="/home/tsmets/workspace/IMCommon/build" /> </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="generated" mergeDir="" 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" destDir="src/META-INF" mergeDir="merge"> </deploymentdescriptor> <jboss Version="3.2"> </jboss> </ejbdoclet> </target> <target name="echo"> <property name="xdoclet.classpath" refid="xdoclet.classpath" /> <echo> Test xdoclet.classpath = ${xdoclet.classpath} </echo> </target> </project>
It runs fine under myEclipse IDE but provides the following error under direct ANT (in the console)…
It gives the following library missing error :ant -f xdoclet-build.xml _generation_
CLASSPATH : /opt/IBMJava2-141/lib/tools.jar
ANT_OPTS : -Djavax.xml.transform.TransformerFactory=org.apache.xalan.processor.TransformerFactoryImpl
ANT_LIB : /opt/apache-ant-1.6.2/lib
LOCALCLASSPATH : /opt/apache-ant-1.6.2/lib/ant-launcher.jar
Buildfile: xdoclet-build.xmlN10004:
[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.executeTarget(Project.java:1214)
[ejbdoclet] at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
[ejbdoclet] at org.apache.tools.ant.Main.runBuild(Main.java:673)
[ejbdoclet] at org.apache.tools.ant.Main.startAnt(Main.java:188)
[ejbdoclet] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
[ejbdoclet] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
[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.While the library is oubviously in the classpath : ’round line 30 of the xdoclet build file… ?
Any idea / help would be apprecated …
\T,
GregMemberWhat version of any ant are you using? I used ant 1.6.2 on linux with sun-jdk1.4.2 from the command line at the root of a test project. It worked correctly. Do you have any other ant options or environment details that would be of help determining what is going on? What is making ant print out that debug informationa t the begining of its output. I’m not seeing that on my end.
Thomas SMETSMemberSee below for most details …
- Linux distro is DK 10.0 (using the kernel 2.6)
- JDK 1.4.1 from IBM
ANT-version is a recent one : 1.6.2
I extracted in the ${ANT_HOME}/lib the 48 files of the xdoclet I downloadedAm I missing something … ?
\T,
—
[java@calvin bin]$ uname -a Linux calvin 2.6.3-7mdk #1 Wed Mar 17 15:56:42 CET 2004 i686 unknown unknown GNU/Linux [java@calvin bin]$ set | grep IBM CLASSPATH=/opt/IBMJava2-141/lib/tools.jar JAVA_HOME=/opt/IBMJava2-141 JRE_HOME=/opt/IBMJava2-141/jre PATH=/opt/IBMJava2-141/bin:/opt/jext-3.2pre3:/opt/jedit/4.2:/opt/IBMJava2-141/bin:/opt/jext-3.2pre3:/opt/jedit/4.2:/opt/IBMJava2-141/bin:/opt/jext-3.2pre3:/opt/jedit/4.2:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/games:/opt/apache-ant-1.6.2/bin:/opt/jython-2.1:/opt/jython-2.1:/opt/apache-ant-1.6.2/bin:/home/tsmets/bin:/opt/apache-ant-1.6.2/bin:/opt/jython-2.1:/opt/jython-2.1:/opt/apache-ant-1.6.2/bin:/opt/apache-ant-1.6.2/bin:/opt/jython-2.1
– System Setup ——————————-
Operating System and version:
Eclipse version: 3.0.1
Eclipse build id:
Fresh Eclipse install (y/n): y
Other installed external plugins: none
Number of plugins in the <eclipse>/plugins directory that begin with org.eclipse.pde.*:drwxrwxr-x 5 java javagrp 560 Sep 16 18:04 org.eclipse.pde_3.0.1/ drwxrwxr-x 8 java javagrp 360 Sep 16 18:04 org.eclipse.pde.build_3.0.1/ drwxrwxr-x 3 java javagrp 208 Sep 16 18:04 org.eclipse.pde.core_3.0.1/ drwxrwxr-x 2 java javagrp 544 Sep 16 18:04 org.eclipse.pde.doc.user_3.0.0/ drwxrwxr-x 2 java javagrp 184 Sep 16 18:04 org.eclipse.pde.junit.runtime_3.0.0/ drwxrwxr-x 3 java javagrp 208 Sep 16 18:04 org.eclipse.pde.runtime_3.0.1/ drwxrwxr-x 3 java javagrp 304 Sep 16 18:04 org.eclipse.pde.source_3.0.1/ drwxrwxr-x 5 java javagrp 304 Sep 16 18:04 org.eclipse.pde.ui_3.0.1/
MyEclipse version: 3.8.3
Eclipse JDK version: IBM JDK 1.4.1
Application Server JDK version: JBoss 3.2.6
Are there any exceptions in the Eclipse log file?
Not really– Message Body ——————————-
GregMemberI have installed ibm’s jdk and tried to replicate your problem. I don’t see the same output from my ant as you showed:
CLASSPATH : /opt/IBMJava2-141/lib/tools.jar ANT_OPTS : -Djavax.xml.transform.TransformerFactory=org.apache.xalan.processor.TransformerFactoryImpl ANT_LIB : /opt/apache-ant-1.6.2/lib LOCALCLASSPATH : /opt/apache-ant-1.6.2/lib/ant-launcher.jar Buildfile: xdoclet-build.xml
So that output must be coming from your ant installation. Using the standard ant and ibm’s jdk, I was able to successfully run ant from the command line.
-
AuthorPosts