Re: NamingException running Cactus tests

Kazuhito SUGURI <[email protected]>
Newsgroups gmane.comp.jakarta.cactus.user
Message-ID <[email protected]>
Hi Wenzhou,

In article <[email protected]>,
Tue, 18 Apr 2006 16:19:40 -0700,
Wenzhou Wang <[email protected]> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.