手里有一个SSH的项目马上就要上线了,突然不知怎么滴从服务器上down下来的工程跑起来以后,调用页面报错,还都是清一色的
There is no Action mapped for namespace / and action name login_login. - [unknown location]
com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:186)
org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:41)
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:494)
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:419)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
java.lang.Thread.run(Unknown Source)
这明显是配置文件的问题,可是去配置文件里仔细检查都没有错误,上网去查,果不其然这种问题大家也遇到过,有人说是关键字的拼写,还有的说是配置文件struts.xml的位置,等等。
但与我这里的情况都不符合,查看配置文件的修改记录,原来是在文件里加了关于json的东西
<package name="digitalBillNew" extends="json-default">
.....
另外注意到tomcat在启动时报出一个很不起眼的error
ERROR [com.opensymphony.xwork2.config.providers.XmlConfigurationProvider] - Unable to find parent packages digitalBillNew
ERROR [com.opensymphony.xwork2.config.providers.XmlConfigurationProvider] - Unable to find parent packages json-default
看来问题应该出在json上,但是查了资料配置json的格式没有问题,拼写更没问题,那问题又在哪里呢?
那只有关于json的架包了,因为之前的工程里没有,也没有错误出现。
随后又将lib里关于json的架包换了一遍也没有,看来不是json架包的问题,也许是其他架包对json的影响,当时急忙去同事那边找了他们使用json的环境里,把所有的架包都拷来,换了一遍,果然好了,环境起来了也不报error了,一切都没问题了。
总结:出现问题是不能盲目的查找原因,尤其是大家普遍出现的错误,正因为这样你也会像其他人一样去盲目的找原因,最好是把后台日志好好看看,也许能发现那些潜在的但不致命的类似error这样的问题,但它却是一个突破口。
分享到:
相关推荐
前几天在网上下载一个struts2的helloword的例子,那个作者也真够缺德的,搞个错误的程序,害得我查了一天的程序错误。 最后发现竟然是struts.xml被写成啦sturts.xml。 碰见这样的问题先鄙视下提供例子的作者, 再...
HTTP Status 404 - There is no Action mapped for namespace and action name BackMemberGroupAudit..doc
http://localhost:8080/ struts2会拦截,出现异常信息 There is no Action mapped for namespace / and action name.默认配置的welcomefile没有起作用。 按附件配置即可解决此问题
在网上找了好个struts2的例子结果都不好使报There is no Action mapped for namespace / and action name这个错,没办法自己搞了个好用的,myeclipse 6.0 +tomcat5.5 + jdk 1.5 引入项目后直接发布就可以了!
该文档对weblogic使用过程中,包括下载,安装,部署...6. weblogic部署war包action不能访问问题解决方法 [There is no Action mapped for namespace / and action name]. 5 7. java.lang.StackOverflowError. 5 等等
黑金zynq入门教程,ALINX黑金Zynq7000开収平台 配套教程第二部
Stops the action invocation immediately (by throwing a PauseException) and causes the action invocation to return the specified result, such as Action.SUCCESS, Action.INPUT, etc. void ...
Indian Subcontinent, India, and there is a strong promotion by the Asian-Pacific Development Information Programme (APDIP) for the use of FOSS in the countries in South East Asia. On the contrary, ...
There is no flow logic, no business logic, and no model information -- just tags. Tags are one of the things that make Struts unique compared to other frameworks like Velocity. Note: "Think thin" ...
MDB: A Memory-Mapped Database and Backend for OpenLDAP
To reserve or commit memory and unintentionally not release it when it is no longer being used. A process can leak resources such as process memory, pool memory, user and GDI objects, handles, threads...
View Assessment Result: Multiple-Choice Quiz 2 Your performance was as follows: 1. The degree of a table is the number of _____ in the table. (a) keys (b) columns (c) rows (d) ...
is larger than the largest known FADT version, and 2) if there is a mismatch between a 32-bit block address and the 64-bit X counterpart (when both are non-zero.) Example Code and Data Size: These ...
资源来自pypi官网。 资源全名:mapped_config-2.34-py2-none-any.whl
原创GSM基带信号的中频调制-qam_symbol_mapped.m 这是GSM基带信号的处理程序,包括符号映射、插值、调制等过程
SimIt-ARM 3.0 is an instruction-set simulator that runs both system-level and user-level ARM programs, for more about it please read user's guide file. 1.how to build tar jxvf SimIt-ARM-3.0-gk-...
string1 sets the window title and string2 the process name (on Linux) -uuid x-x-x-x-2x specify machine UUID Display options: -display sdl[,frame=on|off][,alt_grab=on|off][,ctrl_grab=on|off] [,...
/* It is no longer available */ current_location_mcb->is_available = 0; /* We own it */ memory_location = current_location; /* Leave the loop */ break; } } /* If we made...
Memory-Mapped Files for Qualcomm Brew By Ray Rischpater