14 Replies Latest reply on Mar 22, 2003 10:45 PM by rrhal

    xdoclet problem building JBOSS 3.0.0 QuickStart tutorial

    grndl

      Hello,

      Be warned: I'm a first-time user of Xdoclet, and am probably doing something dumb:

      I'm attempting to build the example from AS's JBOSS 3.0 QuickStart tutorial -- I've installed and configured everything (I think), however, when I start the ant build I run into a problem in the <xdoclet-generate> task, and get many errors like this:

      0: cannot resolve symbol
      [ejbdoclet] symbol : class TestEntity
      [ejbdoclet] location: package interfaces
      [ejbdoclet] import test.interfaces.TestEntity
      ...

      I get the same error for TestEntity, TestEntityHome, TestEntityData, TestEntityPK, ... and others.

      I thought XDoclet was going to generate these classes? Instead, it seems to be indicating that it can't find them - ?

      I've set the property "xdoclet.force=true" in the .ant.properties file, but it doesn't help.

      Any and all assistance is very much appreciated,

      Doug
      --

        • 1. Re: xdoclet problem building JBOSS 3.0.0 QuickStart tutorial
          crozierm

          Look in the xdoclet mailing list archives for some more information. The samples applications in xdoclet do not deploy or build for jboss as they are distributed. There are several things that you must do. I'll try and list some of the ones that I remember:

          - add getABoolean (or was it getABoolean) to AllTypesEntityBean
          - add the following to LanguageBean and CityBean (shown is for CityBean, modify for Language) for the getLanguages/Cities method:

          * @jboss:relation
          * related-pk-field="id"
          * fk-column="language_id_fk"
          * fk-constraint="false"
          *
          * @jboss:relation-table table-name="cities_to_languages"

          - Change the cmp-version in CustomerBean to 2.0
          - Add @jboss:table-name to AddressBean so that it does not try to create a table named "addr/Address"
          - Change the get/setId return/param types in AllTypesEntityBean to be AllTypesEntityBeanPK instead of Integer.

          There were probably more changes also, but this is what I have written down.


          • 2. Re: xdoclet problem building JBOSS 3.0.0 QuickStart tutorial
            grndl

            Thanks for your help. However, I think we may be talking about two different sets of examples -- I'm trying to work with the examples from the JBoss 3.0.0 QuickStart tutorial document (which I pulled from sourceforge) -- I think you may be referring to examples which come with the XDoclet download - ?

            Doug
            --

            • 3. Re: xdoclet problem building JBOSS 3.0.0 QuickStart tutorial
              ga_lewis

              Hi

              Did you ever find a solution to this??? Or does anyone have any suggestions? I'm getting exactly the same problem.

              --
              Glenn


              > Hello,
              >
              > Be warned: I'm a first-time user of Xdoclet, and am
              > probably doing something dumb:
              >
              > I'm attempting to build the example from AS's JBOSS
              > 3.0 QuickStart tutorial -- I've installed and
              > configured everything (I think), however, when I
              > start the ant build I run into a problem in the
              > <xdoclet-generate> task, and get many errors like
              > this:
              >
              > 0: cannot resolve symbol
              > [ejbdoclet] symbol : class TestEntity
              > [ejbdoclet] location: package interfaces
              > [ejbdoclet] import test.interfaces.TestEntity
              > ...
              >
              > I get the same error for TestEntity, TestEntityHome,
              > TestEntityData, TestEntityPK, ... and others.
              >
              > I thought XDoclet was going to generate these
              > classes? Instead, it seems to be indicating that it
              > can't find them - ?
              >
              > I've set the property "xdoclet.force=true" in the
              > .ant.properties file, but it doesn't help.
              >
              > Any and all assistance is very much appreciated,
              >
              > Doug
              > --

              • 4. Re: xdoclet problem building JBOSS 3.0.0 QuickStart tutorial
                fgendron

                Hi,

                I am also getting the same error. I am new to jboss, and would appreciate being able to get this template project to work so I can study it.

                • 5. Re: xdoclet problem building JBOSS 3.0.0 QuickStart tutorial
                  matn1

                  I too am facing a similar problem.

                  I don't know if anyone has solved this, but it would be nice if better, more complete examples, of the getting started manual were available?

                  Below is my output from trying to do a build? All that I've been using is the JBoss 3.0 templates and examples.

                  I too was under the impression that xdoclet will create my home and remote interfaces. Why am I getting these file not found messages?

                  I am also providing part of my build.xml file.

                  ejbdoclet:
                  [ejbdoclet] Generating Javadoc
                  [ejbdoclet] Javadoc execution
                  [ejbdoclet] Loading source file C:\JBuilder4\myprojects\JBossApache\template\src\main\ejb\test\entity\TestBMPEntityBean.java...
                  [ejbdoclet] Loading source file C:\JBuilder4\myprojects\JBossApache\template\src\main\ejb\test\entity\TestEntityBean.java...
                  [ejbdoclet] Loading source file C:\JBuilder4\myprojects\JBossApache\template\src\main\ejb\test\session\SequenceGeneratorBean.java...
                  [ejbdoclet] Loading source file C:\JBuilder4\myprojects\JBossApache\template\src\main\ejb\test\session\TestSessionBean.java...
                  [ejbdoclet] Constructing Javadoc information...
                  [ejbdoclet] C:\JBuilder4\myprojects\JBossApache\template\src\main\ejb\test\entity\TestBMPEntityBean.java:10: Class test.interfaces.TestBMPEn
                  tity not found in import.
                  [ejbdoclet] import test.interfaces.TestBMPEntity;
                  [ejbdoclet] ^
                  [ejbdoclet] C:\JBuilder4\myprojects\JBossApache\template\src\main\ejb\test\entity\TestBMPEntityBean.java:11: Class test.interfaces.TestBMPEn
                  tityData not found in import.
                  [ejbdoclet] import test.interfaces.TestBMPEntityData;

                  --------------------------------------------------------































                  -- Thanks,

                  • 6. Re: xdoclet problem building JBOSS 3.0.0 QuickStart tutorial
                    matn1

                    I too am facing a similar problem.

                    I don't know if anyone has solved this, but it would be nice if better, more complete examples, of the getting started manual were available?

                    Below is my output from trying to do a build? All that I've been using is the JBoss 3.0 templates and examples.

                    I too was under the impression that xdoclet will create my home and remote interfaces. Why am I getting these file not found messages?

                    I am also providing part of my build.xml file.

                    ejbdoclet:
                    [ejbdoclet] Generating Javadoc
                    [ejbdoclet] Javadoc execution
                    [ejbdoclet] Loading source file C:\JBuilder4\myprojects\JBossApache\template\src\main\ejb\test\entity\TestBMPEntityBean.java...
                    [ejbdoclet] Loading source file C:\JBuilder4\myprojects\JBossApache\template\src\main\ejb\test\entity\TestEntityBean.java...
                    [ejbdoclet] Loading source file C:\JBuilder4\myprojects\JBossApache\template\src\main\ejb\test\session\SequenceGeneratorBean.java...
                    [ejbdoclet] Loading source file C:\JBuilder4\myprojects\JBossApache\template\src\main\ejb\test\session\TestSessionBean.java...
                    [ejbdoclet] Constructing Javadoc information...
                    [ejbdoclet] C:\JBuilder4\myprojects\JBossApache\template\src\main\ejb\test\entity\TestBMPEntityBean.java:10: Class test.interfaces.TestBMPEn
                    tity not found in import.
                    [ejbdoclet] import test.interfaces.TestBMPEntity;
                    [ejbdoclet] ^
                    [ejbdoclet] C:\JBuilder4\myprojects\JBossApache\template\src\main\ejb\test\entity\TestBMPEntityBean.java:11: Class test.interfaces.TestBMPEn
                    tityData not found in import.
                    [ejbdoclet] import test.interfaces.TestBMPEntityData;

                    --------------------------------------------------------































                    -- Thanks,

                    • 7. Re: xdoclet problem building JBOSS 3.0.0 QuickStart tutorial
                      matn1

                      I too am facing a similar problem.

                      I don't know if anyone has solved this, but it would be nice if better, more complete examples, of the getting started manual were available?

                      Below is my output from trying to do a build? All that I've been using is the JBoss 3.0 templates and examples.

                      I too was under the impression that xdoclet will create my home and remote interfaces. Why am I getting these file not found messages?

                      I am also providing part of my build.xml file.

                      ejbdoclet:
                      [ejbdoclet] Generating Javadoc
                      [ejbdoclet] Javadoc execution
                      [ejbdoclet] Loading source file C:\JBuilder4\myprojects\JBossApache\template\src\main\ejb\test\entity\TestBMPEntityBean.java...
                      [ejbdoclet] Loading source file C:\JBuilder4\myprojects\JBossApache\template\src\main\ejb\test\entity\TestEntityBean.java...
                      [ejbdoclet] Loading source file C:\JBuilder4\myprojects\JBossApache\template\src\main\ejb\test\session\SequenceGeneratorBean.java...
                      [ejbdoclet] Loading source file C:\JBuilder4\myprojects\JBossApache\template\src\main\ejb\test\session\TestSessionBean.java...
                      [ejbdoclet] Constructing Javadoc information...
                      [ejbdoclet] C:\JBuilder4\myprojects\JBossApache\template\src\main\ejb\test\entity\TestBMPEntityBean.java:10: Class test.interfaces.TestBMPEn
                      tity not found in import.
                      [ejbdoclet] import test.interfaces.TestBMPEntity;
                      [ejbdoclet] ^
                      [ejbdoclet] C:\JBuilder4\myprojects\JBossApache\template\src\main\ejb\test\entity\TestBMPEntityBean.java:11: Class test.interfaces.TestBMPEn
                      tityData not found in import.
                      [ejbdoclet] import test.interfaces.TestBMPEntityData;

                      --------------------------------------------------------































                      -- Thanks,

                      • 8. Re: xdoclet problem building JBOSS 3.0.0 QuickStart tutorial
                        matn1

                        I too am facing a similar problem.

                        I don't know if anyone has solved this, but it would be nice if better, more complete examples, of the getting started manual were available?

                        Below is my output from trying to do a build? All that I've been using is the JBoss 3.0 templates and examples.

                        I too was under the impression that xdoclet will create my home and remote interfaces. Why am I getting these file not found messages?

                        I am also providing part of my build.xml file.

                        ejbdoclet:
                        [ejbdoclet] Generating Javadoc
                        [ejbdoclet] Javadoc execution
                        [ejbdoclet] Loading source file C:\JBuilder4\myprojects\JBossApache\template\src\main\ejb\test\entity\TestBMPEntityBean.java...
                        [ejbdoclet] Loading source file C:\JBuilder4\myprojects\JBossApache\template\src\main\ejb\test\entity\TestEntityBean.java...
                        [ejbdoclet] Loading source file C:\JBuilder4\myprojects\JBossApache\template\src\main\ejb\test\session\SequenceGeneratorBean.java...
                        [ejbdoclet] Loading source file C:\JBuilder4\myprojects\JBossApache\template\src\main\ejb\test\session\TestSessionBean.java...
                        [ejbdoclet] Constructing Javadoc information...
                        [ejbdoclet] C:\JBuilder4\myprojects\JBossApache\template\src\main\ejb\test\entity\TestBMPEntityBean.java:10: Class test.interfaces.TestBMPEn
                        tity not found in import.
                        [ejbdoclet] import test.interfaces.TestBMPEntity;
                        [ejbdoclet] ^
                        [ejbdoclet] C:\JBuilder4\myprojects\JBossApache\template\src\main\ejb\test\entity\TestBMPEntityBean.java:11: Class test.interfaces.TestBMPEn
                        tityData not found in import.
                        [ejbdoclet] import test.interfaces.TestBMPEntityData;

                        --------------------------------------------------------































                        -- Thanks,

                        • 9. Re: xdoclet problem building JBOSS 3.0.0 QuickStart tutorial
                          matn1

                          I too am facing a similar problem.

                          I don't know if anyone has solved this, but it would be nice if better, more complete examples, of the getting started manual were available?

                          Below is my output from trying to do a build? All that I've been using is the JBoss 3.0 templates and examples.

                          I too was under the impression that xdoclet will create my home and remote interfaces. Why am I getting these file not found messages?

                          I am also providing part of my build.xml file.

                          ejbdoclet:
                          [ejbdoclet] Generating Javadoc
                          [ejbdoclet] Javadoc execution
                          [ejbdoclet] Loading source file C:\JBuilder4\myprojects\JBossApache\template\src\main\ejb\test\entity\TestBMPEntityBean.java...
                          [ejbdoclet] Loading source file C:\JBuilder4\myprojects\JBossApache\template\src\main\ejb\test\entity\TestEntityBean.java...
                          [ejbdoclet] Loading source file C:\JBuilder4\myprojects\JBossApache\template\src\main\ejb\test\session\SequenceGeneratorBean.java...
                          [ejbdoclet] Loading source file C:\JBuilder4\myprojects\JBossApache\template\src\main\ejb\test\session\TestSessionBean.java...
                          [ejbdoclet] Constructing Javadoc information...
                          [ejbdoclet] C:\JBuilder4\myprojects\JBossApache\template\src\main\ejb\test\entity\TestBMPEntityBean.java:10: Class test.interfaces.TestBMPEn
                          tity not found in import.
                          [ejbdoclet] import test.interfaces.TestBMPEntity;
                          [ejbdoclet] ^
                          [ejbdoclet] C:\JBuilder4\myprojects\JBossApache\template\src\main\ejb\test\entity\TestBMPEntityBean.java:11: Class test.interfaces.TestBMPEn
                          tityData not found in import.
                          [ejbdoclet] import test.interfaces.TestBMPEntityData;

                          --------------------------------------------------------































                          -- Thanks,

                          • 10. Re: xdoclet problem building JBOSS 3.0.0 QuickStart tutorial
                            matn1

                            I too am having a similar problem.

                            Can anyone point me in the right direction. I was also
                            under the impression that Xdoclet would create my home and remote interface from the bean implementation.

                            Below is my error and part of my build.xml file.

                            ejbdoclet:
                            [ejbdoclet] Generating Javadoc
                            [ejbdoclet] Javadoc execution
                            [ejbdoclet] Loading source file C:\JBuilder4\myprojects\JBossApache\template\src\main\ejb\test\entity\TestBMPEntityBean.java...
                            [ejbdoclet] Loading source file C:\JBuilder4\myprojects\JBossApache\template\src\main\ejb\test\entity\TestEntityBean.java...
                            [ejbdoclet] Loading source file C:\JBuilder4\myprojects\JBossApache\template\src\main\ejb\test\session\SequenceGeneratorBean.java...
                            [ejbdoclet] Loading source file C:\JBuilder4\myprojects\JBossApache\template\src\main\ejb\test\session\TestSessionBean.java...
                            [ejbdoclet] Constructing Javadoc information...
                            [ejbdoclet] C:\JBuilder4\myprojects\JBossApache\template\src\main\ejb\test\entity\TestBMPEntityBean.java:10: Class test.interfaces.TestBMPE
                            tity not found in import.
                            [ejbdoclet] import test.interfaces.TestBMPEntity;
                            [ejbdoclet] ^
                            [ejbdoclet] C:\JBuilder4\myprojects\JBossApache\template\src\main\ejb\test\entity\TestBMPEntityBean.java:11: Class test.interfaces.TestBMPE
                            tityData not found in import.
                            [ejbdoclet] import test.interfaces.TestBMPEntityData;
                            [ejbdoclet] ^
                            [ejbdoclet] C:\JBuilder4\myprojects\JBossApache\template\src\main\ejb\test\entity\TestBMPEntityBean.java:12: Class test.interfaces.TestBMPE
                            tityHome not found in import.
                            [ejbdoclet] import test.interfaces.TestBMPEntityHome;

                            -----------------------------------------------------
                            below is part of my build.xml
                            ----------------------------------------------------




















                            <!-- packageSubstitution packages="ejb" substituteWith="ejb.impl"/>
                            <packageSubstitution packages="ejb.cmr" substituteWith="ejb.cmr.impl"/ -->









                            • 11. Re: xdoclet problem building JBOSS 3.0.0 QuickStart ---Waste
                              snafu

                              I ran into exactly the same problem when I tried to build the template project. As far as I can tell from the forums, no one has ever sorted it out. Why distribute an example app that doesnt even build because of missing dependencies. The template project download needs to include succinct directions on how to configure everything to get the up up and working correctly, otherwise whats the point.

                              • 12. Re: xdoclet problem building JBOSS 3.0.0 QuickStart ---Waste
                                raja05

                                as far as i can see, the templates example has been built using an old version of xdoclet. I have a much updated version and the class structure is much different than whats givenm in the templates example. Try updating ur xdoclet binaries and point the build.xml properties to have hte new xdoclet libs. I will try and get an updated build.xml with the new xdoclet.

                                • 13. Re: xdoclet problem building JBOSS 3.0.0 QuickStart ---Waste
                                  tbfmicke

                                  Building with xdoclet 1.1.2 and the example works fine for me. Xdoclet gives those warning messages but it continues to work.

                                  (I had one problem that is probably fixed in current downloads, I had to change the path to the mail.jar file inside build.xml)

                                  What happens later in the build? There should be other errors if things fails

                                  Regards

                                  • 14. Re: xdoclet problem building JBOSS 3.0.0 QuickStart tutorial
                                    rrhal

                                    I'm having this exact same problem. As near as I can tell when I try to load jboss-3.0.6/template/src/main/ejb/test/session/TestSessionBean.java I'm missing 3 include files:

                                    TestEntity;
                                    TestEntityData;
                                    TestBMPEntity;

                                    from the following directory:
                                    JbossTemplate/template/src/main/ejb/test/interfaces/


                                    Then when I'm trying to load jboss-3.0.6/template/src/main/ejb/test/entity/TestBMPEntityBean.java
                                    I'm also missing:

                                    import test.interfaces.TestBMPEntity;
                                    import test.interfaces.TestBMPEntityData;
                                    import test.interfaces.TestBMPEntityHome;
                                    import test.interfaces.TestBMPEntityPK;
                                    import test.interfaces.SequenceGenerator;
                                    import test.interfaces.SequenceGeneratorHome;

                                    Where these supposed to be generated by Xdoclet? Are they just missing from the Quickstart Template?