熟悉WebWork+Spring+Hibernate帮一下忙
WebWork Problem Report
WebWork has detected an unhandled exception:
Messages: There is no Action mapped for namespace / and action name register. Check if there is such an action name with such namespace defined in the xwork.xml and also if such an action class exists. Check also the log to see if the action class is successfully loaded.
--------------------------------------------
Stacktraces
There is no Action mapped for namespace / and action name register. Check if there is such an action name with such namespace defined in the xwork.xml and also if such an action class exists. Check also the log to see if the action class is successfully loaded. - [unknown location]
com.opensymphony.xwork.DefaultActionProxy.(DefaultActionProxy.java:75)
com.opensymphony.xwork.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:46)
com.opensymphony.webwork.dispatcher.DispatcherUtils.serviceAction(DispatcherUtils.java:216)
com.opensymphony.webwork.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:202)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
java.lang.Thread.run(Thread.java:619)
//这怎么解决?????
------解决方案--------------------对webwork中action的配置有错误,检查下xwork.xml文件
------解决方案--------------------没找到你的action。路径有问题。
如果你没有配置namespace ,那么就会namespace 默认为 " ",也就是说
假如你的项目的action路径是http:...//proj/user/user.action。
这时你没有配置namespace ,那么webwork会这样处理http:...//proj/user.action。因此就找不到你的action了。