项目在本地运行没错,发布到网上空间,启动tomcat报错!
- Java code
Jun 17, 2010 12:29:28 AM org.apache.catalina.core.ApplicationContext logINFO: SessionListener: contextDestroyed()Jun 17, 2010 12:29:28 AM org.apache.catalina.core.ApplicationContext logINFO: ContextListener: contextDestroyed()Jun 17, 2010 12:29:37 AM org.apache.catalina.core.ApplicationContext logINFO: Initializing Spring root WebApplicationContextJun 17, 2010 12:29:43 AM org.apache.catalina.core.StandardContext filterStartSEVERE: Exception starting filter struts2Unable to load configuration. - Class: java.security.AccessControlContextFile: AccessControlContext.javaMethod: checkPermissionLine: 323 - java/security/AccessControlContext.java:323:-1 at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:431) at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69) at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397) at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108).....
------解决方案--------------------------------------------------------
加入struts2的jar包没
------解决方案--------------------------------------------------------
很大的可能就是网上的环境跟你本地的环境不一样
------解决方案--------------------------------------------------------
jar包应该不是问题,他肯定是一个war包扔上去的!
------解决方案--------------------------------------------------------
你的过滤器报错了