留言板
java.lang.ClassCastException
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
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....
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,修改在10 年前。
RE: java.lang.ClassCastException
Regular Member 帖子: 234 加入日期: 12-3-13 最近的帖子
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,修改在10 年前。
RE: java.lang.ClassCastException
Junior Member 帖子: 43 加入日期: 13-10-4 最近的帖子mukesh 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.