users@jersey.java.net

java.lang.NoSuchMethodError on Websphere

From: Robert Naczinski <robertnac_at_googlemail.com>
Date: Wed, 10 Sep 2008 15:53:32 +0200

Hi,

i'm new in jersey. My HelloWorld application run on Tomcat 5.5 fine.

But I must deploy this application on WebSphere. There I get
java.lang.NoSuchMethodError with StackTrace
[10.09.08 15:45:08:359 CEST] 00000022 ServletWrappe E SRVE0100E:
Nicht erfasste Ausnahme für init() wurde von Servlet {0} ausgelöst:
java.lang.NoSuchMethodError:
org/objectweb/asm/ClassReader.accept(Lorg/objectweb/asm/ClassVisitor;I)V
        at com.sun.jersey.impl.container.config.AnnotatedClassScanner.analyzeClassFile(AnnotatedClassScanner.java:294)
        at com.sun.jersey.impl.container.config.AnnotatedClassScanner.indexJar(AnnotatedClassScanner.java:256)
        at com.sun.jersey.impl.container.config.AnnotatedClassScanner.indexJar(AnnotatedClassScanner.java:245)
        at com.sun.jersey.impl.container.config.AnnotatedClassScanner.indexDir(AnnotatedClassScanner.java:237)
        at com.sun.jersey.impl.container.config.AnnotatedClassScanner.index(AnnotatedClassScanner.java:196)
        at com.sun.jersey.impl.container.config.AnnotatedClassScanner.scan(AnnotatedClassScanner.java:106)
        at com.sun.jersey.api.core.ClasspathResourceConfig.init(ClasspathResourceConfig.java:135)
        at com.sun.jersey.api.core.ClasspathResourceConfig.<init>(ClasspathResourceConfig.java:106)
        at com.sun.jersey.api.core.ClasspathResourceConfig.<init>(ClasspathResourceConfig.java:88)
        at com.sun.jersey.spi.container.servlet.ServletContainer.createResourceConfig(ServletContainer.java:360)
        at com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:162)
        at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:190)
        at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.init(ServletWrapper.java:317)
        at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:346)
        at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:464)
        at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3252)
        at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:264)
        at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:811)
        at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1439)
        at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:112)
        at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:454)
        at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:383)
        at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:263)
        at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
        at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
        at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
        at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
        at com.ibm.io.async.AsyncChannelFuture$1.run(AsyncChannelFuture.java:205)
        at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)

There I must have a EAR applicatio with my Web-Module as module. The
jars are in the Web-Module.

Can enybody help me? That Error is certainly not new.

Regards,

Robert