8 Replies Latest reply on Apr 28, 2003 6:12 AM by jiuyang

    Problem building Template Example

    garymarsh

      Hi;

      I have run into a problem building the template and it looks like some of the interfaces are missing from the build source. The error I get is :

      template/src/main/ejb/test/entity/TestBMPEntityBean.java [10] cannot resolve symbol
      symbol : class TestBMPEntity
      location: package interfaces
      import test.interfaces.TestBMPEntity;
      ^
      template/src/main/ejb/test/entity/TestBMPEntityBean.java [11] cannot resolve symbol
      symbol : class TestBMPEntityData
      location: package interfaces
      import test.interfaces.TestBMPEntityData;
      ^
      template/src/main/ejb/test/entity/TestBMPEntityBean.java [12] cannot resolve symbol
      symbol : class TestBMPEntityHome
      location: package interfaces
      import test.interfaces.TestBMPEntityHome;
      ^
      template/src/main/ejb/test/entity/TestBMPEntityBean.java [13] cannot resolve symbol
      symbol : class TestBMPEntityPK
      location: package interfaces
      import test.interfaces.TestBMPEntityPK;
      ^
      template/src/main/ejb/test/entity/TestBMPEntityBean.java [16] cannot resolve symbol
      symbol : class SequenceGenerator
      location: package interfaces
      import test.interfaces.SequenceGenerator;
      ^
      template/src/main/ejb/test/entity/TestBMPEntityBean.java [17] cannot resolve symbol
      symbol : class SequenceGeneratorHome
      location: package interfaces
      import test.interfaces.SequenceGeneratorHome;


      Am I correct in assuming that these interfaces need to be defined and existing in the main/ejb/test/interfaces directory? If so how and where do I find them or am I suppose to supply them?

      Regards,

      Gary Marsh

        • 1. Re: Problem building Template Example
          wmprice1240

          Hello,
          These interface are automatically generated when you run the build script. Do you have xdoclet installed? If so, have you appropriately modified the .ant.properties file to point to both you JBoss home directory, as well as the xdoclet home directory?

          Weston

          • 2. Re: Problem building Template Example
            garymarsh

            I found the problem. My ANT_HOME was pointing to Ant1.5 and Forte4Java only recognizes Ant1.4.1. The actual error was that the build could not find org.apache.tools.types.EnumeratedAttribute.class. I finally realized it was a class path problem and tracked it down to the incompatibility.

            Thanks for the response thought.

            Gary

            • 3. Re: Problem building Template Example
              mimi

              Gary,

              I too am getting the same problem. How did you manage to track down the incompatibility issues?

              I am running Ant1.4.1, xdoclet 1.1.2 and JDK 1.4.0-beta2 on a windwos 2000 box.

              Any pointers to look at?

              Thanks in advance.

              Jag

              • 4. Re: Problem building Template Example
                mimi

                Hi Gary,

                I too am getting this problem. How did you manage to track down the problem as an Incompatibility problem?

                I am using ANT1.4.1, xdoclet 1.1.2 and JDK1.4.0-beta 2 on a windows 2000 box.

                Any ideas?

                Thanks in advance.

                Jag

                • 5. Re: Problem building Template Example
                  koltar

                  Gary which classpath or jar file was not being set properly, I am having the same issue you stated above but no one has a solution for it posted.

                  • 6. Re: Problem building Template Example
                    hfschouten

                    Hello,

                    I had the same problem, using JBoss-3.0.4, Forte4j 4.0,
                    j2sdk1.4.1_01, ant-1.4.1 and XDoclet-1.2.2.

                    For me the solution was adding an ant.home property
                    to the .ant.properties file instead of relying on the
                    ANT_HOME environment setting.

                    Hope this helps anyone else too!

                    Henk

                    • 7. Re: Problem building Template Example
                      jiuyang

                      Hi,

                      I am using ant-1.5.3-1, xdoclet-1.1.2 and jboss3.2. I am also facing the same problem - ant complaining about import test.interfaces.xxx not found. ?I tried setting ant.home but still doesn't help. Any help is greatly appreciated.

                      TIA

                      • 8. Re: Problem building Template Example
                        jiuyang

                        Sorry, I posted wrongly. The errors I saw are javadocs errors when the xdoclet was generating the codes.