Hey all,
  I have configured cactus with
 Jboss version 3.2.1 (jetty as the web-container)
 My application is deployed as an exploded ear folder
containing a war archive too. The web.xml for the
webapplication have the necessary servlet entries and
the JBOSS_HOME\server\default\lib contains the
necessary cactus-libraries. 

I have modified a sample servlet from cactus example
to write my testcase. Upon invoking the same from the
browser, I get the following failure which I have not
been able to resolve:
       
  <?xml version="1.0" encoding="UTF-8" ?> 
- <testsuites>
- <testsuite
name="CRM.UserInterface.unittest.CustomerListWebServiceTest"
tests="1" failures="1" errors="0" time="0.313">
- <testcase name="warning" time="0.016">
  <failure message="Exception in constructor:
testSaveToSessionOK (java.lang.VerifyError: (class:
org/apache/cactus/client/connector/http/HttpClientConnectionHelper,
method: addUserData signature:
(Lorg/apache/cactus/WebRequest;)V) Incompatible object
argument for function call 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:164)
at
CRM.UserInterface.unittest.CustomerListWebServiceTest.<init>(CustomerListWebServiceTest.java:25)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method) at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at
java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at
junit.framework.TestSuite.createTest(TestSuite.java:135)
at
junit.framework.TestSuite.addTestMethod(TestSuite.java:114)
at junit.framework.TestSuite.<init>(TestSuite.java:75)
at
CRM.UserInterface.unittest.CustomerListWebServiceTest.suite(CustomerListWebServiceTest.java:30)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324) at
junit.runner.BaseTestRunner.getTest(BaseTestRunner.java:111)
at
org.apache.cactus.server.runner.ServletTestRunner.run(ServletTestRunner.java:302)
at
org.apache.cactus.server.runner.ServletTestRunner.doGet_aroundBody0(ServletTestRunner.java:209)
at
org.apache.cactus.server.runner.ServletTestRunner.doGet_aroundBody1$advice(ServletTestRunner.java:151)
at
org.apache.cactus.server.runner.ServletTestRunner.doGet(ServletTestRunner.java)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360)
at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:558)
at
org.mortbay.http.HttpContext.handle(HttpContext.java:1714)
at
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:507)
at
org.mortbay.http.HttpContext.handle(HttpContext.java:1664)
at
org.mortbay.http.HttpServer.service(HttpServer.java:863)
at org.jboss.jetty.Jetty.service(Jetty.java:460) at
org.mortbay.http.HttpConnection.service(HttpConnection.java:775)
at
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:939)
at
org.mortbay.http.HttpConnection.handle(HttpConnection.java:792)
at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:201)
at
org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
at
org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:455)
)"
type="junit.framework.AssertionFailedError">junit.framework.AssertionFailedError:
Exception in constructor: testSaveToSessionOK
(java.lang.VerifyError: (class:
org/apache/cactus/client/connector/http/HttpClientConnectionHelper,
method: addUserData signature:
(Lorg/apache/cactus/WebRequest;)V) Incompatible object
argument for function call 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
CRM.UserInterface.unittest.CustomerListWebServiceTest.<init>(CustomerListWebServiceTest.java:25)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method) at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at
java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at
CRM.UserInterface.unittest.CustomerListWebServiceTest.suite(CustomerListWebServiceTest.java:30)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at
junit.runner.BaseTestRunner.getTest(BaseTestRunner.java:111)
at
org.apache.cactus.server.runner.ServletTestRunner.run(ServletTestRunner.java:302)
at
org.apache.cactus.server.runner.ServletTestRunner.doGet_aroundBody0(ServletTestRunner.java:209)
at
org.apache.cactus.server.runner.ServletTestRunner.doGet_aroundBody1$advice(ServletTestRunner.java:151)
at
org.apache.cactus.server.runner.ServletTestRunner.doGet(ServletTestRunner.java)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360)
at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:558)
at
org.mortbay.http.HttpContext.handle(HttpContext.java:1714)
at
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:507)
at
org.mortbay.http.HttpContext.handle(HttpContext.java:1664)
at
org.mortbay.http.HttpServer.service(HttpServer.java:863)
at org.jboss.jetty.Jetty.service(Jetty.java:460) at
org.mortbay.http.HttpConnection.service(HttpConnection.java:775)
at
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:939)
at
org.mortbay.http.HttpConnection.handle(HttpConnection.java:792)
at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:201)
at
org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
at
org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:455)
) at
org.apache.cactus.server.runner.ServletTestRunner.run(ServletTestRunner.java:313)
at
org.apache.cactus.server.runner.ServletTestRunner.doGet_aroundBody0(ServletTestRunner.java:209)
at
org.apache.cactus.server.runner.ServletTestRunner.doGet_aroundBody1$advice(ServletTestRunner.java:151)
at
org.apache.cactus.server.runner.ServletTestRunner.doGet(ServletTestRunner.java)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360)
at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:558)
at
org.mortbay.http.HttpContext.handle(HttpContext.java:1714)
at
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:507)
at
org.mortbay.http.HttpContext.handle(HttpContext.java:1664)
at
org.mortbay.http.HttpServer.service(HttpServer.java:863)
at org.jboss.jetty.Jetty.service(Jetty.java:460) at
org.mortbay.http.HttpConnection.service(HttpConnection.java:775)
at
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:939)
at
org.mortbay.http.HttpConnection.handle(HttpConnection.java:792)
at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:201)
at
org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
at
org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:455)</failure>

  </testcase>
  </testsuite>
  </testsuites>
Where am I screwing up??

regards,
vivek

__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to