DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24851>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24851 Ant <cactus><tomcat4x> task does not function correctly with datasource definitions Summary: Ant <cactus><tomcat4x> task does not function correctly with datasource definitions Product: Cactus Version: 1.5-rc1 Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Normal Priority: Other Component: Ant Tasks AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] I have set up a test suite using Cactus and have tested that it runs correctly using the <cactus> and <tomcat4x> tasks. When this runs the temporary tomcat directory is created, my project-cactified.war file copied over and expanded and the tests run. I however need to define some datasources in the tomcat server.xml file. I copied the default server.xml file (created in the temp area) and add the following type of definition: <Context path="/project-cactified" docBase="project-cactified" debug="0"> <Resource name="jdbc/RDC" auth="Container" type="javax.sql.DataSource"/> <ResourceParams name="jdbc/RDC"> <parameter><name>factory</name><value>org.apache.commons.dbcp.BasicDataSourceFac tory</value></parameter> <parameter><name>driverClassName</name><value>oracle.jdbc.driver.OracleDriver</v alue></parameter> ... </ResourceParams> </Context> After setting the serverxml attribute of the <tomcat4x> tag I try and run the tests. What happens is that the project-cactified.war file is no longer expanded by tomcat when it starts and the tests never run. I have confirmed that the steps I have taken should work by altering the org.apache.cactus.integration.ant.container.AbstractContainer task so that the expanded project-cactified folder is not deleted. If it is present the tasks work and my datasources are configured correctly. It seems that there is a problem either with Tomcat or Cactus where the project- cactified.war file is not expanded if a context is defined in the server.xml file. Perhaps the tomcat task could expand the war file by default to get around this problem? Thanks for the useful product, Chris Mein --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
