You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-user@jakarta.apache.org by Sri123 <mo...@mail.nih.gov> on 2009/11/25 16:45:53 UTC

Cactus 1.7.2 integration Ant 1.6.5 and Junit 4.0 Problems

I am trying to run cactus using ant and I am getting the following exception:

<testcase classname="junit.framework.JUnit4TestCaseFacade" name="unknown"
time="0.265">
    <error message="Error finding class
[gov.nih.eta.beantier.appldetails.session.ApplDetailBeanCactusTest] using
both the Context classloader and the webapp classloader. Possible causes
include:
	- Your webapp does not include your test classes,
	- The cactus.jar is not located in your WEB-INF/lib directory and your
Container has not set the Context classloader to point to the webapp one"
type="org.apache.cactus.internal.client.ServletExceptionWrapper">javax.servlet.ServletException:
Error finding class
[gov.nih.eta.beantier.appldetails.session.ApplDetailBeanCactusTest] using
both the Context classloader and the webapp classloader. Possible causes
include:
	- Your webapp does not include your test classes,
	- The cactus.jar is not located in your WEB-INF/lib directory and your
Container has not set the Context classloader to point to the webapp one
	at
org.apache.cactus.internal.server.AbstractWebTestCaller.getTestClassClass(AbstractWebTestCaller.java:501)
	at
org.apache.cactus.internal.server.AbstractWebTestCaller.getTestClassInstance(AbstractWebTestCaller.java:384)
	at
org.apache.cactus.internal.server.AbstractWebTestCaller.doTest(AbstractWebTestCaller.java:109)
	at
org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_aroundBody0(AbstractWebTestController.java:93)
	at
org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_aroundBody1$advice(AbstractWebTestController.java:224)
	at
org.apache.cactus.internal.server.AbstractWebTestController.handleRequest(AbstractWebTestController.java)
	at
org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody2(ServletTestRedirector.java:101)
	at
org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody3$advice(ServletTestRedirector.java:224)
	at
org.apache.cactus.server.ServletTestRedirector.doPost(ServletTestRedirector.java)
	at
org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody0(ServletTestRedirector.java:72)
	at
org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody1$advice(ServletTestRedirector.java:224)
	at
org.apache.cactus.server.ServletTestRedirector.doGet(ServletTestRedirector.java)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
	at
com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
	at
gov.nih.framework.webtier.filters.SingleSignOnFixTimeoutFilter.doFilter(SingleSignOnFixTimeoutFilter.java:90)
	at
com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
	at
gov.nih.framework.webtier.filters.SingleSignOnFixLogoutFilter.doFilter(SingleSignOnFixLogoutFilter.java:64)
	at
com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
	at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:436)
	at
com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:619)
	at
com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
	at
com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
	at
com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
	at
com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
	at
com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
	at
oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
	at
com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
	at java.lang.Thread.run(Thread.java:595)
</error>
  </testcase>

I have all the necessary jars in the classpath:

<path id="cactus.classpath">
 <fileset dir="${cactus.dir}">	        		
 	<include name="lib/*.jar" />
 </fileset>			
<pathelement location="${classes.dir}" />
 </path>	

<taskdef resource="cactus.tasks">
		<classpath>
				<pathelement location="cactus.classpath"/>
		</classpath>
</taskdef>

Please let me know what I am missing here

Thanks
Sri
-- 
View this message in context: http://old.nabble.com/Cactus-1.7.2-integration-Ant-1.6.5-and-Junit-4.0-Problems-tp26515023p26515023.html
Sent from the Cactus - User mailing list archive at Nabble.com.


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