On Wed, 19 Jul 2006, mocchidesu wrote: Hi,
Are you by any chance using JTidy? See http://edocs.bea.com/wljrockit/docs81/dev_faq.html and search for 'ClassFormatError'. If you're not using jtidy or applying any other class enhancing tools (like unit-coverage tools), maybe you can try downloading the source distribution for cactus and building it yourself using the JRockit jvm. It's a workaround, but it might provide useful information. -- Kenney > > Does anybody know how to deal with this problem? > I have spent almost a whole week to squash this, but still am not able to do > it. Please help. > > While Sun JVM works fine, BEA JRockit generates classFormatError and does > not allow Unit test to complete. > > Verified it happens both in Windows(XP Pro) and Linux (Fedora Core Release > 4) > Environment: > > JVM: JRockit R26.4.0 (JDK 1.5.0.06) > Tomcat: 5.5.12 > Cactus: 1.7.12 > System Memory: 1 GB > OS: Windows XP(Pro) / RedHat Linux > > > > Here is the actual error: > > HTTP Status 500 - > > type Exception report > > message > > description The server encountered an internal error () that prevented it > from fulfilling this request. > > exception > > javax.servlet.ServletException: Servlet execution threw an exception > > com.uievolution.cma.filters.RequestPerfLogFilter.doFilter(RequestPerfLogFilter.java:39) > > root cause > > java.lang.ClassFormatError: org.apache.cactus.WebResponse > > java.lang.ClassLoader.defineClass(Ljava.lang.String;[BIILjava.security.ProtectionDomain;)Ljava.lang.Class;(Unknown > Source) > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) > > org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1650) > > org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:856) > > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1305) > > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1187) > > java.lang.ClassLoader.loadClassFromNative(Ljava.lang.String;)Ljava.lang.Class;(Unknown > Source) > > java.lang.Class.forName(Ljava.lang.String;ZLjava.lang.ClassLoader;)Ljava.lang.Class;(Unknown > Source) > > jrockit.reflect.MemberAccess.getClassesFromMethodDesc(Ljava.lang.String;Ljava.lang.ClassLoader;)[Ljava.lang.Class;(Unknown > Source) > java.lang.reflect.Method.getParameterTypes0()[Ljava.lang.Class;(Unknown > Source) > java.lang.reflect.Method.getParameterTypes()[Ljava.lang.Class;(Unknown > Source) > junit.framework.TestSuite.isTestMethod(TestSuite.java:190) > junit.framework.TestSuite.isPublicTestMethod(TestSuite.java:185) > junit.framework.TestSuite.addTestMethod(TestSuite.java:108) > junit.framework.TestSuite.(TestSuite.java:75) > junit.runner.BaseTestRunner.getTest(BaseTestRunner.java:103) > org.junitee.servlet.JUnitEEServlet.filterTests(JUnitEEServlet.java:300) > > org.junitee.servlet.JUnitEEServlet.searchForTests(JUnitEEServlet.java:270) > org.junitee.servlet.JUnitEEServlet.doGet(JUnitEEServlet.java:183) > javax.servlet.http.HttpServlet.service(HttpServlet.java:689) > javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > > com.uievolution.cma.filters.RequestPerfLogFilter.doFilter(RequestPerfLogFilter.java:39) > > note The full stack trace of the root cause is available in the Apache > Tomcat/5.5.12 logs. > -- > View this message in context: > http://www.nabble.com/Cactus-generates-classFormatError-with-JRockit-tf1969455.html#a5406348 > Sent from the Cactus - Dev forum at Nabble.com. > -- Kenney Westerhof http://www.neonics.com GPG public key: http://www.gods.nl/~forge/kenneyw.key --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]