Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-2335

ClassNotFoundException SAAJMetaFactoryImpl after installing metro 3.0.3 into jboss 4.2.3

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: jbossws-metro-3.0.3
    • Fix Version/s: None
    • Component/s: jbossws-metro
    • Labels:
      None
    • Environment:

      JBoss 4.2.3 GA, JDK 6, WinXP SP3

    • Workaround Description:
      Hide

      I then copied jbossws-client.jar from the client directory of the original jboss-4.2.3.GA distribution, and placed it into the server/default/lib directory (after applying jbossws-metro-3.0.3). Then the
      SAAJMetaFactoryImpl ClassNotFoundException went away but I was getting other exceptions at runtime when issuing SOAP calls.

      Show
      I then copied jbossws-client.jar from the client directory of the original jboss-4.2.3.GA distribution, and placed it into the server/default/lib directory (after applying jbossws-metro-3.0.3). Then the SAAJMetaFactoryImpl ClassNotFoundException went away but I was getting other exceptions at runtime when issuing SOAP calls.

      Description

      I've installed metro 3.0.3 into JBoss 4.2.3 GA. On deploying a WAR file holding a SOAP webservice, I'm getting the following exception.
      (The web service was deploying and running fine using jbossws native on Jboss 4.2.2).

      The cause seems to be that jbossws-client.jar is getting removed by the metro 3.0.3 installation.

      Caused by: java.lang.IllegalStateException: Failed to load javax.xml.soap.MetaFactory: org.jboss.ws.core.soap.SAAJMetaFactoryImpl
      at javax.xml.soap.SAAJFactoryLoader.loadFactory(SAAJFactoryLoader.java:131)
      at javax.xml.soap.SAAJMetaFactory.getInstance(SAAJMetaFactory.java:60)
      at javax.xml.soap.MessageFactory.newInstance(MessageFactory.java:106)
      at com.sun.xml.ws.api.SOAPVersion.<init>(SOAPVersion.java:178)
      at com.sun.xml.ws.api.SOAPVersion.<clinit>(SOAPVersion.java:83)
      ... 37 more
      Caused by: java.lang.ClassNotFoundException: org.jboss.ws.core.soap.SAAJMetaFactoryImpl
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
      at javax.xml.soap.SAAJFactoryLoader.loadFactory(SAAJFactoryLoader.java:125)
      ... 41 more

      Also see:

      http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4174938#4174938
      http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=51&t=006156

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  asoldano Alessio Soldano
                  Reporter:
                  maffeis Silvano Maffeis
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: