4 Replies Latest reply on Nov 14, 2002 11:01 PM by Chris Ryan

    Problem with Template example in 'ejbdoclet'

    Chris Ryan Newbie

      Hi,

      I'm trying to get the template example working. I have no
      problems getting the 'cmp2' (crimeportal) going.

      Here's the error I'm getting:

      ...
      init:
      [echo] build.compiler = ${build.compiler}
      [echo] user.home = /home/chrisr
      [echo] java.home = /usr/local/j2sdk1.4.0/jre
      [echo] ant.home = /usr
      [echo] jboss.home = /usr/local/jboss
      [echo] xdoclet.home = /usr/local/xdoclet1.1.2
      [echo] java.class.path = /usr/share/java/xml-commons-apis.jar:/usr/share/java/jaxp_parser_impl.jar:/usr/share/java/ant-optional.jar:/usr/share/java/ant.jar:/usr/local/j2ee/lib/j2ee.jar:/usr/local/java/lib/tools.jar


      xdoclet-generate:
      [ejbdoclet] Generating Javadoc
      [ejbdoclet] Javadoc execution
      [ejbdoclet] Loading source file /home/chrisr/jboss/template/src/main/ejb/test/session/SequenceGeneratorBean.java...
      [ejbdoclet] Loading source file /home/chrisr/jboss/template/src/main/ejb/test/session/TestSessionBean.java...
      [ejbdoclet] Loading source file /home/chrisr/jboss/template/src/main/ejb/test/message/TestMessageDrivenBean.java...
      [ejbdoclet] Loading source file /home/chrisr/jboss/template/src/main/ejb/test/entity/TestBMPEntityBean.java...
      [ejbdoclet] Loading source file /home/chrisr/jboss/template/src/main/ejb/test/entity/TestEntityBean.java...
      [ejbdoclet] Constructing Javadoc information...
      [ejbdoclet] /home/chrisr/jboss/template/src/main/ejb/test/session/TestSessionBean.java:22: cannot resolve symbol
      [ejbdoclet] symbol : class TestEntity
      [ejbdoclet] location: package interfaces
      [ejbdoclet] import test.interfaces.TestEntity;
      [ejbdoclet] ^
      [ejbdoclet] /home/chrisr/jboss/template/src/main/ejb/test/session/TestSessionBean.java:23: cannot resolve symbol
      [ejbdoclet] symbol : class TestEntityData
      [ejbdoclet] location: package interfaces
      [ejbdoclet] import test.interfaces.TestEntityData;
      [ejbdoclet] ^
      [ejbdoclet] /home/chrisr/jboss/template/src/main/ejb/test/session/TestSessionBean.java:24: cannot resolve symbol
      [ejbdoclet] symbol : class TestEntityHome
      [ejbdoclet] location: package interfaces
      [ejbdoclet] import test.interfaces.TestEntityHome;
      [ejbdoclet] ^
      [ejbdoclet] /home/chrisr/jboss/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] ^
      [ejbdoclet] /home/chrisr/jboss/template/src/main/ejb/test/entity/TestBMPEntityBean.java:11: cannot resolve symbol
      [ejbdoclet] symbol : class TestBMPEntityData
      [ejbdoclet] location: package interfaces
      [ejbdoclet] import test.interfaces.TestBMPEntityData;
      [ejbdoclet] ^
      [ejbdoclet] /home/chrisr/jboss/template/src/main/ejb/test/entity/TestBMPEntityBean.java:12: cannot resolve symbol
      [ejbdoclet] symbol : class TestBMPEntityHome
      [ejbdoclet] location: package interfaces
      [ejbdoclet] import test.interfaces.TestBMPEntityHome;
      [ejbdoclet] ^
      [ejbdoclet] /home/chrisr/jboss/template/src/main/ejb/test/entity/TestBMPEntityBean.java:13: cannot resolve symbol
      [ejbdoclet] symbol : class TestBMPEntityPK
      [ejbdoclet] location: package interfaces
      [ejbdoclet] import test.interfaces.TestBMPEntityPK;
      [ejbdoclet] ^
      [ejbdoclet] /home/chrisr/jboss/template/src/main/ejb/test/entity/TestBMPEntityBean.java:16: cannot resolve symbol
      [ejbdoclet] symbol : class SequenceGenerator
      [ejbdoclet] location: package interfaces
      [ejbdoclet] import test.interfaces.SequenceGenerator;
      [ejbdoclet] ^
      [ejbdoclet] /home/chrisr/jboss/template/src/main/ejb/test/entity/TestBMPEntityBean.java:17: cannot resolve symbol
      [ejbdoclet] symbol : class SequenceGeneratorHome
      [ejbdoclet] location: package interfaces
      [ejbdoclet] import test.interfaces.SequenceGeneratorHome;
      [ejbdoclet] ^
      [ejbdoclet] /home/chrisr/jboss/template/src/main/ejb/test/entity/TestBMPEntityBean.java:85: cannot resolve symbol
      [ejbdoclet] symbol : class TestBMPEntityData
      [ejbdoclet] location: class test.entity.TestBMPEntityBean
      [ejbdoclet] public void setValueObject( TestBMPEntityData pTestEntity )
      [ejbdoclet] ^
      [ejbdoclet] /home/chrisr/jboss/template/src/main/ejb/test/entity/TestBMPEntityBean.java:103: cannot resolve symbol
      [ejbdoclet] symbol : class TestBMPEntityData
      [ejbdoclet] location: class test.entity.TestBMPEntityBean
      [ejbdoclet] public TestBMPEntityData getValueObject() {
      [ejbdoclet] ^
      [ejbdoclet] /home/chrisr/jboss/template/src/main/ejb/test/entity/TestBMPEntityBean.java:306: cannot resolve symbol
      [ejbdoclet] symbol : class TestBMPEntityData
      [ejbdoclet] location: class test.entity.TestBMPEntityBean
      [ejbdoclet] public TestBMPEntityPK ejbCreate( TestBMPEntityData pTestEntity )
      [ejbdoclet] ^
      [ejbdoclet] /home/chrisr/jboss/template/src/main/ejb/test/entity/TestBMPEntityBean.java:306: cannot resolve symbol
      [ejbdoclet] symbol : class TestBMPEntityPK
      [ejbdoclet] location: class test.entity.TestBMPEntityBean
      [ejbdoclet] public TestBMPEntityPK ejbCreate( TestBMPEntityData pTestEntity )
      [ejbdoclet] ^
      [ejbdoclet] /home/chrisr/jboss/template/src/main/ejb/test/entity/TestBMPEntityBean.java:330: cannot resolve symbol
      [ejbdoclet] symbol : class TestBMPEntityData
      [ejbdoclet] location: class test.entity.TestBMPEntityBean
      [ejbdoclet] public void ejbPostCreate( TestBMPEntityData pTestEntity )
      [ejbdoclet] ^
      [ejbdoclet] /home/chrisr/jboss/template/src/main/ejb/test/entity/TestBMPEntityBean.java:433: cannot resolve symbol
      [ejbdoclet] symbol : class TestBMPEntityPK
      [ejbdoclet] location: class test.entity.TestBMPEntityBean
      [ejbdoclet] public TestBMPEntityPK ejbFindByPrimaryKey( TestBMPEntityPK pKey )
      [ejbdoclet] ^
      [ejbdoclet] /home/chrisr/jboss/template/src/main/ejb/test/entity/TestBMPEntityBean.java:433: cannot resolve symbol
      [ejbdoclet] symbol : class TestBMPEntityPK
      [ejbdoclet] location: class test.entity.TestBMPEntityBean
      [ejbdoclet] public TestBMPEntityPK ejbFindByPrimaryKey( TestBMPEntityPK pKey )
      [ejbdoclet] ^
      [ejbdoclet] /home/chrisr/jboss/template/src/main/ejb/test/entity/TestEntityBean.java:10: cannot resolve symbol
      [ejbdoclet] symbol : class TestEntity
      [ejbdoclet] location: package interfaces
      [ejbdoclet] import test.interfaces.TestEntity;
      [ejbdoclet] ^
      [ejbdoclet] /home/chrisr/jboss/template/src/main/ejb/test/entity/TestEntityBean.java:11: cannot resolve symbol
      [ejbdoclet] symbol : class TestEntityData
      [ejbdoclet] location: package interfaces
      [ejbdoclet] import test.interfaces.TestEntityData;
      [ejbdoclet] ^
      [ejbdoclet] /home/chrisr/jboss/template/src/main/ejb/test/entity/TestEntityBean.java:12: cannot resolve symbol
      [ejbdoclet] symbol : class TestEntityHome
      [ejbdoclet] location: package interfaces
      [ejbdoclet] import test.interfaces.TestEntityHome;
      [ejbdoclet] ^
      [ejbdoclet] /home/chrisr/jboss/template/src/main/ejb/test/entity/TestEntityBean.java:13: cannot resolve symbol
      [ejbdoclet] symbol : class TestEntityPK
      [ejbdoclet] location: package interfaces
      [ejbdoclet] import test.interfaces.TestEntityPK;
      [ejbdoclet] ^
      [ejbdoclet] /home/chrisr/jboss/template/src/main/ejb/test/entity/TestEntityBean.java:16: cannot resolve symbol
      [ejbdoclet] symbol : class SequenceGenerator
      [ejbdoclet] location: package interfaces
      [ejbdoclet] import test.interfaces.SequenceGenerator;
      [ejbdoclet] ^
      [ejbdoclet] /home/chrisr/jboss/template/src/main/ejb/test/entity/TestEntityBean.java:17: cannot resolve symbol
      [ejbdoclet] symbol : class SequenceGeneratorHome
      [ejbdoclet] location: package interfaces
      [ejbdoclet] import test.interfaces.SequenceGeneratorHome;
      [ejbdoclet] ^
      [ejbdoclet] /home/chrisr/jboss/template/src/main/ejb/test/entity/TestEntityBean.java:95: cannot resolve symbol
      [ejbdoclet] symbol : class TestEntityData
      [ejbdoclet] location: class test.entity.TestEntityBean
      [ejbdoclet] public void setValueObject( TestEntityData pTestEntity )
      [ejbdoclet] ^
      [ejbdoclet] /home/chrisr/jboss/template/src/main/ejb/test/entity/TestEntityBean.java:158: cannot resolve symbol
      [ejbdoclet] symbol : class TestEntityData
      [ejbdoclet] location: class test.entity.TestEntityBean
      [ejbdoclet] public TestEntityData getValueObject() {
      [ejbdoclet] ^
      [ejbdoclet] /home/chrisr/jboss/template/src/main/ejb/test/entity/TestEntityBean.java:462: cannot resolve symbol
      [ejbdoclet] symbol : class TestEntityData
      [ejbdoclet] location: class test.entity.TestEntityBean
      [ejbdoclet] public TestEntityPK ejbCreate( TestEntityData pTestEntity )
      [ejbdoclet] ^
      [ejbdoclet] /home/chrisr/jboss/template/src/main/ejb/test/entity/TestEntityBean.java:462: cannot resolve symbol
      [ejbdoclet] symbol : class TestEntityPK
      [ejbdoclet] location: class test.entity.TestEntityBean
      [ejbdoclet] public TestEntityPK ejbCreate( TestEntityData pTestEntity )
      [ejbdoclet] ^
      [ejbdoclet] /home/chrisr/jboss/template/src/main/ejb/test/entity/TestEntityBean.java:485: cannot resolve symbol
      [ejbdoclet] symbol : class TestEntityData
      [ejbdoclet] location: class test.entity.TestEntityBean
      [ejbdoclet] public void ejbPostCreate( TestEntityData pTestEntity )
      [ejbdoclet] ^
      [ejbdoclet] javadoc: In doclet class xdoclet.DocletTask$DocletMain, method start has thrown an exception java.lang.reflect.InvocationTargetException
      [ejbdoclet] java.lang.NoClassDefFoundError: org/apache/tools/ant/types/EnumeratedAttribute
      [ejbdoclet] 1 error
      [ejbdoclet] at java.lang.Class.getDeclaredFields0(Native Method)
      [ejbdoclet] at java.lang.Class.privateGetDeclaredFields(Class.java:1480)
      [ejbdoclet] at java.lang.Class.getField0(Class.java:1713)
      [ejbdoclet] 27 warnings
      [ejbdoclet] at java.lang.Class.getDeclaredField(Class.java:1176)
      [ejbdoclet] at java.io.ObjectStreamClass.getDeclaredSUID(ObjectStreamClass.java:1404)
      [ejbdoclet] at java.io.ObjectStreamClass.access$400(ObjectStreamClass.java:45)
      [ejbdoclet] at java.io.ObjectStreamClass$3.run(ObjectStreamClass.java:331)
      [ejbdoclet] at java.security.AccessController.doPrivileged(Native Method)
      [ejbdoclet] at java.io.ObjectStreamClass.(ObjectStreamClass.java:329)
      [ejbdoclet] at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:249)
      [ejbdoclet] at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:444)
      [ejbdoclet] at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1511)
      [ejbdoclet] at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1425)
      [ejbdoclet] at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1511)
      [ejbdoclet] at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1425)
      [ejbdoclet] at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1511)
      [ejbdoclet] at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1425)
      [ejbdoclet] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1616)
      [ejbdoclet] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1264)
      [ejbdoclet] at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1593)
      [ejbdoclet] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1261)
      [ejbdoclet] at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1830)
      [ejbdoclet] at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1756)
      [ejbdoclet] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1636)
      [ejbdoclet] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1264)
      [ejbdoclet] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:322)
      [ejbdoclet] at xdoclet.DocletTask$DocletMain.loadContext(DocletTask.java:603)
      [ejbdoclet] at xdoclet.DocletTask$DocletMain.start(DocletTask.java:529)
      [ejbdoclet] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [ejbdoclet] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [ejbdoclet] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [ejbdoclet] at java.lang.reflect.Method.invoke(Method.java:324)
      [ejbdoclet] at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:196)
      [ejbdoclet] at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:95)
      [ejbdoclet] at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:288)
      [ejbdoclet] at com.sun.tools.javadoc.Start.begin(Start.java:114)
      [ejbdoclet] at com.sun.tools.javadoc.Main.execute(Main.java:44)
      [ejbdoclet] at com.sun.tools.javadoc.Main.main(Main.java:34)

      BUILD FAILED
      file:/home/chrisr/jboss/template/build.xml:147: Javadoc returned 1

      Total time: 14 seconds


      I'm using JBoss 3.0.3, JDK1.4.1, xdoclet 1.1.2, ant 1.5.1
      on a RedHat 7.3 box.

      Any pointers to correcting this problem will be most
      appreciated.

      Thanks,

      Chris