• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Context initialization failed-Spring framework

 
madhu chennai
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I am using bea weblogic portal server,when i try to run a portlet,which invokes DFS(DOCUMENTUM FOUNDATION SERVICES) webservices ,which throws the following error,i think the following error is related to spring frame work,please comment on us

ERROR MESSAGE:
<Error> <org.springframework.web.portlet.DispatcherPortlet> <BEA-000000> <Context initialization failed>
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'myPortfolioService' defined in PortletContext resource [/WEB-INF/context/portlet/myportfolio.xml]: Initialization of bean failed; nested exception is java.lang.InternalError: erroneous handlers
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:425)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:241)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:152)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:253)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:331)
Truncated. see log file for complete stacktrace
java.lang.InternalError: erroneous handlers
at com.cosi.services.MyPortfolioService.initApplicationContext(MyPortfolioService.java:49)
at org.springframework.context.support.ApplicationObjectSupport.setApplicationContext(ApplicationObjectSupport.java:73)
at org.springframework.context.support.ApplicationContextAwareProcessor.postProcessBeforeInitialization(ApplicationContextAwareProcessor.java:86)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:296)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:843)
Truncated. see log file for complete stacktrace
 
michael yue
Ranch Hand
Posts: 204
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I think maybe you can try get the context through the path directly something like
org.springframework.context.support.ClassPathXmlApplicationContext("WEB-INF/applicationContext.xml")
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic