jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pedro Nevado" <pnev...@javato.com>
Subject RE: Context Help w/ Tomcat5
Date Wed, 01 Sep 2004 07:02:19 GMT
Check Tomcat users list. There is a bug with version 5.0.27 with the
META-INF/context.xml files in deployed wars. I do not know about other
Pedro Nevado

-----Mensaje original-----
De: Hookom, Jacob [mailto:Jacob.Hookom@redline.mckhboc.com]
Enviado el: martes, 31 de agosto de 2004 22:45
Para: 'cactus-user@jakarta.apache.org'
Asunto: Context Help w/ Tomcat5

Hello All,

We are setting up Cactus for a new project.  We had previously successfully
integrated Cactus on another project using the runatserver task with ant.

With the new project, we are attempting to use the cactus task to run our
test cases.  The problem we are having is getting the DataSource to work
where it doesn't seem to be finding the context.xml we've placed in the
META-INF of the war.

<Context path="/test-webapp" docBase="test-webapp" debug="0"

'test-webapp' matches the war name of 'test-webapp.war' that is configured
with ant via:

<cactus warfile="${target}/cactus/test-webapp.war"
	fork="false" failureproperty="tests.failed" haltonerror="false">
		<path refid="compile.classpath" />
		<pathelement location="${lib}/jt400.jar"/>
      <containerset timeout="60000">
      	<tomcat5x dir="${env.CATALINA_HOME}"
      <formatter type="brief" usefile="false"/>
      <formatter type="xml"/>
      <!-- from smo-tests.xml &tests; -->

I've run a single test case where I check the driver class to be resolved
via Class.forName(..) which is successful.  But when I try to grab a
connection from a DataSource, I get the exception:

Cannot create JDBC driver of class '' for connect URL 'null'

The context.xml is used in other deployments successfully, we just can't get
things to work in Cactus.

If anyone can offer any suggestions it would be greatly appreciated,

Jacob Hookom
Senior Analyst/Programmer
McKesson Medical-Surgical, Minnesota

To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: cactus-user-help@jakarta.apache.org

View raw message