I have three webapps set up. I am running the jaxm-remote sample.
One is jaxm-provider.
One is jaxm-provideradmin.
One is jaxm-remote.
I open my browser to the default http port at
http://localhost:9080/jaxm-provideradmin/ and then click in the left
pane to open up Profiles, ebXML and finally HTTP. [This is the
default in WebSphere Studio App Developer 5.0]
Following the progress, I find that the AdminServlet (provider.jar)
calls its initSync() method. This eventually calls new
AttachmentPartImpl() via createAttachmentPart() in MessageImpl (saaj-
ri.jar) and sets the DataContentHandlerFactory. Later the
HttpSOAPConnection post() method is called and the same new
AttachmentPartImpl() is called in the MessageImpl constructor.
So I end up trying the set the DataContentHandlerFactory twice [via
AttachmentPartImpl]. A small part of the stacktrace is:
R java.lang.Error: DataContentHandlerFactory already defined
[03/10/07 15:23:31:094 JST] 36615b2 SystemErr R at
javax.activation.DataHandler.setDataContentHandlerFactory
(DataHandler.java:618)
[03/10/07 15:23:31:094 JST] 36615b2 SystemErr R at
com.sun.xml.messaging.saaj.soap.AttachmentPartImpl.<clinit>
(AttachmentPartImpl.java:35)
[03/10/07 15:23:31:094 JST] 36615b2 SystemErr R at
com.sun.xml.messaging.saaj.soap.MessageImpl.<init>
(MessageImpl.java:124)
[03/10/07 15:23:31:094 JST] 36615b2 SystemErr R at
com.sun.xml.messaging.saaj.soap.MessageFactoryImpl.createMessage
(MessageFactoryImpl.java:32)
[03/10/07 15:23:31:094 JST] 36615b2 SystemErr R at
com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post
(HttpSOAPConnection.java:333)
[03/10/07 15:23:31:094 JST] 36615b2 SystemErr R at
com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedPo
st.run(HttpSOAPConnection.java:142)
[03/10/07 15:23:31:094 JST] 36615b2 SystemErr R at
java.security.AccessController.doPrivileged(Native Method)
[03/10/07 15:23:31:156 JST] 36615b2 SystemErr R at
com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call
(HttpSOAPConnection.java:116)
[03/10/07 15:23:31:156 JST] 36615b2 SystemErr R at
provideradmin.util.MessageUtil.sendMessage(MessageUtil.java:225)
[03/10/07 15:23:31:156 JST] 36615b2 SystemErr R at
provideradmin.util.MessageUtil.initializeConfig(MessageUtil.java:278)
This is very like the Bug Id at:
Bug ID: 4825743 Attachment client fails when in different context
from service.
Is this the same thing? I do not understand how I can achieve the
workaround. I should be able to run the provideradmin tool without
this happening, right?