[
https://issues.apache.org/jira/browse/WW-4156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13721051#comment-13721051
]
nick edited comment on WW-4156 at 7/26/13 6:56 PM:
---------------------------------------------------
Sorry Maurizio, this error i was facing only after upgrading struts2 from 2.3.4
to the latest. So i guess this could be a bug. Same i have filed in spring
issue tracker as well. By the way I'm trying to figured out the root cause as
well.
This can be replicated with following
applicationContext_one.xml and should have default-lazy-init="true" at beans tag
{noformat}
<bean id="serviceA" class="org.springframework.aop.framework.ProxyFactoryBean">
<property name="target" ref="serviceATarget" />
<property name="interceptorNames">
<list>
<value>aclMethodSecurityInterceptor</value>
</list>
</property>
<property name="proxyTargetClass" value="true"/>
</bean>
<bean id="serviceATarget" class="com.mycom.services.ServiceA" />
<bean id="aclMethodSecurityInterceptor" name="aclMethodSecurityInterceptor"
class="org.springframework.security.access.intercept.aopalliance.MethodSecurityInterceptor">
<property name="accessDecisionManager"
ref="sampleAccessDecisionManager"/>
<property name="afterInvocationManager"
ref="sampleAfterInvocationManager"/>
<property name="objectDefinitionSource"
value="com.mycom.services.ServiceA.*=ACL_USER_READ"/>
</bean>
{noformat}
Create an Action class and inject this *serviceA* bean using
struts2-spring-plugin
1) Create some other Service class say for eg : com.mycom.service.ServiceB
2) Create a new applicationContext_2.xml and define ServiceB with
lazy-init="true"
3) Declare both applicationContext in your web.xml
Invoke the Action class.
Even ServiceB not injected or associated at anywhere, this will cause the
ServiceB also get initialized.
If you remove the ServiceB class from your source then you will get the similar
error CNFE.
was (Author: nick.sree):
Sorry Maurizio, this error i was facing only after upgrading struts2 from
2.3.4 to the latest. So i guess this could be a bug. Same i have filed in
spring issue tracker as well. By the way I'm trying to figured out the root
cause as well.
This can be replicated with following
applicationContext_one.xml
{noformat}
<bean id="serviceA" class="org.springframework.aop.framework.ProxyFactoryBean">
<property name="target" ref="serviceATarget" />
<property name="interceptorNames">
<list>
<value>aclMethodSecurityInterceptor</value>
</list>
</property>
<property name="proxyTargetClass" value="true"/>
</bean>
<bean id="serviceATarget" class="com.mycom.services.ServiceA" />
<bean id="aclMethodSecurityInterceptor" name="aclMethodSecurityInterceptor"
class="org.springframework.security.access.intercept.aopalliance.MethodSecurityInterceptor">
<property name="accessDecisionManager"
ref="sampleAccessDecisionManager"/>
<property name="afterInvocationManager"
ref="sampleAfterInvocationManager"/>
<property name="objectDefinitionSource"
value="com.mycom.services.ServiceA.*=ACL_USER_READ"/>
</bean>
{noformat}
Create an Action class and inject this *serviceA* bean using
struts2-spring-plugin
1) Create some other Service class say for eg : com.mycom.service.ServiceB
2) Create a new applicationContext_2.xml and define ServiceB with
lazy-init="true"
3) Declare both applicationContext in your web.xml
Invoke the Action class.
Even ServiceB not injected or associated at anywhere, this will cause the
ServiceB also get initialized.
If you remove the ServiceB class from your source then you will get the similar
error CNFE.
> Spring DI problem on Action Intialization
> -----------------------------------------
>
> Key: WW-4156
> URL: https://issues.apache.org/jira/browse/WW-4156
> Project: Struts 2
> Issue Type: Bug
> Components: Plugin - Spring
> Affects Versions: 2.3.15, 2.3.15.1
> Environment: JBoss AS 7 + Spring-3.2.3-RELEASE + Eclipse IDE on
> Unbuntu
> Reporter: nick
>
> Getting very strange unrelated spring initialization exception while opening
> a struts2 page. We are using latest spring release 3.2.3.
> Exception as follows
> {noformat}
> [31m16:23:08,045 ERROR [org.apache.struts2.dispatcher.Dispatcher]
> (http-localhost/127.0.0.1:8080-1) Exception occurred during processing
> request: Unable to instantiate Action,
> org.egov.web.actions.dms.FileManagementAction, defined for 'fileManagement'
> in namespace '/dms'Error creating bean with name 'fileService': FactoryBean
> threw exception on object creation; nested exception is
> org.springframework.beans.factory.UnsatisfiedDependencyException: Error
> creating bean with name 'aclMethodSecurityInterceptor' defined in
> ServletContext resource [/WEB-INF/applicationContext-dms.xml]: Unsatisfied
> dependency expressed through bean property 'authenticationManager': : Cannot
> find class [org.egov.erpcollection.util.CollectionsNumberGenerator] for bean
> with name 'collectionsNumberGenerator' defined in class path resource
> [config/spring/applicationContext-erpcollections.xml]; nested exception is
> java.lang.ClassNotFoundException:
> org.egov.erpcollection.util.CollectionsNumberGenerator from [Module
> "deployment.egov.ear.egiweb.war:main" from Service Module Loader]; nested
> exception is org.springframework.beans.factory.CannotLoadBeanClassException:
> Cannot find class [org.egov.erpcollection.util.CollectionsNumberGenerator]
> for bean with name 'collectionsNumberGenerator' defined in class path
> resource [config/spring/applicationContext-erpcollections.xml]; nested
> exception is java.lang.ClassNotFoundException:
> org.egov.erpcollection.util.CollectionsNumberGenerator from [Module
> "deployment.egov.ear.egiweb.war:main" from Service Module Loader]: Unable to
> instantiate Action, org.egov.web.actions.dms.FileManagementAction, defined
> for 'fileManagement' in namespace '/dms'Error creating bean with name
> 'fileService': FactoryBean threw exception on object creation; nested
> exception is
> org.springframework.beans.factory.UnsatisfiedDependencyException: Error
> creating bean with name 'aclMethodSecurityInterceptor' defined in
> ServletContext resource [/WEB-INF/applicationContext-dms.xml]: Unsatisfied
> dependency expressed through bean property 'authenticationManager': : Cannot
> find class [org.egov.erpcollection.util.CollectionsNumberGenerator] for bean
> with name 'collectionsNumberGenerator' defined in class path resource
> [config/spring/applicationContext-erpcollections.xml]; nested exception is
> java.lang.ClassNotFoundException:
> org.egov.erpcollection.util.CollectionsNumberGenerator from [Module
> "deployment.egov.ear.egiweb.war:main" from Service Module Loader]; nested
> exception is org.springframework.beans.factory.CannotLoadBeanClassException:
> Cannot find class [org.egov.erpcollection.util.CollectionsNumberGenerator]
> for bean with name 'collectionsNumberGenerator' defined in class path
> resource [config/spring/applicationContext-erpcollections.xml]; nested
> exception is java.lang.ClassNotFoundException:
> org.egov.erpcollection.util.CollectionsNumberGenerator from [Module
> "deployment.egov.ear.egiweb.war:main" from Service Module Loader]
> at
> com.opensymphony.xwork2.DefaultActionInvocation.createAction(DefaultActionInvocation.java:316)
> [xwork-core-2.3.15.jar:2.3.15]
> at
> com.opensymphony.xwork2.DefaultActionInvocation.init(DefaultActionInvocation.java:397)
> [xwork-core-2.3.15.jar:2.3.15]
> at
> com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:194)
> [xwork-core-2.3.15.jar:2.3.15]
> at
> org.apache.struts2.impl.StrutsActionProxy.prepare(StrutsActionProxy.java:63)
> [struts2-core-2.3.15.jar:2.3.15]
> at
> org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:39)
> [struts2-core-2.3.15.jar:2.3.15]
> at
> com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:58)
> [xwork-core-2.3.15.jar:2.3.15]
> at
> org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:553)
> [struts2-core-2.3.15.jar:2.3.15]
> at
> org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)
> [struts2-core-2.3.15.jar:2.3.15]
> at
> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:99)
> [struts2-core-2.3.15.jar:2.3.15]
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
> [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
> [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
> at
> org.springmodules.jcr.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:93)
> [spring-modules-jcr-0.9patch.jar:0.9-20080306135025]
> at
> org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
> [spring-web-3.2.3.RELEASE.jar:3.2.3.RELEASE]
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
> [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
> [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
> at
> org.displaytag.filter.ResponseOverrideFilter.doFilter(ResponseOverrideFilter.java:125)
> [displaytag-1.1.jar:1.1]
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
> [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
> [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
> at
> org.egov.infstr.client.filter.SetSessionVarFilter.doFilter(SetSessionVarFilter.java:108)
> [egov-egi.jar:]
> at
> org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
> [spring-web-3.2.3.RELEASE.jar:3.2.3.RELEASE]
> at
> org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
> [spring-web-3.2.3.RELEASE.jar:3.2.3.RELEASE]
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
> [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
> [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
> at
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
> [spring-security-web-3.1.4.RELEASE.jar:3.1.4.RELEASE]
> at
> org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)
> [spring-security-web-3.1.4.RELEASE.jar:3.1.4.RELEASE]
> at
> org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)
> [spring-security-web-3.1.4.RELEASE.jar:3.1.4.RELEASE]
> at
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
> [spring-security-web-3.1.4.RELEASE.jar:3.1.4.RELEASE]
> at
> org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
> [spring-security-web-3.1.4.RELEASE.jar:3.1.4.RELEASE]
> at
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
> [spring-security-web-3.1.4.RELEASE.jar:3.1.4.RELEASE]
> at
> org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)
> [spring-security-web-3.1.4.RELEASE.jar:3.1.4.RELEASE]
> at
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
> [spring-security-web-3.1.4.RELEASE.jar:3.1.4.RELEASE]
> at
> org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:146)
> [spring-security-web-3.1.4.RELEASE.jar:3.1.4.RELEASE]
> at
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
> [spring-security-web-3.1.4.RELEASE.jar:3.1.4.RELEASE]
> at
> org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
> [spring-security-web-3.1.4.RELEASE.jar:3.1.4.RELEASE]
> at
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
> [spring-security-web-3.1.4.RELEASE.jar:3.1.4.RELEASE]
> at
> org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:183)
> [spring-security-web-3.1.4.RELEASE.jar:3.1.4.RELEASE]
> at
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
> [spring-security-web-3.1.4.RELEASE.jar:3.1.4.RELEASE]
> at
> org.egov.infstr.security.spring.filter.SimpleSSOFilter.doFilter(SimpleSSOFilter.java:150)
> [egov-egi.jar:]
> at
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
> [spring-security-web-3.1.4.RELEASE.jar:3.1.4.RELEASE]
> at
> org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)
> [spring-security-web-3.1.4.RELEASE.jar:3.1.4.RELEASE]
> at
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
> [spring-security-web-3.1.4.RELEASE.jar:3.1.4.RELEASE]
> at
> org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
> [spring-security-web-3.1.4.RELEASE.jar:3.1.4.RELEASE]
> at
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
> [spring-security-web-3.1.4.RELEASE.jar:3.1.4.RELEASE]
> at
> org.springframework.security.web.session.ConcurrentSessionFilter.doFilter(ConcurrentSessionFilter.java:125)
> [spring-security-web-3.1.4.RELEASE.jar:3.1.4.RELEASE]
> at
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
> [spring-security-web-3.1.4.RELEASE.jar:3.1.4.RELEASE]
> at
> org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)
> [spring-security-web-3.1.4.RELEASE.jar:3.1.4.RELEASE]
> at
> org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)
> [spring-security-web-3.1.4.RELEASE.jar:3.1.4.RELEASE]
> at
> org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
> [spring-web-3.2.3.RELEASE.jar:3.2.3.RELEASE]
> at
> org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
> [spring-web-3.2.3.RELEASE.jar:3.2.3.RELEASE]
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
> [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
> [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
> at
> org.egov.infstr.client.filter.HibSessionServletFilter.doFilter(HibSessionServletFilter.java:60)
> [egov-egi.jar:]
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
> [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
> [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
> at
> org.egov.infstr.client.filter.SetThreadLocals.doFilter(SetThreadLocals.java:53)
> [egov-egi.jar:]
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
> [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
> [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
> at
> net.sf.ehcache.constructs.web.filter.GzipFilter.doFilter(GzipFilter.java:85)
> [ehcache-web-2.0.3.jar:]
> at net.sf.ehcache.constructs.web.filter.Filter.doFilter(Filter.java:86)
> [ehcache-web-2.0.3.jar:]
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
> [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
> [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
> at
> org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
> [spring-web-3.2.3.RELEASE.jar:3.2.3.RELEASE]
> at
> org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
> [spring-web-3.2.3.RELEASE.jar:3.2.3.RELEASE]
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
> [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
> [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
> [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149)
> [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
> at
> org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169)
> [jboss-as-web-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:145)
> [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97)
> [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102)
> [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:336)
> [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
> [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
> at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653)
> [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
> at
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:920)
> [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
> at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_25]
> Caused by: org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name 'fileService': FactoryBean threw exception on object
> creation; nested exception is
> org.springframework.beans.factory.UnsatisfiedDependencyException: Error
> creating bean with name 'aclMethodSecurityInterceptor' defined in
> ServletContext resource [/WEB-INF/applicationContext-dms.xml]: Unsatisfied
> dependency expressed through bean property 'authenticationManager': : Cannot
> find class [org.egov.erpcollection.util.CollectionsNumberGenerator] for bean
> with name 'collectionsNumberGenerator' defined in class path resource
> [config/spring/applicationContext-erpcollections.xml]; nested exception is
> java.lang.ClassNotFoundException:
> org.egov.erpcollection.util.CollectionsNumberGenerator from [Module
> "deployment.egov.ear.egiweb.war:main" from Service Module Loader]; nested
> exception is org.springframework.beans.factory.CannotLoadBeanClassException:
> Cannot find class [org.egov.erpcollection.util.CollectionsNumberGenerator]
> for bean with name 'collectionsNumberGenerator' defined in class path
> resource [config/spring/applicationContext-erpcollections.xml]; nested
> exception is java.lang.ClassNotFoundException:
> org.egov.erpcollection.util.CollectionsNumberGenerator from [Module
> "deployment.egov.ear.egiweb.war:main" from Service Module Loader]
> at
> org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:149)
> [spring-beans-3.2.3.RELEASE.jar:3.2.3.RELEASE]
> at
> org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:102)
> [spring-beans-3.2.3.RELEASE.jar:3.2.3.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1454)
> [spring-beans-3.2.3.RELEASE.jar:3.2.3.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:249)
> [spring-beans-3.2.3.RELEASE.jar:3.2.3.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
> [spring-beans-3.2.3.RELEASE.jar:3.2.3.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByName(AbstractAutowireCapableBeanFactory.java:1146)
> [spring-beans-3.2.3.RELEASE.jar:3.2.3.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1096)
> [spring-beans-3.2.3.RELEASE.jar:3.2.3.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireBeanProperties(AbstractAutowireCapableBeanFactory.java:376)
> [spring-beans-3.2.3.RELEASE.jar:3.2.3.RELEASE]
> at
> com.opensymphony.xwork2.spring.SpringObjectFactory.autoWireBean(SpringObjectFactory.java:203)
> [xwork-core-2.3.15.jar:2.3.15]
> at
> com.opensymphony.xwork2.spring.SpringObjectFactory.buildBean(SpringObjectFactory.java:183)
> [xwork-core-2.3.15.jar:2.3.15]
> at
> com.opensymphony.xwork2.spring.SpringObjectFactory.buildBean(SpringObjectFactory.java:154)
> [xwork-core-2.3.15.jar:2.3.15]
> at
> com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:151)
> [xwork-core-2.3.15.jar:2.3.15]
> at
> com.opensymphony.xwork2.ObjectFactory.buildAction(ObjectFactory.java:121)
> [xwork-core-2.3.15.jar:2.3.15]
> at
> com.opensymphony.xwork2.DefaultActionInvocation.createAction(DefaultActionInvocation.java:297)
> [xwork-core-2.3.15.jar:2.3.15]
> ... 75 more
> Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException:
> Error creating bean with name 'aclMethodSecurityInterceptor' defined in
> ServletContext resource [/WEB-INF/applicationContext-dms.xml]: Unsatisfied
> dependency expressed through bean property 'authenticationManager': : Cannot
> find class [org.egov.erpcollection.util.CollectionsNumberGenerator] for bean
> with name 'collectionsNumberGenerator' defined in class path resource
> [config/spring/applicationContext-erpcollections.xml]; nested exception is
> java.lang.ClassNotFoundException:
> org.egov.erpcollection.util.CollectionsNumberGenerator from [Module
> "deployment.egov.ear.egiweb.war:main" from Service Module Loader]; nested
> exception is org.springframework.beans.factory.CannotLoadBeanClassException:
> Cannot find class [org.egov.erpcollection.util.CollectionsNumberGenerator]
> for bean with name 'collectionsNumberGenerator' defined in class path
> resource [config/spring/applicationContext-erpcollections.xml]; nested
> exception is java.lang.ClassNotFoundException:
> org.egov.erpcollection.util.CollectionsNumberGenerator from [Module
> "deployment.egov.ear.egiweb.war:main" from Service Module Loader]
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByType(AbstractAutowireCapableBeanFactory.java:1209)
> [spring-beans-3.2.3.RELEASE.jar:3.2.3.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1101)
> [spring-beans-3.2.3.RELEASE.jar:3.2.3.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
> [spring-beans-3.2.3.RELEASE.jar:3.2.3.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
> [spring-beans-3.2.3.RELEASE.jar:3.2.3.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
> [spring-beans-3.2.3.RELEASE.jar:3.2.3.RELEASE]
> at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
> [spring-beans-3.2.3.RELEASE.jar:3.2.3.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
> [spring-beans-3.2.3.RELEASE.jar:3.2.3.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
> [spring-beans-3.2.3.RELEASE.jar:3.2.3.RELEASE]
> at
> org.springframework.aop.framework.ProxyFactoryBean.initializeAdvisorChain(ProxyFactoryBean.java:455)
> [spring-aop-3.2.3.RELEASE.jar:3.2.3.RELEASE]
> at
> org.springframework.aop.framework.ProxyFactoryBean.getObject(ProxyFactoryBean.java:241)
> [spring-aop-3.2.3.RELEASE.jar:3.2.3.RELEASE]
> at
> org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:142)
> [spring-beans-3.2.3.RELEASE.jar:3.2.3.RELEASE]
> ... 88 more
> Caused by: org.springframework.beans.factory.CannotLoadBeanClassException:
> Cannot find class [org.egov.erpcollection.util.CollectionsNumberGenerator]
> for bean with name 'collectionsNumberGenerator' defined in class path
> resource [config/spring/applicationContext-erpcollections.xml]; nested
> exception is java.lang.ClassNotFoundException:
> org.egov.erpcollection.util.CollectionsNumberGenerator from [Module
> "deployment.egov.ear.egiweb.war:main" from Service Module Loader]
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1275)
> [spring-beans-3.2.3.RELEASE.jar:3.2.3.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:575)
> [spring-beans-3.2.3.RELEASE.jar:3.2.3.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1344)
> [spring-beans-3.2.3.RELEASE.jar:3.2.3.RELEASE]
> at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:356)
> [spring-beans-3.2.3.RELEASE.jar:3.2.3.RELEASE]
> at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:335)
> [spring-beans-3.2.3.RELEASE.jar:3.2.3.RELEASE]
> at
> org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:187)
> [spring-beans-3.2.3.RELEASE.jar:3.2.3.RELEASE]
> at
> org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:191)
> [spring-beans-3.2.3.RELEASE.jar:3.2.3.RELEASE]
> at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:895)
> [spring-beans-3.2.3.RELEASE.jar:3.2.3.RELEASE]
> at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:853)
> [spring-beans-3.2.3.RELEASE.jar:3.2.3.RELEASE]
> at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:768)
> [spring-beans-3.2.3.RELEASE.jar:3.2.3.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByType(AbstractAutowireCapableBeanFactory.java:1194)
> [spring-beans-3.2.3.RELEASE.jar:3.2.3.RELEASE]
> ... 98 more
> Caused by: java.lang.ClassNotFoundException:
> org.egov.erpcollection.util.CollectionsNumberGenerator from [Module
> "deployment.egov.ear.egiweb.war:main" from Service Module Loader]
> at
> org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:196)
> [jboss-modules.jar:1.2.0.Final-redhat-1]
> at
> org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:444)
> [jboss-modules.jar:1.2.0.Final-redhat-1]
> at
> org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:432)
> [jboss-modules.jar:1.2.0.Final-redhat-1]
> at
> org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:374)
> [jboss-modules.jar:1.2.0.Final-redhat-1]
> at
> org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:119)
> [jboss-modules.jar:1.2.0.Final-redhat-1]
> at org.springframework.util.ClassUtils.forName(ClassUtils.java:260)
> [spring-core-3.2.3.RELEASE.jar:3.2.3.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:416)
> [spring-beans-3.2.3.RELEASE.jar:3.2.3.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1296)
> [spring-beans-3.2.3.RELEASE.jar:3.2.3.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1267)
> [spring-beans-3.2.3.RELEASE.jar:3.2.3.RELEASE]
> ... 108 more
> {noformat}
> Here at a glance it look like our application specific spring configuration
> problem, strictly speaking its is not (removing my declaration :) ).
> The CNF exception is the root cause of it but that class is not related to
> the Action which i'm trying to initiate (not even any reference). The
> *applicationContext-erpcollection.xml* which contains the class (which cause
> CNFE) is in lazy-load mode so it will never get initialized until we ask for
> it.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira