Results 1 to 2 of 2

Thread: java.lang.NoSuchMethodError with JBOSS 4.0.2

  1. #1
    Join Date
    Oct 2006
    Posts
    9

    Default java.lang.NoSuchMethodError with JBOSS 4.0.2

    Using spring ws 1.5.5, when I load my WSDL, using:
    Code:
        <bean id="serviceName" class="org.springframework.ws.wsdl.wsdl11.DefaultWsdl11Definition">
                    <property name="schema" ref="WebDVRServiceSchema" />
    						    <property name="portTypeName" value="serviceNamed" />
    						    <property name="locationUri" value="http://localhost:8080/service/" />
        </bean>
    I get the following error:

    Code:
    java.lang.NoSuchMethodError: org.w3c.dom.Document.getDocumentURI()Ljava/lang/String;
    	org.springframework.ws.transport.http.LastModifiedHelper.getLastModified(LastModifiedHelper.java:50)
    	org.springframework.ws.transport.http.WsdlDefinitionHandlerAdapter.getLastModified(WsdlDefinitionHandlerAdapter.java:113)
    	org.springframework.ws.transport.http.MessageDispatcherServlet.getLastModified(MessageDispatcherServlet.java:245)
    	javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
    I think this is a classloader issue with JBOSS, using the wrong xml-apis library. Has anyone else had this issue or advice how to solve it?

  2. #2
    Join Date
    Oct 2006
    Posts
    9

    Default Downgrading helped

    I downgraded to spring 1.0.4, replaced the messageFactory:

    Code:
    <bean id="messageFactory" class="org.springframework.ws.soap.axiom.AxiomSoapMessageFactory">
        <property name="payloadCaching" value="true"/>
      </bean>
    I then provided a stax implementation and it is working.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •