Nested Exception: java.lang.RuntimeException: Failed to Generate Wrapper Class

This is a discussion on Nested Exception: java.lang.RuntimeException: Failed to Generate Wrapper Class within the Weblogic forums, part of the Application Servers category; Hi all, I've created a MySQL datasource but when I make it the source for a EJB I get the error above. I think the error occurs during deployment, rather ...

Go Back   Unix Linux Forum > Application Servers > Weblogic

FixUnix.com - Unix Linux Forums

Unix Content Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 10-09-2007, 04:35 PM
Default Nested Exception: java.lang.RuntimeException: Failed to Generate Wrapper Class


Hi all, I've created a MySQL datasource but when I make it the source for a EJB
I get the error above. I think the error occurs during deployment, rather than
while building. When I use a WebLogic-supplied, PointBase datasource the deployment
works OK, so it must be the way I've configured/built my datasource. Any areas
I should check before I go further? I've listed below some messages I get and
these are followed by the remainder of the error message.
Thanks in advance, Roy.

some messages I get during deploy are:

-------------------------------------------------------------------------------------------------------
BEA-001068 18-Nov-2003 17:08:25 o'clo Info JDBC Connection
for pool "MySQLPool" created.
BEA-001132 18-Nov-2003 17:08:25 o'clo Info JDBC Initialized
statement cache of size "10" for conne

ool "MySQLPool".

BEA-001068 18-Nov-2003 17:08:25 o'clo Info JDBC Connection
for pool "MySQLPool" created.
BEA-001132 18-Nov-2003 17:08:25 o'clo Info JDBC Initialized
statement cache of size "10" for conne

ool "MySQLPool".

BEA-001068 18-Nov-2003 17:08:25 o'clo Info JDBC Connection
for pool "MySQLPool" created.
BEA-001132 18-Nov-2003 17:08:25 o'clo Info JDBC Initialized
statement cache of size "10" for conne

ool "MySQLPool".

BEA-001068 18-Nov-2003 17:08:25 o'clo Info JDBC Connection
for pool "MySQLPool" created.
BEA-001132 18-Nov-2003 17:08:25 o'clo Info JDBC Initialized
statement cache of size "10" for conne

ool "MySQLPool".

BEA-001068 18-Nov-2003 17:08:25 o'clo Info JDBC Connection
for pool "MySQLPool" created.
BEA-001132 18-Nov-2003 17:08:25 o'clo Info JDBC Initialized
statement cache of size "10" for conne

ool "MySQLPool".

BEA-000628 18-Nov-2003 17:08:25 o'clo Info Common Created
"5" resources for pool "MySQLPool&quo

are available and "0" are unavailable.

BEA-001124 18-Nov-2003 17:08:25 o'clo Info JDBC Created
Connection Pool named MySQLPool.
BEA-000625 18-Nov-2003 17:08:25 o'clo Info Common The
application has disabled periodic testing of free resour

-----------------------------------------------------------------------------------------------------------

Here is the remainder of the error:

Unable to deploy EJB: tester from BandsExampleEJB.jar:

Failed to Generate Wrapper Class.
Nested Exception: java.lang.RuntimeException: Failed to Generate Wrapper Class
at weblogic.utils.wrapper.WrapperFactory.createWrappe r(WrapperFactory.java:141)
at weblogic.jdbc.wrapper.JDBCWrapperFactory.getWrappe r(JDBCWrapperFactory.java:73)
at weblogic.jdbc.jts.Driver.newConnection(Driver.java :674)
at weblogic.jdbc.jts.Driver.createLocalConnection(Dri ver.java:196)
at weblogic.jdbc.jts.Driver.connect(Driver.java:154)
at weblogic.jdbc.common.internal.RmiDataSource.getCon nection(RmiDataSource.java:298)
at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.g etConnection(RDBMSPersistenceManager.java:1841)
at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.v erifyDatabaseType(RDBMSPersistenceManager.java:202 5)
at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.s etup(RDBMSPersistenceManager.java:195)
at weblogic.ejb20.manager.BaseEntityManager.setupPM(B aseEntityManager.java:217)
at weblogic.ejb20.manager.BaseEntityManager.setup(Bas eEntityManager.java:184)
at weblogic.ejb20.manager.DBManager.setup(DBManager.j ava:164)
at weblogic.ejb20.deployer.ClientDrivenBeanInfoImpl.a ctivate(ClientDrivenBeanInfoImpl.java:1004)
at weblogic.ejb20.deployer.EJBDeployer.activate(EJBDe ployer.java:1322)
at weblogic.ejb20.deployer.EJBModule.activate(EJBModu le.java:610)
at weblogic.j2ee.J2EEApplicationContainer.activateMod ule(J2EEApplicationContainer.java:3012)
at weblogic.j2ee.J2EEApplicationContainer.activate(J2 EEApplicationContainer.java:2076)
at weblogic.j2ee.J2EEApplicationContainer.activate(J2 EEApplicationContainer.java:2057)
at weblogic.management.deploy.slave.SlaveDeployer$Com ponentActivateTask.activateContainer(SlaveDeployer .java:2624)
at weblogic.management.deploy.slave.SlaveDeployer$Act ivateTask.doCommit(SlaveDeployer.java:2547)
at weblogic.management.deploy.slave.SlaveDeployer$Tas k.commit(SlaveDeployer.java:2349)
at weblogic.management.deploy.slave.SlaveDeployer$Tas k.checkAutoCommit(SlaveDeployer.java:2431)
at weblogic.management.deploy.slave.SlaveDeployer$Tas k.prepare(SlaveDeployer.java:2343)
at weblogic.management.deploy.slave.SlaveDeployer$Act ivateTask.prepare(SlaveDeployer.java:2511)
at weblogic.management.deploy.slave.SlaveDeployer.pro cessPrepareTask(SlaveDeployer.java:833)
at weblogic.management.deploy.slave.SlaveDeployer.pre pareDelta(SlaveDeployer.java:542)
at weblogic.management.deploy.slave.SlaveDeployer.pre pareUpdate(SlaveDeployer.java:500)
at weblogic.drs.internal.SlaveCallbackHandler$1.execu te(SlaveCallbackHandler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThrea d.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.ja va:170)




at weblogic.management.deploy.slave.SlaveDeployer$Act ivateTask.doCommit(SlaveDeployer.java:2549)
at weblogic.management.deploy.slave.SlaveDeployer$Tas k.commit(SlaveDeployer.java:2349)
at weblogic.management.deploy.slave.SlaveDeployer$Tas k.checkAutoCommit(SlaveDeployer.java:2431)
at weblogic.management.deploy.slave.SlaveDeployer$Tas k.prepare(SlaveDeployer.java:2343)
at weblogic.management.deploy.slave.SlaveDeployer$Act ivateTask.prepare(SlaveDeployer.java:2511)
at weblogic.management.deploy.slave.SlaveDeployer.pro cessPrepareTask(SlaveDeployer.java:833)
at weblogic.management.deploy.slave.SlaveDeployer.pre pareDelta(SlaveDeployer.java:542)
at weblogic.management.deploy.slave.SlaveDeployer.pre pareUpdate(SlaveDeployer.java:500)
at weblogic.drs.internal.SlaveCallbackHandler$1.execu te(SlaveCallbackHandler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThrea d.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.ja va:170)

Reply With Quote
  #2  
Old 06-13-2008, 05:23 PM
Default Re: Nested Exception: java.lang.RuntimeException: Failed to Generate Wrapper Class

Hi,

I am getting a similar error that the one you had some time ago and I was wondering if you had fixed it eventually.

I am running wls 9.1 and mysql 4.1.18 with InnoDb as engine for the tables.

This is the stack trace I got.


Code:
java.sql.SQLException: Cannot obtain connection: driverURL = jdbc:weblogic:pool:
xxxDS, props = {EmulateTwoPhaseCommit=false, connectionPoolID=xxxDS, jdbcTxDataS
ource=true, LoggingLastResource=false, dataSourceName=xxxDS}.
Nested Exception: java.lang.RuntimeException: Failed to Generate Wrapper Class
        at weblogic.utils.wrapper.WrapperFactory.createWrapper(WrapperFactory.ja
va:213)
        at weblogic.jdbc.wrapper.JDBCWrapperFactory.getWrapper(JDBCWrapperFactor
y.java:173)
        at weblogic.jdbc.pool.Driver.allocateConnection(Driver.java:247)
        at weblogic.jdbc.pool.Driver.connect(Driver.java:164)
        at weblogic.jdbc.jts.Driver.getNonTxConnection(Driver.java:647)
        at weblogic.jdbc.jts.Driver.connect(Driver.java:137)
        at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSour
ce.java:359)
        at org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.
getConnection(LocalDataSourceConnectionProvider.java:81)
        at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager
I have done quite some googleing, and all the posts/comments tell me to put the jar into the classpath, which I have already done.

Anaway, I'll keep trying in wls and mysql forums.

Thank you,
Best regards
Reply With Quote
Reply

Thread Tools


All times are GMT -5. The time now is 11:09 PM.

In an effort to better serve ads to our visitors, cookies are used on Fixunix.com. For more information, check out our Privacy Policy.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Ad Management by RedTyger