Tomcat Boot exception (critical: Dispatcher initialization failed unable to load configuration.-[Unknown location])

Source: Internet
Author: User

Critical: Dispatcher initialization failedunable to load configuration.-[Unknown Location]at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration ( Configurationmanager.java: -) at Org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration (Dispatcher.java:429) at Org.apache.struts2.dispatcher.Dispatcher.init (Dispatcher.java:471) at Org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher (Initoperations.java: About) at Org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init ( Strutsprepareandexecutefilter.java:Wuyi) at Org.apache.catalina.core.ApplicationFilterConfig.initFilter (Applicationfilterconfig.java:277) at Org.apache.catalina.core.ApplicationFilterConfig.getFilter (Applicationfilterconfig.java:258) at Org.apache.catalina.core.ApplicationFilterConfig.setFilterDef (Applicationfilterconfig.java:382) at Org.apache.catalina.core.ApplicationFilterConfig.<init> (Applicationfilterconfig.java:103) at Org.apache.catalina.core.StandardContext.filterStart (Standardcontext.java:4638) at Org.apache.catalina.core.StandardContext.startInternal (Standardcontext.java:5294) at Org.apache.catalina.util.LifecycleBase.start (Lifecyclebase.java: Max) at Org.apache.catalina.core.ContainerBase.addChildInternal (Containerbase.java:895) at Org.apache.catalina.core.ContainerBase.addChild (Containerbase.java:871) at Org.apache.catalina.core.StandardHost.addChild (Standardhost.java:615) at Org.apache.catalina.startup.HostConfig.deployDirectory (Hostconfig.java:1099) at Org.apache.catalina.startup.hostconfig$deploydirectory.run (Hostconfig.java:1621) at Java.util.concurrent.executors$runnableadapter.call (Executors.java:441) at Java.util.concurrent.futuretask$sync.innerrun (Futuretask.java:303) at Java.util.concurrent.FutureTask.run (Futuretask.java:138) at Java.util.concurrent.threadpoolexecutor$worker.runtask (Threadpoolexecutor.java:886) at Java.util.concurrent.threadpoolexecutor$worker.run (Threadpoolexecutor.java:908) at Java.lang.Thread.run (Thread.java:619) caused by:parent package isNot Defined:struts-defalut-[Unknown Location]at Com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.buildPackageContext ( Xmlconfigurationprovider.java:660) at Com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage ( Xmlconfigurationprovider.java:508) at Com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages ( Xmlconfigurationprovider.java:290) at Org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages ( Strutsxmlconfigurationprovider.java: the) at Com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer (Defaultconfiguration.java: 239) at Com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration (Configurationmanager.java: the)...  A More --3- A  One: +: -org.apache.catalina.core.StandardContext Filterstart Critical: Exception starting filter strutsunable to load Configuration. -[Unknown Location]at org.apache.struts2.dispatcher.Dispatcher.init (Dispatcher.java:483) at Org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher (Initoperations.java: About) at Org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init ( Strutsprepareandexecutefilter.java:Wuyi) at Org.apache.catalina.core.ApplicationFilterConfig.initFilter (Applicationfilterconfig.java:277) at Org.apache.catalina.core.ApplicationFilterConfig.getFilter (Applicationfilterconfig.java:258) at Org.apache.catalina.core.ApplicationFilterConfig.setFilterDef (Applicationfilterconfig.java:382) at Org.apache.catalina.core.ApplicationFilterConfig.<init> (Applicationfilterconfig.java:103) at Org.apache.catalina.core.StandardContext.filterStart (Standardcontext.java:4638) at Org.apache.catalina.core.StandardContext.startInternal (Standardcontext.java:5294) at Org.apache.catalina.util.LifecycleBase.start (Lifecyclebase.java: Max) at Org.apache.catalina.core.ContainerBase.addChildInternal (Containerbase.java:895) at Org.apache.catalina.core.ContainerBase.addChild (Containerbase.java:871) at Org.apache.catalina.core.StandardHost.addChild (Standardhost.java:615) at Org.apache.catalina.startup.HostConfig.deployDirectory (Hostconfig.java:1099) at Org.apache.catalina.startup.hostconfig$deploydirectory.run (Hostconfig.java:1621) at Java.util.concurrent.executors$runnableadapter.call (Executors.java:441) at Java.util.concurrent.futuretask$sync.innerrun (Futuretask.java:303) at Java.util.concurrent.FutureTask.run (Futuretask.java:138) at Java.util.concurrent.threadpoolexecutor$worker.runtask (Threadpoolexecutor.java:886) at Java.util.concurrent.threadpoolexecutor$worker.run (Threadpoolexecutor.java:908) at Java.lang.Thread.run (Thread.java:619) caused By:unable to load configuration. -[Unknown Location]at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration ( Configurationmanager.java: -) at Org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration (Dispatcher.java:429) at Org.apache.struts2.dispatcher.Dispatcher.init (Dispatcher.java:471)...  -morecaused by:parent Package isNot Defined:struts-defalut-[Unknown Location]at Com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.buildPackageContext ( Xmlconfigurationprovider.java:660) at Com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage ( Xmlconfigurationprovider.java:508) at Com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages ( Xmlconfigurationprovider.java:290) at Org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages ( Strutsxmlconfigurationprovider.java: the) at Com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer (Defaultconfiguration.java: 239) at Com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration (Configurationmanager.java: the)...  A More --3- A  One: +: -org.apache.catalina.core.StandardContext startinternal severity: Error filterstart --3- A  One: +: -org.apache.catalina.core.StandardContext startinternal Serious: Context [/struts2_self] Startup failed due to previous errors

Workaround:

is in the Struts.xml file, the package does not extends= "Struts-default"

Severity: Dispatcher initialization failed
Unable to load configuration. -[Unknown Location]
At Com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration (configurationmanager.java:70)
At Org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration (dispatcher.java:429)
At Org.apache.struts2.dispatcher.Dispatcher.init (dispatcher.java:471)
At Org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher (initoperations.java:74)
At Org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init ( STRUTSPREPAREANDEXECUTEFILTER.JAVA:51)
At Org.apache.catalina.core.ApplicationFilterConfig.initFilter (applicationfilterconfig.java:277)
At Org.apache.catalina.core.ApplicationFilterConfig.getFilter (applicationfilterconfig.java:258)
At Org.apache.catalina.core.ApplicationFilterConfig.setFilterDef (applicationfilterconfig.java:382)
At Org.apache.catalina.core.applicationfilterconfig.<init> (applicationfilterconfig.java:103)
At Org.apache.catalina.core.StandardContext.filterStart (standardcontext.java:4638)
At Org.apache.catalina.core.StandardContext.startInternal (standardcontext.java:5294)
At Org.apache.catalina.util.LifecycleBase.start (lifecyclebase.java:150)
At Org.apache.catalina.core.ContainerBase.addChildInternal (containerbase.java:895)
At Org.apache.catalina.core.ContainerBase.addChild (containerbase.java:871)
At Org.apache.catalina.core.StandardHost.addChild (standardhost.java:615)
At Org.apache.catalina.startup.HostConfig.deployDirectory (hostconfig.java:1099)
At Org.apache.catalina.startup.hostconfig$deploydirectory.run (hostconfig.java:1621)
At Java.util.concurrent.executors$runnableadapter.call (executors.java:441)
At Java.util.concurrent.futuretask$sync.innerrun (futuretask.java:303)
At Java.util.concurrent.FutureTask.run (futuretask.java:138)
At Java.util.concurrent.threadpoolexecutor$worker.runtask (threadpoolexecutor.java:886)
At Java.util.concurrent.threadpoolexecutor$worker.run (threadpoolexecutor.java:908)
At Java.lang.Thread.run (thread.java:619)
caused by:parent package isn't defined:struts-defalut-[unknown location]
At Com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.buildPackageContext ( xmlconfigurationprovider.java:660)
At Com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage (Xmlconfigurationprovider.java : 508)
At Com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages (Xmlconfigurationprovider.java : 290)
At Org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages (Strutsxmlconfigurationprovider.java : 112)
At Com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer (defaultconfiguration.java:239)
At Com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration (configurationmanager.java:67)
... More
2013-3-12 11:43:30 Org.apache.catalina.core.StandardContext Filterstart
Severity: Exception Starting filter Struts
Unable to load configuration. -[Unknown Location]
At Org.apache.struts2.dispatcher.Dispatcher.init (dispatcher.java:483)
At Org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher (initoperations.java:74)
At Org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init ( STRUTSPREPAREANDEXECUTEFILTER.JAVA:51)
At Org.apache.catalina.core.ApplicationFilterConfig.initFilter (applicationfilterconfig.java:277)
At Org.apache.catalina.core.ApplicationFilterConfig.getFilter (applicationfilterconfig.java:258)
At Org.apache.catalina.core.ApplicationFilterConfig.setFilterDef (applicationfilterconfig.java:382)
At Org.apache.catalina.core.applicationfilterconfig.<init> (applicationfilterconfig.java:103)
At Org.apache.catalina.core.StandardContext.filterStart (standardcontext.java:4638)
At Org.apache.catalina.core.StandardContext.startInternal (standardcontext.java:5294)
At Org.apache.catalina.util.LifecycleBase.start (lifecyclebase.java:150)
At Org.apache.catalina.core.ContainerBase.addChildInternal (containerbase.java:895)
At Org.apache.catalina.core.ContainerBase.addChild (containerbase.java:871)
At Org.apache.catalina.core.StandardHost.addChild (standardhost.java:615)
At Org.apache.catalina.startup.HostConfig.deployDirectory (hostconfig.java:1099)
At Org.apache.catalina.startup.hostconfig$deploydirectory.run (hostconfig.java:1621)
At Java.util.concurrent.executors$runnableadapter.call (executors.java:441)
At Java.util.concurrent.futuretask$sync.innerrun (futuretask.java:303)
At Java.util.concurrent.FutureTask.run (futuretask.java:138)
At Java.util.concurrent.threadpoolexecutor$worker.runtask (threadpoolexecutor.java:886)
At Java.util.concurrent.threadpoolexecutor$worker.run (threadpoolexecutor.java:908)
At Java.lang.Thread.run (thread.java:619)
caused By:unable to load configuration. -[Unknown Location]
At Com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration (configurationmanager.java:70)
At Org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration (dispatcher.java:429)
At Org.apache.struts2.dispatcher.Dispatcher.init (dispatcher.java:471)
... More
caused by:parent package isn't defined:struts-defalut-[unknown location]
At Com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.buildPackageContext ( xmlconfigurationprovider.java:660)
At Com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage (Xmlconfigurationprovider.java : 508)
At Com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages (Xmlconfigurationprovider.java : 290)
At Org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages (Strutsxmlconfigurationprovider.java : 112)
At Com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer (defaultconfiguration.java:239)
At Com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration (configurationmanager.java:67)
... More
2013-3-12 11:43:30 Org.apache.catalina.core.StandardContext startinternal
Severity: Error filterstart
2013-3-12 11:43:30 Org.apache.catalina.core.StandardContext startinternal

Severity: Context [/struts2_self] startup failed due to previous errors

Tomcat Boot exception (critical: Dispatcher initialization failed unable to load configuration.-[Unknown location])

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.