1 Reply Latest reply on Dec 7, 2015 10:11 PM by Jay SenSharma

    JBoss EAP 5.1.2 + JDK 6 Migration to JBoss EAP 5.2 + JDK 8

    Diogo Capistrano Newbie

      I am migrating my application was running on JBoss 5.1.2 and JDK 6 to JBoss 5.2 and JDK 8. When I deploy this application on the new server I receive this error:

       

      2015-12-07 23:52:13,098 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main)  Error installing to Real: name=vfszip:/C:/DEV/JBoss/test/jboss-eap-5.2/jboss-as/server/context/deploy/app/myApplication-SNAPSHOT.ear/ state=PreReal mode=Manual requiredState=Real

      org.jboss.deployers.spi.DeploymentException: Error during deploy: vfszip:/C:/DEV/JBoss/test/jboss-eap-5.2/jboss-as/server/context/deploy/app/myApplication-SNAPSHOT.ear/myApplication-SNAPSHOT.jar/

        at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)

        at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:185)

        at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1454)

        at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1172)

        at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1225)

        at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1113)

        at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

        at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1652)

        at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:938)

        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:988)

        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:826)

        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:556)

        at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:789)

        at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:699)

        at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)

        at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)

        at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)

        at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:403)

        at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

        at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1652)

        at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:938)

        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:988)

        at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:778)

        at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:543)

        at org.jboss.system.server.profileservice.repository.AbstractProfileService.registerProfile(AbstractProfileService.java:308)

        at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:256)

        at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)

        at org.jboss.Main.boot(Main.java:229)

        at org.jboss.Main$1.call(Main.java:561)

        at org.jboss.Main$1.call(Main.java:557)

        at java.util.concurrent.FutureTask.run(FutureTask.java:266)

        at java.lang.Thread.run(Thread.java:745)

      Caused by: java.lang.IllegalStateException: Cannot build JAXB context

        at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilder.createJAXBContext(JAXWSMetaDataBuilder.java:994)

        at org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder.buildWebServiceMetaData(JAXWSWebServiceMetaDataBuilder.java:160)

        at org.jboss.ws.metadata.builder.jaxws.JAXWSServerMetaDataBuilder.setupProviderOrWebService(JAXWSServerMetaDataBuilder.java:52)

        at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilderEJB3.buildMetaData(JAXWSMetaDataBuilderEJB3.java:76)

        at org.jboss.wsf.stack.jbws.UnifiedMetaDataDeploymentAspect.start(UnifiedMetaDataDeploymentAspect.java:69)

        at org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl.deploy(DeploymentAspectManagerImpl.java:129)

        at org.jboss.wsf.container.jboss50.deployer.ArchiveDeployerHook.deploy(ArchiveDeployerHook.java:76)

        at org.jboss.wsf.container.jboss50.deployer.AbstractWebServiceDeployer.internalDeploy(AbstractWebServiceDeployer.java:60)

        at org.jboss.wsf.container.jboss50.deployer.WebServiceDeployerEJB.internalDeploy(WebServiceDeployerEJB.java:113)

        at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55)

        at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179)

        ... 32 more

      Caused by: org.jboss.ws.WSException: Failed to create JAXBContext

        at org.jboss.ws.core.jaxws.CustomizableJAXBContextFactory.createContext(CustomizableJAXBContextFactory.java:133)

        at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilder.createJAXBContext(JAXWSMetaDataBuilder.java:990)

        ... 42 more

      Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions

      java.lang.StackTraceElement does not have a no-arg default constructor.

        this problem is related to the following location:

        at java.lang.StackTraceElement

        at public java.lang.StackTraceElement[] java.lang.Throwable.getStackTrace()

        at java.lang.Throwable

        at private java.lang.Throwable[] com.mycompany.app.services.jaxws.ExceptionBean.suppressed

        at com.mycompany.app.services.jaxws.ExceptionBean

       

       

        at com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:102)

        at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:472)

        at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:302)

        at com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1136)

        at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:154)

        at com.sun.xml.bind.api.JAXBRIContext.newInstance(JAXBRIContext.java:106)

        at org.jboss.ws.core.jaxws.CustomizableJAXBContextFactory.createContext(CustomizableJAXBContextFactory.java:127)

        ... 43 more