Announcement Announcement Module
Collapse
No announcement yet.
java.lang.NoSuchMethodError with JBOSS 4.0.2 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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.

    Comment

    Working...
    X