wood burning stoves 2.0*
The moose likes Spring and the fly likes Error Message: Filter [applicationContextMapFilter]: could not be initialized Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Error Message: Filter [applicationContextMapFilter]: could not be initialized " Watch "Error Message: Filter [applicationContextMapFilter]: could not be initialized " New topic
Author

Error Message: Filter [applicationContextMapFilter]: could not be initialized

Ravish Pandey
Greenhorn

Joined: Feb 16, 2011
Posts: 4
Hi,
I am fresher and currently working on a project that includes Struts ,Spring and Ejb with RAD as IDE.So after starting the server Webspere for home page , i am getting following exception. So can anybody help me regarding this as i ve tried my level best but not able to configure out. Also is that can be because of RAD installation problem?


Error Message: Filter [applicationContextMapFilter]: could not be initialized
Error Code: 500
Target Servlet: /index.jsp
Error Stack:
org.springframework.beans.factory.access.BootstrapException: Unable to initialize group definition. Group resource name [classpath:/beanRefContext.xml], factory key [parentApplicationContext]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'parentApplicationContext' defined in class path resource [beanRefContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.context.support.ClassPathXmlApplicationContext]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'auditDetailListener' defined in class path resource [applicationContext.xml]: Cannot resolve reference to bean 'cainSessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cainSessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org/objectweb/asm/ClassVisitor.visit(IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V
Related cause: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'parentApplicationContext' defined in class path resource [beanRefContext.xml]: Unsatisfied dependency expressed through constructor argument with index 1 of type [boolean]: Ambiguous constructor argument types - did you specify the correct bean references as constructor arguments?
Related cause: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'parentApplicationContext' defined in class path resource [beanRefContext.xml]: Unsatisfied dependency expressed through constructor argument with index 1 of type [java.lang.Class]: Ambiguous constructor argument types - did you specify the correct bean references as constructor arguments?
Related cause: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'parentApplicationContext' defined in class path resource [beanRefContext.xml]: Unsatisfied dependency expressed through constructor argument with index 1 of type [org.springframework.context.ApplicationContext]: Ambiguous constructor argument types - did you specify the correct bean references as constructor arguments?
Related cause: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'parentApplicationContext' defined in class path resource [beanRefContext.xml]: Unsatisfied dependency expressed through constructor argument with index 1 of type [boolean]: Ambiguous constructor argument types - did you specify the correct bean references as constructor arguments?
Related cause: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'parentApplicationContext' defined in class path resource [beanRefContext.xml]: Unsatisfied dependency expressed through constructor argument with index 0 of type [java.lang.String]: Could not convert constructor argument value of type [java.util.ArrayList] to required type [java.lang.String]: Failed to convert value of type [java.util.ArrayList] to required type [java.lang.String]; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [java.util.ArrayList] to required type [java.lang.String]: no matching editors or conversion strategy found
Related cause: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'parentApplicationContext' defined in class path resource [beanRefContext.xml]: Unsatisfied dependency expressed through constructor argument with index 1 of type [java.lang.Class]: Ambiguous constructor argument types - did you specify the correct bean references as constructor arguments?
Related cause: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'parentApplicationContext' defined in class path resource [beanRefContext.xml]: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.springframework.context.ApplicationContext]: Could not convert constructor argument value of type [java.util.ArrayList] to required type [org.springframework.context.ApplicationContext]: Failed to convert value of type [java.util.ArrayList] to required type [org.springframework.context.ApplicationContext]; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [java.util.ArrayList] to required type [org.springframework.context.ApplicationContext]: no matching editors or conversion strategy found
Related cause: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'parentApplicationContext' defined in class path resource [beanRefContext.xml]: Unsatisfied dependency expressed through constructor argument with index 0 of type [java.lang.String]: Could not convert constructor argument value of type [java.util.ArrayList] to required type [java.lang.String]: Failed to convert value of type [java.util.ArrayList] to required type [java.lang.String]; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [java.util.ArrayList] to required type [java.lang.String]: no matching editors or conversion strategy found
.
.
.
./....
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

Please post your "parentApplicationContext" bean. It looks like you are trying to pass an ArrayList to its constructor, but no such constructor exists.


[My Blog]
All roads lead to JavaRanch
Ravish Pandey
Greenhorn

Joined: Feb 16, 2011
Posts: 4
the beanRefContext.xml contains
<beans>
<bean id="parentApplicationContext" class="org.springframework.context.support.ClassPathXmlApplicationContext">
<constructor-arg>
<list>
<value>classpath:/applicationContext.xml</value>
<value>classpath:/transactionManager-websphere.xml</value>
<value>classpath:/spring-model.xml</value>
<value>classpath:/spring-filter-map.xml</value>
<value>classpath:/spring-swift.xml</value>
<value>classpath:/spring-reporting.xml</value>
<value>classpath:/spring-util.xml</value>
</list>
</constructor-arg>
</bean>
</beans>


public void setSessionContext(SessionContext arg0)
{
super.setSessionContext(arg0);
setBeanFactoryLocator(ContextSingletonBeanFactoryLocator.getInstance("classpath:/beanRefContext.xml"));
setBeanFactoryLocatorKey("parentApplicationContext");
}

as per my understanding i am sending the relaevant file ,can their be access conflict while accessing beanContext.xml ,as mentioned in application without package datails but their is other file(beanRefContext.xml) also in diff package.
do i need to send applicationContext.xml file also?
Thnx in adv
 
jQuery in Action, 2nd edition
 
subject: Error Message: Filter [applicationContextMapFilter]: could not be initialized
 
Similar Threads
getting same result in AutoWiring byType and byName
Bootstrap to 10.31.8.104/10.31.8.104:7600 failed
Problems with remote ejb on weblogic
Error while defining Constructor argument
Error Message: Filter [applicationContextMapFilter]: could not be initialized