websphere 8.0 にサンプルの RESTful Web サービスの例をデプロイしようとしていますが、次のようになっています。
エラー
[12.02.2013 05:13:07:728 VET] 00000c74 E UOW= source=com.ibm.ws.webcontainer.servlet class=com.ibm.ws.webcontainer.servlet.ServletWrapper method=init org= prod= component= thread=[WebContainer : 370] Uncaught.init.exception.thrown.by.servlet [12.02.2013 05:13:07:728 VET] 00000c74 E UOW= source=com.ibm.ws.webcontainer.webapp class=com. ibm.ws.webcontainer.webapp.WebApp method=logServletError org= prod= component= thread=[WebContainer : 370] SRVE0293E: [サーブレット エラー]-[jersey-serlvet]: java.lang.IncompatibleClassChangeError: org.objectweb.asm. ClassVisitor の java.lang.ClassLoader.defineClassImpl(Native Method) の java.lang.ClassLoader.defineClass(ClassLoader.java:262) の java.security.SecureClassLoader.defineClass(SecureClassLoader.java:69) の com.ibm.ws。 classloader.CompoundClassLoader._defineClass(CompoundClassLoader.java:852) の com.ibm.ws.classloader.CompoundClassLoader.localFindClass(CompoundClassLoader.java:762) の com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:585) の java.lang .ClassLoader.loadClass(ClassLoader.java:627) at java.lang.J9VMInternals.verifyImpl(Native Method) at java.lang.J9VMInternals.verify(J9VMInternals.java:85) at java.lang.J9VMInternals.verify(J9VMInternals.java) :83) java.lang.J9VMInternals.initialize(J9VMInternals.java:162) com.sun.jersey.api.core.ScanningResourceConfig.init(ScanningResourceConfig.java:79) com.sun.jersey.api.core. com.sun.jersey.api.core の PackagesResourceConfig.init(PackagesResourceConfig.java:104)。com.sun.jersey.api.core の PackagesResourceConfig.(PackagesResourceConfig.java:78)。PackagesResourceConfig.(PackagesResourceConfig.java:89) com.sun.jersey.spi.container.servlet.WebComponent.createResourceConfig(WebComponent.java:700) com.sun.jersey.spi.container.servlet.WebComponent.createResourceConfig(WebComponent) .java:678) com.sun.jersey.spi.container.servlet.WebComponent.init(WebComponent.java:203) com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:373) ) com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:556) で、javax.servlet.GenericServlet.init(GenericServlet.java:161) で com.ibm.ws.webcontainer.servlet で。 com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.init(ServletWrapperImpl.java:168) の ServletWrapper.init(ServletWrapper.java:336) com.ibm.ws.webcontainer.servlet.ServletWrapper.com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:456) の handleRequest(ServletWrapper.java:629) com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178) のcom.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1027) com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:87) com.ibm.ws.webcontainer .WebContainer.handleRequest(WebContainer.java:895) at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1662) at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:195) ) com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458) の com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:522) com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:311) com.ibm.ws.http.channel.inbound.impl. HttpInboundLink.ready(HttpInboundLink.java:282) com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214) com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete( NewConnectionInitialReadCallback.java:113) com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165) com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217) com com.ibm.io.async.AsyncFuture の .ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)。完了 (AsyncFuture.java:138) com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204) com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775) com.ibm .io.async.ResultHandler$2.run(ResultHandler.java:905) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1783)
web.xml
<web-app id="WebApp_ID" version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>Restful Web Application</display-name>
<servlet>
<servlet-name>jersey-serlvet</servlet-name>
<servlet-class>
com.sun.jersey.spi.container.servlet.ServletContainer
</servlet-class>
<init-param>
<param-name>com.sun.jersey.config.property.packages</param-name>
<param-value>com.mkyong.rest.JSONService</param-value>
</init-param>
<init-param>
<param-name>com.sun.jersey.api.json.POJOMappingFeature</param-name>
<param-value>true</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>jersey-serlvet</servlet-name>
<url-pattern>/rest/*</url-pattern>
</servlet-mapping>
</web-app>