问题描述
websphere下报错的详细信息:[09-9-2415:36:30:265CST]00000028SystemOutO[org.apache.struts.action.RequestProcessor]-[ERROR]-15:36:30Noactioninstanceforpath/logincouldbecreatedjava.lang.NullPointerExceptionatorg.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:359)atorg.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:350)atorg.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass(AbstractClassLoader.java:78)atjava.lang.ClassLoader.loadClass(ClassLoader.java:587)atcom.ibm.ws.bootstrap.ExtClassLoader.loadClass(ExtClassLoader.java:87)atjava.lang.ClassLoader.loadClass(ClassLoader.java:561)atcom.ibm.ws.classloader.ProtectionClassLoader.loadClass(ProtectionClassLoader.java:58)atcom.ibm.ws.classloader.ProtectionClassLoader.loadClass(ProtectionClassLoader.java:54)atcom.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:368)atjava.lang.ClassLoader.loadClass(ClassLoader.java:561)atcom.ibm.ws.classloader.ReloadableClassLoader.loadClass(ReloadableClassLoader.java:124)atcom.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:368)atjava.lang.ClassLoader.loadClass(ClassLoader.java:561)atorg.apache.struts.util.RequestUtils.applicationClass(RequestUtils.java:117)atorg.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:143)atorg.apache.struts.action.RequestProcessor.processActionCreate(RequestProcessor.java:280)atorg.springframework.web.struts.DelegatingRequestProcessor.processActionCreate(DelegatingRequestProcessor.java:145)atorg.apache.struts.action.RequestProcessor.process(RequestProcessor.java:218)atorg.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)atorg.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)atjavax.servlet.http.HttpServlet.service(HttpServlet.java:763)atjavax.servlet.http.HttpServlet.service(HttpServlet.java:856)atcom.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:966)atcom.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:907)atcom.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)atcom.erayt.treasure.util.EncodeFilter.doFilter(EncodeFilter.java:23)atcom.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)atcom.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)atcom.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)atcom.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:696)atcom.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:641)atcom.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:475)atcom.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:463)atcom.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3107)atcom.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:238)atcom.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:811)atcom.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1425)atcom.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:92)atcom.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)atcom.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:394)atcom.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)atcom.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:152)atcom.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:213)atcom.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFuture.java:195)atcom.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)atcom.ibm.io.async.ResultHandler.complete(ResultHandler.java:193)atcom.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:725)atcom.ibm.io.async.ResultHandler$2.run(ResultHandler.java:847)atcom.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1498)[09-9-2415:36:30:265CST]00000028WebAppE[ServletError]-[action]:com.ibm.ws.webcontainer.webapp.WebAppErrorReport:Noactioninstanceforpath/logincouldbecreatedatcom.ibm.ws.webcontainer.webapp.WebAppDispatcherContext.sendError(WebAppDispatcherContext.java:532)atcom.ibm.ws.webcontainer.srt.SRTServletResponse.sendError(SRTServletResponse.java:909)atorg.apache.struts.action.RequestProcessor.processActionCreate(RequestProcessor.java:288)atorg.springframework.web.struts.DelegatingRequestProcessor.processActionCreate(DelegatingRequestProcessor.java:145)atorg.apache.struts.action.RequestProcessor.process(RequestProcessor.java:218)atorg.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)atorg.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)atjavax.servlet.http.HttpServlet.service(HttpServlet.java:763)atjavax.servlet.http.HttpServlet.service(HttpServlet.java:856)atcom.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:966)atcom.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:907)atcom.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)atcom.erayt.treasure.util.EncodeFilter.doFilter(EncodeFilter.java:23)atcom.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)atcom.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)atcom.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)atcom.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:696)atcom.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:641)atcom.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:475)atcom.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:463)atcom.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3107)atcom.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:238)atcom.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:811)atcom.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1425)atcom.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:92)atcom.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)atcom.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:394)atcom.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)atcom.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:152)atcom.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:213)atcom.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFuture.java:195)atcom.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)atcom.ibm.io.async.ResultHandler.complete(ResultHandler.java:193)atcom.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:725)atcom.ibm.io.async.ResultHandler$2.run(ResultHandler.java:847)atcom.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1498)
解决方案
解决方案二:
相关代码:struts配置:<actioninput="/Login.jsp"name="workerForm"parameter="login"path="/login"scope="request"><forwardname="manager"path="/ManIndex.jsp"/><forwardname="client"path="/CliIndex.jsp"/><forwardname="manager_fund"path="/fund/ManIndex.jsp"/><forwardname="client_fund"path="/fund/CliIndex.jsp"/></action>spring配置:<beanname="/login"class="com.erayt.treasure.action.WorkerAction"autowire="byName"/>java类:publicActionForwardlogin(ActionMappingmapping,ActionFormform,HttpServletRequestrequest,HttpServletResponseresponse){try{....}catch(ApplicationExceptione){}returnmapping.getInputForward();}
解决方案三:
<actioninput="/Login.jsp"name="workerForm"parameter="login"path="/login"scope="request"type="org.springframework.web.struts.DelegatingActionProxy">你试试
解决方案四:
你写的不规范,一个类的类名首字母要大写,还有检查一下配置文件里的文件头<?xmlversion="1.0"encoding="UTF-8"?><!DOCTYPEstruts-configPUBLIC"-//ApacheSoftwareFoundation//DTDStrutsConfiguration1.2//EN""http://struts.apache.org/dtds/struts-config_1_2.dtd">
解决方案五:
<?xmlversion="1.0"encoding="UTF-8"?><!DOCTYPEstruts-configPUBLIC"-//ApacheSoftwareFoundation//DTDStrutsConfiguration1.2//EN""http://struts.apache.org/dtds/struts-config_1_2.dtd">配置文件没有问题,会不会是包的问题我jdbc驱动是ojdbc14.jar大哥谢谢再帮忙看看。。
解决方案六:
我认为和jdbc没啥关系,现在是你无法创建action你去这里看看别人的解决方案:http://ajava.org/exep/myeclipse/14249.html
解决方案七:
大哥,这个我看过了我的项目在tomcat下是正确的不报错啊
解决方案八:
我要结贴。。。来顶哈。。
解决方案九:
该回复于2011-03-10 15:14:49被版主删除
解决方案十:
websphere的JVM用的是IBM的什么版本?可能是版本的问题。我之前用的IBM1.4。需要修改程序里一些配置和代码符合jdk1.4的要求。