websphere下报错:No action instance for path /login could be created、tomcate一切正常,高手进

问题描述

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的要求。

时间: 2024-10-14 20:22:34

websphere下报错:No action instance for path /login could be created、tomcate一切正常,高手进的相关文章

Tomcat的程序(poi3.7导入excel)到Websphere下报错

问题描述 用poi3.7写了一个导入excel的类,兼容2003和2007,在tomcat下正常运行,到was下报错,而且导入两种版本的excel时,报的错误不同.经过更换jar包导入2007已经不再报错,但是导入2003时依然报错.这个兼容性的问题,不知道能否解决,求指点.tomcat的版本是5.5,jdk的版本是:1.5.was的版本是:6.1.0.0.报错的程序是:使用poi3.7导入excel2003的类报错行的代码是:Sheetsheet=wb.getSheetAt(0);报错的错误是

ios-IOS获取系统相册图片名称在非ARC模式下报错

问题描述 IOS获取系统相册图片名称在非ARC模式下报错 dispatch_async(dispatch_get_main_queue(), ^{ ALAssetsLibraryAssetForURLResultBlock resultblock = ^(ALAsset *myasset){ ALAssetRepresentation *representation = [myasset defaultRepresentation]; NSString *fileName = [represen

web service-axis2处理webServices在was环境下报错,tomcat下正常

问题描述 axis2处理webServices在was环境下报错,tomcat下正常 关键代码如下 /** * 申诉请求 */ public static String appealRequest(String requestXML, ImageFileData[] file) { String result = ""; try { // 使用RPC方式调用WebService RPCServiceClient serviceClient = new RPCServiceClient(

oozie 报错 coord action is null

问题描述 oozie 报错 coord action is null 但是我的job.properties 里已经指定了workflow.xml的位置了

tomcat-Servlet在Tomcat下报错

问题描述 Servlet在Tomcat下报错 配置文件web.xml暂时先配置了一个servlet;(Register.class已生成) 项目文件目录如下 解决方案 Tomcat下的配置是在Tomcat 8.0confCatalinalocalhost下新建了一个Job.xml文件 文件内容为 解决方案二: Tomcat下的配置是在Tomcat 8.0confCatalinalocalhost下新建了一个Job.xml文件 文件内容为 解决方案三: 你的web.xml放置在哪儿了?你看工程de

32位-IOCP在x64环境下报错:内存访问冲突

问题描述 IOCP在x64环境下报错:内存访问冲突 一个IOCP的例子程序,WIN32平台能够正常运行,但是在配置管理器里把平台从WIN32改成x64之后,就会在 WSARecv(PerHandleData->socket, &(PerIoData->databuff), 1, &RecvBytes, &Flags, &(PerIoData->overlapped), NULL); 语句处报错. 但是我同时还要连接mysql数据库,当时安装的是x64的,所

cxf客户端在linux环境下报错

问题描述 cxf客户端在linux环境下报错 linux下使用的JDK 1.6.0版本 javax.xml.ws.soap.SOAPFaultException: 11|Session| at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:156) at $Proxy42.airMultiAvailability(Unknown Source) 解决方案 换个1.7的JDK试一下

无线路由器低电-无线路由器串口下报错,在线求大神解决!!

问题描述 无线路由器串口下报错,在线求大神解决!! 一直报HSIC-USB in low power mode,求怎么退出低电模式,谢谢 解决方案 http://zhidao.baidu.com/link?url=vMCO-E0_utuzonHcMnZ-xoPinvjbujhVRmGBvNbLt8Pw8Jnz4BbOFjSrxv5I4oB-hEAwn3iajiIB6p-p3bUcEIn-Ev8KjeegkR7i85MVB6G

easyui-session丢失的情况下报错TypeError:document.body is null

问题描述 session丢失的情况下报错TypeError:document.body is null web项目开发的时候,session丢失的时候,单击页面跳转时,会报错, 谷歌浏览器没问题 火狐浏览器弹出框TypeError:document.body is null,弹出框一闪而过 IE浏览器报错,弹出框一直存在不消失.点击确定后消失. 后台程序没有报错.初步判定是session丢失的时候出现的错误. 前台用的框架jquery和easyui 问题可以重新.比如启动服务器,登陆后,重启服务