jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From KKo...@gkservices.com
Subject RE: Newbie - IncompatibleClassChangeError
Date Wed, 09 Jun 2004 19:46:27 GMT





Weird.
I created a whole new instance of Tomcat 4.1.24 from Apache, setup my
catalina_home variable, started up tomcat and all is well.
Then, I added junit-3.8.1.jar, cactus-1.6.1.jar, aspectjrt-1.1.1.jar and
commons-httpclient-2.0.jar.
Next, I restarted Tomcat, then tried
http://localhost:8080/test/ServletTestRunner?suite=TestSampleServlet and I
still get the same error.

Also, I just download the .class files for SampleServlet.class and
TestSampleServlet.class from the Apache site and put them in <tomcat
home>\webapps\test\WEB-INF\classes.

There are jar files in <tomcat home>\lib and <tomcat home>\server\lib.



                                                                           
             "Mallinath                                                    
             Suralikal (C)"                                                
             <Mallinath.Surali                                          To 
             kal@neoforma.com>         Cactus Users List                   
                                       <cactus-user@jakarta.apache.org>    
             06/09/2004 12:51                                           cc 
             PM                                                            
                                                                   Subject 
                                       RE: Newbie -                        
             Please respond to         IncompatibleClassChangeError        
               "Cactus Users                                               
                   List"                                                   
             <cactus-user@jaka                                             
              rta.apache.org>                                              
                                                                           
                                                                           




This problem occur when you compiling against one set of jars and
running with a different set of jars, or that you have multiple versions of

some jar being loaded in your application.

Thanks
Malli

-----Original Message-----
From: KKolle@gkservices.com [mailto:KKolle@gkservices.com]
Sent: Wednesday, June 09, 2004 10:36 AM
To: cactus-user@jakarta.apache.org
Subject: Newbie - IncompatibleClassChangeError





Hi,

I'm new to Cactus. Looks like a good product, btw.
I'm using:
Tomcat 4.1
JDK1.4.1
Windows2000

I followed the instructions from
http://jakarta.apache.org/cactus/integration/howto_tomcat.html.
When I invoke
http://localhost:8080/test/ServletTestRunner?suite=TestSampleServlet, I get
the following:
<testsuites>
-<testsuite name="TestSampleServlet" tests="1" failures="0" errors="1"
time="0">
-<testcase name="testSaveToSessionOK" time="0"> -<error message="null"
type="java.lang.IncompatibleClassChangeError">
java.lang.IncompatibleClassChangeError
      at TestSampleServlet.beginSaveToSessionOK(TestSampleServlet.java:22)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39

)
      at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl

.java:25)
      at
org.apache.cactus.internal.client.ClientTestCaseCaller.callGenericBeginMetho

d(ClientTestCaseCaller.java:358)
      at
org.apache.cactus.internal.client.ClientTestCaseCaller.callBeginMethod_aroun

dBody0(ClientTestCaseCaller.java:192)
      at
org.apache.cactus.internal.client.ClientTestCaseCaller.callBeginMethod_aroun

dBody1$advice(ClientTestCaseCaller.java:124)
      at
org.apache.cactus.internal.client.ClientTestCaseCaller.callBeginMethod(Clien

tTestCaseCaller.java)
      at
org.apache.cactus.internal.client.ClientTestCaseCaller.runTest(ClientTestCas

eCaller.java:141)
      at
org.apache.cactus.internal.AbstractCactusTestCase.runBareClient(AbstractCact

usTestCase.java:215)
      at
org.apache.cactus.internal.AbstractCactusTestCase.runBare(AbstractCactusTest

Case.java:133)
      at
org.apache.cactus.server.runner.ServletTestRunner.run(ServletTestRunner.java

:315)
      at
org.apache.cactus.server.runner.ServletTestRunner.doGet_aroundBody0(ServletT

estRunner.java:193)
      at
org.apache.cactus.server.runner.ServletTestRunner.doGet_aroundBody1$advice(S

ervletTestRunner.java:124)
      at
org.apache.cactus.server.runner.ServletTestRunner.doGet(ServletTestRunner.ja

va)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application

FilterChain.java:247)
      at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh

ain.java:193)
      at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja

va:260)
      at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok

eNext(StandardPipeline.java:643)
      at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
      at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
      at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja

va:191)
      at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok

eNext(StandardPipeline.java:643)
      at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
      at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
      at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
      at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180

)
      at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok

eNext(StandardPipeline.java:643)
      at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.

java:170)
      at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok

eNext(StandardPipeline.java:641)
      at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172

)
      at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok

eNext(StandardPipeline.java:641)
      at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
      at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
      at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java

:174)
      at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok

eNext(StandardPipeline.java:643)
      at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
      at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
      at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
      at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
      at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne

ction(Http11Protocol.java:380)
      at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.
run(ThreadPool.java:533)
      at java.lang.Thread.run(Thread.java:536)
</error>
</testcase>
</testsuite>
</testsuites>

The instructions didn't say anything about the web.xml that sits underneath
/webapps/test/WEB-INF. My web.xml has this:
<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">

<web-app>
  <display-name>Welcome to Tomcat</display-name>
  <description>
     Welcome to Tomcat
  </description>
</web-app>

Any ideas of what I may have missed?

Thanks,
Kevin

Mime
  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message