You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Zsolt <zk...@intland.com> on 2005/12/28 14:01:59 UTC
How to start ant to use the webapps classpath?
Hi,
I have tomcat-5.5.12 and I copied all ant libraries (with my ones) into
/webapps/APPLICATION-NAME/WEB-INF/lib.
When I start ant using project.executeTargets(execTargets) I get class not
found exceptions and I think because ant uses the bootstrap classpath of
tomcat and not the classpath of my webapps.
How can I get ant to use the correct path?
Zsolt
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: How to start ant to use the webapps classpath?
Posted by Zsolt <zk...@intland.com>.
Yes I tried it but it didn't help.
>-----Original Message-----
>From: Balint Domokos [mailto:domokosbalint@chello.hu]
>Sent: Wednesday, December 28, 2005 9:41 PM
>To: Tomcat Users List
>Subject: Re: How to start ant to use the webapps classpath?
>
>Hi,
>
>did you try
>project.setCoreLoader(YourServletClass.class.getClassLoader());
>?
>
>Regards,
>Balint
>
>On Wed, 2005-12-28 at 14:01 +0100, Zsolt wrote:
>> Hi,
>>
>> I have tomcat-5.5.12 and I copied all ant libraries (with my ones) into
>> /webapps/APPLICATION-NAME/WEB-INF/lib.
>>
>> When I start ant using project.executeTargets(execTargets) I get class
>not
>> found exceptions and I think because ant uses the bootstrap classpath of
>> tomcat and not the classpath of my webapps.
>>
>> How can I get ant to use the correct path?
>>
>> Zsolt
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>--
>Balint Domokos <do...@chello.hu>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>For additional commands, e-mail: users-help@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: How to start ant to use the webapps classpath?
Posted by Balint Domokos <do...@chello.hu>.
Hi,
did you try
project.setCoreLoader(YourServletClass.class.getClassLoader());
?
Regards,
Balint
On Wed, 2005-12-28 at 14:01 +0100, Zsolt wrote:
> Hi,
>
> I have tomcat-5.5.12 and I copied all ant libraries (with my ones) into
> /webapps/APPLICATION-NAME/WEB-INF/lib.
>
> When I start ant using project.executeTargets(execTargets) I get class not
> found exceptions and I think because ant uses the bootstrap classpath of
> tomcat and not the classpath of my webapps.
>
> How can I get ant to use the correct path?
>
> Zsolt
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
--
Balint Domokos <do...@chello.hu>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org