jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Piotr Godek <Pio...@pbpolsoft.com.pl>
Subject sample servlet test on WebLogic 8.1 problem
Date Wed, 18 Feb 2004 15:57:19 GMT
Hello,

When running the sample servlet tests on WebLogic 8.1, I get the exception
you can see below.

I'm using the folowing container settings:

<containerset>
	<weblogic7x if="cactus.home.weblogic7x"
            dir="${cactus.home.weblogic7x}" port="${cactus.port}"
            output="${target.testreports.dir}/weblogic7x.out"
            todir="${target.testreports.dir}/weblogic7x"/>
</containerset>

Should this option be used or is "generic" a better solution? 

I am new to cactus and I was wondering anyone could help.

Thank you in advance.


Best regards,
Piotr

--- cut ---

2004-02-18 16:16:32 org.apache.cactus.server.AbstractWebTestCaller
getTestClassInstance
SEVERE: Error instantiating class
[org.apache.cactus.sample.unit.TestCookie([testCookieEncoding], [null])]
java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
	at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces
sorImpl.java:39)
	at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc
torAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
	at
org.apache.cactus.server.AbstractWebTestCaller.getTestClassInstance(Abstract
WebTestCaller.java:413)
	at
org.apache.cactus.server.AbstractWebTestCaller.doTest(AbstractWebTestCaller.
java:148)
	at
org.apache.cactus.server.AbstractWebTestController.handleRequest_aroundBody0
(AbstractWebTestController.java:130)
	at
org.apache.cactus.server.AbstractWebTestController.handleRequest_aroundBody1
$advice(AbstractWebTestController.java:158)
	at
org.apache.cactus.server.AbstractWebTestController.handleRequest(AbstractWeb
TestController.java)
	at
org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody2(ServletTes
tRedirector.java:138)
	at
org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody3$advice(Ser
vletTestRedirector.java:158)
	at
org.apache.cactus.server.ServletTestRedirector.doPost(ServletTestRedirector.
java)
	at
org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody0(ServletTest
Redirector.java:109)
	at
org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody1$advice(Serv
letTestRedirector.java:158)
	at
org.apache.cactus.server.ServletTestRedirector.doGet(ServletTestRedirector.j
ava)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
tStubImpl.java:971)
	at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:402)
	at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:305)
	at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
ebAppServletContext.java:6354)
	at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubjec
t.java:317)
	at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
	at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:3635)
	at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2585)
	at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
	at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
Caused by: java.lang.NoClassDefFoundError:
org/apache/commons/httpclient/HttpMethod
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:141)
	at
org.apache.cactus.configuration.BaseConfiguration.<clinit>(BaseConfiguration
.java:94)
	at org.apache.cactus.ServletTestCase.init(ServletTestCase.java:188)
	at
org.apache.cactus.ServletTestCase.<init>(ServletTestCase.java:153)
	at org.apache.cactus.sample.unit.TestCookie.<init>(Unknown Source)
	... 27 more
<2004-02-18 16:16:35 CET> <Notice> <WebLogicServer> <BEA-000365> <Server
state changed to SUSPENDING>  

--- cut ---

Mime
View raw message