After you download and unzip the JBoss Application Server 4.x/5.x agent distribution file, locate the openssoclientsdk.jar file in the following directory:
Agent-Home/j2ee_agents/jboss_v42_agent/lib
Agent-Home is where you unzipped the agent distribution file.
Extract the files from openssoclientsdk.jar. For example:
cd /agents/j2ee_agents/jboss_v42_agent/lib jar xvf openssoclientsdk.jar
In each jaxb.properties file, set the javax.xml.bind.context.factory property to the v2 ContextFactory class:
Old value: javax.xml.bind.context.factory=com.sun.xml.bind.ContextFactory_1_0_1
New value: javax.xml.bind.context.factory=com.sun.xml.bind.v2.ContextFactory
Note: The openssoclientsdk.jar contains a number of different jaxb.properties files in various subdirectories. You must edit each of these files, so consider writing a script to edit the files.
Generate a revised openssoclientsdk.jar file. For example:
jar uvf openssoclientsdk.jar *