Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7408161
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T05:51:48+00:00 2026-05-29T05:51:48+00:00

I am creaing a soap based web service with JAXB and Spring framework to

  • 0

I am creaing a soap based web service with JAXB and Spring framework to throw it all together. I am generating the wsdl file dynamically using spring’s web services but when I try and access it, I am getting the following error:

java.lang.NoSuchMethodError: org.apache.xpath.XPathContext.<init>(Z)V
at org.apache.xpath.jaxp.XPathExpressionImpl.eval(XPathExpressionImpl.java:115)
at org.apache.xpath.jaxp.XPathExpressionImpl.eval(XPathExpressionImpl.java:99)
at org.apache.xpath.jaxp.XPathExpressionImpl.evaluate(XPathExpressionImpl.java:184)
at org.springframework.xml.xpath.Jaxp13XPathExpressionFactory$Jaxp13XPathExpression.evaluate(Jaxp13XPathExpressionFactory.java:114)
at org.springframework.xml.xpath.Jaxp13XPathExpressionFactory$Jaxp13XPathExpression.evaluateAsNodeList(Jaxp13XPathExpressionFactory.java:106)
at org.springframework.ws.transport.http.WsdlDefinitionHandlerAdapter.transformLocations(WsdlDefinitionHandlerAdapter.java:200)
at org.springframework.ws.transport.http.WsdlDefinitionHandlerAdapter.handle(WsdlDefinitionHandlerAdapter.java:128)
at org.springframework.ws.transport.http.MessageDispatcherServlet.doService(MessageDispatcherServlet.java:213)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)

Now first of all, I have never seen (Z)V at the end of a NoSuchMethodError before so I am unsure what that means, but I am also getting a very limited stack trace here. I also do not understand how a class in the same project could call a method that does not exist. If anyone has some ideas as to where I should start looking to resolve this, that would be great. More information can of course be provided upon request.

EDIT:

So using the mvn depedency:tree command to see if there are mutiple jars with different versions of xpath I get the following output:

--- maven-dependency-plugin:2.1:tree (default-cli) @ LicensingSOAPService ---
[INFO] com.cepstral.licensing:LicensingSOAPService:war:0.1
[INFO] +- junit:junit:jar:3.8.1:test
[INFO] +- com.sun.xml.messaging.saaj:saaj-impl:jar:1.3:runtime
[INFO] |  \- javax.xml.soap:saaj-api:jar:1.3:runtime
[INFO] +- org.springframework.ws:spring-ws-core:jar:2.0.3.RELEASE:compile
[INFO] |  +- org.springframework.ws:spring-xml:jar:2.0.3.RELEASE:compile
[INFO] |  +- wsdl4j:wsdl4j:jar:1.6.1:compile
[INFO] |  +- javax.xml.stream:stax-api:jar:1.0-2:compile
[INFO] |  \- commons-logging:commons-logging:jar:1.1.1:compile
[INFO] +- org.springframework.ws:spring-ws-security:jar:2.0.3.RELEASE:runtime
[INFO] |  +- com.sun.xml.wsit:xws-security:jar:1.3.1:runtime
[INFO] |  +- com.sun.xml.wsit:wsit-rt:jar:1.1:runtime
[INFO] |  \- org.apache.ws.security:wss4j:jar:1.5.8:runtime
[INFO] |     \- org.apache.santuario:xmlsec:jar:1.4.3:runtime
[INFO] +- javax.xml.bind:jaxb-api:jar:2.0:compile
[INFO] |  +- javax.xml.bind:jsr173_api:jar:1.0:compile
[INFO] |  \- javax.activation:activation:jar:1.1:compile
[INFO] +- com.sun.xml.bind:jaxb-impl:jar:2.0.3:compile
[INFO] +- org.springframework:spring-context:jar:3.1.0.RELEASE:compile
[INFO] |  +- org.springframework:spring-core:jar:3.1.0.RELEASE:compile
[INFO] |  +- org.springframework:spring-expression:jar:3.1.0.RELEASE:compile
[INFO] |  \- org.springframework:spring-asm:jar:3.1.0.RELEASE:compile
[INFO] +- org.springframework:spring-beans:jar:3.1.0.RELEASE:compile
[INFO] +- org.springframework:spring-aop:jar:3.1.0.RELEASE:compile
[INFO] |  \- aopalliance:aopalliance:jar:1.0:compile
[INFO] +- org.springframework:spring-web:jar:3.1.0.RELEASE:compile
[INFO] +- org.jdom:jdom:jar:1.1.2:compile
[INFO] |  \- jaxen:jaxen:jar:1.1.3:compile
[INFO] |     +- dom4j:dom4j:jar:1.6.1:compile
[INFO] |     +- jdom:jdom:jar:1.0:compile
[INFO] |     +- xml-apis:xml-apis:jar:1.3.02:compile
[INFO] |     +- xerces:xercesImpl:jar:2.6.2:compile
[INFO] |     \- xom:xom:jar:1.0:compile
[INFO] |        +- xerces:xmlParserAPIs:jar:2.6.2:compile
[INFO] |        +- xalan:xalan:jar:2.7.1:compile
[INFO] |        \- com.ibm.icu:icu4j:jar:2.6.1:compile
[INFO] +- org.springframework:spring-webmvc:jar:3.1.0.RELEASE:compile
[INFO] |  \- org.springframework:spring-context-support:jar:3.1.0.RELEASE:compile
[INFO] +- org.springframework:spring-jdbc:jar:3.1.0.RELEASE:compile
[INFO] |  \- org.springframework:spring-tx:jar:3.0.6.RELEASE:compile
[INFO] +- org.springframework:spring-oxm:jar:3.1.0.RELEASE:compile
[INFO] |  \- commons-lang:commons-lang:jar:2.5:compile
[INFO] +- org.springframework.security:spring-security-core:jar:3.1.0.RELEASE:compile
[INFO] |  \- org.springframework.security:spring-security-crypto:jar:3.1.0.RELEASE:compile
[INFO] \- commons-dbcp:commons-dbcp:jar:1.4:compile
[INFO]    \- commons-pool:commons-pool:jar:1.5.4:compile

I do not see anything suspicious, so I am not really sure where else to go. I am continuing to try and use the -verbose option of glassfish to trace errors. Thanks everyone.

Edit 2: So in the glassfish log it shows the following:

[Loaded org.springframework.web.context.request.AbstractRequestAttributes from file:/C:/glassfish/glassfish/domains/domain1/applications/licensingSoap/WEB-INF/lib/spring-web-3.1.0.RELEASE.jar]
[Loaded org.springframework.web.context.request.ServletRequestAttributes from file:/C:/glassfish/glassfish/domains/domain1/applications/licensingSoap/WEB-INF/lib/spring-web-3.1.0.RELEASE.jar]
[Loaded org.apache.xml.dtm.DTMManager from file:/C:/glassfish/glassfish/domains/domain1/applications/licensingSoap/WEB-INF/lib/xalan-2.6.0.jar]
[Loaded org.apache.xpath.XPathContext from file:/C:/glassfish/glassfish/domains/domain1/applications/licensingSoap/WEB-INF/lib/xalan-2.6.0.jar]
[Loaded org.apache.xml.dtm.ObjectFactory$ConfigurationError from file:/C:/glassfish/glassfish/domains/domain1/applications/licensingSoap/WEB-INF/lib/xalan-2.6.0.jar]
[Loaded org.apache.xml.dtm.DTMException from file:/C:/glassfish/glassfish/domains/domain1/applications/licensingSoap/WEB-INF/lib/xalan-2.6.0.jar]
[Loaded org.apache.xml.dtm.DTMConfigurationException from file:/C:/glassfish/glassfish/domains/domain1/applications/licensingSoap/WEB-INF/lib/xalan-2.6.0.jar]
[Loaded org.apache.xml.dtm.DTM from file:/C:/glassfish/glassfish/domains/domain1/applications/licensingSoap/WEB-INF/lib/xalan-2.6.0.jar]
[Loaded org.apache.xalan.extensions.ExpressionContext from file:/C:/glassfish/glassfish/domains/domain1/applications/licensingSoap/WEB-INF/lib/xalan-2.6.0.jar]
[Loaded org.apache.xml.utils.ObjectStack from file:/C:/glassfish/glassfish/domains/domain1/applications/licensingSoap/WEB-INF/lib/xalan-2.6.0.jar]
[Loaded org.apache.xml.utils.IntVector from file:/C:/glassfish/glassfish/domains/domain1/applications/licensingSoap/WEB-INF/lib/xalan-2.6.0.jar]
[Loaded org.apache.xml.utils.IntStack from file:/C:/glassfish/glassfish/domains/domain1/applications/licensingSoap/WEB-INF/lib/xalan-2.6.0.jar]

which shows for sure that somewhere the xalan-2.6.0 jar is being loaded, but when I look in the target\licensingSoap folder of my maven project, there is only the xalan-2.7.1 jar which I am assuming is the one I want. I have no idea how this jar is cropping up at runtime on glassfish. Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T05:51:48+00:00Added an answer on May 29, 2026 at 5:51 am

    You will probably be picking up the wrong version of a class file from somewhere.
    Re-run with -verbose:class to see where all these classes are loaded from.
    If you need help interpretting the results, please post the results here (if you can – dunno what size you’re allowed!).

    HTH,

    David

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any way to consume a SOAP based Spring web service without generating
I have a ASP.NET SOAP web service whose web method creates a PDF file,
I created on wcf web service and trying to test with SOAP UI. When
I realize it's possible to create a PHP Web Service using SOAP, however, are
I am creating a SOAP service using JAX-WS and JAXB, by annotating the classes.
I am creating a simple SOAP web service using a SLSB and JAX-WS annotations.
i am creating a simple SOAP web service. i am to ensure that it
Given that RESTful web services are all based around the sacred idea that everything
We are currently building a pile of SOAP Web Service to front the access
i'm rewriting a soap web service from .net to php. by default, php is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.