1 Reply Latest reply on Apr 27, 2015 2:09 AM by Philippe Marschall

    JBoss WS throwing exceptions

    Sergiu Pienar Apprentice

      Hi,

       

      I am currently migrating an application from JBoss 7 to WildFly and I'm facing the following exception stack from the WS subsystem:

       

      11:59:13,804 INFO  [org.jboss.ws.cxf.metadata] (MSC service thread 1-11) JBWS024061: Adding service endpoint metadata: id=PlatformConfigBean

      address=http://Se-PC:8888/service/PlatformConfigService

      implementor=com.biz.business.configuration.PlatformConfigBean

      serviceName={http://configuration.business.mybiz.com/}PlatformConfigService

      portName={http://configuration.business.mybiz.com/}PlatformConfigServicePort

      annotationWsdlLocation=null

      wsdlLocationOverride=null

      mtomEnabled=false

      11:59:13,816 INFO  [org.jboss.ws.cxf.metadata] (MSC service thread 1-11) JBWS024061: Adding service endpoint metadata: id=WebServiceQABean

      address=http://Se-PC:8888/service/TestService

      implementor=com.biz.business.webservice.WebServiceQABean

      serviceName={http://webservice.business.mybiz.com/}TestService

      portName={http://webservice.business.mybiz.com/}TestServicePort

      annotationWsdlLocation=null

      wsdlLocationOverride=null

      mtomEnabled=false

      11:59:13,836 INFO  [org.jboss.ws.cxf.metadata] (MSC service thread 1-11) JBWS024061: Adding service endpoint metadata: id=RPCRuleExecutorBean

      address=http://Se-PC:8888/service/RPCRuleExecutorService

      implementor=com.biz.conditionalrule.RPCRuleExecutorBean

      serviceName={http://conditionalrule.mybiz.com/}RPCRuleExecutorService

      portName={http://conditionalrule.mybiz.com/}RPCRuleExecutorServicePort

      annotationWsdlLocation=null

      wsdlLocationOverride=null

      mtomEnabled=false

      11:59:13,864 INFO  [org.jboss.ws.cxf.metadata] (MSC service thread 1-11) JBWS024061: Adding service endpoint metadata: id=AssetBean

      address=http://Se-PC:8888/service/AssetExchangeService

      implementor=com.biz.business.asset.AssetBean

      serviceName={http://asset.business.mybiz.com/}AssetExchangeService

      portName={http://asset.business.mybiz.com/}AssetExchangeServicePort

      annotationWsdlLocation=null

      wsdlLocationOverride=null

      mtomEnabled=false

      11:59:13,883 INFO  [org.jboss.ws.cxf.metadata] (MSC service thread 1-11) JBWS024061: Adding service endpoint metadata: id=ExchangeBean

      address=http://Se-PC:8888/service/DocumentExchangeService

      implementor=com.biz.business.document.ExchangeBean

      serviceName={http://document.business.mybiz.com/}DocumentExchangeService

      portName={http://document.business.mybiz.com/}DocumentExchangeServicePort

      annotationWsdlLocation=null

      wsdlLocationOverride=null

      mtomEnabled=false

      11:59:13,903 INFO  [org.jboss.ws.cxf.metadata] (MSC service thread 1-11) JBWS024061: Adding service endpoint metadata: id=UserBean

      address=http://Se-PC:8888/service/UserService

      implementor=com.biz.business.user.UserBean

      serviceName={http://user.business.mybiz.com/}UserService

      portName={http://user.business.mybiz.com/}UserServicePort

      annotationWsdlLocation=null

      wsdlLocationOverride=null

      mtomEnabled=false

      11:59:14,164 INFO  [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] (MSC service thread 1-11) Creating Service {http://configuration.business.mybiz.com/}PlatformConfigService from class com.biz.business.configuration.PlatformConfigBean

      11:59:14,223 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-11) MSC000001: Failed to start service jboss.deployment.subunit."myApp-5.5.2.0.ear"."myApp-all-ejbs.jar".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit."six

              at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166) [wildfly-server-8.2.0.Final.jar:8.2.0.Final]

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]

              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_79]

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

              at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_79]

      Caused by: java.lang.UnsupportedClassVersionError: com/mybiz/business/configuration/jaxws_asm/package-info : Unsupported major.minor version 0.0

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

              at java.lang.ClassLoader.defineClass(ClassLoader.java:800) [rt.jar:1.7.0_79]

              at java.lang.ClassLoader.defineClass(ClassLoader.java:643) [rt.jar:1.7.0_79]

              at org.apache.cxf.common.util.ASMHelper$TypeHelperClassLoader.defineClass(ASMHelper.java:367)

              at org.apache.cxf.common.util.ASMHelper.loadClass(ASMHelper.java:316)

              at org.apache.cxf.jaxws.WrapperClassGenerator.generatePackageInfo(WrapperClassGenerator.java:267)

              at org.apache.cxf.jaxws.WrapperClassGenerator.createWrapperClass(WrapperClassGenerator.java:169)

              at org.apache.cxf.jaxws.WrapperClassGenerator.generate(WrapperClassGenerator.java:122)

              at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.generatedWrapperBeanClass(JaxWsServiceFactoryBean.java:683)

              at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.getExtraClass(JaxWsServiceFactoryBean.java:653)

              at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:484)

              at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromClass(JaxWsServiceFactoryBean.java:704)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) [wildfly-server-8.2.0.Final.jar:8.2.0.Final]

              ... 5 more

       

      The class annotations look like this:

       

      @Stateless

      @LocalBinding(jndiBinding = "java:global/myApp5.5.2.0/myApp-ejbs/CACPlatformConfigBean!com.myBiz.business.configuration.PlatformConfigLocal")

      @RemoteBinding(jndiBinding = "ejb:myApp5.5.2.0/myApp-ejbs/CACPlatformConfigBean!com.myBiz.business.configuration.PlatformConfigRemote")

      @TransactionAttribute(TransactionAttributeType.REQUIRED)

      @Local({ PlatformConfigLocal.class })

      @Remote({ PlatformConfigRemote.class })

      @WebService(name = "PlatformConfigService", serviceName = "PlatformConfigService")

      @WebContext(contextRoot = "/service", urlPattern = "/PlatformConfigService", secureWSDLAccess = false, authMethod = "BASIC", transportGuarantee = "NONE")

      @SecurityDomain(value = "myRealm")

       

      and I have a single method:

       

        @EjbInterface(type = EjbInterface.Type.BOTH)

        @TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)

        @RolesAllowed({ "LOGON", "INTERNAL_SYSTEM" })

        @WebMethod

        public String getVersion() {

        return PlatformConfig.getInstance().getVersion();

        }

       

      I`m building the project from Eclipse, with Java 1.7.

       

      Any ideas on what am I misconfiguring wrong ?