• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

SAAJ version conflict with weblogic

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have some apps developed with JWSDP, which i'm trying to run on Weblogic 9.0 (alt 8.1).
The problem is that i cannot seem to replace weblogics implementation of SAAJ.
I have tried some different approaches:
* adding libs to PRE_CLASSPATH in setDomainEnv.cmd
* distribute all libs in a web app using the weblogic specific tag <prefer-web-inf-classes>true</prefer-web-inf-classes>
* adding the libs to jre directly, in (jre\lib\ext\
* removing Weblogics webservices.jar
* "tweaking" weblogic.jar/webservices.jar removed some configuration and classfiles in them
* adding META-INF/services/* to point out non weblogic factories

However, nothing of the above works, still weblogics implementations are being used!

I get exceptions like this because weblogic doesn't let me use some libs:


I have totally run out of ideas now.. anyone?
[ December 18, 2005: Message edited by: Alex Anderson ]
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Please follow the below steps to resolve "UnsupportedOperationException: This class does not support SAAJ 1.1" issue.

1. Set classpath to latest saaj-impl.jar in startweblogic.cmd
2. Set the below 2 system properties in code.
System.setProperty("javax.xml.soap.MessageFactory","com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl");
System.setProperty("javax.xml.soap.SOAPConnectionFactory","weblogic.wsee.saaj.SOAPConnectionFactoryImpl");

It works for me in weblogic9.2. Let me know if you still face any problem related to "UnsupportedOperationException: SAAJ1.1"

Thanks,
Mani
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic