0 Replies Latest reply on Oct 27, 2002 10:26 AM by mimi

    Copiling template example

    mimi Newbie

      Hi,

      I'm trying to compile the template example and get the following errors. Any Ideas ?

      init:
      [echo] build.compiler = ${build.compiler}
      [echo] user.home = D:\Documents and Settings\Administrator
      [echo] java.home = c:\JDK1.4\jre
      [echo] ant.home = c:\jakarta-ant-1.4
      [echo] jboss.home = D:/jboss-3.0.0/jboss-3.0.0
      [echo] xdoclet.home = C:/sandbox/java/xdoclet
      [echo] java.class.path = c:\jakarta-ant-1.4\lib\jaxp.jar;c:\jakarta-ant-1.4
      \lib\crimson.jar;c:\jakarta-ant-1.4\lib\ant.jar;c:\JDK1.4\lib\tools.jar
      [echo]

      xdoclet-generate:
      [echo] In xdoclet-generate
      [ejbdoclet] Generating Javadoc
      [ejbdoclet] Javadoc execution
      [ejbdoclet] Loading source file C:\sandbox\java\JBoss.3.0TemplateAndExamples\tem
      plate\src\main\ejb\test\session\SequenceGeneratorBean.java...
      [ejbdoclet] Loading source file C:\sandbox\java\JBoss.3.0TemplateAndExamples\tem
      plate\src\main\ejb\test\session\TestSessionBean.java...
      [ejbdoclet] Loading source file C:\sandbox\java\JBoss.3.0TemplateAndExamples\tem
      plate\src\main\ejb\test\message\TestMessageDrivenBean.java...
      [ejbdoclet] Loading source file C:\sandbox\java\JBoss.3.0TemplateAndExamples\tem
      plate\src\main\ejb\test\entity\TestBMPEntityBean.java...
      [ejbdoclet] Loading source file C:\sandbox\java\JBoss.3.0TemplateAndExamples\tem
      plate\src\main\ejb\test\entity\TestEntityBean.java...
      [ejbdoclet] Constructing Javadoc information...
      [ejbdoclet] C:\sandbox\java\JBoss.3.0TemplateAndExamples\template\src\main\ejb\t
      est\session\TestSessionBean.java:22: cannot resolve symbol
      [ejbdoclet] symbol : class TestEntity
      [ejbdoclet] location: package interfaces
      [ejbdoclet] import test.interfaces.TestEntity;
      [ejbdoclet] ^
      [ejbdoclet] C:\sandbox\java\JBoss.3.0TemplateAndExamples\template\src\main\ejb\t
      est\session\TestSessionBean.java:23: cannot resolve symbol
      [ejbdoclet] symbol : class TestEntityData
      [ejbdoclet] location: package interfaces
      [ejbdoclet] import test.interfaces.TestEntityData;
      [ejbdoclet] ^
      [ejbdoclet] C:\sandbox\java\JBoss.3.0TemplateAndExamples\template\src\main\ejb\t
      est\session\TestSessionBean.java:24: cannot resolve symbol
      [ejbdoclet] symbol : class TestEntityHome
      [ejbdoclet] location: package interfaces
      [ejbdoclet] import test.interfaces.TestEntityHome;
      [ejbdoclet] ^
      [ejbdoclet] C:\sandbox\java\JBoss.3.0TemplateAndExamples\template\src\main\ejb\t
      est\entity\TestBMPEntityBean.java:10: cannot resolve symbol
      [ejbdoclet] symbol : class TestBMPEntity
      [ejbdoclet] location: package interfaces
      [ejbdoclet] import test.interfaces.TestBMPEntity;
      [ejbdoclet] ^
      [ejbdoclet] C:\sandbox\java\JBoss.3.0TemplateAndExamples\template\src\main\ejb\t
      est\entity\TestBMPEntityBean.java:11: cannot resolve symbol
      [ejbdoclet] symbol : class TestBMPEntityData
      [ejbdoclet] location: package interfaces
      [ejbdoclet] import test.interfaces.TestBMPEntityData;
      [ejbdoclet] ^
      [ejbdoclet] C:\sandbox\java\JBoss.3.0TemplateAndExamples\template\src\main\ejb\t
      est\entity\TestBMPEntityBean.java:12: cannot resolve symbol
      [ejbdoclet] symbol : class TestBMPEntityHome
      [ejbdoclet] location: package interfaces
      [ejbdoclet] import test.interfaces.TestBMPEntityHome;
      [ejbdoclet] ^
      [ejbdoclet] C:\sandbox\java\JBoss.3.0TemplateAndExamples\template\src\main\ejb\t
      est\entity\TestBMPEntityBean.java:13: cannot resolve symbol
      [ejbdoclet] symbol : class TestBMPEntityPK
      [ejbdoclet] location: package interfaces
      [ejbdoclet] import test.interfaces.TestBMPEntityPK;
      [ejbdoclet] ^
      [ejbdoclet] C:\sandbox\java\JBoss.3.0TemplateAndExamples\template\src\main\ejb\t
      est\entity\TestBMPEntityBean.java:16: cannot resolve symbol
      [ejbdoclet] symbol : class SequenceGenerator
      [ejbdoclet] location: package interfaces
      [ejbdoclet] import test.interfaces.SequenceGenerator;
      [ejbdoclet] ^
      [ejbdoclet] C:\sandbox\java\JBoss.3.0TemplateAndExamples\template\src\main\ejb\t
      est\entity\TestBMPEntityBean.java:17: cannot resolve symbol
      [ejbdoclet] symbol : class SequenceGeneratorHome
      [ejbdoclet] location: package interfaces
      [ejbdoclet] import test.interfaces.SequenceGeneratorHome;
      [ejbdoclet] ^
      [ejbdoclet] C:\sandbox\java\JBoss.3.0TemplateAndExamples\template\src\main\ejb\t
      est\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] C:\sandbox\java\JBoss.3.0TemplateAndExamples\template\src\main\ejb\t
      est\entity\TestBMPEntityBean.java:103: cannot resolve symbol
      [ejbdoclet] symbol : class TestBMPEntityData
      [ejbdoclet] location: class test.entity.TestBMPEntityBean
      [ejbdoclet] public TestBMPEntityData getValueObject() {
      [ejbdoclet] ^
      [ejbdoclet] C:\sandbox\java\JBoss.3.0TemplateAndExamples\template\src\main\ejb\t
      est\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] C:\sandbox\java\JBoss.3.0TemplateAndExamples\template\src\main\ejb\t
      est\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] C:\sandbox\java\JBoss.3.0TemplateAndExamples\template\src\main\ejb\t
      est\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] C:\sandbox\java\JBoss.3.0TemplateAndExamples\template\src\main\ejb\t
      est\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] C:\sandbox\java\JBoss.3.0TemplateAndExamples\template\src\main\ejb\t
      est\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] C:\sandbox\java\JBoss.3.0TemplateAndExamples\template\src\main\ejb\t
      est\entity\TestEntityBean.java:10: cannot resolve symbol
      [ejbdoclet] symbol : class TestEntity
      [ejbdoclet] location: package interfaces
      [ejbdoclet] import test.interfaces.TestEntity;
      [ejbdoclet] ^
      [ejbdoclet] C:\sandbox\java\JBoss.3.0TemplateAndExamples\template\src\main\ejb\t
      est\entity\TestEntityBean.java:11: cannot resolve symbol
      [ejbdoclet] symbol : class TestEntityData
      [ejbdoclet] location: package interfaces
      [ejbdoclet] import test.interfaces.TestEntityData;
      [ejbdoclet] ^
      [ejbdoclet] C:\sandbox\java\JBoss.3.0TemplateAndExamples\template\src\main\ejb\t
      est\entity\TestEntityBean.java:12: cannot resolve symbol
      [ejbdoclet] symbol : class TestEntityHome
      [ejbdoclet] location: package interfaces
      [ejbdoclet] import test.interfaces.TestEntityHome;
      [ejbdoclet] ^
      [ejbdoclet] C:\sandbox\java\JBoss.3.0TemplateAndExamples\template\src\main\ejb\t
      est\entity\TestEntityBean.java:13: cannot resolve symbol
      [ejbdoclet] symbol : class TestEntityPK
      [ejbdoclet] location: package interfaces
      [ejbdoclet] import test.interfaces.TestEntityPK;
      [ejbdoclet] ^
      [ejbdoclet] C:\sandbox\java\JBoss.3.0TemplateAndExamples\template\src\main\ejb\t
      est\entity\TestEntityBean.java:16: cannot resolve symbol
      [ejbdoclet] symbol : class SequenceGenerator
      [ejbdoclet] location: package interfaces
      [ejbdoclet] import test.interfaces.SequenceGenerator;
      [ejbdoclet] ^
      [ejbdoclet] C:\sandbox\java\JBoss.3.0TemplateAndExamples\template\src\main\ejb\t
      est\entity\TestEntityBean.java:17: cannot resolve symbol
      [ejbdoclet] symbol : class SequenceGeneratorHome
      [ejbdoclet] location: package interfaces
      [ejbdoclet] import test.interfaces.SequenceGeneratorHome;
      [ejbdoclet] ^
      [ejbdoclet] C:\sandbox\java\JBoss.3.0TemplateAndExamples\template\src\main\ejb\t
      est\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] C:\sandbox\java\JBoss.3.0TemplateAndExamples\template\src\main\ejb\t
      est\entity\TestEntityBean.java:158: cannot resolve symbol
      [ejbdoclet] symbol : class TestEntityData
      [ejbdoclet] location: class test.entity.TestEntityBean
      [ejbdoclet] public TestEntityData getValueObject() {
      [ejbdoclet] ^
      [ejbdoclet] C:\sandbox\java\JBoss.3.0TemplateAndExamples\template\src\main\ejb\t
      est\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] C:\sandbox\java\JBoss.3.0TemplateAndExamples\template\src\main\ejb\t
      est\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] C:\sandbox\java\JBoss.3.0TemplateAndExamples\template\src\main\ejb\t
      est\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] Running
      [ejbdoclet] (TemplateEngine.invokeMethod 776 ) Invoking method failed: i
      mportedList, line=6 of template file: jar:file:C:\sandbox\java\xdoclet\lib\xdocl
      et.jar!/xdoclet/ejb/home.j
      [ejbdoclet] java.lang.reflect.InvocationTargetException
      [ejbdoclet] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [ejbdoclet] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
      sorImpl.java:42)
      [ejbdoclet] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
      hodAccessorImpl.java:28)
      [ejbdoclet] at java.lang.reflect.Method.invoke(Method.java:313)
      [ejbdoclet] at xdoclet.template.TemplateEngine.invokeMethod(TemplateEngine.j
      ava:768)
      [ejbdoclet] at xdoclet.template.TemplateEngine.invokeContentMethod(TemplateE
      ngine.java:890)
      [ejbdoclet] at xdoclet.template.TemplateEngine.handleTag(TemplateEngine.java
      :457)
      [ejbdoclet] at xdoclet.template.TemplateParser.generate(TemplateParser.java:
      109)
      [ejbdoclet] at xdoclet.template.TemplateParser.start(TemplateParser.java:72)

      [ejbdoclet] at xdoclet.TemplateSubTask.isGenerationNeeded(TemplateSubTask.ja
      va:800)
      [ejbdoclet] at xdoclet.TemplateSubTask.isGenerationNeeded(TemplateSubTask.ja
      va:703)
      [ejbdoclet] at xdoclet.TemplateSubTask.generateForClass(TemplateSubTask.java
      :491)
      [ejbdoclet] at xdoclet.TemplateSubTask.startProcess(TemplateSubTask.java:388
      )
      [ejbdoclet] at xdoclet.TemplateSubTask.execute(TemplateSubTask.java:326)
      [ejbdoclet] at xdoclet.DocletTask$DocletMain.start(DocletTask.java:549)
      [ejbdoclet] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [ejbdoclet] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
      sorImpl.java:42)
      [ejbdoclet] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
      hodAccessorImpl.java:28)
      [ejbdoclet] at java.lang.reflect.Method.invoke(Method.java:313)
      [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:289)
      [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)
      [ejbdoclet] Caused by: java.lang.ClassCastException: com.sun.tools.javac.v8.code
      .Type$ErrorType
      [ejbdoclet] at com.sun.tools.javadoc.ClassDocImpl.(ClassDocImpl.java:1
      11)
      [ejbdoclet] javadoc: In doclet class xdoclet.DocletTask$DocletMain, method star
      t has thrown an exception java.lang.reflect.InvocationTargetException
      [ejbdoclet] at com.sun.tools.javadoc.ClassDocImpl.(ClassDocImpl.java:1
      34)
      [ejbdoclet] at com.sun.tools.javadoc.DocEnv.getClassDoc(DocEnv.java:388)
      [ejbdoclet] at com.sun.tools.javadoc.ClassDocImpl.importedClasses(ClassDocIm
      pl.java:746)
      [ejbdoclet] at xdoclet.tags.ClassTagsHandler.importedList(ClassTagsHandler.j
      ava:765)
      [ejbdoclet] ... 25 more
      [ejbdoclet] Running XDoclet failed.
      [ejbdoclet] <<xdoclet.template.TemplateException: Invoking method failed: import
      edList, line=6 of template file: jar:file:C:\sandbox\java\xdoclet\lib\xdoclet.ja
      r!/xdoclet/ejb/home.j, exception: null>>
      [ejbdoclet] 1 error
      [ejbdoclet] 27 warnings

      BUILD FAILED

      c:\sandbox\java\JBoss.3.0TemplateAndExamples\template\build.xml:154: Javadoc ret
      urned 1

      Total time: 13 seconds