On May 28, 2008, at 1:23 AM, Mattias Jiderhamn wrote:
> Of course, the LinkageError also appears when the application is
> Reported as a bug at http://bugs.caucho.com/view.php?id=2705
Hmm. Resin shouldn't have any dependencies on saaj any more. I can
put saaj back in 3.1 and remove the dependencies in 3.2
> 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/
>> Mattias Jiderhamn wrote (2008-05-27 15:44):
>>> Hi list.
>>> I am running into an unfamiliar classloader issue when trying to
>>> 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
>>> 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.<init>(AxisFault.java:239)
>>> I can then restart Resin and run the applications in the reverse
>>> and now the other one gets the error.
>>> I tried moving saaj.jar and jaxrpc.jar needed by Axis from WEB-INF/
>>> to the common $SERVER_ROOT/lib and that removed the LinkageError,
>>> however I end up with some NullPointerException instead, which I
>>> 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
>>> 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
>>> far fetched.)
>>> (Yeah, it would probably be a good idea to replace the SOAP
>>> implemantation altogether, but that does not seem like an option
>>> now, given the amount of time I have available)
>>> Thanks in advance,
> resin-interest mailing list
resin-interest mailing list