昨天使用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.lang.NullPointerException oracle.jdbc.dbaccess.DBData.clearItem(DBData.java:431) 在websphere通过getClassLoader().getResource("").getPath()取配置文件...
CXF是一个很好用的web service框架,但是部署在WebSphere上容易出现问题,这是收集到的解决这些问题的方法。
NULL 博文链接:https://chenhua-1984.iteye.com/blog/1543415
WebSphere MQ - Messages.pdf
接口调用报错:java.net.SocketException: java.lang.ClassNotFoundException: Cannot find the specified class com.ibm.websphere.ssl.protocol.SSLSocketFactory
\websphere部署EJB3.docx \websphere部署EJB3.docx \websphere部署EJB3.docx 使用的是 office2007
Websphere MQ入门教程.doc Websphere MQ入门教程.doc Websphere MQ入门教程.doc Websphere MQ入门教程.doc
Prentice.Hall.PTR.IBM.WebSphere.Deployment.and.Advanced.Configuration.Aug.2004.eBook-DDU.chm
WebSphere Portal最佳实践.pdf
Websphere MQ using java. Websphere MQ class for java and JMS.
IBM WebSphere MQ 技术白皮书.doc
WebSphere Application Server9.0.0.2 安装包百度云盘资源地址,非商业用途,仅供学习使用。
ihs+websphere多集群配置.docxihs+websphere多集群配置.docx
Websphere-HTTPS配置.doc
破解”WebSphere密码方法集锦.doc
W38S1 Administration of WebSphere Application Server V5.pdf
在Windows和UNIX上配置和优化WebSphereMQ性能解析.pdf在Windows和UNIX上配置和优化WebSphereMQ性能解析.pdf在Windows和UNIX上配置和优化WebSphereMQ性能解析.pdf
WebSphere多实例安装.docx
websphere性能检测论文.doc