Webphere启动报java.lang.ClassCastException问题解决

昨天使用websphere部署war包,部署成功了,启动也成功了但是打开页面的时候却报了500错误,后台的报错如下:
[Servlet Error]-[com.ibm.ws.wswebcontainer.extension.DefaultExtensionProcessor incompatible with com.ibm.wsspi.webcontainer.servlet.IServletWrapper]: java.lang.ClassCastException: com.ibm.ws.wswebcontainer.extension.DefaultExtensionProcessor incompatible with com.ibm.wsspi.webcontainer.servlet.IServletWrapper
	at com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.handleRequest(DefaultExtensionProcessor.java:499)
	at com.ibm.ws.wswebcontainer.extension.DefaultExtensionProcessor.handleRequest(DefaultExtensionProcessor.java:111)
	at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3107)
	at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:238)
	at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:811)
	at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1425)
	at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:92)
	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)
	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:394)
	at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
	at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:152)
	at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:213)
	at com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFuture.java:195)
	at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
	at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:193)
	at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:725)
	at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:847)
	at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1498)

没法,马上百度、google,在web.xml里面web-app增加一个id属性作为应用名,在web-inf下面建立一个
ibm-web-ext.xmi然后再里面写入:
<?xml version="1.0" encoding="UTF-8"?>
<webappext:WebAppExtension xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI" xmlns:webappext="webappext.xmi"
xmi:id="WebAppExtension_1129847034938" reloadInterval="3"
reloadingEnabled="true" additionalClassPath=""
fileServingEnabled="true" directoryBrowsingEnabled="true"
serveServletsByClassnameEnabled="true" preCompileJSPs="true">
 <webApp href="WEB-INF/web.xml#应用名"/>
 <jspAttributes xmi:id="JSPAttribute_1204156026126"
name="jdkSourceLevel" value="15"/>
</webappext:WebAppExtension> 

记得把应用名替换为web-app的id属性中的值。
如此重启应用。。打开页面OK。。。。。。。。。

你可能感兴趣的:(java,Web,百度,IBM,ext)