jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wenzhou Wang <Wenzhou.W...@Sun.COM>
Subject Re: NamingException running Cactus tests
Date Wed, 19 Apr 2006 07:31:32 GMT
Suguri,

Thank you very much! Yes, after added serverxml argument to the tomcat5x 
element, I was able to run the tests.

Thanks again,

Wenzhou

Kazuhito SUGURI wrote:
> Hi Wenzhou,
>
> In article <4445740C.4080301@Sun.COM>,
> Tue, 18 Apr 2006 16:19:40 -0700,
> Wenzhou Wang <Wenzhou.Wang@Sun.COM> wrote: 
> Wenzhou> I get the same error when I try to run the servlet sample's bundled with

> Wenzhou>    jakarta-catus-13-1.7.2(see the error message below). Where should I 
> Wenzhou> add the tomcat5x element ({tmocat5x.home}/conf/server.xml?)
>
> The tomcat5x element should be in your ant script.
> Please take a look at Ant Integration pages:
> 	http://jakarta.apache.org/cactus/integration/ant/index.html
> 	http://jakarta.apache.org/cactus/integration/ant/howto_ant_cactus.html
> 	http://jakarta.apache.org/cactus/integration/ant/task_cactus.html
>
>
> The cactus ant task (tomcat-5x) doesn't use ${tomcat5x.home}/conf/server.xml
> to start a tomcat instance as default, but does use a generated one.
> The NamingException arises because the server.xml file generated
> by cactus ant task is not suitable for Tomcat-5.x, unfortunately.
>
>
> To avoid the error, you can specify a server.xml,
> which is used by cactus ant task to start the tomcat instance,
> as a serverxml attribute of the tomcat-5x element.
>
>
> Hope this helps,
> ----
> Kazuhito SUGURI
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org
>
>   


Mime
View raw message