LinkageError Jboss JCA Adpater RAR when get TConnection

When my application intends access a class from an RAR Tamino JCA adpapter in JBoss throws this exception:

java.lang.LinkageError: Class com/softwareag/tamino/db/API/connection/TConnection violates loader constraints
at com.softwareag.tamino.db.API.connector.spi.AbstractConnectionFactory.createManagedConnection(Unknown Source)
at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:565)
at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:250)
at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:491)
at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:341)
at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:301)
at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:396)
at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:842)
at com.softwareag.tamino.db.API.connector.TaminoDataSourceImpl.getConnectionHandle(Unknown Source)
at com.softwareag.tamino.db.API.connector.TaminoDataSourceImpl.getConnection(Unknown Source)
at aps.TaminoDSUtil.prueba(TaminoDSUtil.java:82)
at org.apache.jsp.prueba_jsp._jspService(prueba_jsp.java:68)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:595)
2007-03-29 18:07:41,312 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.parentTraceEnabled=true

The JCA Adapter was deployed as the tamino help says on:
[TAMINO_HOME]/Tamino/Tamino%204.4.1.1/Documentation/en/inoapi/jcaadmin_jboss.htm#jcaadmin_jboss

but with the tamino-ds.xml file deployed in JBOSS/MYSERVERCONTEXT/deploy/ that it’s the datasource factory which jboss understand.

The Jar TaminoAPI4J.jar it’s in JBOSS/MYSERVERCONTEXT/lib directory, this gives both accesivility to my application an the Resource Adapter (RAR)

The Class TConnection is in the TaminoAPI4J.jar

The very, very odd it’s in the jsp context when get the connection from the TaminoDatasource it’s get succesfull, but in my application context that is WEB-INF/classes this crash with the exception above.

this is the way to get the connection :

InitialContext ic = new InitialContext();
TaminoDataSource tds = (TaminoDataSource) ic.lookup(“java:TaminoDS”);
TConnection con=tds.getConnection();


The tamino-ds.xml:

TaminoDS TaminoJCA_localTx.rar com.softwareag.tamino.db.api.connector.TaminoDataSource

Thank in advance

EUREKA!!! This problem has been solved, see the follow

http://sdqweb.ipd.uka.de/wiki/J2EE-FAQ_java.lang.LinkageError