struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kumar Shashwat (JIRA)" <j...@apache.org>
Subject [jira] [Created] (WW-4863) Exception starting filter struts-prepare: Unable to load configuration. - interceptor - vfs
Date Fri, 29 Sep 2017 14:04:00 GMT
Kumar Shashwat created WW-4863:
----------------------------------

             Summary: Exception starting filter struts-prepare: Unable to load configuration.
- interceptor - vfs
                 Key: WW-4863
                 URL: https://issues.apache.org/jira/browse/WW-4863
             Project: Struts 2
          Issue Type: Bug
          Components: Dispatch Filter
    Affects Versions: 2.5.13
            Reporter: Kumar Shashwat


Hi,

I was migrating to struts 2.5.13 version from 2.3.32, but I am getting the following error
when i am deploying the project on jboss server. This issue occurs when it is trying to load
custom interceptor. 
I am using the below jars:-
asm-5.2
asm-commons-5.2
asm-tree-5.2
commons-beanutils-1.9.2
commons-collections-3.2.2
commons-digester-2.1
commons-fileupload-1.3.3
commons-io-2.5
commons-lang-2.4
commons-lang3-3.6
commons-logging-1.1.3
freemarker-2.3.23
javassist-3.20.0-GA
javax.servlet
javax.servlet-api-4.0.0
json-lib-2.3-jdk15
jsp-api-2.2
log4j-api-2.8.2
ognl-3.1.15
sitemesh-2.4.2
spring 4.1.6 complete suite
struts2-convention-plugin-2.5.13
struts2-core-2.5.13
struts2-json-plugin-2.5.13
struts2-sitemesh-plugin-2.5.13
struts2-spring-plugin-2.5.13
xstream-1.4.10

Sep 29, 2017 - 08:55:46.989 [               ] - [                                   ] ERROR
- stderr -  - ERROR Dispatcher Dispatcher initialization failed

Sep 29, 2017 - 08:55:46.989 [               ] - [                                   ] ERROR
- stderr -  -  Unable to load configuration. - interceptor - vfs:/C:/Java/jboss-as-7.1.3.Final/standalone/deployments/ClientDataCollection_T.war/WEB-INF/classes/struts.xml:22:113

Sep 29, 2017 - 08:55:46.989 [               ] - [                                   ] ERROR
- stderr -  - 	at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)

Sep 29, 2017 - 08:55:46.989 [               ] - [                                   ] ERROR
- stderr -  - 	at org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:960)

Sep 29, 2017 - 08:55:46.989 [               ] - [                                   ] ERROR
- stderr -  - 	at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:466)

Sep 29, 2017 - 08:55:46.989 [               ] - [                                   ] ERROR
- stderr -  - 	at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:499)

Sep 29, 2017 - 08:55:46.989 [               ] - [                                   ] ERROR
- stderr -  - 	at org.apache.struts2.dispatcher.InitOperations.initDispatcher(InitOperations.java:75)

Sep 29, 2017 - 08:55:46.989 [               ] - [                                   ] ERROR
- stderr -  - 	at org.apache.struts2.dispatcher.filter.StrutsPrepareFilter.init(StrutsPrepareFilter.java:56)

Sep 29, 2017 - 08:55:46.989 [               ] - [                                   ] ERROR
- stderr -  - 	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:447)

Sep 29, 2017 - 08:55:46.989 [               ] - [                                   ] ERROR
- stderr -  - 	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3269)

Sep 29, 2017 - 08:55:46.989 [               ] - [                                   ] ERROR
- stderr -  - 	at org.apache.catalina.core.StandardContext.start(StandardContext.java:3865)

Sep 29, 2017 - 08:55:46.989 [               ] - [                                   ] ERROR
- stderr -  - 	at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:89)

Sep 29, 2017 - 08:55:46.989 [               ] - [                                   ] ERROR
- stderr -  - 	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

Sep 29, 2017 - 08:55:46.989 [               ] - [                                   ] ERROR
- stderr -  - 	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

Sep 29, 2017 - 08:55:46.989 [               ] - [                                   ] ERROR
- stderr -  - 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

Sep 29, 2017 - 08:55:46.989 [               ] - [                                   ] ERROR
- stderr -  - 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

Sep 29, 2017 - 08:55:46.989 [               ] - [                                   ] ERROR
- stderr -  - 	at java.lang.Thread.run(Thread.java:745)

Sep 29, 2017 - 08:55:46.989 [               ] - [                                   ] ERROR
- stderr -  - Caused by: Caught Exception while registering Interceptor class com.fiserv.common.ui.struts2.interceptors.FiservCommonInterceptor
- interceptor - vfs:/C:/Java/jboss-as-7.1.3.Final/standalone/deployments/ClientDataCollection_T.war/WEB-INF/classes/struts.xml:22:113

Sep 29, 2017 - 08:55:46.989 [               ] - [                                   ] ERROR
- stderr -  - 	at com.opensymphony.xwork2.factory.DefaultInterceptorFactory.buildInterceptor(DefaultInterceptorFactory.java:79)

Sep 29, 2017 - 08:55:46.989 [               ] - [                                   ] ERROR
- stderr -  - 	at com.opensymphony.xwork2.ObjectFactory.buildInterceptor(ObjectFactory.java:207)

Sep 29, 2017 - 08:55:46.989 [               ] - [                                   ] ERROR
- stderr -  - 	at com.opensymphony.xwork2.config.providers.InterceptorBuilder.constructParameterizedInterceptorReferences(InterceptorBuilder.java:179)

Sep 29, 2017 - 08:55:46.989 [               ] - [                                   ] ERROR
- stderr -  - 	at com.opensymphony.xwork2.config.providers.InterceptorBuilder.constructInterceptorReference(InterceptorBuilder.java:81)

Sep 29, 2017 - 08:55:46.989 [               ] - [                                   ] ERROR
- stderr -  - 	at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.lookupInterceptorReference(XmlConfigurationProvider.java:1149)

Sep 29, 2017 - 08:55:46.989 [               ] - [                                   ] ERROR
- stderr -  - 	at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadInterceptorStack(XmlConfigurationProvider.java:981)

Sep 29, 2017 - 08:55:46.989 [               ] - [                                   ] ERROR
- stderr -  - 	at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadInterceptorStacks(XmlConfigurationProvider.java:994)

Sep 29, 2017 - 08:55:46.989 [               ] - [                                   ] ERROR
- stderr -  - 	at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadInterceptors(XmlConfigurationProvider.java:1017)

Sep 29, 2017 - 08:55:46.989 [               ] - [                                   ] ERROR
- stderr -  - 	at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:548)

Sep 29, 2017 - 08:55:46.989 [               ] - [                                   ] ERROR
- stderr -  - 	at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:323)

Sep 29, 2017 - 08:55:46.989 [               ] - [                                   ] ERROR
- stderr -  - 	at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:108)

Sep 29, 2017 - 08:55:46.989 [               ] - [                                   ] ERROR
- stderr -  - 	at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:188)

Sep 29, 2017 - 08:55:46.989 [               ] - [                                   ] ERROR
- stderr -  - 	at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:63)

Sep 29, 2017 - 08:55:46.989 [               ] - [                                   ] ERROR
- stderr -  - 	... 14 more

Sep 29, 2017 - 08:55:46.989 [               ] - [                                   ] ERROR
- stderr -  - Caused by: org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'com.fiserv.common.ui.struts2.interceptors.FiservCommonInterceptor': Bean instantiation
via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException:
Failed to instantiate [com.fiserv.common.ui.struts2.interceptors.FiservCommonInterceptor]:
Constructor threw exception; nested exception is java.lang.InstantiationError: com.opensymphony.xwork2.TextProviderFactory

Sep 29, 2017 - 08:55:46.989 [               ] - [                                   ] ERROR
- stderr -  - 	at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:275)

Sep 29, 2017 - 08:55:46.989 [               ] - [                                   ] ERROR
- stderr -  - 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1139)

Sep 29, 2017 - 08:55:46.989 [               ] - [                                   ] ERROR
- stderr -  - 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowire(AbstractAutowireCapableBeanFactory.java:351)

Sep 29, 2017 - 08:55:46.989 [               ] - [                                   ] ERROR
- stderr -  - 	at com.opensymphony.xwork2.spring.SpringObjectFactory.buildBean(SpringObjectFactory.java:199)

Sep 29, 2017 - 08:55:46.989 [               ] - [                                   ] ERROR
- stderr -  - 	at com.opensymphony.xwork2.spring.SpringObjectFactory.buildBean(SpringObjectFactory.java:168)

Sep 29, 2017 - 08:55:46.989 [               ] - [                                   ] ERROR
- stderr -  - 	at com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:172)

Sep 29, 2017 - 08:55:46.989 [               ] - [                                   ] ERROR
- stderr -  - 	at com.opensymphony.xwork2.factory.DefaultInterceptorFactory.buildInterceptor(DefaultInterceptorFactory.java:47)

Sep 29, 2017 - 08:55:46.989 [               ] - [                                   ] ERROR
- stderr -  - 	... 26 more

Sep 29, 2017 - 08:55:46.989 [               ] - [                                   ] ERROR
- stderr -  - Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate
[com.fiserv.common.ui.struts2.interceptors.FiservCommonInterceptor]: Constructor threw exception;
nested exception is java.lang.InstantiationError: com.opensymphony.xwork2.TextProviderFactory

Sep 29, 2017 - 08:55:46.989 [               ] - [                                   ] ERROR
- stderr -  - 	at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:163)

Sep 29, 2017 - 08:55:46.989 [               ] - [                                   ] ERROR
- stderr -  - 	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:122)

Sep 29, 2017 - 08:55:46.989 [               ] - [                                   ] ERROR
- stderr -  - 	at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:267)

Sep 29, 2017 - 08:55:46.989 [               ] - [                                   ] ERROR
- stderr -  - 	... 32 more

Sep 29, 2017 - 08:55:46.989 [               ] - [                                   ] ERROR
- stderr -  - Caused by: java.lang.InstantiationError: com.opensymphony.xwork2.TextProviderFactory

Sep 29, 2017 - 08:55:46.989 [               ] - [                                   ] ERROR
- stderr -  - 	at com.fiserv.common.ui.struts2.interceptors.FiservCommonInterceptor.<init>(FiservCommonInterceptor.java:37)

Sep 29, 2017 - 08:55:46.989 [               ] - [                                   ] ERROR
- stderr -  - 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

Sep 29, 2017 - 08:55:46.989 [               ] - [                                   ] ERROR
- stderr -  - 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)

Sep 29, 2017 - 08:55:46.989 [               ] - [                                   ] ERROR
- stderr -  - 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

Sep 29, 2017 - 08:55:46.989 [               ] - [                                   ] ERROR
- stderr -  - 	at java.lang.reflect.Constructor.newInstance(Constructor.java:526)

Sep 29, 2017 - 08:55:46.989 [               ] - [                                   ] ERROR
- stderr -  - 	at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147)

Sep 29, 2017 - 08:55:46.989 [               ] - [                                   ] ERROR
- stderr -  - 	... 34 more

Sep 29, 2017 - 08:55:46.989 [               ] - [                                   ] ERROR
- [default-host].[/apps/ClientDataCollection] -  - Exception starting filter struts-prepare:
Unable to load configuration. - interceptor - vfs:/C:/Java/jboss-as-7.1.3.Final/standalone/deployments/ClientDataCollection_T.war/WEB-INF/classes/struts.xml:22:113
	at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:512)
	at org.apache.struts2.dispatcher.InitOperations.initDispatcher(InitOperations.java:75)
	at org.apache.struts2.dispatcher.filter.StrutsPrepareFilter.init(StrutsPrepareFilter.java:56)
	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:447)
	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3269)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:3865)
	at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:89)
	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)
Caused by: Unable to load configuration. - interceptor - vfs:/C:/Java/jboss-as-7.1.3.Final/standalone/deployments/ClientDataCollection_T.war/WEB-INF/classes/struts.xml:22:113
	at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)
	at org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:960)
	at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:466)
	at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:499)
	... 11 more
Caused by: Caught Exception while registering Interceptor class com.fiserv.common.ui.struts2.interceptors.FiservCommonInterceptor
- interceptor - vfs:/C:/Java/jboss-as-7.1.3.Final/standalone/deployments/ClientDataCollection_T.war/WEB-INF/classes/struts.xml:22:113
	at com.opensymphony.xwork2.factory.DefaultInterceptorFactory.buildInterceptor(DefaultInterceptorFactory.java:79)
	at com.opensymphony.xwork2.ObjectFactory.buildInterceptor(ObjectFactory.java:207)
	at com.opensymphony.xwork2.config.providers.InterceptorBuilder.constructParameterizedInterceptorReferences(InterceptorBuilder.java:179)
	at com.opensymphony.xwork2.config.providers.InterceptorBuilder.constructInterceptorReference(InterceptorBuilder.java:81)
	at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.lookupInterceptorReference(XmlConfigurationProvider.java:1149)
	at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadInterceptorStack(XmlConfigurationProvider.java:981)
	at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadInterceptorStacks(XmlConfigurationProvider.java:994)
	at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadInterceptors(XmlConfigurationProvider.java:1017)
	at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:548)
	at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:323)
	at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:108)
	at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:188)
	at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:63)
	... 14 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with
name 'com.fiserv.common.ui.struts2.interceptors.FiservCommonInterceptor': Bean instantiation
via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException:
Failed to instantiate [com.fiserv.common.ui.struts2.interceptors.FiservCommonInterceptor]:
Constructor threw exception; nested exception is java.lang.InstantiationError: com.opensymphony.xwork2.TextProviderFactory
	at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:275)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1139)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowire(AbstractAutowireCapableBeanFactory.java:351)
	at com.opensymphony.xwork2.spring.SpringObjectFactory.buildBean(SpringObjectFactory.java:199)
	at com.opensymphony.xwork2.spring.SpringObjectFactory.buildBean(SpringObjectFactory.java:168)
	at com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:172)
	at com.opensymphony.xwork2.factory.DefaultInterceptorFactory.buildInterceptor(DefaultInterceptorFactory.java:47)
	... 26 more
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.fiserv.common.ui.struts2.interceptors.FiservCommonInterceptor]:
Constructor threw exception; nested exception is java.lang.InstantiationError: com.opensymphony.xwork2.TextProviderFactory
	at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:163)
	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:122)
	at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:267)
	... 32 more
Caused by: java.lang.InstantiationError: com.opensymphony.xwork2.TextProviderFactory
	at com.fiserv.common.ui.struts2.interceptors.FiservCommonInterceptor.<init>(FiservCommonInterceptor.java:37)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
	at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147)
	... 34 more

Sep 29, 2017 - 08:55:46.989 [               ] - [                                   ] ERROR
- core.StandardContext -  - Error filterStart
Sep 29, 2017 - 08:55:46.989 [               ] - [                                   ] ERROR
- core.StandardContext -  - Context [/apps/ClientDataCollection] startup failed due to previous
errors
Sep 29, 2017 - 08:55:47.020 [               ] - [                                   ] INFO
 - [default-host].[/apps/ClientDataCollection] -  - Closing Spring root WebApplicationContext
Sep 29, 2017 - 08:55:47.020 [               ] - [                                   ] INFO
 - support.XmlWebApplicationContext -  - Closing Root WebApplicationContext: startup date
[Fri Sep 29 08:55:44 EDT 2017]; root of context hierarchy
Sep 29, 2017 - 08:55:47.036 [               ] - [                                   ] ERROR
- service.fail -  - MSC00001: Failed to start service jboss.web.deployment.default-host./apps/ClientDataCollection:
org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./apps/ClientDataCollection:
JBAS018040: Failed to start context
	at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:94)
	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)

Sep 29, 2017 - 08:55:47.270 [               ] - [                                   ] INFO
 - as.server -  - JBAS018559: Deployed "ClientDataCollection_T.war"
Sep 29, 2017 - 08:55:47.270 [               ] - [                                   ] INFO
 - as.controller -  - JBAS014774: Service status report
JBAS014777:   Services which failed to start:      service jboss.web.deployment.default-host./apps/ClientDataCollection:
org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./apps/ClientDataCollection:
JBAS018040: Failed to start context

Sep 29, 2017 - 08:55:47.598 [               ] - [                                   ] INFO
 - jboss.as -  - JBAS015961: Http management interface listening on http://127.0.0.1:9990/management
Sep 29, 2017 - 08:55:47.598 [               ] - [                                   ] INFO
 - jboss.as -  - JBAS015951: Admin console listening on http://127.0.0.1:9990
Sep 29, 2017 - 08:55:47.598 [               ] - [                                   ] ERROR
- jboss.as -  - JBAS015875: JBoss AS 7.1.3.Final "Arges" started (with errors) in 24016ms
- Started 547 of 741 services (2 services failed or missing dependencies, 156 services are
passive or on-demand)



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message