java.lang.reflect.InvocationTargetException

Stack Overflow | Jimmy Shen | 5 months ago
  1. 0

    Spring upgrade from 3.0.5 to 4.2.5

    Stack Overflow | 9 months ago | MDaniyal
    java.lang.ClassNotFoundException: com.mysql.jdbc.jdbc2.optional.MysqlXADataSource
  2. 0

    ClassNotFoundException: com.mysql.jdbc.jdbc2.optional.MysqlDataSource

    GitHub | 1 month ago | Eufranio
    java.lang.RuntimeException: java.lang.ClassNotFoundException: com.mysql.jdbc.jdbc2.optional.MysqlDataSource
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Hello, jonas is running in production mode. Through jonasAdmin, when a first deployment goes to error, I try to re-deploy the same resource (after fixing the problem) but jonasAdmin don't want to. Here, the rar is under <rars> directory but it doesn't matter because with <deploy> directory it's the same behaviour. Here is the first deployment with the first normal error (mySQL jdbc jar is absent): 2009-11-19 17:35:48,061 : JOnASResourceService.__deployRar : Error when deploying the rar file: /home/jonas/myJOnAS511Open16/repos/rars/MySQL_DS.rarError processing Rar: null: javax.resource.ResourceException org.ow2.jonas.resource.ResourceServiceException : Error processing Rar: null: javax.resource.ResourceException at org.ow2.jonas.resource.internal.JOnASResourceService.__createRA(JOnASResourceService.java:483) at org.ow2.jonas.resource.internal.JOnASResourceService.createRA(JOnASResourceService.java) at org.ow2.jonas.resource.internal.JOnASResourceService.__createResourceAdapter(JOnASResourceService.java:362) at org.ow2.jonas.resource.internal.JOnASResourceService.createResourceAdapter(JOnASResourceService.java) at org.ow2.jonas.resource.internal.JOnASResourceService.__deployRar(JOnASResourceService.java:823) at org.ow2.jonas.resource.internal.JOnASResourceService.deployRar(JOnASResourceService.java) at org.ow2.jonas.resource.internal.RARDeployer.doDeploy(RARDeployer.java:79) at org.ow2.util.ee.deploy.impl.deployer.AbsDeployer$1.execute(AbsDeployer.java:96) at org.ow2.util.ee.deploy.impl.deployer.AbsDeployer$1.execute(AbsDeployer.java:95) at org.ow2.util.execution.helper.RunnableHelper.execute(RunnableHelper.java:77) at org.ow2.util.ee.deploy.impl.deployer.AbsDeployer.deploy(AbsDeployer.java:94) at org.ow2.util.ee.deploy.impl.deployer.DeployerManager.deploy(DeployerManager.java:129) at org.ow2.jonas.lib.jmbeans.J2EEServer.__deploy(J2EEServer.java:754) at org.ow2.jonas.lib.jmbeans.J2EEServer.deploy(J2EEServer.java) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:458) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:857) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:795) at org.ow2.jonas.lib.management.extensions.base.JonasManagementRepr.invoke(JonasManagementRepr.java:511) at org.ow2.jonas.lib.management.extensions.base.JonasManagementRepr.invoke(JonasManagementRepr.java:466) at org.ow2.jonas.lib.management.extensions.server.ServerManagement.deploy(ServerManagement.java:162) at org.ow2.jonas.lib.management.extensions.manager.ManagementEntryPoint.deploy(ManagementEntryPoint.java:935) at org.ow2.jonas.webapp.jonasadmin.deploy.BaseDeployAction.deployModule(BaseDeployAction.java:843) at org.ow2.jonas.webapp.jonasadmin.deploy.BaseDeployAction.deploy(BaseDeployAction.java:461) at org.ow2.jonas.webapp.jonasadmin.deploy.ApplyDeployConfirmAction.executeAction(ApplyDeployConfirmAction.java:97) at org.ow2.jonas.webapp.jonasadmin.JonasBaseAction.execute(JonasBaseAction.java:127) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525) at org.ow2.jonas.web.tomcat6.CheckOpenResourcesValve.invoke(CheckOpenResourcesValve.java:73) at org.ow2.jonas.web.tomcat6.tx.TransactionValve.invoke(TransactionValve.java:90) at org.ow2.jonas.web.tomcat6.ResetAuthenticationValve.invoke(ResetAuthenticationValve.java:88) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:335) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454) at java.lang.Thread.run(Thread.java:636) Caused by: javax.resource.ResourceException at org.ow2.jonas.ee.jdbc.DataSourceMCFImpl.createManagedConnection(DataSourceMCFImpl.java:55) at org.ow2.jonas.resource.internal.cm.ConnectionManagerImpl.createResource(ConnectionManagerImpl.java:838) at org.ow2.jonas.resource.internal.pool.lib.HArrayPool.createResource(HArrayPool.java:804) at org.ow2.jonas.resource.internal.pool.lib.HArrayPool.adjust(HArrayPool.java:1155) at org.ow2.jonas.resource.internal.pool.lib.HArrayPool.setMinSize(HArrayPool.java:428) at org.ow2.jonas.resource.internal.cm.ConnectionManagerImpl.setResourceAdapter(ConnectionManagerImpl.java:401) at org.ow2.jonas.resource.internal.Rar.processRar(Rar.java:452) at org.ow2.jonas.resource.internal.JOnASResourceService$2.execute(JOnASResourceService.java:451) at org.ow2.jonas.resource.internal.JOnASResourceService$2.execute(JOnASResourceService.java:450) at org.ow2.jonas.lib.execution.RunnableHelper.execute(RunnableHelper.java:60) at org.ow2.jonas.resource.internal.JOnASResourceService.__createRA(JOnASResourceService.java:456) ... 50 more Caused by: javax.resource.ResourceException at org.ow2.jonas.ee.jdbc.Utility.getDataSource(Utility.java:70) at org.ow2.jonas.ee.jdbc.DataSourceMCFImpl.createManagedConnection(DataSourceMCFImpl.java:53) ... 60 more Caused by: java.lang.ClassNotFoundException: com.mysql.jdbc.jdbc2.optional.MysqlDataSource at org.apache.felix.framework.searchpolicy.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:627) at org.apache.felix.framework.searchpolicy.ModuleImpl.access$100(ModuleImpl.java:61) at org.apache.felix.framework.searchpolicy.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1469) at java.lang.ClassLoader.loadClass(ClassLoader.java:268) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:264) at org.ow2.jonas.ee.jdbc.Utility.getDataSource(Utility.java:64) ... 61 more Problem is fixed (mySQL jdbc jar is under lib/ext) But when I try to re-deploy the second time, jonasAdmin says the rar is already deployed: 2009-11-19 17:36:59,575 : BaseModelMBean.invoke : Exception invoking method deploy java.lang.RuntimeException: Archive 'RARDeployableImpl[archive=/home/jonas/myJOnAS511Open16/repos/rars/MySQL_DS.rar]' is already deployed. at org.ow2.jonas.lib.jmbeans.J2EEServer.__deploy(J2EEServer.java:751) at org.ow2.jonas.lib.jmbeans.J2EEServer.deploy(J2EEServer.java) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:458) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:857) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:795) at org.ow2.jonas.lib.management.extensions.base.JonasManagementRepr.invoke(JonasManagementRepr.java:511) at org.ow2.jonas.lib.management.extensions.base.JonasManagementRepr.invoke(JonasManagementRepr.java:466) at org.ow2.jonas.lib.management.extensions.server.ServerManagement.deploy(ServerManagement.java:162) at org.ow2.jonas.lib.management.extensions.manager.ManagementEntryPoint.deploy(ManagementEntryPoint.java:935) at org.ow2.jonas.webapp.jonasadmin.deploy.BaseDeployAction.deployModule(BaseDeployAction.java:843) at org.ow2.jonas.webapp.jonasadmin.deploy.BaseDeployAction.deploy(BaseDeployAction.java:461) at org.ow2.jonas.webapp.jonasadmin.deploy.ApplyDeployConfirmAction.executeAction(ApplyDeployConfirmAction.java:97) at org.ow2.jonas.webapp.jonasadmin.JonasBaseAction.execute(JonasBaseAction.java:127) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525) at org.ow2.jonas.web.tomcat6.CheckOpenResourcesValve.invoke(CheckOpenResourcesValve.java:73) at org.ow2.jonas.web.tomcat6.tx.TransactionValve.invoke(TransactionValve.java:90) at org.ow2.jonas.web.tomcat6.ResetAuthenticationValve.invoke(ResetAuthenticationValve.java:88) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:335) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454) at java.lang.Thread.run(Thread.java:636)

    JIRA | 7 years ago | Matéo Jean-Louis
    javax.resource.ResourceException

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassNotFoundException

      Class [com.mysql.jdbc.jdbc2.optional.MysqlXADataSource] not found

      at MoquiStart$StartClassLoader.loadClass()
    2. Unknown
      MoquiStart$StartClassLoader.loadClass
      1. MoquiStart$StartClassLoader.loadClass(MoquiStart.java:496)
      1 frame
    3. Java RT
      Class.forName
      1. java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      2. java.lang.Class.forName0(Native Method)
      3. java.lang.Class.forName(Class.java:264)
      3 frames
    4. Bitronix Transaction Manager :: Core
      PoolingDataSource.init
      1. bitronix.tm.utils.ClassLoaderUtils.loadClass(ClassLoaderUtils.java:80)
      2. bitronix.tm.resource.common.XAFactoryHelper.createXAFactory(XAFactoryHelper.java:42)
      3. bitronix.tm.resource.common.XAPool.<init>(XAPool.java:94)
      4. bitronix.tm.resource.jdbc.PoolingDataSource.buildXAPool(PoolingDataSource.java:99)
      5. bitronix.tm.resource.jdbc.PoolingDataSource.init(PoolingDataSource.java:86)
      5 frames
    5. org.moqui.impl
      ExecutionContextFactoryImpl.<init>
      1. org.moqui.impl.context.TransactionInternalBitronix.getDataSource(TransactionInternalBitronix.groovy:130)
      2. org.moqui.impl.entity.EntityDatasourceFactoryImpl.init(EntityDatasourceFactoryImpl.groovy:82)
      3. org.moqui.impl.entity.EntityFacadeImpl.initAllDatasources(EntityFacadeImpl.groovy:191)
      4. org.moqui.impl.entity.EntityFacadeImpl.<init>(EntityFacadeImpl.groovy:120)
      5. org.moqui.impl.context.ExecutionContextFactoryImpl.initEntityFacade(ExecutionContextFactoryImpl.groovy:687)
      6. org.moqui.impl.context.ExecutionContextFactoryImpl.<init>(ExecutionContextFactoryImpl.groovy:196)
      6 frames
    6. Java RT
      ServiceLoader$1.next
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:423)
      5. java.lang.Class.newInstance(Class.java:442)
      6. java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:380)
      7. java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404)
      8. java.util.ServiceLoader$1.next(ServiceLoader.java:480)
      8 frames
    7. org.moqui
      Moqui.loadData
      1. org.moqui.Moqui.loadData(Moqui.java:79)
      1 frame
    8. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:498)
      4 frames
    9. Unknown
      MoquiStart.main
      1. MoquiStart.main(MoquiStart.java:114)
      1 frame