Hi Brian,

> -----Original Message-----
> From: Brian Preston [mailto:[EMAIL PROTECTED]
> Sent: jeudi 2 septembre 2004 16:25
> To: Cactus Users List
> Subject: RE: ant cactus not finding j2ee.jar or servlet.jar at runtime?
> 
> Thanks for the idea (good idea) but it didn't help. I
> added the pathelement for the tools.jar in the
> classpath for the taskdef for cactus. Here it is:
> 
> <!-- Define the Cactus tasks -->
> <taskdef resource="cactus.tasks">
>     <classpath>
>         <pathelement location="${cactus.jar}"/>
>         <pathelement
> location="${ext_libdir}/cactus-ant-1.6.1.jar"/>
>               <pathelement
> location="c:\j2sdk1.4.2_04\lib\tools.jar"/>
>         <path refid="cactusdeps"/>
>     </classpath>
> </taskdef>
> 
> But I noticed 2 other interesting things in the error
> output. One is that the error is in the
> ContainerRunner. Does this mean that however the
> ContainerRunner works, it is a separate classpath for
> the server that is not finding the tools.jar?
> 
> Here's the error excerpt:
> 
> [cactus] Couldn't find tools.jar (needed for JSP
> compilation)
> [cactus] You must either set location or path on
> <pathelement>
> .

[snip]

The tools.jar is only required on the client side JVM as it is used by the
<cactus> Ant task which puts it in the Ant classloader used to start the
container (internally we're using the Ant <java> task to start the
containers).

Thanks
-Vincent


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to