Jboss3.0Template, cannot resolve symbol class TestBMPEntity
websel Jul 28, 2002 3:07 PMHi,
I've worked with ant before, but never with xdoclet. I would like to use the Jboss template as a new starting point for deploymend etc.
Here is what i did:
Downloaded Jboss3.0.1RC1, unpacked in /usr/java/jboss
set enviroment JBOSS_HOME to /usr/java/jboss
copied my old ear from 2.4 to /usr/java/jboss/server/default/deploy
It works :-) great.
Now the template example,
Unpacked it:
cd cmp2
ant
It compiles and it deploys without a problem :-)
Now the template and the transaction just give an error during compiling on the same spot. Just when all the sources are loaded by xdoclet it can't find the first class (see dump at the end.)
I unziped the xdoclet-1.1.2.zip under /usr/java/xdoclet
/usr/java/xdoclet/lib/xdoclet.jar is there,
Set the path in the .ant.properties
jboss.home=/usr/java/jboss
xdoclet.home=/usr/java/xdoclet
servlet-lib.path=/usr/java/jboss/server/default/lib/javax.servlet.jar
Leave the rest unchanged and type ant
init:
[echo] build.compiler = ${build.compiler}
[echo] user.home = /home/wessel
[echo] java.home = /usr/java/j2sdk1.4.0/jre
[echo] ant.home = /usr
[echo] jboss.home = /usr/java/jboss
[echo] xdoclet.home = /usr/java/xdoclet
[echo] java.class.path = /usr/share/java/xml-commons-apis.jar:/usr/share/java/jaxp_parser_impl.jar:/usr/s
hare/java/ant.jar:/usr/share/java/ant-optional.jar:/usr/java/j2sdk1.4.0/lib/tools.jar
xdoclet-generate:
[ejbdoclet] Generating Javadoc
[ejbdoclet] Javadoc execution
[ejbdoclet] Loading source file /tmp/test/template/src/main/ejb/test/entity/TestBMPEntityBean.java...
[ejbdoclet] Loading source file /tmp/test/template/src/main/ejb/test/entity/TestEntityBean.java...
[ejbdoclet] Loading source file /tmp/test/template/src/main/ejb/test/message/TestMessageDrivenBean.java...
[ejbdoclet] Loading source file /tmp/test/template/src/main/ejb/test/session/SequenceGeneratorBean.java...
[ejbdoclet] Loading source file /tmp/test/template/src/main/ejb/test/session/TestSessionBean.java...
[ejbdoclet] Constructing Javadoc information...
[ejbdoclet] /tmp/test/template/src/main/ejb/test/entity/TestBMPEntityBean.java:10: cannot resolve symbol
[ejbdoclet] symbol : class TestBMPEntity
[ejbdoclet] location: package interfaces
[ejbdoclet] import test.interfaces.TestBMPEntity;
[ejbdoclet] ^
Why ? The same thing occurs when i try the transaction example.
The following RPM version I use (from jakarta.apache.org):
ant-1.5-4jpp
xerces-j2-2.0.2-3jpp
xml-commons-apis-1.0-0.b2.1jpp
xdoclet-1.1.2.zip (no rpm used for this one)
j2sdk1.4.0
jboss-3.0.1RC1_tomcat-4.0.4
JAVA_HOME=/usr/java/j2sdk1.4.0
JBOSS_HOME=/usr/java/jboss
JDK_HOME=/usr/java/j2sdk1.4.0
Many thanks in advanced!
Wessel de Roode