This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Portals and Portlets and the fly likes Context initialization failed-Spring framework Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Portals and Portlets
Reply 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")
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Context initialization failed-Spring framework
 
Similar Threads
facing a problem while deploying jsf application on bea weblogic 10.0
Error getting Spring security 2 to set up in Spring 2.5
portlet.PortletException
Spring MultiActionController methodNameResolver invalid property error
Tiles 2.1 integration with Spring 3.0