This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Ravish Pandey
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please post your "parentApplicationContext" bean. It looks like you are trying to pass an ArrayList to its constructor, but no such constructor exists.
 
Ravish Pandey
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic