Unable to deploy rar JDBC with the embedded driver
Hello,
A driver is packaged with a rar jdbc (attached file). Deployment of this rar gives the following error:
{noformat} 2011-04-26 16:45:40,493 : RARDeployer.doDeploy : Deploying Oracle1_xads_driver.r ar 2011-04-26 16:45:40,618 : ManagedConnectionFactoryImpl.getDataSource : Class nam e not found:oracle.jdbc.xa.client.OracleXADataSource 2011-04-26 16:45:40,634 : XAMCFImpl.createManagedConnection : Cannot get DataSou rce:javax.resource.ResourceException: Class Name not found:oracle.jdbc.xa.client .OracleXADataSource 2011-04-26 16:45:40,634 : JOnASResourceService.__createRA : execResult failed:ja vax.resource.ResourceException: Class Name not found:oracle.jdbc.xa.client.Oracl eXADataSource 2011-04-26 16:45:40,634 : JOnASResourceService.__createRA : Error processing Rar : Class Name not found:oracle.jdbc.xa.client.OracleXADataSource 2011-04-26 16:45:40,634 : JOnASResourceService.__deployRar : Error when deployin g the rar file: D:\Produits\jonas-full-5.2.0\deploy\Oracle1_xads_driver.rarError processing Rar: Class Name not found:oracle.jdbc.xa.client.OracleXADataSource: javax.resource.ResourceException: Class Name not found:oracle.jdbc.xa.client.Ora cleXADataSource org.ow2.jonas.resource.ResourceServiceException : Error processing Rar: Class Na me not found:oracle.jdbc.xa.client.OracleXADataSource: javax.resource.ResourceEx ception: Class Name not found:oracle.jdbc.xa.client.OracleXADataSource at org.ow2.jonas.resource.internal.JOnASResourceService.__createRA(JOnAS ResourceService.java:472) at org.ow2.jonas.resource.internal.JOnASResourceService.createRA(JOnASRe sourceService.java) at org.ow2.jonas.resource.internal.JOnASResourceService.__createResource Adapter(JOnASResourceService.java:352) at org.ow2.jonas.resource.internal.JOnASResourceService.createResourceAd apter(JOnASResourceService.java) at org.ow2.jonas.resource.internal.JOnASResourceService.__deployRar(JOnA SResourceService.java:808) at org.ow2.jonas.resource.internal.JOnASResourceService.deployRar(JOnASR esourceService.java) at org.ow2.jonas.resource.internal.RARDeployer.doDeploy(RARDeployer.java :79) at org.ow2.util.ee.deploy.impl.deployer.AbsDeployer$1.execute(AbsDeploye r.java:96) at org.ow2.util.ee.deploy.impl.deployer.AbsDeployer$1.execute(AbsDeploye r.java:95) at org.ow2.util.execution.helper.RunnableHelper.execute(RunnableHelper.j ava:77) at org.ow2.util.ee.deploy.impl.deployer.AbsDeployer.deploy(AbsDeployer.j ava:94) at org.ow2.util.ee.deploy.impl.deployer.DeployerManager.deploy(DeployerM anager.java:129) at org.ow2.jonas.deployablemonitor.DeployableMonitor.detectNewArchives(D eployableMonitor.java:490) at org.ow2.jonas.deployablemonitor.DeployableMonitor.checkNewArchives(De ployableMonitor.java:306) at org.ow2.jonas.deployablemonitor.DeployableMonitor.run(DeployableMonit or.java:216) Caused by: javax.resource.ResourceException: Class Name not found:oracle.jdbc.xa .client.OracleXADataSource at org.ow2.jonas.ee.jdbc.XAMCFImpl.createManagedConnection(XAMCFImpl.jav a:53) at org.ow2.jonas.resource.internal.cm.ConnectionManagerImpl.createResour ce(ConnectionManagerImpl.java:860) at org.ow2.jonas.resource.internal.pool.lib.HArrayPool.createResource(HA rrayPool.java:809) at org.ow2.jonas.resource.internal.pool.lib.HArrayPool.feedFreeList(HArr ayPool.java:1248) at org.ow2.jonas.resource.internal.pool.lib.HArrayPool.setMinSize(HArray Pool.java:420) at org.ow2.jonas.resource.internal.cm.ConnectionManagerImpl.setResourceA dapter(ConnectionManagerImpl.java:419) at org.ow2.jonas.resource.internal.Rar.processRar(Rar.java:466) at org.ow2.jonas.resource.internal.JOnASResourceService$2.execute(JOnASR esourceService.java:440) at org.ow2.jonas.resource.internal.JOnASResourceService$2.execute(JOnASR esourceService.java:438) at org.ow2.jonas.lib.execution.RunnableHelper.execute(RunnableHelper.jav a:60) at org.ow2.jonas.resource.internal.JOnASResourceService._createRA(JOnAS ResourceService.java:445) ... 14 more Caused by: javax.resource.ResourceException: Class Name not found:oracle.jdbc.xa .client.OracleXADataSource at org.ow2.jonas.ee.jdbc.ManagedConnectionFactoryImpl.getDataSource(Mana gedConnectionFactoryImpl.java:437) at org.ow2.jonas.ee.jdbc.XAMCFImpl.createManagedConnection(XAMCFImpl.jav a:50) ... 24 more Caused by: java.lang.ClassNotFoundException: oracle.jdbc.xa.client.OracleXADataS ource not found by org.ow2.jonas.resource [88] at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation (ModuleImpl.java:787) at org.apache.felix.framework.ModuleImpl.access400(ModuleImpl.java:71) at org.apache.felix.framework.ModuleImplModuleClassLoader.loadClass(Mod uleImpl.java:1768) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at org.ow2.jonas.ee.jdbc.ManagedConnectionFactoryImpl.getDataSource(Mana gedConnectionFactoryImpl.java:430) ... 25 more 2011-04-26 16:45:40,665 : DeployableMonitor.checkNewArchives : Problem when tryi ng to find and deploy new archives org.ow2.jonas.deployablemonitor.DeployableMonitorException: Cannot deploy the de ployable 'RARDeployableImpl[archive=D:\Produits\jonas-full-5.2.0\deploy\Oracle1 xads_driver.rar]' at org.ow2.jonas.deployablemonitor.DeployableMonitor.detectNewArchives(D eployableMonitor.java:502) at org.ow2.jonas.deployablemonitor.DeployableMonitor.checkNewArchives(De ployableMonitor.java:306) at org.ow2.jonas.deployablemonitor.DeployableMonitor.run(DeployableMonit or.java:216) Caused by: org.ow2.util.ee.deploy.api.deployer.DeployerException: Cannot deploy the RAR deployable 'RARDeployableImpl[archive=D:\Produits\jonas-full-5.2.0\deplo y\Oracle1_xads_driver.rar]'. at org.ow2.jonas.resource.internal.RARDeployer.doDeploy(RARDeployer.java :81) at org.ow2.util.ee.deploy.impl.deployer.AbsDeployer$1.execute(AbsDeploye r.java:96) at org.ow2.util.ee.deploy.impl.deployer.AbsDeployer$1.execute(AbsDeploye r.java:95) at org.ow2.util.execution.helper.RunnableHelper.execute(RunnableHelper.j ava:77) at org.ow2.util.ee.deploy.impl.deployer.AbsDeployer.deploy(AbsDeployer.j ava:94) at org.ow2.util.ee.deploy.impl.deployer.DeployerManager.deploy(DeployerM anager.java:129) at org.ow2.jonas.deployablemonitor.DeployableMonitor.detectNewArchives(D eployableMonitor.java:490) ... 2 more Caused by: org.ow2.jonas.resource.ResourceServiceException : Error when deployin g the rar file: D:\Produits\jonas-full-5.2.0\deploy\Oracle1_xads_driver.rar: org .ow2.jonas.resource.ResourceServiceException : Error processing Rar: Class Name not found:oracle.jdbc.xa.client.OracleXADataSource: javax.resource.ResourceExcep tion: Class Name not found:oracle.jdbc.xa.client.OracleXADataSource at org.ow2.jonas.resource.internal.JOnASResourceService.__deployRar(JOnA SResourceService.java:813) at org.ow2.jonas.resource.internal.JOnASResourceService.deployRar(JOnASR esourceService.java) at org.ow2.jonas.resource.internal.RARDeployer.doDeploy(RARDeployer.java :79) ... 8 more Caused by: org.ow2.jonas.resource.ResourceServiceException : Error processing Ra r: Class Name not found:oracle.jdbc.xa.client.OracleXADataSource: javax.resource .ResourceException: Class Name not found:oracle.jdbc.xa.client.OracleXADataSourc e at org.ow2.jonas.resource.internal.JOnASResourceService.__createRA(JOnAS ResourceService.java:472) at org.ow2.jonas.resource.internal.JOnASResourceService.createRA(JOnASRe sourceService.java) at org.ow2.jonas.resource.internal.JOnASResourceService.__createResource Adapter(JOnASResourceService.java:352) at org.ow2.jonas.resource.internal.JOnASResourceService.createResourceAd apter(JOnASResourceService.java) at org.ow2.jonas.resource.internal.JOnASResourceService.__deployRar(JOnA SResourceService.java:808) ... 10 more Caused by: javax.resource.ResourceException: Class Name not found:oracle.jdbc.xa .client.OracleXADataSource at org.ow2.jonas.ee.jdbc.XAMCFImpl.createManagedConnection(XAMCFImpl.jav a:53) at org.ow2.jonas.resource.internal.cm.ConnectionManagerImpl.createResour ce(ConnectionManagerImpl.java:860) at org.ow2.jonas.resource.internal.pool.lib.HArrayPool.createResource(HA rrayPool.java:809) at org.ow2.jonas.resource.internal.pool.lib.HArrayPool.feedFreeList(HArr ayPool.java:1248) at org.ow2.jonas.resource.internal.pool.lib.HArrayPool.setMinSize(HArray Pool.java:420) at org.ow2.jonas.resource.internal.cm.ConnectionManagerImpl.setResourceA dapter(ConnectionManagerImpl.java:419) at org.ow2.jonas.resource.internal.Rar.processRar(Rar.java:466) at org.ow2.jonas.resource.internal.JOnASResourceService$2.execute(JOnASR esourceService.java:440) at org.ow2.jonas.resource.internal.JOnASResourceService$2.execute(JOnASR esourceService.java:438) at org.ow2.jonas.lib.execution.RunnableHelper.execute(RunnableHelper.jav a:60) at org.ow2.jonas.resource.internal.JOnASResourceService.__createRA(JOnAS ResourceService.java:445) ... 14 more Caused by: javax.resource.ResourceException: Class Name not found:oracle.jdbc.xa .client.OracleXADataSource at org.ow2.jonas.ee.jdbc.ManagedConnectionFactoryImpl.getDataSource(Mana gedConnectionFactoryImpl.java:437) at org.ow2.jonas.ee.jdbc.XAMCFImpl.createManagedConnection(XAMCFImpl.jav a:50) ... 24 more Caused by: java.lang.ClassNotFoundException: oracle.jdbc.xa.client.OracleXADataS ource not found by org.ow2.jonas.resource [88] at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation (ModuleImpl.java:787) at org.apache.felix.framework.ModuleImpl.access400(ModuleImpl.java:71) at org.apache.felix.framework.ModuleImplModuleClassLoader.loadClass(Mod uleImpl.java:1768) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at org.ow2.jonas.ee.jdbc.ManagedConnectionFactoryImpl.getDataSource(Mana gedConnectionFactoryImpl.java:430) ... 25 more {noformat}
Best regards Pascale