Nevermind. I've fixed it! I through Googling turned up a post on a newsgroup that mentioned jboss/tomcat contained a version of commons-httpclient in its /lib folder. This just needed replacing with the one from cactus.
That'll make the installer application easier to write ;o/ Cheers anyway, Adam. -----Original Message----- From: Adam Fowler [mailto:[EMAIL PROTECTED] Sent: 25 March 2004 11:09 To: '[EMAIL PROTECTED]' Subject: VerifyError... Hello, I have checked the archives for this problem but the solution everyone keeps saying ("You have compiled your code against an old cactus!") isn't valid here. I have cactus-13-1.5 installed in my project's build directory. Ant uses the libraries in there in a classpath for javac. Ant (1.6.1) compiles my code fine, I then have cactifywar successfully cactify my...erm...war. This is then built into my application's EAR and deployed to JBoss/Tomcat (3.2.1/4.1.24). I also have a Servlet defined as mentioned in the Tomcat quickstart. (ServletTestRunner -> org.apache.cactus.server.runner.ServletTestRunner) I'm also using the classes mentioned in your Tomcat quickstart guide for the test case. (Am evaluating cactus for our department) I then get a huuuuge exception: 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:130) 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 TestSampleServlet.<init>(TestSampleServlet.java:9) ...etc... 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:130) at org.apache.cactus.configuration.BaseConfiguration.<clinit>(BaseConfiguration .java:94) at TestSampleServlet.<init>(TestSampleServlet.java:9) Now, if it compiles ok why is this happenning? I've done a search on my disk for *cactus*.jar too and only got the one in my build/cactus directory. (Except the one tomcat deploys to jboss/server/default/deploy/work/... obviously) Does anyone have any idea why this is happenning!?! I'm a bit stumped myself! 8o/ Thanks, Adam. _________________________________________________________ This email and any files attached is intended for the addressee only and may contain information that is confidential and/or legally privileged. Unauthorised use is strictly prohibited and may be unlawful. If you are not the addressee, you should not read, copy, disclose or otherwise use this message, including any attachment, except for the purpose of delivery to the addressee. We make every effort to keep our network free from viruses. However, you do need to verify this e-mail and any attachments to it to be virus free as we can take no responsibility for any computer virus which might be transferred by way of this e-mail. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. ________________________________________________________ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _________________________________________________________ This email and any files attached is intended for the addressee only and may contain information that is confidential and/or legally privileged. Unauthorised use is strictly prohibited and may be unlawful. If you are not the addressee, you should not read, copy, disclose or otherwise use this message, including any attachment, except for the purpose of delivery to the addressee. We make every effort to keep our network free from viruses. However, you do need to verify this e-mail and any attachments to it to be virus free as we can take no responsibility for any computer virus which might be transferred by way of this e-mail. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. ________________________________________________________ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
