Andrea, I do see this error if I switch back and forth between JDK 1.5 and 1.6. One of the tests seems to be calling javac to compile something, but then not cleaning up properly which is causing an issue.
That said, if you are just using 1.5, a "mvn clean" then a fresh build should clean it all out. Dan On Thursday 25 January 2007 09:04, Andrea Smyth wrote: > After cleaning at the top level and wiping out my local repository I see > several of the tools/validator tests failing with a ClassFormatError > (example stacktrace below). > I tried reverting the change to the WSDL11Validator applied to fix a > problem with the ibm jdk, but that made no difference. > Has anyone seen these errors before or have an idea what other change > could have introduced them? > > Thanks, > Andrea. > > > [surefire] Running org.apache.cxf.tools.validator.WSDLValidationTest > [surefire] Tests run: 8, Failures: 0, Errors: 6, Time elapsed: 2.443 sec > [surefire] > [surefire] > testValidateUniqueBody(org.apache.cxf.tools.validator.WSDLValidationTest) > Time elapsed: 0.931 sec <<< ERROR! > java.lang.ClassFormatError: Truncated class file > at java.lang.ClassLoader.defineClass1(Native Method) > at java.lang.ClassLoader.defineClass(ClassLoader.java:620) > at > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) > at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) > at java.net.URLClassLoader.access$100(URLClassLoader.java:56) > at java.net.URLClassLoader$1.run(URLClassLoader.java:195) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:188) > at java.lang.ClassLoader.loadClass(ClassLoader.java:306) > at java.lang.ClassLoader.loadClass(ClassLoader.java:251) > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) > at > org.apache.cxf.tools.util.WSDLExtensionRegister.registerXMLHttpAddress(WSDL >ExtensionRegister.java:95) at > org.apache.cxf.tools.util.WSDLExtensionRegister.registerExtensions(WSDLExte >nsionRegister.java:74) at > org.apache.cxf.tools.validator.internal.SchemaValidator.validate(SchemaVali >dator.java:229) at > org.apache.cxf.tools.validator.internal.SchemaValidator.validate(SchemaVali >dator.java:131) at > org.apache.cxf.tools.validator.internal.SchemaValidator.isValid(SchemaValid >ator.java:111) at > org.apache.cxf.tools.validator.internal.WSDL11Validator.isValid(WSDL11Valid >ator.java:81) at > org.apache.cxf.tools.validator.WSDLValidator.execute(WSDLValidator.java:66) > at > org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:84) > at > org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:52) > at > org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:39) > at > org.apache.cxf.tools.validator.WSDLValidator.main(WSDLValidator.java:92) > at > org.apache.cxf.tools.validator.WSDLValidationTest.testValidateUniqueBody(WS >DLValidationTest.java:37) at > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3 >9) at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp >l.java:25) at java.lang.reflect.Method.invoke(Method.java:585) > at junit.framework.TestCase.runTest(TestCase.java:154) > at junit.framework.TestCase.runBare(TestCase.java:127) > at junit.framework.TestResult$1.protect(TestResult.java:106) > at junit.framework.TestResult.runProtected(TestResult.java:124) > at junit.framework.TestResult.run(TestResult.java:109) > at junit.framework.TestCase.run(TestCase.java:118) > at junit.framework.TestSuite.runTest(TestSuite.java:208) > at junit.framework.TestSuite.run(TestSuite.java:203) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3 >9) at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp >l.java:25) at java.lang.reflect.Method.invoke(Method.java:585) > at > org.apache.maven.surefire.battery.JUnitBattery.executeJUnit(JUnitBattery.ja >va:242) at > org.apache.maven.surefire.battery.JUnitBattery.execute(JUnitBattery.java:21 >6) at org.apache.maven.surefire.Surefire.executeBattery(Surefire.java:215) > at org.apache.maven.surefire.Surefire.run(Surefire.java:163) > at org.apache.maven.surefire.Surefire.run(Surefire.java:87) > at org.apache.maven.surefire.Surefire.run(Surefire.java:63) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3 >9) at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp >l.java:25) at java.lang.reflect.Method.invoke(Method.java:585) > at > org.apache.maven.surefire.SurefireBooter.main(SurefireBooter.java:785) -- J. Daniel Kulp Principal Engineer IONA P: 781-902-8727 C: 508-380-7194 [EMAIL PROTECTED]
