Forums de discussion
java.lang.ClassCastException
mukesh kumar, modifié il y a 10 années.
java.lang.ClassCastException
Junior Member Publications: 57 Date d'inscription: 13/03/12 Publications récentes
Hi,
I am getting the following error
Could not instantiate connection provider
java.lang.ClassCastException: org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider cannot be cast to org.hibernate.connection.ConnectionProvider
Can anybody have a look and suggest me something
Also
Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liferayHibernateSessionFactory' defined in ServletContext resource [/WEB-INF/classes/META-INF/hibernate-spring.xml]: Invocation of init method failed; nested exception is org.hibernate.HibernateException: Could not instantiate connection provider: org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider
Regards,
Mukesh
I am getting the following error
Could not instantiate connection provider
java.lang.ClassCastException: org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider cannot be cast to org.hibernate.connection.ConnectionProvider
Can anybody have a look and suggest me something
Also
Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liferayHibernateSessionFactory' defined in ServletContext resource [/WEB-INF/classes/META-INF/hibernate-spring.xml]: Invocation of init method failed; nested exception is org.hibernate.HibernateException: Could not instantiate connection provider: org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider
Regards,
Mukesh
meera prince, modifié il y a 10 années.
RE: java.lang.ClassCastException
Liferay Legend Publications: 1111 Date d'inscription: 08/02/11 Publications récentes
Hi
May i know when you are getting this error... this is problem with libraries....
you have to pass the org.hibernate.connection.ConnectionProvider this but ur passing org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider .
if you are using service builder in plugin portlet .
first take you portlet back up .
now do following this.
go to source META-INF delete all xml files and run service builder once again....
May i know when you are getting this error... this is problem with libraries....
you have to pass the org.hibernate.connection.ConnectionProvider this but ur passing org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider .
if you are using service builder in plugin portlet .
first take you portlet back up .
now do following this.
go to source META-INF delete all xml files and run service builder once again....
mukesh kumar, modifié il y a 10 années.
RE: java.lang.ClassCastException
Junior Member Publications: 57 Date d'inscription: 13/03/12 Publications récentes
Hi,
thanks for the reply..
I am getting this error while starting on the server itself .
I am using service builder and i have not done any explict configuration for passing either org.hibernate.connection.ConnectionProvider or org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider. By internally its taking because of extra jars added in lib folder in WEB-INF.
I have removed extra jars..
i have also followed your suggestion for go to source META-INF delete all xml files and run service builder once again....
Still i am getting the following errors.
Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liferayHibernateSessionFactory' defined in ServletContext resource [/WEB-INF/classes/META-INF/hibernate-spring.xml]: Invocation of init method failed; nested exception is org.hibernate.HibernateException: Could not instantiate connection provider: org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.
Regards,
Mukesh
thanks for the reply..
I am getting this error while starting on the server itself .
I am using service builder and i have not done any explict configuration for passing either org.hibernate.connection.ConnectionProvider or org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider. By internally its taking because of extra jars added in lib folder in WEB-INF.
I have removed extra jars..
i have also followed your suggestion for go to source META-INF delete all xml files and run service builder once again....
Still i am getting the following errors.
Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liferayHibernateSessionFactory' defined in ServletContext resource [/WEB-INF/classes/META-INF/hibernate-spring.xml]: Invocation of init method failed; nested exception is org.hibernate.HibernateException: Could not instantiate connection provider: org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.
Regards,
Mukesh
Subhash Pavuskar, modifié il y a 10 années.
RE: java.lang.ClassCastException
Regular Member Publications: 234 Date d'inscription: 13/03/12 Publications récentes
Hi Mukesh ,
If you getting this error at the startup of your tomcat server then i guess you missed portal-ext.properties file in webapps\ROOT\WEB-INF\classes.
portal-ext.properties define your database connection.
If you getting this error at the startup of your tomcat server then i guess you missed portal-ext.properties file in webapps\ROOT\WEB-INF\classes.
portal-ext.properties define your database connection.
Tiago Augusto Nogueira Coelho, modifié il y a 10 années.
RE: java.lang.ClassCastException
Junior Member Publications: 43 Date d'inscription: 04/10/13 Publications récentesmukesh kumar:
Hi,
thanks for the reply..
I am getting this error while starting on the server itself .
I am using service builder and i have not done any explict configuration for passing either org.hibernate.connection.ConnectionProvider or org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider. By internally its taking because of extra jars added in lib folder in WEB-INF.
I have removed extra jars..
i have also followed your suggestion for go to source META-INF delete all xml files and run service builder once again....
Still i am getting the following errors.
Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liferayHibernateSessionFactory' defined in ServletContext resource [/WEB-INF/classes/META-INF/hibernate-spring.xml]: Invocation of init method failed; nested exception is org.hibernate.HibernateException: Could not instantiate connection provider: org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.
Regards,
Mukesh
did you solve the problem? I am getting the same error.