Thursday, 28 August 2008

Error : interface org.hibernate.jdbc.ConnectionWrapper is not visible from class loader

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"

1 comment:

Anonymous said...

I'm drawn to generosity... and not only the financial kind. The man I am with is generous with his time, attention, talents, integrity and power. Every single working day he displays his commitment to me by sharing all of those presents in modest (and not-so-small) ways. Yet another furthermore...he has by no means, at any time bad-mouthed any lady he is with (including his ex-wife). I certainly hit the jackpot with this guy.

Here is my web site :: women attracted to women