|
From: Ronald v. K. <rv...@ab...> - 2003-03-14 01:59:39
|
Look at the message below (and the response from Sun), we ran into the same issue on an internal project. It seems to be a bug in SAAJ --------------------------------------------- Renzo Toma wrote: > > Hi Sun people, > > We have JAXM packaged in an EAR file and activation on the > systemclasspath of a BEA Weblogic server. When the AttachmentPartImpl > class (part of SAAJ) of JAXM is loaded in a static block it seems to > define the DataHandler.setDataContentHandlerFactory within Activation. > When the factory is already set Activation throws an Error exception > which JAXM does not catch properly and thus crashes JAXM. > > During development we want to redeploy our EAR a lot, but since > Activation crashes JAXM we are required to coldstart Weblogic. > > I checked with the latest Activation 1.0.2 and SAAJ 1.1.1 in WSDSP 1.1 > and it's still here. > > To cope with this situation we may need to create a quick patch on > Activation which does not throw an Error exception. > But we hope you can fix this on your code. > I talked to our people who own SAAJ and they believe it's a SAAJ problem that they're going to try to address in a future release. ------------------------------------------------- Or in short, you cannot have to apps on one server using the same saaj implementation but deployed twice (in different ear/war/jar) Ronald simon čarni probeerde het volgende duidelijk te maken op 13-3-2003 23:52: > Hi team. > My situation is looks like this: > I implemented MessageListener as a Servlet. Both, MSH and client are > installed on same web server (Tomcat 4.0.4). When the mesage for my > listener arrives I get following error: > > java.lang.Error: DataContentHandlerFactory already defined > > at > javax.activation.DataHandler.setDataContentHandlerFactory(DataHandler.java:628) > > at > com.sun.xml.messaging.saaj.soap.AttachmentPartImpl.<clinit>(AttachmentPartImpl.java:35) > > at > com.sun.xml.messaging.saaj.soap.MessageImpl.<init>(MessageImpl.java:124) > > at > com.sun.xml.messaging.saaj.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:32) > > at hk.hku.cecid.phoenix.message.handler.Request$Monitor.run(Unknown > Source). > > I assume that on one web server only one DataContentHandlerFactory can > be defined. Is there any way to get around this problem??? > > If I just simply copy-paste the client web app to another server it > works without any mistakes, but would really like to have both (MSH > and client) on same server. > > Thank's in advance > > > > Simon > > > > > |