• SSH框架整合,启动Tomcat报错:Unable to load configuration


    报错信息:

     1 严重: Dispatcher initialization failed
     2 Unable to load configuration. - bean - file:/E:/MIKEY/mikey/jsp/apache-tomcat-7.0.86/webapps/Struct2_Hello_World/WEB-INF/classes/struts.xml:12:136
     3     at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:69)
     4     at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:390)
     5     at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:436)
     6     at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)
     7     at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)
     8     at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:285)
     9     at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:266)
    10     at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
    11     at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4981)
    12     at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5683)
    13     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
    14     at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:1017)
    15     at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:993)
    16     at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
    17     at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1296)
    18     at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:2038)
    19     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    20     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    21     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    22     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    23     at java.lang.Thread.run(Thread.java:745)
    24 Caused by: Unable to load bean: type:com.opensymphony.xwork2.until.ValueStackFactory class:com.opensymphony.xwork2.ognl.OgnlValueStackFactory - bean - file:/E:/MIKEY/mikey/jsp/apache-tomcat-7.0.86/webapps/Struct2_Hello_World/WEB-INF/classes/struts.xml:12:136
    25     at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:235)
    26     at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:102)
    27     at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:180)
    28     at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)
    29     ... 20 more
    30 Caused by: java.lang.ClassNotFoundException: com.opensymphony.xwork2.until.ValueStackFactory
    31     at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1928)
    32     at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1771)
    33     at com.opensymphony.xwork2.util.ClassLoaderUtil.loadClass(ClassLoaderUtil.java:157)
    34     at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:209)
    35     ... 23 more
    36 
    37 八月 17, 2018 7:54:54 下午 org.apache.catalina.core.StandardContext filterStart
    38 严重: Exception starting filter struts2
    39 Unable to load configuration. - bean - file:/E:/MIKEY/mikey/jsp/apache-tomcat-7.0.86/webapps/Struct2_Hello_World/WEB-INF/classes/struts.xml:12:136
    40     at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:449)
    41     at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)
    42     at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)
    43     at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:285)
    44     at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:266)
    45     at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
    46     at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4981)
    47     at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5683)
    48     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
    49     at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:1017)
    50     at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:993)
    51     at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
    52     at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1296)
    53     at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:2038)
    54     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    55     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    56     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    57     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    58     at java.lang.Thread.run(Thread.java:745)
    59 Caused by: Unable to load configuration. - bean - file:/E:/MIKEY/mikey/jsp/apache-tomcat-7.0.86/webapps/Struct2_Hello_World/WEB-INF/classes/struts.xml:12:136
    60     at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:69)
    61     at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:390)
    62     at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:436)
    63     ... 18 more
    64 Caused by: Unable to load bean: type:com.opensymphony.xwork2.until.ValueStackFactory class:com.opensymphony.xwork2.ognl.OgnlValueStackFactory - bean - file:/E:/MIKEY/mikey/jsp/apache-tomcat-7.0.86/webapps/Struct2_Hello_World/WEB-INF/classes/struts.xml:12:136
    65     at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:235)
    66     at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:102)
    67     at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:180)
    68     at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)
    69     ... 20 more
    70 Caused by: java.lang.ClassNotFoundException: com.opensymphony.xwork2.until.ValueStackFactory
    71     at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1928)
    72     at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1771)
    73     at com.opensymphony.xwork2.util.ClassLoaderUtil.loadClass(ClassLoaderUtil.java:157)
    74     at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:209)
    75     ... 23 more
    message

    报错原因:

     项目lib文件夹中存在相同的jar包存在冲突;

    解决方法:

    将重复架包删除在重新部署项目即可解决

    合群是堕落的开始 优秀的开始是孤行
  • 相关阅读:
    MySql学习2
    Java学习:JDBC
    MySql学习
    Java学习:网络编程
    Java学习:反射
    Java学习:多线程(2)
    Java学习:多线程
    .net后台webclient用post方式发送文件和数据
    实用
    day&day
  • 原文地址:https://www.cnblogs.com/biaogejiushibiao/p/9495065.html
Copyright © 2020-2023  润新知