Of course, the LinkageError also appears when the application is 
Reported as a bug at http://bugs.caucho.com/view.php?id=2705


Mattias Jiderhamn wrote (2008-05-27 17:23):
> Indeed com.caucho.xml.saaj.SOAPMessageImpl extends 
> javax.xml.soap.SOAPMessage which is to be found in saaj.jar, but 
> saaj.jar is NOT included in the Resin dist!
> In fact, saaj.jar is explicitly excluded from the resin.dist.build 
> target of build-common.xml
>     <!--
>         ...
>         <include name="lib/saaj.jar"/>
>     -->
> Why is this?
> How am I supposed to get things going? Put saaj.jar in $RESIN_HOME/lib?
>  /Mattias
> Mattias Jiderhamn wrote (2008-05-27 15:44):
>> Hi list.
>> I am running into an unfamiliar classloader issue when trying to upgrade 
>> to Resin 3.1. Each separate application runs just fine. Although, when I 
>> put two applications both using Apache Axis 1.4, on the same server, I 
>> get a problem.
>> The first application to actually make use of Axis works fine, but when 
>> the second app tries to run Axis code, I end up with
>>   java.lang.LinkageError: loader constraints violated when linking 
>> javax/xml/soap/SOAPMessage class
>>     at org.apache.axis.AxisFault.setFaultCodeAsString(AxisFault.java:386)
>>     at org.apache.axis.AxisFault.<init>(AxisFault.java:239)
>>     ...
>> I can then restart Resin and run the applications in the reverse order, 
>> and now the other one gets the error.
>> I tried moving saaj.jar and jaxrpc.jar needed by Axis from WEB-INF/lib 
>> to the common $SERVER_ROOT/lib and that removed the LinkageError, 
>> however I end up with some NullPointerException instead, which I have 
>> yet to analyze...
>> While trying to to come up with some new ideas, has anybody else ran 
>> into this and found a solution?
>> Or would somebody just be kind and explain what is going on? (The only 
>> explanation I can come up with is that Resin classes are compiled 
>> against classes found in jaxrpc.jar in my setup, but that seems a bit 
>> far fetched.)
>> (Yeah, it would probably be a good idea to replace the SOAP 
>> implemantation altogether, but that does not seem like an option right 
>> now, given the amount of time I have available)
>> Thanks in advance,
>>  /Mattias

resin-interest mailing list

Reply via email to