aspose file tools*
The moose likes BEA/Weblogic and the fly likes What SAAJ package is used by WebLogic Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "What SAAJ package is used by WebLogic " Watch "What SAAJ package is used by WebLogic " New topic
Author

What SAAJ package is used by WebLogic

Sonny Benavides
Greenhorn

Joined: Nov 19, 2010
Posts: 2
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

Joined: Nov 09, 2011
Posts: 1030
    
    5

Which version of Weblogic are you using?
Sonny Benavides
Greenhorn

Joined: Nov 19, 2010
Posts: 2
Im using WebLogic Server 11g (v. 10.3.4.0). Thank you.
James Boswell
Bartender

Joined: Nov 09, 2011
Posts: 1030
    
    5

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.
 
 
subject: What SAAJ package is used by WebLogic