mayday mayday jms-ra.rar is down !
jamshed.katta Jun 27, 2011 11:52 AMI am using jboss6 with jdk6 i am writing an application that uses MDBs and Maven:
Out of the blue my jms-ra.rar has gone down:
Heres the trace :
DEPLOYMENTS IN ERROR: Name -> Error
vfs:///opt/jboss6/server/default/deploy/jms-ra.rar -> org.jboss.deployers.spi.DeploymentException: Error for resource adapter class org.hornetq.ra.HornetQResourceAdapter accessing property setter ConfigPropertyMetaData@645882[name=ConnectionParameters type=java.lang.String value=server-id=0 descriptions=[DescriptionMetaData@de873[language=en description=The transport configuration. These values must be in the form of key=val;key=val;]]]
DEPLOYMENTS IN ERROR: Deployment "vfs:///opt/jboss6/server/default/deploy/jms-ra.rar" is in error due to the following reason(s): java.lang.LinkageError: loader constraint violation: loader (instance of ) previously initiated loading for a different type with name "javax/transaction/xa/XAResource"
2011-06-20 04:21:49,876 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (ResourceContainer.invoker.nonDaemon-8) Error installing to Start: name=jboss.jca:name='jms-ra.rar',service=RARDeployment state=Create mode=Manual requiredState=Installed: org.jboss.deployers.spi.DeploymentException: Error for resource adapter class org.hornetq.ra.HornetQResourceAdapter accessing property setter ConfigPropertyMetaData@10001b1[name=ConnectionParameters type=java.lang.String value=server-id=0 descriptions=[DescriptionMetaData@1e1aa09[language=en description=The transport configuration. These values must be in the form of key=val;key=val;]]]
2011-06-20 04:21:49,754 INFO [org.jboss.profileservice.management.upload.remoting.DeployHandler] (ResourceContainer.invoker.nonDaemon-8) invoke, payload: {DeploymentTargetID=names=[vfs:///opt/jboss6/server/default/deploy/jms-ra.rar]}, parameter: start 2011-06-20 04:21:49,840 INFO [org.jboss.resource.deployers.RARDeployment] (ResourceContainer.invoker.nonDaemon-8) Required license terms exist, view vfs:/opt/jboss6/server/default/deploy/jms-ra.rar/META-INF/ra.xml 2011-06-20 04:21:49,855 WARN [org.jboss.detailed.classloader.ClassLoaderManager] (ResourceContainer.invoker.nonDaemon-8) Unexpected error during load of:org.hornetq.api.core.client.ClientSession: java.lang.LinkageError: loader constraint violation: loader (instance of ) previously initiated loading for a different type with name "javax/transaction/xa/XAResource"
Heres the pom :
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.mycompany</groupId>
<artifactId>UltimateSMS</artifactId>
<packaging>war</packaging>
<version>1.0-SNAPSHOT</version>
<name>UltimateSMS Java EE 6 Webapp</name>
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.0</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jboss-maven-plugin</artifactId>
<version>1.5.0</version>
<configuration>
<jbossHome>/opt/jboss6</jbossHome>
<serverName>default</serverName>
<fileName>target/UltimateSMSpro.war</fileName>
<path>/UltimateSMS</path>
</configuration>
</plugin>
</plugins>
<finalName>UltimateSMSpro</finalName>
</build>
<dependencies>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>5.14.9</version>
</dependency>
<dependency>
<groupId>postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>9.0-801.jdbc4</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.codehaus.mojo.hibernate3</groupId>
<artifactId>maven-hibernate3</artifactId>
<version>2.2</version>
<type>pom</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
<version>1.2.1</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-io</artifactId>
<version>1.3.2</version>
</dependency>
<dependency>
<groupId>net.sf.opencsv</groupId>
<artifactId>opencsv</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>3.6.3.Final</version>
</dependency>
<!-- Hibernate c3p0 connection pool -->
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-c3p0</artifactId>
<version>3.6.3.Final</version>
</dependency>
<dependency>
<groupId>javassist</groupId>
<artifactId>javassist</artifactId>
<version>3.12.1.GA</version>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.12</version>
</dependency>
<dependency>
<groupId>net.sf.ehcache</groupId>
<artifactId>ehcache-core</artifactId>
<version>2.4.2</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
<version>1.5.6</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.5.6</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-api</artifactId>
<version>6.0</version>
<!-- Added below -->
<type>jar</type>
<scope>provided</scope>
<!-- end -->
</dependency>
<dependency>
<groupId>trove</groupId>
<artifactId>trove</artifactId>
<version>1.1-beta-5</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>javax.faces</groupId>
<artifactId>jsf-impl</artifactId>
<version>1.2-b19</version>
</dependency>
<dependency>
<groupId>javax.faces</groupId>
<artifactId>jsf-api</artifactId>
<version>1.2</version>
</dependency>
<dependency>
<groupId>cglib</groupId>
<artifactId>cglib</artifactId>
<version>2.1_2</version>
</dependency>
</dependencies>
</project>
could a dependent jar cause this problem ?
Some questions that might help:
1) when does it drop?
The file is down and doesnot come up even if i undeploy the application
the rar doesnot come up.
2) after how long - look in the logs if you can see some clue of?
i checked the logs, an error comes up saying jms-ra.rar is down.
3) what happens when it drop?
When the rar goes down the jms-queues donot work.
4) Is jms-ra.rar properly registered in the beggining?
Yes the file was working properly in the begining.
50 Try running on jboss5:
I cant run the app on jboss5 as it uses many dependencies specific to jboss6.
What do i do ?