1
回答
WebSphere报NullPointer
滴滴云服务器,限时包月0.9元,为开发者而生>>>   

我们基于springside 4.0.1ga做了一个应用,在Tomcat下没有任何问题,在WAS 7.0.0上最初报Provider for javax.xml.parsers.DocumentBuilderFactory cannot be found的错误,后来把war包中的xml-apis-1.0.b2,xml-apis-1.3.04删掉,改成Xerces 2.11的xml-apis.jar和xercesImpl.jar,总算能在WAS中启动起来不报错了。但是首页出来的时候就很奇怪,相关的图片出不来,如果刷新几次,后台就会报空指针错误,前端页面报500错误

500 - 系统发生内部错误.

返回首页


后台的错误代码是这样:

2013-09-08 15:54:30,098 [server.startup : 2] INFO  [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] - Root mapping to handler of type [class org.springframework.web.servlet.mvc.ParameterizableViewController]
2013-09-08 15:54:30,187 [server.startup : 2] INFO  [org.springframework.web.servlet.DispatcherServlet] - FrameworkServlet 'springServlet': initialization completed in 6378 ms
2013-09-08 15:56:24,567 [WebContainer : 0] WARN  [org.hibernate.engine.jdbc.internal.JdbcResourceRegistryImpl] - HHH000387: ResultSet's statement was not registered
2013-09-08 15:56:24,569 [WebContainer : 0] WARN  [org.hibernate.engine.jdbc.internal.JdbcResourceRegistryImpl] - HHH000387: ResultSet's statement was not registered
2013-09-08 15:57:25,186 [WebContainer : 0] INFO  [org.springframework.web.context.support.XmlWebApplicationContext] - Closing WebApplicationContext for namespace 'springServlet-servlet': startup date [Sun Sep 08 15:54:23 CST 2013]; parent: Root WebApplicationContext
2013-09-08 15:57:48,679 [WebContainer : 7] ERROR [500.jsp] -
java.lang.NullPointerException
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:457)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:443)
    at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:175)
    at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3610)
    at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:274)
    at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:926)
    at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1557)
    at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:173)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:455)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:384)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:272)
    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.fireCompletionActions(AsyncChannelFuture.java:161)
    at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
    at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:202)
    at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:766)
    at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:896)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1527)

有谁在WAS上部署springside成功过吗?


举报
kilo8850
发帖于4年前 1回/959阅
顶部