Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Portals and Portlets and the fly likes Context initialization failed-Spring framework 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 » Java » Portals and Portlets
Bookmark "Context initialization failed-Spring framework" Watch "Context initialization failed-Spring framework" New topic
Author

Context initialization failed-Spring framework

madhu chennai
Greenhorn

Joined: Dec 20, 2007
Posts: 6
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

Joined: Nov 20, 2003
Posts: 204
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")
 
wood burning stoves
 
subject: Context initialization failed-Spring framework
 
Similar Threads
Tiles 2.1 integration with Spring 3.0
Spring MultiActionController methodNameResolver invalid property error
Error getting Spring security 2 to set up in Spring 2.5
portlet.PortletException
facing a problem while deploying jsf application on bea weblogic 10.0