s2sh 整合包配置问题。。
启动tomcat时出现了错误:
信息如下:
2011-10-22 22:51:16 org.apache.catalina.startup.HostConfig checkResources信息: Reloading context [/ssh_test_010]2011-10-22 22:51:16 org.apache.catalina.core.StandardContext stop信息: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/ssh_test_010] has not been startedSLF4J: Class path contains multiple SLF4J bindings.SLF4J: Found binding in [jar:file:/H:/TomCat/webapps/ssh_test_010/WEB-INF/lib/slf4j-log4j12-1.5.8.jar!/org/slf4j/impl/StaticLoggerBinder.class]SLF4J: Found binding in [jar:file:/H:/TomCat/webapps/ssh_test_010/WEB-INF/lib/slf4j-nop-1.5.8.jar!/org/slf4j/impl/StaticLoggerBinder.class]SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.22:51:23,524 ERROR [ContainerBackgroundProcessor[StandardEngine[Catalina]]] [/ssh_test_010]:3670 - Exception starting filter struts2Unable to load configuration. - bean - jar:file:/H:/TomCat/webapps/ssh_test_010/WEB-INF/lib/struts2-core-2.1.8.1.jar!/struts-default.xml:29:72 at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:58) at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:360) at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:403) at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69) at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:48) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:221) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:302) at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:78) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3666) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4258) at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1170) at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1268) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:301) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120) at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1306) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1570) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1579) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1559) at java.lang.Thread.run(Unknown Source)Caused by: Unable to load bean: type: class:com.opensymphony.xwork2.ObjectFactory - bean - jar:file:/H:/TomCat/webapps/ssh_test_010/WEB-INF/lib/struts2-core-2.1.8.1.jar!/struts-default.xml:29:72 at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:222) at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:101) at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:165) at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55) ... 18 moreCaused by: Bean type class com.opensymphony.xwork2.ObjectFactory with the name xwork has already been loaded by bean - jar:file:/H:/TomCat/webapps/ssh_test_010/WEB-INF/lib/struts2-core-2.1.6.jar!/struts-default.xml:29:72 - bean - jar:file:/H:/TomCat/webapps/ssh_test_010/WEB-INF/lib/struts2-core-2.1.8.1.jar!/struts-default.xml:29:72 at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:206) ... 21 more2011-10-22 22:51:23 org.apache.catalina.core.StandardContext start严重: Error filterStart2011-10-22 22:51:23 org.apache.catalina.core.StandardContext start严重: Context [/ssh_test_010] startup failed due to previous errors