标题:HTTP Status 404 - Servlet action is not available
取消只看楼主
tianbian210
Rank: 1
等 级:新手上路
帖 子:46
专家分:1
注 册:2008-12-25
结帖率:87.5%
 问题点数:0 回复次数:3 
HTTP Status 404 - Servlet action is not available
项目配置在XP+Tomcat5.5+jdk1.5+Mysql5.0中正常
配置在win7+Tomcat5.5+jdk1.6+Mysql5.0中当转向do请求时就出现HTTP Status 404 - Servlet action is not available
并且在win7中配置tomcat5.5无法打开http://127.0.0.1:8080

请求协助!
搜索更多相关主题的帖子: win7 
2011-04-26 20:54
tianbian210
Rank: 1
等 级:新手上路
帖 子:46
专家分:1
注 册:2008-12-25
得分:0 
tomcat5.5无法打开http://127.0.0.1:8080又可以打开了。好奇怪

这个问题还存在:配置在win7+Tomcat5.5+jdk1.6+Mysql5.0中当转向do请求时就出现HTTP Status 404 - Servlet action is not available
2011-04-26 20:58
tianbian210
Rank: 1
等 级:新手上路
帖 子:46
专家分:1
注 册:2008-12-25
得分:0 
strut-config.xml中的data-sources配置  
<data-sources>
        <data-source type="org. key="dataSources">
              <set-property  property="driverClassName" value="org.gjt.mm.mysql.Driver"   />   
              <set-property  property="url" value="jdbc:mysql://192.168.137.130:3306/db_bbs"    />
              <set-property   value="20" property="maxCount"/>   
              <set-property   value="1" property="minCount"/>     
              <set-property  property="username" value="root"/>   
              <set-property  property="password" value="root"/>   
          </data-source>
  </data-sources>  

tomcat日志:
2011-04-27 00:13:37 StandardContext[/jsp-examples]ContextListener: contextInitialized()
2011-04-27 00:13:37 StandardContext[/jsp-examples]SessionListener: contextInitialized()
2011-04-27 00:13:37 StandardContext[/servlets-examples]ContextListener: contextInitialized()
2011-04-27 00:13:37 StandardContext[/servlets-examples]SessionListener: contextInitialized()
2011-04-27 00:13:46 ApplicationDispatcher[/BBS]: Servlet action is currently unavailable
2011-04-27 00:14:39 ApplicationDispatcher[/BBS]: Servlet action is currently unavailable
2011-04-27 00:14:55 StandardWrapperValve[action]: Servlet action is currently unavailable
2011-04-27 00:19:20 StandardContext[/BBS]Marking servlet action as unavailable
2011-04-27 00:19:20 StandardContext[/BBS]Servlet /BBS threw load() exception
javax.servlet.UnavailableException: Initializing application data source dataSources
    at org.apache.struts.action.ActionServlet.initModuleDataSources(ActionServlet.java:812)
    at org.apache.struts.action.ActionServlet.init(ActionServlet.java:335)
    at javax.servlet.GenericServlet.init(GenericServlet.java:211)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1029)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862)
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4013)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4357)
    at org.apache.catalina.core.StandardContext.reload(StandardContext.java:3043)
    at org.apache.catalina.startup.HostConfig.restartContext(HostConfig.java:873)
    at org.apache.catalina.startup.HostConfig.checkContextLastModified(HostConfig.java:759)
    at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1085)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:327)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
    at org.apache.catalina.core.StandardHost.backgroundProcess(StandardHost.java:800)
    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1619)
    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1628)
    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1608)
    at java.lang.Thread.run(Thread.java:619)

2011-04-27 00:20:55 ApplicationDispatcher[/BBS]: Servlet action is currently unavailable
2011-04-27 00:28
tianbian210
Rank: 1
等 级:新手上路
帖 子:46
专家分:1
注 册:2008-12-25
得分:0 
搞了1天。
开始以为是系统问题,重新装了系统,结果还是没有解决。
转了一个大圈圈终于解决了。是Mysql的root用户只支持本地访问。
我的天啊。
使用update user set host = '%' where user = 'user'; 允许所有主机访问,再重启mysql服务就解决了!!!

2011-04-27 13:46



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-338006-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.378879 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved