Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What SAAJ package is used by WebLogic

 
Sonny Benavides
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have had many problems because there're different SAAJ packages with SOAP classes (e.g.):

- com/sun/xml/internal/messaging/saaj/soap/ into rt.jar
- com/sun/xml/messaging/saaj/soap/ into saaj-impl.jar

When WebLogic uses classes from com/sun/xml/internal/messaging/saaj/soap/ and an application is created using classes from com/sun/xml/messaging/saaj/soap/, it throws exceptions like these when the app is deployed:

or

My solution was create a weblogic.xml descriptor with saaj reference and including saaj-impl.jar into the war.
Question is: Can I know what SAAJ package is being used WebLogic Server?

Thanks in advance.
 
James Boswell
Bartender
Posts: 1051
5
Chrome Eclipse IDE Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which version of Weblogic are you using?
 
Sonny Benavides
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Im using WebLogic Server 11g (v. 10.3.4.0). Thank you.
 
James Boswell
Bartender
Posts: 1051
5
Chrome Eclipse IDE Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use the following code to identify the version of SAAJ Weblogic is using:



I believe by default it is weblogic.webservice.core.soap.MessageFactoryImpl (SAAJ 1.1)

To use SAAJ 1.3, you need to set the system property -Djavax.xml.soap.MessageFactory=weblogic.xml.saaj.MessageFactoryImpl.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic