8 Replies Latest reply on Dec 4, 2002 11:02 PM by dnoyeb

    xdoclet.ejb.EjbDocletTask

    dotskills

      I followed the instructions with installing Jboss. No
      matter what I do I keep getting this error. Please
      help! I would even even go as far as putting xdocle
      t.ejb.EjbDocletTask in my class path but I have no
      idea where is it or how to find it. Thanks.

      James

      Microsoft(R) Windows NT(TM)
      (C) Copyright 1985-1996 Microsoft Corp.

      C:\>cd C:\JBoss.3.0TemplateAndExamples\template

      C:\JBoss.3.0TemplateAndExamples\template>ant
      Buildfile: build.xml

      check-environment:

      check-jboss:

      wrong-jboss:

      check-xdoclet:

      wrong-xdoclet:

      init:
      [echo] build.compiler = ${build.compiler}
      [echo] user.home = C:\WINNT\Profiles\jjefferson
      [echo] java.home = c:\jdk1.3.1_01\jre
      [echo] ant.home = C:\jakarta-ant-1.5.1
      [echo] jboss.home = C:/jboss-3.0.3
      [echo] xdoclet.home = C:/xdoclet-bin-1.2.0
      [echo] java.class.path =
      c:\jdk1.3.1_01\lib\tools.jar;C:\jakarta-ant-1.5.1\lib\xml-apis.jar;C:\jakarta-ant-1.5.1\lib\xercesImpl.jar;C:\jakarta-ant-1.5.1\lib\
      optional.jar;C:\jakarta-ant-1.5.1\lib\ant.jar;.;C:\VisualCafe\Java\Lib;C:\VisualC
      afe\Java\Lib\SYMCLASS.ZIP;C:\VisualCafe\Java\Lib\CLASSES.ZIP;C:\VisualCafe\Java\Lib\COLLECTIONS.ZIP;C:\VisualCafe\Java\Lib\ICEBROWSERBEAN.JAR;C:\VisualCafe\Java\Lib\JSDK.JAR;C:\VisualCafe\Java\Lib\SYMTOOLS.JAR;C:\VisualCafe\JFC\SWINGALL.JAR;C:\VisualCafe\Bin\Components\SFC.JAR;C:\VisualCafe\Bin\Components\SYMBEANS.JAR;C:\VisualCafe\Java\Lib\DBAW.ZIP;C:\VisualCafe\Bin\Components\DBAW_AWT.JAR;C:\VisualCafe\Bin\Components\Databind.JAR;C:\VisualCafe\Java\Lib\Olite35.jar;C:\JAVA_PROJECTS;C:\soap-2_2\lib\soap.jar;C:\javamail-1.2\mail.jar;C:\jaf-1.0.1\activation.jar


      xdoclet-generate:

      BUILD FAILED
      file:C:/JBoss.3.0TemplateAndExamples/template/build.xml:135:
      taskdef class xdoclet.ejb.EjbDocletTask cannot be found

      Total time: 2 seconds
      C:\JBoss.3.0TemplateAndExamples\template>

        • 1. Re: xdoclet.ejb.EjbDocletTask
          dotskills

          this is my .ant.properties file

          # ATTENTION: this is an example file how to overwrite settings in this project
          # Please rename it to ".ant.properties" and adjust the settings to your needs

          # Set the path to the runtime JBoss directory containing the JBoss application server
          # ATTENTION: the one containing directories like "bin", "client", "server" etc.
          jboss.home=C:/jboss-3.0.3
          # Set the configuration name that must have a corresponding directory under
          # <jboss.home>/server
          jboss.configuration=default
          # Set the path to the root directory of the XDoclet distribution (see
          # http://www.sf.net/projects/xdoclet)
          xdoclet.home=C:/xdoclet-bin-1.2.0
          # Set this to "true" when you want to force the rebuild of the XDoclet generated
          # files (see XDoclet's attribute "force")
          xdoclet.force=false
          # Set the EJB version you want to use (1.1 or 2.0, see XDoclet's attribute "ejbspec")
          ejb.version=2.0
          # Set the JBoss version you want to use (2.4, 3.0 etc., see XDoclet's attribute "version")
          jboss.version=3.0
          # Set the DB type mapping (Hypersonic SQL, PostgreSQL etc., see XDoclet's attribute "typemapping")
          type.mapping=Hypersonic SQL
          # Set the DataSource name your are going to use (java:/DefaultDS etc., see XDoclet's attribute "datasource")
          datasource.name=java:/DefaultDS
          # Uncomment this and adjust the path to point directly to JAR file containing the servlet classes
          # Attention: By uncommenting this line you start the creation of a WAR file
          #servlet-lib.path=C:/jboss-all/build/output/jboss-3.1.0alpha/lib/javax.servlet.jar

          • 2. Re: xdoclet.ejb.EjbDocletTask
            schaefera

            When you are going to use BETA software you don't have to complain about problems.

            Use XDoclet 1.1.2 otherwise consult the XDoclet 1.2 docu maybe the path changed.

            Andy

            • 3. Re: xdoclet.ejb.EjbDocletTask
              guydaniel

              This is a bug in ant ... :)
              Or maybe it's a problem with the class loader ?

              Anyway, delete the file options.jar from c:\ant-1.5.1\lib and it will get past that error.

              If you use any of ant's optional tasks (I didn't take a good look at your script) then you'll have to created a task for it and include wherever you put the options.jar in a nested classpath.

              • 4. Re: xdoclet.ejb.EjbDocletTask
                zhenbi

                i think try xdoclet 1.1.2 is right. i had the same problem, now i use xdoclet 1.1.2 is working.

                • 5. Re: xdoclet.ejb.EjbDocletTask
                  henrikwh

                  Hello
                  I was trying to get the JBoss.3.0TemplateAndExamples to work.
                  But I cant seem to compile the "Template". I get the following message:
                  ----
                  init:
                  [echo] build.compiler = ${build.compiler}
                  [echo] user.home = /home/henrikwh
                  [echo] java.home = /usr/java/j2sdk1.4.1/jre
                  [echo] ant.home = /usr
                  [echo] jboss.home = /usr/java/jboss-3.0.4_tomcat-4.1.12
                  [echo] xdoclet.home = /home/henrikwh/dev/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/java/j2sdk1.4.1/lib/tools.jar

                  xdoclet-generate:
                  [ejbdoclet] Generating Javadoc
                  [ejbdoclet] Javadoc execution
                  [ejbdoclet] Loading source file /home/henrikwh/dev/template/src/main/ejb/test/session/SequenceGeneratorBean.java...
                  [ejbdoclet] Loading source file /home/henrikwh/dev/template/src/main/ejb/test/session/TestSessionBean.java...
                  [ejbdoclet] Loading source file /home/henrikwh/dev/template/src/main/ejb/test/message/TestMessageDrivenBean.java...
                  [ejbdoclet] Loading source file /home/henrikwh/dev/template/src/main/ejb/test/entity/TestBMPEntityBean.java...
                  [ejbdoclet] Loading source file /home/henrikwh/dev/template/src/main/ejb/test/entity/TestEntityBean.java...
                  [ejbdoclet] Constructing Javadoc information...
                  [ejbdoclet] /home/henrikwh/dev/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/henrikwh/dev/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;
                  [-----

                  I goes on and on about the missing interfaces. I thought xdoclot would generate them so it could compile.
                  I havent changed build.xml.

                  Any suggestions?

                  Best regards
                  Henrik

                  • 6. Re: xdoclet.ejb.EjbDocletTask
                    gksands

                    Hi,
                    I use the correct version of the xdoclet, ant and jboss, still i get the same problem.

                    D:\jboss-3.0.4\docs\templateNExamples\template>ant
                    Buildfile: build.xml

                    check-environment:

                    check-jboss:

                    wrong-jboss:

                    check-xdoclet:

                    wrong-xdoclet:

                    init:
                    [echo] build.compiler = ${build.compiler}
                    [echo] user.home = C:\Documents and Settings\skota
                    [echo] java.home = C:\bea\jdk131\jre
                    [echo] ant.home = d:\jakarta-ant-1.4.1\bin\\..
                    [echo] jboss.home = D:jboss-3.0.4
                    [echo] xdoclet.home = D:xdoclet-1.1.2
                    [echo] java.class.path = C:\bea\jdk131\lib\tools.jar;d:\jakarta-ant-1.4.1\b
                    in\\..\lib\jaxp.jar;d:\jakarta-ant-1.4.1\bin\\..\lib\crimson.jar;d:\jakarta-ant-
                    1.4.1\bin\\..\lib\ant.jar;
                    [echo]

                    xdoclet-generate:

                    BUILD FAILED

                    D:\jboss-3.0.4\docs\templateNExamples\template\build.xml:135: taskdef class xdoc
                    let.ejb.EjbDocletTask cannot be found

                    Total time: 0 seconds

                    • 7. Re: xdoclet.ejb.EjbDocletTask
                      ldgcq

                      You must add E:\xdoclet-1.1.2\lib\xdoclet.jar;E:\JBoss_Tomcat\lib\log4j-boot.jar to your CLASSPATH.

                      • 8. Re: xdoclet.ejb.EjbDocletTask
                        dnoyeb

                        You do not seem to have the xdoclet jar in your class path.

                        You need one of these


                        Where the ${XDOCLET_LIBS} refers the the class path to xdoclet jar and any files it might use. (like log4j)

                        you also need one of these



                        note the xdoclet jar path appears once again.