Skip to content

Instantly share code, notes, and snippets.

View maeste's full-sized avatar

Stefano Maestri maeste

View GitHub Profile
java.lang.LinkageError: loader constraint violation: loader (instance of org/jboss/modules/ModuleClassLoader) previously initiated loading for a different type with name "javax/transaction/xa/XAResource"
05:41:01,364 ERROR [stderr] at java.lang.Class.getDeclaredMethods0(Native Method)
05:41:01,364 ERROR [stderr] at java.lang.Class.privateGetDeclaredMethods(Class.java:2444)
05:41:01,364 ERROR [stderr] at java.lang.Class.getDeclaredMethod(Class.java:1952)
05:41:01,364 ERROR [stderr] at org.jboss.jca.validator.rules.ra.RAEquals.validate(RAEquals.java:72)
05:41:01,364 ERROR [stderr] at org.jboss.jca.validator.Validator.execRulesOnValidates(Validator.java:129)
05:41:01,364 ERROR [stderr] at org.jboss.jca.validator.Validator.validate(Validator.java:110)
05:41:01,364 ERROR [stderr] at org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer.validateArchive(AbstractResourceAdapterDeployer.java:166)
05:41:01,364 ERROR [stderr] at org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer.createObject
ERROR [server] Service [service jboss.connector.defaultbootstrapcontext] start failed: org.jboss.msc.service.StartException in service service jboss.connector.defaultbootstrapcontext: Failed to start service
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1037)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [:1.6.0_18]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [:1.6.0_18]
at java.lang.Thread.run(Thread.java:636) [:1.6.0_18]
Caused by: org.jboss.msc.inject.InjectionException: Injecting the wrong type (expected class com.arjuna.ats.jbossatx.jta.TransactionManagerService, got class com.arjuna.ats.jbossatx.jta.TransactionManagerDelegate)
at org.jboss.msc.inject.CastingInjector.inject(CastingInjector.java:51)
at org.jboss.msc.service.ServiceControllerImpl.doInject(ServiceControllerImpl.java:729)
at org.jboss.msc.service.ServiceControllerImpl.access$1100(ServiceControllerImpl.java:122)
at org
/*
* JBoss, Home of Professional Open Source.
* Copyright 2010, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
final ResourceAdaptersService raService = new ResourceAdaptersService(resourceAdapters, mdr, txm, config);
final BatchServiceBuilder<ResourceAdapters> serviceBuilder = builder.addService(
ResourceAdaptersServices.RESOURCEADAPTERS_SERVICE, raService);
serviceBuilder.addDependency(MdrServices.IRONJACAMAR_MDR, MetadataRepository.class, mdr);
serviceBuilder.addDependency(TxnServices.JBOSS_TXN_TRANSACTION_MANAGER,
com.arjuna.ats.jbossatx.jta.TransactionManagerService.class, txm);
serviceBuilder.addDependency(ConnectorServices.CONNECTOR_CONFIG_SERVICE, ConnectorSubsystemConfiguration.class, config);
serviceBuilder.setInitialMode(Mode.IMMEDIATE);
<datasources>
<datasource>
blah blah
<validation>
<valid-connection-checker class-name"ANAME">
<property name="prop-name">prop-value</propety>
</alid-connection-checker>
</validation>
</datasource>
</datasources>
@RunWith(Arquillian.class)
public class RaXmlTestCase extends AbstractDeployerTest
{
//-------------------------------------------------------------------------------------||
//---------------------- GIVEN --------------------------------------------------------||
//-------------------------------------------------------------------------------------||
/**
* Define the deployment
* @return The deployment archive
/*
* JBoss, Home of Professional Open Source.
* Copyright 2008, Red Hat Middleware LLC, and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
/**
* System property substitution
* @param input The input string
* @return The output
*/
protected String getSubstitutionValue(String input)
{
if (input == null || input.trim().equals(""))
return input;
16:17:54,715 ERROR [org.jboss.msc] (pool-2-thread-6) MSC-00001: Failed to start service jboss.ra.jdbc-local: org.jboss.msc.service.StartException in service jboss.ra.jdbc-local: Failed to start RA deployment [jdbc-local]
at org.jboss.as.connector.metadata.deployment.ResourceAdapterDeploymentService.start(ResourceAdapterDeploymentService.java:95)
at org.jboss.msc.service.ServiceInstanceImpl$StartTask.run(ServiceInstanceImpl.java:1163)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [:1.6.0_18]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [:1.6.0_18]
at java.lang.Thread.run(Thread.java:636) [:1.6.0_18]
Caused by: org.jboss.jca.deployers.common.DeployException: Deployment file:/dati/project/RH/jboss-as/build/target/jboss-7.0.0.Alpha2/standalone/tmp/vfs/tempb39056e6e8956145/content-19dff79344bfc882/contents/ failed
at org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer.createObjectsAndInjectValue(AbstractResourceAdapterDeplo
(MSC service thread 1-3) Error during the deployment of java:/H2DS: org.jboss.jca.deployers.common.DeployException: Deployment org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory failed
at org.jboss.as.connector.subsystems.datasources.DataSourceDeploymentService$AS7Deployer.initAndInject(DataSourceDeploymentService.java:182)
at org.jboss.jca.deployers.common.AbstractDsDeployer.deployDataSource(AbstractDsDeployer.java:256)
at org.jboss.jca.deployers.common.AbstractDsDeployer.createObjectsAndInjectValue(AbstractDsDeployer.java:163)
at org.jboss.as.connector.subsystems.datasources.DataSourceDeploymentService$AS7Deployer.doDeploy(DataSourceDeploymentService.java:131)
at org.jboss.as.connector.subsystems.datasources.DataSourceDeploymentService.start(DataSourceDeploymentService.java:93)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1367)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [:1.6.0_18]
at java.util.concurrent