原tomcat下的web应用在发布到websphere后报500错误
在Tomcat下可以正常发布和运行。发布到websphere后,在登录界面点“登陆”,界面上显示如下错误:Error500:UnabletoinstantiateActi...
在Tomcat下可以正常发布和运行。发布到websphere后,在登录界面点“登陆”,界面上显示如下错误:
Error 500: Unable to instantiate Action, loginAction, defined for
'loginAction' in namespace '/jsp'Error creating bean with name
'loginAction': Scope 'session' is not active for the current thread;
consider defining a scoped proxy for this bean if you intend to refer to
it from a singleton; nested exception is
java.lang.IllegalStateException: No thread-bound request found: Are you
referring to request attributes outside of an actual web request, or
processing a request outside of the originally receiving thread? If you
are actually operating within a web request and still receive this
message, your code is probably running outside of
DispatcherServlet/DispatcherPortlet: In this case, use
RequestContextListener or RequestContextFilter to expose the current
request. 展开
Error 500: Unable to instantiate Action, loginAction, defined for
'loginAction' in namespace '/jsp'Error creating bean with name
'loginAction': Scope 'session' is not active for the current thread;
consider defining a scoped proxy for this bean if you intend to refer to
it from a singleton; nested exception is
java.lang.IllegalStateException: No thread-bound request found: Are you
referring to request attributes outside of an actual web request, or
processing a request outside of the originally receiving thread? If you
are actually operating within a web request and still receive this
message, your code is probably running outside of
DispatcherServlet/DispatcherPortlet: In this case, use
RequestContextListener or RequestContextFilter to expose the current
request. 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |