<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Can't install java agent on jboss 7.1.1 in AppD Archive</title>
    <link>https://community.splunk.com/t5/AppD-Archive/Can-t-install-java-agent-on-jboss-7-1-1/m-p/723360#M1434</link>
    <description>&lt;P&gt;My application deploys well as normal, but as soon as I install the java agent I get the following error:&lt;/P&gt;

&lt;PRE&gt;Caused by: java.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method "org.postgresql.xa.PGXAConnection.getXAResource()Ljavax/transaction/xa/XAResource;" the class loader (instance of org/jboss/modules/ModuleClassLoader) of the current class, org/postgresql/xa/PGXAConnection, and the class loader (instance of &amp;lt;bootloader&amp;gt;) for interface javax/sql/XAConnection have different Class objects for the type on/xa/XAResource; used in the signature
  at org.postgresql.xa.jdbc3.AbstractJdbc3XADataSource.getXAConnection(AbstractJdbc3XADataSource.java:55)
  at org.postgresql.xa.jdbc3.AbstractJdbc3XADataSource.getXAConnection(AbstractJdbc3XADataSource.java:39)
  at org.jboss.jca.adapters.jdbc.xa.XAManagedConnectionFactory.getXAManagedConnection(XAManagedConnectionFactory.java:430)&lt;/PRE&gt;

&lt;P&gt;Any ideas?&lt;/P&gt;</description>
    <pubDate>Fri, 04 Oct 2013 18:14:24 GMT</pubDate>
    <dc:creator>CommunityUser</dc:creator>
    <dc:date>2013-10-04T18:14:24Z</dc:date>
    <item>
      <title>Can't install java agent on jboss 7.1.1</title>
      <link>https://community.splunk.com/t5/AppD-Archive/Can-t-install-java-agent-on-jboss-7-1-1/m-p/723360#M1434</link>
      <description>&lt;P&gt;My application deploys well as normal, but as soon as I install the java agent I get the following error:&lt;/P&gt;

&lt;PRE&gt;Caused by: java.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method "org.postgresql.xa.PGXAConnection.getXAResource()Ljavax/transaction/xa/XAResource;" the class loader (instance of org/jboss/modules/ModuleClassLoader) of the current class, org/postgresql/xa/PGXAConnection, and the class loader (instance of &amp;lt;bootloader&amp;gt;) for interface javax/sql/XAConnection have different Class objects for the type on/xa/XAResource; used in the signature
  at org.postgresql.xa.jdbc3.AbstractJdbc3XADataSource.getXAConnection(AbstractJdbc3XADataSource.java:55)
  at org.postgresql.xa.jdbc3.AbstractJdbc3XADataSource.getXAConnection(AbstractJdbc3XADataSource.java:39)
  at org.jboss.jca.adapters.jdbc.xa.XAManagedConnectionFactory.getXAManagedConnection(XAManagedConnectionFactory.java:430)&lt;/PRE&gt;

&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2013 18:14:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/AppD-Archive/Can-t-install-java-agent-on-jboss-7-1-1/m-p/723360#M1434</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2013-10-04T18:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: Can't install java agent on jboss 7.1.1</title>
      <link>https://community.splunk.com/t5/AppD-Archive/Can-t-install-java-agent-on-jboss-7-1-1/m-p/723361#M1435</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;

&lt;P&gt;We are getting the same issue with mysql drive and jboss 7.1.1&lt;/P&gt;

&lt;P&gt;Caused by: java.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method "com.mysql.jdbc.jdbc2.optional.MysqlXAConnection.getXAResource()Ljavax/transaction/xa/XAResource;" the class loader (instance of org/jboss/modules/ModuleClassLoader) of the current class, com/mysql/jdbc/jdbc2/optional/MysqlXAConnection, and the class loader (instance of &amp;lt;bootloader&amp;gt;) for interface javax/sql/XAConnection have different Class objects for the type javax/transaction/xa/XAResource; used in the signature&lt;BR /&gt; at com.mysql.jdbc.jdbc2.optional.MysqlXADataSource.wrapConnection(MysqlXADataSource.java:76) [mysql-connector-java-5.1.24.jar:]&lt;BR /&gt; at com.mysql.jdbc.jdbc2.optional.MysqlXADataSource.getXAConnection(MysqlXADataSource.java:63) [mysql-connector-java-5.1.24.jar:]&lt;BR /&gt; at org.jboss.jca.adapters.jdbc.xa.XAManagedConnectionFactory.getXAManagedConnection(XAManagedConnectionFactory.java:430)&lt;/P&gt;


&lt;P&gt;Only happens for xa-datasources,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;lt;xa-datasource jndi-name="java:jboss/datasources/123DataSource" pool-name="&lt;SPAN&gt;123DataSource&lt;/SPAN&gt;" enabled="true" use-java-context="true"&amp;gt;&lt;BR /&gt; &amp;lt;xa-datasource-property name="URL"&amp;gt;&lt;BR /&gt; jdbc:mysql://server.example.com:3306/database?characterEncoding=UTF-8&amp;amp;amp;useUnicode=true&lt;BR /&gt; &amp;lt;/xa-datasource-property&amp;gt;&lt;BR /&gt; &amp;lt;driver&amp;gt;mysql&amp;lt;/driver&amp;gt;&lt;BR /&gt; &amp;lt;xa-pool&amp;gt;&lt;BR /&gt; &amp;lt;max-pool-size&amp;gt;10&amp;lt;/max-pool-size&amp;gt;&lt;BR /&gt; &amp;lt;/xa-pool&amp;gt;&lt;BR /&gt; &amp;lt;security&amp;gt;&lt;BR /&gt; &amp;lt;user-name&amp;gt;username&amp;lt;/user-name&amp;gt;&lt;BR /&gt; &amp;lt;password&amp;gt;password&amp;lt;/password&amp;gt;&lt;BR /&gt; &amp;lt;/security&amp;gt;&lt;BR /&gt; &amp;lt;timeout&amp;gt;&lt;BR /&gt; &amp;lt;idle-timeout-minutes&amp;gt;2&amp;lt;/idle-timeout-minutes&amp;gt;&lt;BR /&gt; &amp;lt;/timeout&amp;gt;&lt;BR /&gt; &amp;lt;statement&amp;gt;&lt;BR /&gt; &amp;lt;prepared-statement-cache-size&amp;gt;5&amp;lt;/prepared-statement-cache-size&amp;gt;&lt;BR /&gt; &amp;lt;share-prepared-statements&amp;gt;true&amp;lt;/share-prepared-statements&amp;gt;&lt;BR /&gt; &amp;lt;/statement&amp;gt;&lt;BR /&gt; &amp;lt;/xa-datasource&amp;gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2013 04:19:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/AppD-Archive/Can-t-install-java-agent-on-jboss-7-1-1/m-p/723361#M1435</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2013-12-23T04:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: Can't install java agent on jboss 7.1.1</title>
      <link>https://community.splunk.com/t5/AppD-Archive/Can-t-install-java-agent-on-jboss-7-1-1/m-p/723362#M1436</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Can you please provide the startup scripts used to add -javaagent, if restarting jboss server does not help after adding the following jvm arg: &lt;/P&gt;

&lt;P&gt;-Dappdynamics.bciengine.class.lookahead=!*&lt;/P&gt;

&lt;P&gt;Also can you confirm whether you have added -javaagent arg in both -Xbootclasspath and java_opts, if this is the case, please remvoe javaagent.jar entry -Xbootclasspath args.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Arun&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2013 07:18:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/AppD-Archive/Can-t-install-java-agent-on-jboss-7-1-1/m-p/723362#M1436</guid>
      <dc:creator>Arun_Dasetty</dc:creator>
      <dc:date>2013-12-23T07:18:14Z</dc:date>
    </item>
  </channel>
</rss>

