0

I am trying to deploy JAX-WS webservice into the Jboss-7-eap
JDK-1.8 but getting below errors. While i am able to deploy other web-service modules of same type.

15:25:46,350 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC000001: Failed to start service jboss.deployment.unit."brazil-standard-webservice.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."brazil-standard-webservice.war".INSTALL: WFLYSRV0153: Failed
to process phase INSTALL of deployment "brazil-standard-webservice.war"
        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:154)
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
Caused by: javax.xml.ws.WebServiceException: java.lang.reflect.UndeclaredThrowableException
        at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:375)
        at org.jboss.wsf.stack.cxf.deployment.EndpointImpl.doPublish(EndpointImpl.java:79)
        at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:255)
        at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:543)
        at org.jboss.wsf.stack.cxf.configuration.BusHolder.configure(BusHolder.java:234)
        at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.startDeploymentBus(BusDeploymentAspect.java:97)
        at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.start(BusDeploymentAspect.java:59)
        at org.jboss.as.webservices.deployers.AspectDeploymentProcessor.deploy(AspectDeploymentProcessor.java:73)
        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:147)
        ... 5 more
Caused by: java.lang.reflect.UndeclaredThrowableException
        at com.sun.proxy.$Proxy29.visitLabel(Unknown Source)
        at org.apache.cxf.jaxws.WrapperClassGenerator.createWrapperClass(WrapperClassGenerator.java:213)
        at org.apache.cxf.jaxws.WrapperClassGenerator.generate(WrapperClassGenerator.java:122)
        at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.generatedWrapperBeanClass(JaxWsServiceFactoryBean.java:675)
        at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.getExtraClass(JaxWsServiceFactoryBean.java:645)
        at org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.buildServiceFromWSDL(ReflectionServiceFactoryBean.java:417)
        at org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:525)
        at org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:261)
        at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:199)
        at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:102)
        at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:168)
        at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:211)
        at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:460)
        at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:338)
        ... 13 more
Caused by: java.lang.NoSuchMethodException: org.objectweb.asm.MethodWriter.visitLabel(org.objectweb.asm.Label)
        at java.lang.Class.getMethod(Class.java:1786)
        at org.apache.cxf.common.util.ReflectionInvokationHandler.invoke(ReflectionInvokationHandler.java:85)
        ... 27 more

As per solution from internet : 1) I removed asm and asm-aatrs jar files by excluding in hibernate-3.2.6.ga jar But got the same issue.

dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate</artifactId>
            <version>3.2.6.ga</version>
            <exclusions>
                <exclusion>
                        <groupId>asm</groupId>
                        <artifactId>asm</artifactId>
                </exclusion>
                <exclusion>
                        <groupId>asm</groupId>
                        <artifactId>asm-attrs</artifactId>
                </exclusion>
        </exclusions>
        </dependency>

2) Later I kept asm and asm-aatr jar files inside lib folder and In jboss-eap-7 (jboss-eap-7.0\modules\system\layers\base\asm\asm\main) I commented the asm-3.3.1.redhat-12.jar path inside module.xml file, still got the same issue.

<module xmlns="urn:jboss:module:1.3" name="asm.asm">
    <properties>
        <property name="jboss.api" value="private"/>
    </properties>

  <!-- <resources>
        <resource-root path="asm-3.3.1.redhat-12.jar"/>
    </resources> -->

    <dependencies>
    </dependencies>
</module>

3)Even I commented below lines in standalone.xm file, because of this unable to deploy other Web service modules also which were able to deploy earlier along with this brazil-standard-webservies

.
.
<extension module="org.jboss.as.webservices"/>
.
.
.
.
<subsystem xmlns="urn:jboss:domain:webservices:2.0">
            <wsdl-host>${jboss.bind.address:127.0.0.1}</wsdl-host>
            <endpoint-config name="Standard-Endpoint-Config"/>
            <endpoint-config name="Recording-Endpoint-Config">
                <pre-handler-chain name="recording-handlers" protocol-bindings="##SOAP11_HTTP ##SOAP11_HTTP_MTOM ##SOAP12_HTTP ##SOAP12_HTTP_MTOM">
                    <handler name="RecordingHandler" class="org.jboss.ws.common.invocation.RecordingServerHandler"/>
                </pre-handler-chain>
            </endpoint-config>
            <client-config name="Standard-Client-Config"/>
        </subsystem>
        <subsystem xmlns="urn:jboss:domain:weld:3.0"/>
S.P. ROOPESH
  • 65
  • 11
  • this? https://stackoverflow.com/questions/28070208/error-when-deploying-java-ws-in-jboss-6-3-0-eap – Eugene Aug 29 '17 at 10:36
  • I kept below line inside jboss-deployment-structure (is it to exclude asm jar files from server?) got these issues: 1)org.springframework.beans.factory.BeanCreationException2)same 3)Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'writeSessionFactory' defined in class path resource [CLAS_SpringConfig.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.(Z)V 4)Caused by: java.lang.NoSuchMethodError:org.objectweb.asm.ClassWriter.(Z)V – S.P. ROOPESH Aug 29 '17 at 11:46
  • @Eugene .. I added in jboss-deployment-structure, Able to deploy now.. Thanks.. facing issues while accessing WSDL – S.P. ROOPESH Aug 30 '17 at 09:05
  • this previous one doesnt worked for me, so I followed these steps: 1) removed or excluded asm jar completelyfrom jars or other modules written in pom.xml file using , i removed hibernate 3.2.6.ga,because asm comes along with this jar finally added spring-orm 4.x jar modified in sppringConfig.xml to hibernate 4, Ex::, finally it is working for me – S.P. ROOPESH Sep 04 '17 at 08:44

0 Answers0