12 Replies Latest reply on Dec 12, 2001 8:49 AM by drbugs

    "ant intro-interest-jar" on win2000

    eszhou

      Hello,

      I have just installed JBOSS 2.4.3 together with tomcat 3.2. When I run "ant intro-interest-jar" in directory %JBOSS_DIST%/examples/build, I got following error:
      <<<<<<<<<<<<<<<<<<<<<<
      D:\JBoss-2.4.3_Tomcat-3.2.3\jboss\examples\build>ant intro-interest-jar
      Buildfile: build.xml

      validate-servlet:

      BUILD FAILED

      D:\JBoss-2.4.3_Tomcat-3.2.3\jboss\examples\build\build.xml:36: Could not create
      task of type: path. Common solutions are to use taskdef to declare your task, or
      , if this is an optional task, to put the optional.jar in the lib directory of your ant installation (ANT_HOME).

      Total time: 0 seconds
      >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

      The line 36 of build.xml is:


      What is wrong?

      Thanks,

        • 1. Re:

          Hi,

          The build.xml is wrong.

          It should be ${jboss.dist}/client/jboss-j2ee.jar

          Regards,
          Adrian

          • 2. problem on win2000
            eszhou

            just changed ejb.jar to jboss_j2ee.jar,
            but running
            "ant intro-interest-jar" I got the same error:

            <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
            D:\JBoss-2.4.3_Tomcat-3.2.3\jboss\examples\build>ant intro-interest-jar
            Buildfile: build.xml

            validate-servlet:

            BUILD FAILED

            D:\JBoss-2.4.3_Tomcat-3.2.3\jboss\examples\build\build.xml:36: Could not create
            task of type: path. Common solutions are to use taskdef to declare your task, or
            , if this is an optional task, to put the optional.jar in the lib directory of y
            our ant installation (ANT_HOME).

            Total time: 0 seconds
            >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

            the line 36 is as following:

            This line makes problem, but I don't know how to fix it.

            Thanks,


            • 3. Re: Re:
              eszhou

              Adrian,

              the relevant build.xml is shown below:

              <<<<<<<<<<<<<<<<<<<<<

              <!-- Override with your web server servlet jar location.
              The default assumes that JBOSS_DIST points to a
              JBoss/Tomcat bundle distribution
              -->





























              >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

              the line 36 is:

              what is wrong?

              Thanks,

              • 4. Re:

                Hi,

                I downloaded the source. This doesn't include the examples.
                Also, I haven't downloaded the optional Tomcat.
                I will still try to help you.

                The ejb.jar, jboss-j2ee.jar is a red herring.
                It was ejb.jar on JBoss 2.2, this example handles both
                2.2 and 2.4

                The problem is in the validate-servlet target.
                Looks like it cannot find servlet.jar

                Do you have the environment variable JBOSS_DIST set.
                From the comment this needs to point to the directory where you installed JBoss.
                If this is set correctly, see if one of the paths mentioned on your last post exists and contains servlet.jar

                Regards,
                Adrian

                • 5. Re: Re:
                  eszhou

                  adrian,

                  you can download the examples file from http://www.jboss.org/doco_files/

                  the file name is: documentation-example.zip.

                  Thanks,

                  • 6. Re: Re:
                    eszhou

                    >The problem is in the validate-servlet target.
                    >Looks like it cannot find servlet.jar
                    >
                    >Do you have the environment variable JBOSS_DIST set.
                    >From the comment this needs to point to the directory >where you installed JBoss.
                    >If this is set correctly, see if one of the paths >mentioned on your last post exists and contains >servlet.jar

                    %JBOSS_DIST% is set to "D:\JBoss-2.4.3_Tomcat-3.2.3\jboss"

                    and %TOMCAT_HOME% is set to "D:\JBoss-2.4.3_Tomcat-3.2.3\tomcat"

                    they all look fine!

                    Thanks for your help!

                    • 7. Re: Re:

                      Hi,

                      I need integrated Tomcat as well.

                      Download in progress...

                      Regards,
                      Adrian

                      • 8. Re: Re:
                        drbugs

                        I had this same problem (on solaris). I am not using the integrated tomcat, so I added a line in the build.xml file to point to my servlet.jar.

                        Still broke. Taking a wild stab, I typed ant -version and got 1.3. I upgraded to ant 1.4.1 and it builds, so what version of ant are you running?

                        • 9. Re: Re:
                          eszhou

                          I am using ant 1.3 on win2000. It does not build.

                          does upgrade to ant 1.4 work out for you? That is great!

                          Thanks,

                          • 10. Re: Re:
                            drbugs

                            Yeah, it was kinda cool.

                            Try it and let us know if it works for you...

                            • 11. Re: Re:
                              eszhou

                              just installed ant 1.4.1. and it builds successfully!

                              • 12. Re: Re:
                                drbugs

                                Sweet!

                                I'ts nice when things work...

                                ;->

                                Have fun!

                                R