0 Replies Latest reply on Feb 28, 2006 3:47 PM by Ashish Srivastava

    Error running JAXMServlet on jBoss-4.0.2

    Ashish Srivastava Newbie

      I have deployed a JAXMServlet (of jaxm-api.jar) on jboss-4.0.2. I am using jdk1.5 and bundling the Sun's saaj APIs with the app. I looked at all the xerces APIs and they all have the getSchema () methods. Not sure what the problem is. Help is highly appreciated. I get the following exception

      java.lang.NoSuchMethodError: javax.xml.parsers.SAXParserFactory.getSchema()Ljava
      x/xml/validation/Schema;
      at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.(SAXParse
      rImpl.java:124)
      at com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl.newSAXPa
      rser(SAXParserFactoryImpl.java:98)
      at com.sun.xml.messaging.saaj.util.ParserPool.get(ParserPool.java:42)
      at com.sun.xml.messaging.saaj.soap.EnvelopeFactory.createEnvelope(Envelo
      peFactory.java:62)
      at com.sun.xml.messaging.saaj.soap.ver1_1.SOAPPart1_1Impl.createEnvelope
      FromSource(SOAPPart1_1Impl.java:39)
      at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl
      .java:98)
      at com.jeppesen.aoc.web.listener.SOAPListener.onMessage(SOAPListener.jav
      a:116)
      at javax.xml.messaging.JAXMServlet.doPost(Unknown Source)
      at com.company.aoc.web.listener.SOAPListener.doPost(SOAPListener.java:1
      02)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:173)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
      lter.java:81)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:173)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
      alve.java:213)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
      alve.java:178)
      at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrinc
      ipalValve.java:39)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
      yAssociationValve.java:153)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
      e.java:59)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
      ava:126)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
      ava:105)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
      ve.java:107)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
      a:148)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
      :856)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
      ssConnection(Http11Protocol.java:744)
      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
      int.java:527)
      at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWor
      kerThread.java:112)
      at java.lang.Thread.run(Thread.java:595)