-
1. Re:
adrian.brock Dec 11, 2001 6:31 AM (in response to eszhou)Hi,
The build.xml is wrong.
It should be ${jboss.dist}/client/jboss-j2ee.jar
Regards,
Adrian -
2. problem on win2000
eszhou Dec 11, 2001 7:50 AM (in response to 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 Dec 11, 2001 7:54 AM (in response to 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:
adrian.brock Dec 11, 2001 8:17 AM (in response to eszhou)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 Dec 11, 2001 8:21 AM (in response to 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 Dec 11, 2001 8:33 AM (in response to 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:
adrian.brock Dec 11, 2001 9:41 AM (in response to eszhou)Hi,
I need integrated Tomcat as well.
Download in progress...
Regards,
Adrian -
8. Re: Re:
drbugs Dec 11, 2001 9:46 AM (in response to eszhou)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 Dec 11, 2001 10:01 AM (in response to 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 Dec 11, 2001 10:18 AM (in response to eszhou)Yeah, it was kinda cool.
Try it and let us know if it works for you... -
11. Re: Re:
eszhou Dec 11, 2001 1:17 PM (in response to eszhou)just installed ant 1.4.1. and it builds successfully!
-
12. Re: Re:
drbugs Dec 12, 2001 8:49 AM (in response to eszhou)Sweet!
I'ts nice when things work...
;->
Have fun!
R