error when deploying Java WS in Jboss 6.3.0 EAP

╄→гoц情女王★ 提交于 2019-11-30 20:28:55

The problem is bundling asm.jar in your deployment.
Try remove it and add this to your jboss-deployment-structure.xml:

<jboss-deployment-structure>
    <deployment>
       <dependencies>
            ...
            <module name="asm.asm" />
            ...
        </dependencies>
    </deployment>
</jboss-deployment-structure>

See more: https://developer.jboss.org/message/823745

The answer that fixed things for me was:

I had the same problem. Adding jboss-deployment-structure.xml only work for WAR files. If I depolyed the WAR inside an EAR I got the error back. So I added

  <global-modules>
    <module name="asm.asm" slot="main"/>
  </global-modules>

to the current jboss configuration, ie standalone-full.xml The it work fine for me.

So if anyone stumbles upon this question, give it a try.

Rifer this page too. https://access.redhat.com/solutions/690353

The above Error is thrown when for given class particular method not found. Hence user is packaging asm jar in their application and class "org.objectweb.asm.MethodWriter" which contains in a jar does not have method "public void visitLabel(org.objectweb.asm.Label);" hence getting "java.lang.NoSuchMethodException".

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!