Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Yan Paing
How to solve org.springframework.beans.factory.BeanCreationException
March 22, 2010 11:49 PM
Answer

Yan Paing

Rank: Junior Member

Posts: 76

Join Date: March 10, 2010

Recent Posts

Hi Everyone,
I have the following errors and i would like to know how to fix it.
Thanks

whereas object of type
log4j:ERROR "org.apache.log4j.ConsoleAppender" was loaded by [WebappClassLoader
delegate: false
repositories:
/WEB-INF/classes/
----------> Parent Classloader:
org.apache.catalina.loader.StandardClassLoader@b34bed0
].
log4j:ERROR Could not instantiate appender named "CONSOLE".
14:46:30,923 ERROR [ContextLoader:215] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionAdvice'
defined in ServletContext resource [/WEB-INF/classes/META-INF/base-spring.xml]: Cannot resolve reference to bean 'liferayTransactionManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liferayTransactionManager' defined in ServletContext resource [/WEB-INF/classes/META-INF/hibernate-spring.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type [com.liferay.portal.spring.hibernate.PortletHibernateConfiguration] to required type [org.hibernate.SessionFactory] for property 'sessionFactory'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [com.liferay.portal.spring.hibernate.PortletHibernateConfiguration] to required type [org.hibernate.SessionFactory] for property 'sessionFactory': no matching editors or conversion strategy found
Sriram Gopalan
RE: How to solve org.springframework.beans.factory.BeanCreationException
May 9, 2010 11:24 PM
Answer

Sriram Gopalan

Rank: Junior Member

Posts: 39

Join Date: July 13, 2008

Recent Posts

Hi,

Did you resolve this issue ? I am facing the same. Any pointers ?

Thanks
Latara Smith
RE: How to solve org.springframework.beans.factory.BeanCreationException
May 10, 2010 7:50 AM
Answer

Latara Smith

Rank: New Member

Posts: 13

Join Date: February 15, 2010

Recent Posts

Hi,

I'm having the same problem. have u found a solution for it?

Much appreaciated!

L.
Sriram Gopalan
RE: How to solve org.springframework.beans.factory.BeanCreationException
May 10, 2010 8:04 PM
Answer

Sriram Gopalan

Rank: Junior Member

Posts: 39

Join Date: July 13, 2008

Recent Posts

My issue is resolved. For some reason I had portal-impl.jar in tomcat global classpath. I removed it and everything working.

--Sriram
chandru palaniyappan
RE: How to solve org.springframework.beans.factory.BeanCreationException
January 3, 2011 3:46 AM
Answer

chandru palaniyappan

Rank: Junior Member

Posts: 85

Join Date: July 28, 2010

Recent Posts

Hi Sriram Gopalan,

How did you resolve the issue...?

The portal-impl.jar is required for me.

For example:

WebKeys,PortalUtil classes are needs to be imported in some of my classes and JSP's.

I have developed my portlet in pluginsdk6.0.5 and deployed in the Liferay6.0.4.

I included portal-impl.jar in the global classpath.

In web.xml i added
 1<context-param>
 2        <param-name>contextClass</param-name>
 3        <param-value>com.liferay.portal.spring.context.PortletApplicationContext</param-value>
 4    </context-param>
 5    <context-param>
 6        <param-name>contextConfigLocation</param-name>
 7        <param-value>WEB-INF/src/META-INF/dynamic-data-source-spring.xml,WEB-INF/src/META-INF/portlet-spring.xml</param-value>
 8    </context-param>
 9    <listener>
10        <listener-class>com.liferay.portal.kernel.spring.context.PortletContextLoaderListener</listener-class>
11    </listener>


But while doing build-service,

1[java] org.dom4j.DocumentException: Error on line 53 of document : The end-tag for element type "mapped-superclass" must end with a '>' delimiter. Nested exception: The end-tag for element type "mapped-superclass" must end with a '>' delimiter.


and also while deploying portlet in the server,

1org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.my.catalog.portlet.service.MyCategoryLocalService' defined in ServletContext resource [/WEB-INF/classes/META-INF/portlet-spring.xml]: Initialization of bean failed; nested exception is com.liferay.portal.kernel.bean.BeanLocatorException: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'com.my.catalog.portlet.service.MyCategoryService' is defined



got these issues.

How could i solve this problem....?

Please help,

Thanks & Regards,

Chandru P
Siva Rama Krishna Ramadugu
RE: How to solve org.springframework.beans.factory.BeanCreationException
December 14, 2011 10:55 PM
Answer

Siva Rama Krishna Ramadugu

Rank: New Member

Posts: 1

Join Date: December 2, 2011

Recent Posts

where we find tomcat global class path ?