Error Message : interface org.hibernate.jdbc.ConnectionWrapper is not visible from class loader
Full Error Message
Caused by: java.lang.IllegalArgumentException: interface org.hibernate.jdbc.ConnectionWrapper is not visible from class loader
at java.lang.reflect.Proxy.getProxyClass(Unknown Source)
at java.lang.reflect.Proxy.newProxyInstance(Unknown Source)
at org.hibernate.jdbc.BorrowedConnectionProxy.generateProxy(BorrowedConnectionProxy.java:67)
at org.hibernate.jdbc.ConnectionManager.borrowConnection(ConnectionManager.java:163)
at org.hibernate.jdbc.JDBCContext.borrowConnection(JDBCContext.java:111)
at org.hibernate.impl.SessionImpl.connection(SessionImpl.java:359)
at org.springframework.orm.hibernate3.HibernateTransactionManager.doBegin(HibernateTransactionManager.java:510)
... 31 more
In this case, your manifest file is not correctly.
Please check it, you might miss "org.hibernate.jdbc;version="3.2.6.ga" bundle
or check with below example mainifest file bundle list
org.aopalliance.aop;version="1.0.0",
org.apache.commons.dbcp;version="1.2.2.osgi",
org.apache.log4j;version="1.2.15",
org.hibernate;version="3.2.6.ga",
org.hibernate.classic;version="3.2.6.ga",
org.hibernate.criterion;version="3.2.6.ga",
org.hibernate.hql.ast;version="3.2.6.ga",
org.hibernate.jdbc;version="3.2.6.ga",
org.hibernate.proxy;version="3.2.6.ga",
org.hibernate.usertype;version="3.2.6.ga",
org.springframework.aop;version="2.5.4",
org.springframework.aop.framework;version="2.5.4",
org.springframework.beans;version="2.5.4",
org.springframework.beans.factory.config;version="2.5.4",
org.springframework.core;version="2.5.4",
org.springframework.jmx.export;version="2.5.4",
org.springframework.orm.hibernate3;version="2.5.4",
org.springframework.orm.hibernate3.support;version="2.5.4",
org.springframework.transaction;version="2.5.4",
org.springframework.transaction.annotation;version="2.5.4",
org.springframework.transaction.interceptor;version="2.5.4",
org.springframework.transaction.support;version="2.5.4"
Thursday, 28 August 2008
Tuesday, 5 August 2008
Ms-sql : auto generate primary key value
Open table design
Check properties on the right side
Table Designer > Identity column : please select primary key column name
Then ms sql will generate primary key value automatically.
Check properties on the right side
Table Designer > Identity column : please select primary key column name
Then ms sql will generate primary key value automatically.
org.hibernate.HibernateException: No Hibernate Session bound to thread
error message : org.hibernate.HibernateException: No Hibernate Session bound to thread
You did not insert "annotation" in the source.
such as
"@Transactional"
"@SuppressWarnings("unchecked")"
"@Transactional(readOnly = true)"
You did not insert "annotation" in the source.
such as
"@Transactional"
"@SuppressWarnings("unchecked")"
"@Transactional(readOnly = true)"
Subscribe to:
Posts (Atom)