10 Replies Latest reply: Apr 22, 2013 4:50 PM by Fahad Arshad RSS

ClassFormatError when deploying application

Will Reichert Newbie

I am trying to deploy part of the SpecJEnterprise benchmarking application to a build of the latest as7.1 code and am encountering a ClassFormatError. I recompiled the SpecJEnterprise application (emmulator.ear) with the same JVM that runs the as 7.1 code and am still encountering the same exception. I would appreciate any guidance on how to determine if the class is actually being truncated when building the .class file or if there is something amiss in parsing the class file inside as7.1

 

10:34:45,070 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) Starting deployment of "emulator.ear"

10:34:45,157 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) Starting deployment of "emulator.war"

10:34:45,607 INFO  [org.jboss.wsf.stack.cxf.metadata.MetadataBuilder] (MSC service thread 1-1) Add Service

id=org.spec.jent.supplier.emulator.SupplierService

address=http://localhost:8080/emulator/SupplierService

implementor=org.spec.jent.supplier.emulator.SupplierService

invoker=org.jboss.wsf.stack.cxf.JBossWSInvoker

serviceName={org:spec:jent:ws:supplier}SupplierService

portName={org:spec:jent:ws:supplier}SupplierBinding

wsdlLocation=null

mtomEnabled=false

10:34:45,608 INFO  [org.jboss.ws.common.management.DefaultEndpointRegistry] (MSC service thread 1-1) register: jboss.ws:context=emulator,endpoint=org.spec.jent.supplier.emulator.SupplierService

10:34:45,627 ERROR [stderr] (MSC service thread 1-1) javax.naming.NameNotFoundException: java:comp/env/supplier.deliveryhandler.poolsize

10:34:45,627 ERROR [stderr] (MSC service thread 1-1)           at org.jboss.as.naming.InitialContext.lookup(InitialContext.java:90)

10:34:45,627 ERROR [stderr] (MSC service thread 1-1)           at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:213)

10:34:45,627 ERROR [stderr] (MSC service thread 1-1)           at javax.naming.InitialContext.lookup(InitialContext.java:392)

10:34:45,628 ERROR [stderr] (MSC service thread 1-1)           at org.spec.jent.supplier.emulator.ThreadSchedulerFactory._getInstance(ThreadSchedulerFactory.java:36)

10:34:45,628 ERROR [stderr] (MSC service thread 1-1)           at org.spec.jent.supplier.emulator.ThreadSchedulerFactory.<clinit>(ThreadSchedulerFactory.java:19)

10:34:45,628 ERROR [stderr] (MSC service thread 1-1)           at org.spec.jent.supplier.emulator.SupplierService.<init>(SupplierService.java:42)

10:34:45,628 ERROR [stderr] (MSC service thread 1-1)           at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

10:34:45,628 ERROR [stderr] (MSC service thread 1-1)           at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

10:34:45,629 ERROR [stderr] (MSC service thread 1-1)           at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

10:34:45,629 ERROR [stderr] (MSC service thread 1-1)           at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

10:34:45,629 ERROR [stderr] (MSC service thread 1-1)           at java.lang.Class.newInstance0(Class.java:355)

10:34:45,629 ERROR [stderr] (MSC service thread 1-1)           at java.lang.Class.newInstance(Class.java:308)

10:34:45,629 ERROR [stderr] (MSC service thread 1-1)           at org.jboss.wsf.stack.cxf.configuration.NonSpringBusHolder.newInstance(NonSpringBusHolder.java:170)

10:34:45,629 ERROR [stderr] (MSC service thread 1-1)           at org.jboss.wsf.stack.cxf.configuration.NonSpringBusHolder.configure(NonSpringBusHolder.java:96)

10:34:45,630 ERROR [stderr] (MSC service thread 1-1)           at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.startDeploymentBus(BusDeploymentAspect.java:109)

10:34:45,630 ERROR [stderr] (MSC service thread 1-1)           at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.start(BusDeploymentAspect.java:132)

10:34:45,630 ERROR [stderr] (MSC service thread 1-1)           at org.jboss.as.webservices.deployers.AspectDeploymentProcessor.deploy(AspectDeploymentProcessor.java:74)

10:34:45,630 ERROR [stderr] (MSC service thread 1-1)           at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)

10:34:45,630 ERROR [stderr] (MSC service thread 1-1)           at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824)

10:34:45,631 ERROR [stderr] (MSC service thread 1-1)           at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759)

10:34:45,631 ERROR [stderr] (MSC service thread 1-1)           at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

10:34:45,631 ERROR [stderr] (MSC service thread 1-1)           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

10:34:45,631 ERROR [stderr] (MSC service thread 1-1)           at java.lang.Thread.run(Thread.java:680)

10:34:45,632 INFO  [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] (MSC service thread 1-1) Creating Service {org:spec:jent:ws:supplier}SupplierService from WSDL: WEB-INF/wsdl/SupplierService/PurchaseOrder.wsdl

10:34:46,300 WARN  [org.jboss.modules] (MSC service thread 1-1) Failed to define class oasis.names.specification.ubl.schema.xsd.unspecializeddatatypes_1.MeasureType in Module "deployment.emulator.ear.emulator.war:main" from Service Module Loader: java.lang.ClassFormatError: Truncated class file

          at java.lang.ClassLoader.defineClass1(Native Method) [:1.6.0_29]

          at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) [:1.6.0_29]

          at java.lang.ClassLoader.defineClass(ClassLoader.java:615) [:1.6.0_29]

          at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) [:1.6.0_29]

          at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:330)

          at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:411)

          at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:260)

          at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:73)

          at org.jboss.modules.Module.loadModuleClass(Module.java:506)

          at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:182)

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:485)

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:444)

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:444)

          at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:421)

          at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:143)

          at java.lang.ClassLoader.defineClass1(Native Method) [:1.6.0_29]

          at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) [:1.6.0_29]

          at java.lang.ClassLoader.defineClass(ClassLoader.java:615) [:1.6.0_29]

          at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) [:1.6.0_29]

          at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:330)

          at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:411)

          at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:260)

          at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:73)

          at org.jboss.modules.Module.loadModuleClass(Module.java:506)

          at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:182)

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:485)

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:444)

          at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:421)

          at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:143)

          at java.lang.Class.getDeclaredFields0(Native Method) [:1.6.0_29]

          at java.lang.Class.privateGetDeclaredFields(Class.java:2291) [:1.6.0_29]

          at java.lang.Class.getDeclaredFields(Class.java:1743) [:1.6.0_29]

          at org.apache.cxf.jaxb.JAXBContextInitializer.walkReferences(JAXBContextInitializer.java:337) [cxf-rt-databinding-jaxb-2.4.4.jar:2.4.4]

          at org.apache.cxf.jaxb.JAXBContextInitializer.addClass(JAXBContextInitializer.java:296) [cxf-rt-databinding-jaxb-2.4.4.jar:2.4.4]

          at org.apache.cxf.jaxb.JAXBContextInitializer.addType(JAXBContextInitializer.java:218) [cxf-rt-databinding-jaxb-2.4.4.jar:2.4.4]

          at org.apache.cxf.jaxb.JAXBContextInitializer.addType(JAXBContextInitializer.java:211) [cxf-rt-databinding-jaxb-2.4.4.jar:2.4.4]

          at org.apache.cxf.jaxb.JAXBContextInitializer.walkReferences(JAXBContextInitializer.java:340) [cxf-rt-databinding-jaxb-2.4.4.jar:2.4.4]

          at org.apache.cxf.jaxb.JAXBContextInitializer.addClass(JAXBContextInitializer.java:296) [cxf-rt-databinding-jaxb-2.4.4.jar:2.4.4]

          at org.apache.cxf.jaxb.JAXBContextInitializer.addType(JAXBContextInitializer.java:218) [cxf-rt-databinding-jaxb-2.4.4.jar:2.4.4]

          at org.apache.cxf.jaxb.JAXBContextInitializer.begin(JAXBContextInitializer.java:127) [cxf-rt-databinding-jaxb-2.4.4.jar:2.4.4]

          at org.apache.cxf.service.ServiceModelVisitor.visitOperation(ServiceModelVisitor.java:97) [cxf-rt-core-2.4.4.jar:2.4.4]

          at org.apache.cxf.service.ServiceModelVisitor.walk(ServiceModelVisitor.java:74) [cxf-rt-core-2.4.4.jar:2.4.4]

          at org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:278) [cxf-rt-databinding-jaxb-2.4.4.jar:2.4.4]

          at org.apache.cxf.service.factory.AbstractServiceFactoryBean.initializeDataBindings(AbstractServiceFactoryBean.java:86) [cxf-rt-core-2.4.4.jar:2.4.4]

          at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromWSDL(ReflectionServiceFactoryBean.java:400) [cxf-rt-frontend-simple-2.4.4.jar:2.4.4]

          at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:505) [cxf-rt-frontend-simple-2.4.4.jar:2.4.4]

          at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:241) [cxf-rt-frontend-simple-2.4.4.jar:2.4.4]

          at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:202) [cxf-rt-frontend-jaxws-2.4.4.jar:2.4.4]

          at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:101) [cxf-rt-frontend-simple-2.4.4.jar:2.4.4]

          at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:157) [cxf-rt-frontend-simple-2.4.4.jar:2.4.4]

          at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:202) [cxf-rt-frontend-jaxws-2.4.4.jar:2.4.4]

          at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:433) [cxf-rt-frontend-jaxws-2.4.4.jar:2.4.4]

          at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:322) [cxf-rt-frontend-jaxws-2.4.4.jar:2.4.4]

          at org.jboss.wsf.stack.cxf.deployment.EndpointImpl.doPublish(EndpointImpl.java:88) [jbossws-cxf-server-4.0.0.CR1.jar:4.0.0.CR1]

          at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:239) [cxf-rt-frontend-jaxws-2.4.4.jar:2.4.4]

          at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:509) [cxf-rt-frontend-jaxws-2.4.4.jar:2.4.4]

          at org.jboss.wsf.stack.cxf.configuration.NonSpringBusHolder.configure(NonSpringBusHolder.java:117) [jbossws-cxf-server-4.0.0.CR1.jar:4.0.0.CR1]

          at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.startDeploymentBus(BusDeploymentAspect.java:109) [jbossws-cxf-server-4.0.0.CR1.jar:4.0.0.CR1]

          at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.start(BusDeploymentAspect.java:132) [jbossws-cxf-server-4.0.0.CR1.jar:4.0.0.CR1]

          at org.jboss.as.webservices.deployers.AspectDeploymentProcessor.deploy(AspectDeploymentProcessor.java:74) [jboss-as-webservices-server-integration-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]

          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824)

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759)

          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_29]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_29]

          at java.lang.Thread.run(Thread.java:680) [:1.6.0_29]

 

 

10:34:46,303 WARN  [org.jboss.modules] (MSC service thread 1-1) Failed to define class oasis.names.specification.ubl.schema.xsd.order_1.ValidityDurationMeasureType in Module "deployment.emulator.ear.emulator.war:main" from Service Module Loader: java.lang.ClassFormatError: Truncated class file

          at java.lang.ClassLoader.defineClass1(Native Method) [:1.6.0_29]

          at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) [:1.6.0_29]

          at java.lang.ClassLoader.defineClass(ClassLoader.java:615) [:1.6.0_29]

          at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) [:1.6.0_29]

          at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:330)

          at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:411)

          at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:260)

          at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:73)

          at org.jboss.modules.Module.loadModuleClass(Module.java:506)

          at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:182)

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:485)

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:444)

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:444)

          at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:421)

          at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:143)

          at java.lang.ClassLoader.defineClass1(Native Method) [:1.6.0_29]

          at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) [:1.6.0_29]

          at java.lang.ClassLoader.defineClass(ClassLoader.java:615) [:1.6.0_29]

          at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) [:1.6.0_29]

          at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:330)

          at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:411)

          at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:260)

          at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:73)

          at org.jboss.modules.Module.loadModuleClass(Module.java:506)

          at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:182)

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:485)

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:444)

          at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:421)

          at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:143)

          at java.lang.Class.getDeclaredFields0(Native Method) [:1.6.0_29]

          at java.lang.Class.privateGetDeclaredFields(Class.java:2291) [:1.6.0_29]

          at java.lang.Class.getDeclaredFields(Class.java:1743) [:1.6.0_29]

          at org.apache.cxf.jaxb.JAXBContextInitializer.walkReferences(JAXBContextInitializer.java:337) [cxf-rt-databinding-jaxb-2.4.4.jar:2.4.4]

          at org.apache.cxf.jaxb.JAXBContextInitializer.addClass(JAXBContextInitializer.java:296) [cxf-rt-databinding-jaxb-2.4.4.jar:2.4.4]

          at org.apache.cxf.jaxb.JAXBContextInitializer.addType(JAXBContextInitializer.java:218) [cxf-rt-databinding-jaxb-2.4.4.jar:2.4.4]

          at org.apache.cxf.jaxb.JAXBContextInitializer.addType(JAXBContextInitializer.java:211) [cxf-rt-databinding-jaxb-2.4.4.jar:2.4.4]

          at org.apache.cxf.jaxb.JAXBContextInitializer.walkReferences(JAXBContextInitializer.java:340) [cxf-rt-databinding-jaxb-2.4.4.jar:2.4.4]

          at org.apache.cxf.jaxb.JAXBContextInitializer.addClass(JAXBContextInitializer.java:296) [cxf-rt-databinding-jaxb-2.4.4.jar:2.4.4]

          at org.apache.cxf.jaxb.JAXBContextInitializer.addType(JAXBContextInitializer.java:218) [cxf-rt-databinding-jaxb-2.4.4.jar:2.4.4]

          at org.apache.cxf.jaxb.JAXBContextInitializer.begin(JAXBContextInitializer.java:127) [cxf-rt-databinding-jaxb-2.4.4.jar:2.4.4]

          at org.apache.cxf.service.ServiceModelVisitor.visitOperation(ServiceModelVisitor.java:97) [cxf-rt-core-2.4.4.jar:2.4.4]

          at org.apache.cxf.service.ServiceModelVisitor.walk(ServiceModelVisitor.java:74) [cxf-rt-core-2.4.4.jar:2.4.4]

          at org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:278) [cxf-rt-databinding-jaxb-2.4.4.jar:2.4.4]

          at org.apache.cxf.service.factory.AbstractServiceFactoryBean.initializeDataBindings(AbstractServiceFactoryBean.java:86) [cxf-rt-core-2.4.4.jar:2.4.4]

          at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromWSDL(ReflectionServiceFactoryBean.java:400) [cxf-rt-frontend-simple-2.4.4.jar:2.4.4]

          at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:505) [cxf-rt-frontend-simple-2.4.4.jar:2.4.4]

          at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:241) [cxf-rt-frontend-simple-2.4.4.jar:2.4.4]

          at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:202) [cxf-rt-frontend-jaxws-2.4.4.jar:2.4.4]

          at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:101) [cxf-rt-frontend-simple-2.4.4.jar:2.4.4]

          at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:157) [cxf-rt-frontend-simple-2.4.4.jar:2.4.4]

          at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:202) [cxf-rt-frontend-jaxws-2.4.4.jar:2.4.4]

          at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:433) [cxf-rt-frontend-jaxws-2.4.4.jar:2.4.4]

          at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:322) [cxf-rt-frontend-jaxws-2.4.4.jar:2.4.4]

          at org.jboss.wsf.stack.cxf.deployment.EndpointImpl.doPublish(EndpointImpl.java:88) [jbossws-cxf-server-4.0.0.CR1.jar:4.0.0.CR1]

          at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:239) [cxf-rt-frontend-jaxws-2.4.4.jar:2.4.4]

          at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:509) [cxf-rt-frontend-jaxws-2.4.4.jar:2.4.4]

          at org.jboss.wsf.stack.cxf.configuration.NonSpringBusHolder.configure(NonSpringBusHolder.java:117) [jbossws-cxf-server-4.0.0.CR1.jar:4.0.0.CR1]

          at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.startDeploymentBus(BusDeploymentAspect.java:109) [jbossws-cxf-server-4.0.0.CR1.jar:4.0.0.CR1]

          at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.start(BusDeploymentAspect.java:132) [jbossws-cxf-server-4.0.0.CR1.jar:4.0.0.CR1]

          at org.jboss.as.webservices.deployers.AspectDeploymentProcessor.deploy(AspectDeploymentProcessor.java:74) [jboss-as-webservices-server-integration-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]

          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824)

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759)

          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_29]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_29]

          at java.lang.Thread.run(Thread.java:680) [:1.6.0_29]

 

 

10:34:46,306 INFO  [org.jboss.ws.common.management.DefaultEndpointRegistry] (MSC service thread 1-1) remove: jboss.ws:context=emulator,endpoint=org.spec.jent.supplier.emulator.SupplierService

10:34:46,307 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start service jboss.deployment.subunit."emulator.ear"."emulator.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit."emulator.ear"."emulator.war".INSTALL: Failed to process phase INSTALL of subdeployment "emulator.war" of deployment "emulator.ear"

          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121) [jboss-as-server-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]

          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_29]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_29]

          at java.lang.Thread.run(Thread.java:680) [:1.6.0_29]

Caused by: java.lang.ClassFormatError: Truncated class file

          at java.lang.ClassLoader.defineClass1(Native Method) [:1.6.0_29]

          at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) [:1.6.0_29]

          at java.lang.ClassLoader.defineClass(ClassLoader.java:615) [:1.6.0_29]

          at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) [:1.6.0_29]

          at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:330)

          at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:411)

          at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:260)

          at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:73)

          at org.jboss.modules.Module.loadModuleClass(Module.java:506)

          at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:182)

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:485)

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:444)

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:444)

          at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:421)

          at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:143)

          at java.lang.ClassLoader.defineClass1(Native Method) [:1.6.0_29]

          at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) [:1.6.0_29]

          at java.lang.ClassLoader.defineClass(ClassLoader.java:615) [:1.6.0_29]

          at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) [:1.6.0_29]

          at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:330)

          at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:411)

          at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:260)

          at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:73)

          at org.jboss.modules.Module.loadModuleClass(Module.java:506)

          at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:182)

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:485)

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:444)

          at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:421)

          at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:143)

          at java.lang.Class.getDeclaredFields0(Native Method) [:1.6.0_29]

          at java.lang.Class.privateGetDeclaredFields(Class.java:2291) [:1.6.0_29]

          at java.lang.Class.getDeclaredFields(Class.java:1743) [:1.6.0_29]

          at org.apache.cxf.jaxb.JAXBContextInitializer.walkReferences(JAXBContextInitializer.java:337)

          at org.apache.cxf.jaxb.JAXBContextInitializer.addClass(JAXBContextInitializer.java:296)

          at org.apache.cxf.jaxb.JAXBContextInitializer.addType(JAXBContextInitializer.java:218)

          at org.apache.cxf.jaxb.JAXBContextInitializer.addType(JAXBContextInitializer.java:211)

          at org.apache.cxf.jaxb.JAXBContextInitializer.walkReferences(JAXBContextInitializer.java:340)

          at org.apache.cxf.jaxb.JAXBContextInitializer.addClass(JAXBContextInitializer.java:296)

          at org.apache.cxf.jaxb.JAXBContextInitializer.addType(JAXBContextInitializer.java:218)

          at org.apache.cxf.jaxb.JAXBContextInitializer.begin(JAXBContextInitializer.java:127)

          at org.apache.cxf.service.ServiceModelVisitor.visitOperation(ServiceModelVisitor.java:97)

          at org.apache.cxf.service.ServiceModelVisitor.walk(ServiceModelVisitor.java:74)

          at org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:278)

          at org.apache.cxf.service.factory.AbstractServiceFactoryBean.initializeDataBindings(AbstractServiceFactoryBean.java:86)

          at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromWSDL(ReflectionServiceFactoryBean.java:400)

          at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:505)

          at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:241)

          at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:202)

          at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:101)

          at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:157)

          at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:202)

          at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:433)

          at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:322)

          at org.jboss.wsf.stack.cxf.deployment.EndpointImpl.doPublish(EndpointImpl.java:88)

          at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:239)

          at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:509)

          at org.jboss.wsf.stack.cxf.configuration.NonSpringBusHolder.configure(NonSpringBusHolder.java:117)

          at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.startDeploymentBus(BusDeploymentAspect.java:109)

          at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.start(BusDeploymentAspect.java:132)

          at org.jboss.as.webservices.deployers.AspectDeploymentProcessor.deploy(AspectDeploymentProcessor.java:74)

          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115) [jboss-as-server-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]

          ... 5 more

 

 

10:34:46,526 INFO  [org.jboss.as.server.controller] (HttpManagementService-threads - 3) Deployment of "emulator.ear" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.subunit.\"emulator.ear\".\"emulator.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"emulator.ear\".\"emulator.war\".INSTALL: Failed to process phase INSTALL of subdeployment \"emulator.war\" of deployment \"emulator.ear\""},"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.naming.context.java.module.emulator.emulator.ValidatorFactoryjboss.naming.context.java.module.emulator.emulatorMissing[jboss.naming.context.java.module.emulator.emulator.ValidatorFactoryjboss.naming.context.java.module.emulator.emulator]","jboss.naming.context.java.module.emulator.emulator.Validatorjboss.naming.context.java.module.emulator.emulatorMissing[jboss.naming.context.java.module.emulator.emulator.Validatorjboss.naming.context.java.module.emulator.emulator]","jboss.naming.context.java.module.emulator.emulator.ORBjboss.naming.context.java.module.emulator.emulatorMissing[jboss.naming.context.java.module.emulator.emulator.ORBjboss.naming.context.java.module.emulator.emulator]"]}

10:34:46,567 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) Stopped deployment emulator.war in 39ms

10:34:46,570 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) Stopped deployment emulator.ear in 42ms

  • 1. Re: ClassFormatError when deploying application
    Jeremy Whiting Apprentice

    Hi,

    I have come across this using the same application. This is a strange error being reported because the classfile itself is valid. Also I have tried recompiling the application for target 1.5 and 1.6 bytecode. I am using as7.Beta1 and openjdk 1.6.20

     

    The tool javap decompiles successfully the two classes reported by AS7. They are

     

    oasis.names.specification.ubl.schema.xsd.unspecializeddatatypes_1.MeasureType

    oasis.names.specification.ubl.schema.xsd.order_1.ValidityDurationMeasureType

     

    This is the output I have

     

    $ pwd

    /home/whitingjr/java/spec/jEnterprise/v-1.02-Power/SPECjEnterprise2010_v1.02PowerKit/target/SupplierService/classes/oasis/names/specification/ubl/schema/xsd/unspecializeddatatypes_1

    $ javap MeasureType

    Compiled from "MeasureType.java"

    public class oasis.names.specification.ubl.schema.xsd.unspecializeddatatypes_1.MeasureType extends oasis.names.specification.ubl.schema.xsd.corecomponenttypes_1.MeasureType{

        public oasis.names.specification.ubl.schema.xsd.unspecializeddatatypes_1.MeasureType();

    }

    $ cd ../../xsd/order_1/

    $ javap ValidityDurationMeasureType

    Compiled from "ValidityDurationMeasureType.java"

    public class oasis.names.specification.ubl.schema.xsd.order_1.ValidityDurationMeasureType extends oasis.names.specification.ubl.schema.xsd.unspecializeddatatypes_1.MeasureType{

        public oasis.names.specification.ubl.schema.xsd.order_1.ValidityDurationMeasureType();

    }

     

    These two classes are generated using a web service generation tool. Then packaged up in a WAR archive then inside an EAR.

     

    The truncated class error is unexpected because the javap tool successfully decompiles both classes. Is there something else to check ?

     

    Regards,

    Jeremy

     

    This is the source for MeasureType

     

     

    package oasis.names.specification.ubl.schema.xsd.unspecializeddatatypes_1;

     

    import javax.xml.bind.annotation.XmlAccessType;

    import javax.xml.bind.annotation.XmlAccessorType;

    import javax.xml.bind.annotation.XmlSeeAlso;

    import javax.xml.bind.annotation.XmlType;

    import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_1.DurationMeasureType;

    import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_1.LatitudeDegreesMeasureType;

    import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_1.LatitudeMinutesMeasureType;

    import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_1.LongitudeDegreesMeasureType;

    import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_1.LongitudeMinutesMeasureType;

    import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_1.VolumeMeasureType;

    import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_1.WeightMeasureType;

    import oasis.names.specification.ubl.schema.xsd.order_1.ValidityDurationMeasureType;

     

     

    /**

    *

    * <pre>

    * &lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;ccts:Component xmlns:ccts="urn:oasis:names:specification:ubl:schema:xsd:CoreComponentParameters-1.0" xmlns="urn:oasis:names:specification:ubl:schema:xsd:UnspecializedDatatypes-1.0" xmlns:cct="urn:oasis:names:specification:ubl:schema:xsd:CoreComponentTypes-1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xml="http://www.w3.org/XML/1998/namespace"&gt;&lt;ccts:ComponentType&gt;DT&lt;/ccts:ComponentType&gt;&lt;ccts:DictionaryEntryName&gt;Measure. Type&lt;/ccts:DictionaryEntryName&gt;&lt;ccts:RepresentationTerm&gt;Measure&lt;/ccts:RepresentationTerm&gt;&lt;/ccts:Component&gt;

    * </pre>

    *

    *

    * <p>Java class for MeasureType complex type.

    *

    * <p>The following schema fragment specifies the expected content contained within this class.

    *

    * <pre>

    * &lt;complexType name="MeasureType">

    *   &lt;simpleContent>

    *     &lt;restriction base="&lt;urn:oasis:names:specification:ubl:schema:xsd:CoreComponentTypes-1.0>MeasureType">

    *       &lt;attribute name="measureUnitCode" use="required" type="{http://www.w3.org/2001/XMLSchema}normalizedString" />

    *       &lt;attribute name="measureUnitCodeListVersionID" type="{http://www.w3.org/2001/XMLSchema}normalizedString" />

    *     &lt;/restriction>

    *   &lt;/simpleContent>

    * &lt;/complexType>

    * </pre>

    *

    *

    */

    @XmlAccessorType(XmlAccessType.FIELD)

    @XmlType(name = "MeasureType")

    @XmlSeeAlso({

        ValidityDurationMeasureType.class,

        oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_1.MeasureType.class,

        WeightMeasureType.class,

        LatitudeDegreesMeasureType.class,

        DurationMeasureType.class,

        LongitudeMinutesMeasureType.class,

        LongitudeDegreesMeasureType.class,

        VolumeMeasureType.class,

        LatitudeMinutesMeasureType.class

    })

    public class MeasureType

        extends oasis.names.specification.ubl.schema.xsd.corecomponenttypes_1.MeasureType

    {

     

     

    }

     

     

    source for ValidityDurationMeasureType

     

     

    package oasis.names.specification.ubl.schema.xsd.order_1;

     

    import javax.xml.bind.annotation.XmlAccessType;

    import javax.xml.bind.annotation.XmlAccessorType;

    import javax.xml.bind.annotation.XmlType;

    import oasis.names.specification.ubl.schema.xsd.unspecializeddatatypes_1.MeasureType;

     

     

    /**

    * <p>Java class for ValidityDurationMeasureType complex type.

    *

    * <p>The following schema fragment specifies the expected content contained within this class.

    *

    * <pre>

    * &lt;complexType name="ValidityDurationMeasureType">

    *   &lt;simpleContent>

    *     &lt;extension base="&lt;urn:oasis:names:specification:ubl:schema:xsd:UnspecializedDatatypes-1.0>MeasureType">

    *     &lt;/extension>

    *   &lt;/simpleContent>

    * &lt;/complexType>

    * </pre>

    *

    *

    */

    @XmlAccessorType(XmlAccessType.FIELD)

    @XmlType(name = "ValidityDurationMeasureType")

    public class ValidityDurationMeasureType

        extends MeasureType

    {

     

     

    }

  • 2. Re: ClassFormatError when deploying application
    Jeremy Whiting Apprentice

    This type of problem has been solved already. Take a look at this ejb forum discussion.

     

    http://community.jboss.org/message/97788#97788

     

    Following the recommendation has resolved the issue.

     

    Jeremy

  • 3. Re: ClassFormatError when deploying application
    gatla srinivasareddy Newbie

    Dear Jeremy & Will,

     

    I was having the same problem deplying specj.ear. Following your suggestion I changed the build.xml file and got a new error that you indicate in https://community.jboss.org/thread/176332, but when I solve that one again I go back to the error:

     

    4:06:14,186 INFO  [org.jboss.web] (MSC service thread 1-9) JBAS018210: Registering web context: /specj-specj

    14:06:14,178 WARN  [org.jboss.modules] (MSC service thread 1-13) Failed to define class oasis.names.specification.ubl.schema.xsd.unspecializeddatatypes_1.MeasureType in Module "deployment.specj.ear:main" from Service Module Loader: java.lang.ClassFormatError: Truncated class file

        at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.7.0_03]

        at java.lang.ClassLoader.defineClass(ClassLoader.java:791) [rt.jar:1.7.0_03]

        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) [rt.jar:1.7.0_03]

        at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:327)

        at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:391)

        at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:243)

        at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:73)

        at org.jboss.modules.Module.loadModuleClass(Module.java:517)

        at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:182)

        at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)

        at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)

        at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)

        at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)

        at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.7.0_03]

        at java.lang.ClassLoader.defineClass(ClassLoader.java:791) [rt.jar:1.7.0_03]

        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) [rt.jar:1.7.0_03]

        at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:327)

        at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:391)

        at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:243)

        at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:73)

        at org.jboss.modules.Module.loadModuleClass(Module.java:517)

        at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:182)

        at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)

        at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)

        at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)

        at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)

        at java.lang.Class.getDeclaredFields0(Native Method) [rt.jar:1.7.0_03]

        at java.lang.Class.privateGetDeclaredFields(Class.java:2308) [rt.jar:1.7.0_03]

        at java.lang.Class.getDeclaredFields(Class.java:1760) [rt.jar:1.7.0_03]

        at org.apache.cxf.jaxb.JAXBContextInitializer.walkReferences(JAXBContextInitializer.java:345) [cxf-rt-databinding-jaxb-2.4.6.jar:2.4.6]

        at org.apache.cxf.jaxb.JAXBContextInitializer.addClass(JAXBContextInitializer.java:304) [cxf-rt-databinding-jaxb-2.4.6.jar:2.4.6]

        at org.apache.cxf.jaxb.JAXBContextInitializer.addType(JAXBContextInitializer.java:218) [cxf-rt-databinding-jaxb-2.4.6.jar:2.4.6]

        at org.apache.cxf.jaxb.JAXBContextInitializer.addType(JAXBContextInitializer.java:211) [cxf-rt-databinding-jaxb-2.4.6.jar:2.4.6]

        at org.apache.cxf.jaxb.JAXBContextInitializer.walkReferences(JAXBContextInitializer.java:348) [cxf-rt-databinding-jaxb-2.4.6.jar:2.4.6]

        at org.apache.cxf.jaxb.JAXBContextInitializer.addClass(JAXBContextInitializer.java:304) [cxf-rt-databinding-jaxb-2.4.6.jar:2.4.6]

        at org.apache.cxf.jaxb.JAXBContextInitializer.addType(JAXBContextInitializer.java:218) [cxf-rt-databinding-jaxb-2.4.6.jar:2.4.6]

        at org.apache.cxf.jaxb.JAXBContextInitializer.addType(JAXBContextInitializer.java:211) [cxf-rt-databinding-jaxb-2.4.6.jar:2.4.6]

        at org.apache.cxf.jaxb.JAXBContextInitializer.walkReferences(JAXBContextInitializer.java:348) [cxf-rt-databinding-jaxb-2.4.6.jar:2.4.6]

        at org.apache.cxf.jaxb.JAXBContextInitializer.addClass(JAXBContextInitializer.java:304) [cxf-rt-databinding-jaxb-2.4.6.jar:2.4.6]

        at org.apache.cxf.jaxb.JAXBContextInitializer.addType(JAXBContextInitializer.java:218) [cxf-rt-databinding-jaxb-2.4.6.jar:2.4.6]

        at org.apache.cxf.jaxb.JAXBContextInitializer.addType(JAXBContextInitializer.java:211) [cxf-rt-databinding-jaxb-2.4.6.jar:2.4.6]

        at org.apache.cxf.jaxb.JAXBContextInitializer.walkReferences(JAXBContextInitializer.java:348) [cxf-rt-databinding-jaxb-2.4.6.jar:2.4.6]

        at org.apache.cxf.jaxb.JAXBContextInitializer.addClass(JAXBContextInitializer.java:304) [cxf-rt-databinding-jaxb-2.4.6.jar:2.4.6]

        at org.apache.cxf.jaxb.JAXBContextInitializer.addType(JAXBContextInitializer.java:218) [cxf-rt-databinding-jaxb-2.4.6.jar:2.4.6]

        at org.apache.cxf.jaxb.JAXBContextInitializer.addType(JAXBContextInitializer.java:211) [cxf-rt-databinding-jaxb-2.4.6.jar:2.4.6]

        at org.apache.cxf.jaxb.JAXBContextInitializer.walkReferences(JAXBContextInitializer.java:348) [cxf-rt-databinding-jaxb-2.4.6.jar:2.4.6]

        at org.apache.cxf.jaxb.JAXBContextInitializer.addClass(JAXBContextInitializer.java:304) [cxf-rt-databinding-jaxb-2.4.6.jar:2.4.6]

        at org.apache.cxf.jaxb.JAXBContextInitializer.addType(JAXBContextInitializer.java:218) [cxf-rt-databinding-jaxb-2.4.6.jar:2.4.6]

        at org.apache.cxf.jaxb.JAXBContextInitializer.addType(JAXBContextInitializer.java:211) [cxf-rt-databinding-jaxb-2.4.6.jar:2.4.6]

        at org.apache.cxf.jaxb.JAXBContextInitializer.walkReferences(JAXBContextInitializer.java:348) [cxf-rt-databinding-jaxb-2.4.6.jar:2.4.6]

        at org.apache.cxf.jaxb.JAXBContextInitializer.addClass(JAXBContextInitializer.java:304) [cxf-rt-databinding-jaxb-2.4.6.jar:2.4.6]

        at org.apache.cxf.jaxb.JAXBContextInitializer.addType(JAXBContextInitializer.java:218) [cxf-rt-databinding-jaxb-2.4.6.jar:2.4.6]

        at org.apache.cxf.jaxb.JAXBContextInitializer.begin(JAXBContextInitializer.java:127) [cxf-rt-databinding-jaxb-2.4.6.jar:2.4.6]

        at org.apache.cxf.service.ServiceModelVisitor.visitOperation(ServiceModelVisitor.java:97) [cxf-rt-core-2.4.6.jar:2.4.6]

        at org.apache.cxf.service.ServiceModelVisitor.walk(ServiceModelVisitor.java:74) [cxf-rt-core-2.4.6.jar:2.4.6]

        at org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:279) [cxf-rt-databinding-jaxb-2.4.6.jar:2.4.6]

        at org.apache.cxf.service.factory.AbstractServiceFactoryBean.initializeDataBindings(AbstractServiceFactoryBean.java:86) [cxf-rt-core-2.4.6.jar:2.4.6]

        at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromWSDL(ReflectionServiceFactoryBean.java:400) [cxf-rt-frontend-simple-2.4.6.jar:2.4.6]

        at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:505) [cxf-rt-frontend-simple-2.4.6.jar:2.4.6]

        at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:241) [cxf-rt-frontend-simple-2.4.6.jar:2.4.6]

        at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:205) [cxf-rt-frontend-jaxws-2.4.6.jar:2.4.6]

        at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:101) [cxf-rt-frontend-simple-2.4.6.jar:2.4.6]

        at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:157) [cxf-rt-frontend-simple-2.4.6.jar:2.4.6]

        at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:203) [cxf-rt-frontend-jaxws-2.4.6.jar:2.4.6]

        at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:433) [cxf-rt-frontend-jaxws-2.4.6.jar:2.4.6]

        at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:322) [cxf-rt-frontend-jaxws-2.4.6.jar:2.4.6]

        at org.jboss.wsf.stack.cxf.deployment.EndpointImpl.doPublish(EndpointImpl.java:88) [jbossws-cxf-server-4.0.2.GA.jar:4.0.2.GA]

        at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:239) [cxf-rt-frontend-jaxws-2.4.6.jar:2.4.6]

        at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:509) [cxf-rt-frontend-jaxws-2.4.6.jar:2.4.6]

        at org.jboss.wsf.stack.cxf.configuration.NonSpringBusHolder.configure(NonSpringBusHolder.java:117) [jbossws-cxf-server-4.0.2.GA.jar:4.0.2.GA]

        at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.startDeploymentBus(BusDeploymentAspect.java:113) [jbossws-cxf-server-4.0.2.GA.jar:4.0.2.GA]

        at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.start(BusDeploymentAspect.java:66) [jbossws-cxf-server-4.0.2.GA.jar:4.0.2.GA]

        at org.jboss.as.webservices.deployers.AspectDeploymentProcessor.deploy(AspectDeploymentProcessor.java:74) [jboss-as-webservices-server-integration-7.1.1.Final.jar:7.1.1.Final]

        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113)

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_03]

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_03]

        at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_03]

     

    Am I doing somwthing wrong with the duplicate = "preserve" thing? I tried to put it in every possible combination.. Can you show me your build.xml file?

    Do I need to create the  jboss-deployment-structure.xml file? Did you succesfully deployed SPECjEnterprise2010 on JBossAS7?

    Any help will be appreciated! Thanks

    Gatla

  • 4. Re: ClassFormatError when deploying application
    Jeremy Whiting Apprentice

    Hi Gatla,

      I submitted a patch and it has been included in the latest SPECjEnterprise2010 release. The patch fixes this issue. A free upgrade is now available for SPEC customers to download by contacting the SPEC office.

     

    Please see the SPEC website for details of the v1.03 release.

     

    http://www.spec.org/jEnterprise2010/

     

    Regards,

    Jeremy

  • 5. Re: ClassFormatError when deploying application
    gatla srinivasareddy Newbie

    Dear Jeremy,

     

    I have downloaded v1.03. I'm using JBossAS7.1.1. But I always get the same mistake when I try to deploy specj.ear

    After creating the target with ant specj.ear and ant emulator.ear what do you do?

     

    Do you maybe have a detailed list of the steps you did?

    Thanks,

    Gatla

  • 6. Re: ClassFormatError when deploying application
    Jeremy Whiting Apprentice

    Hi Galta,

    I suggest you try deleting the already existing specj.ear and emulator.ear. Then building the artifacts again and deploying.

     

    $ rm target/jar/specj.ear target/jar/emulator.ear

     

    Can you confirm this solved you deployment problem ?

     

    To get the deployment and benchmark run to complete we in the performance team updated the build.xml for JBoss. This was necessary to package the libraries and properties necessary for remote ejb client calls for as7 compatability. We added an Ant task to bundle the properties file and libraries to create a single library  deployed to the driver. Called "prepare-jboss-lib-jar".

    Can you do me a favour. Please email the "jEnterprise2010support" mailing list at SPEC to request a copy of the build file ? I will respond with a copy of the build file we use.

     

    Once you have the replacement build.xml file the following execution of Ant targets will deploy the driver with everything it requires.

     

    $ prepare-jboss-lib-jar driver.jar deploy-on-harness

     

    Regards,

    Jeremy

  • 7. Re: ClassFormatError when deploying application
    Jeremy Whiting Apprentice

    For the benefit of SPEC customers I have responded to a support request by Gatla. The build.xml file is available and can be found in the mailing list archives for  jEnterprise2010support.

     

    Regards,

    Jeremy

  • 8. Re: ClassFormatError when deploying application
    Praveen Gupta Newbie

    HI Jeremy,

    Could you please provide me the build.xml file for jboss AS 7? I am also facing this issue.

     

    Thanks

    Praveen Gupta

  • 9. Re: ClassFormatError when deploying application
    Fahad Arshad Newbie

    Hi Praveen,

    Were you able to get build.xml for jboss AS 7.1.1? I am trying to compile SPECjEnterprise2010 (v1.00) for JBoss deployment but there does not seem to be any ant targets that builds with AS 7.1.1.

     

    Thanks for your time

    Fahad

  • 10. Re: ClassFormatError when deploying application
    Fahad Arshad Newbie

    Jeremy,

    I think I need this build.xml file for fixing the JBoss AS 7 compatibility problem.

     

    Would it be possible for you to please share it here?

     

    Thanks,

    Fahad