Class not found error SAAJFactory

Hi I am gettign the gollowing error while initilization for authentication.

java.lang.NoClassDefFoundError: com/sun/xml/ws/api/SAAJFactory
 at java.lang.ClassLoader.defineClass1(Native Method)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
 at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
 at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
 at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
 at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
 at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
 at weblogic.wsee.jaxws.WLSContainer.<clinit>(WLSContainer.java:141)
 at weblogic.wsee.jaxws.spi.WLSProvider.<clinit>(WLSProvider.java:46)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
 at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
 at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
 at java.lang.Class.newInstance0(Class.java:355)
 at java.lang.Class.newInstance(Class.java:308)
 at javax.xml.ws.spi.FactoryFinder.newInstance(FactoryFinder.java:31)
 at javax.xml.ws.spi.FactoryFinder.find(FactoryFinder.java:90)
 at javax.xml.ws.spi.Provider.provider(Provider.java:83)
 at javax.xml.ws.Service.<init>(Service.java:56)
 at com.premiereconnect.premconn._2007._02.XOA.<init>(XOA.java:46)

Comments

  • The SAAJFactory class is part of the Apache Axis 2 engine.  You will need to make sure the Axis2 classes are avaialble to your build environment.

    See http://axis.apache.org/axis2/java/core/.

  • HI

    I am using wsimport to parse teh wsdl file and generate the required classes.

    Do you mean I need to generate the class files using Apache axis engine.

     

  • No, sorry - I mistakenly googled SAAJFactory and came up with the Axis reference, but this is a different version of the same class.

    This appears to be a runtime issue, where the SAAJFactory class isn't in your classpath.  Can you verify that you have this class available?

  • Thanks....To update here....This issue got resolved after I used all the Weblogic specific jars...Thanks a lto for help