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 7654631
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T12:18:25+00:00 2026-05-31T12:18:25+00:00

I am using JDK 1.6, JAX-WS RI 2.2.5 Things work perfect when no handler

  • 0

I am using JDK 1.6, JAX-WS RI 2.2.5
Things work perfect when no handler is added at service endpoint. But when a web method is called, after adding SOAP Handler at server side, and handler execute soapMessageContext.getMessage().toString(), the client get Internal Server Error 500 (which means server encountered an error while processing request). And at server side, following trace is printed:

Mar 14, 2012 4:26:15 PM com.sun.xml.ws.transport.http.servlet.WSServletDelegate doGet
SEVERE: caught throwable
java.lang.NoSuchMethodError: com.sun.istack.XMLStreamReaderToContentHandler.<init>(Ljavax/xml/stream/XMLStreamReader;Lorg/xml/sax/ContentHandler;ZZ[Ljava/lang/String;)V
at com.sun.xml.ws.message.stream.StreamMessage.writePayloadTo(StreamMessage.java:355)
at com.sun.xml.ws.message.stream.StreamMessage.writeTo(StreamMessage.java:462)
at com.sun.xml.ws.message.AbstractMessageImpl.readAsSOAPMessage(AbstractMessageImpl.java:198)
at com.sun.xml.ws.handler.SOAPMessageContextImpl.getMessage(SOAPMessageContextImpl.java:84)
at com.myapp.jaxws.TestingSOAPHandler.handleMessage(TestingSOAPHandler.java:21)

After some Googling, it SEEMS its libraries issue. The JAX-WS is also there in JDK 1.6 and I have also added into my project. But when I remove JAX-WS 2.2.5 libs from project, it triggers some classes missing error.

Actually I am not sure, is it libs compatibility or duplication issue or something else. Any help would be highly appreciated.

Here is the end point configuration:

<endpoint name="TestingService" implementation="com.myapp.jaxws.TestingService" url-pattern="/jaxws/TestingService" enable-mtom="true">
<handler-chains xmlns="http://java.sun.com/xml/ns/javaee">
  <handler-chain>
      <handler>
          <handler-name>MyLogicalHandler</handler-name>
          <handler-class>com.myapp.jaxws.TestingLogicalHandler</handler-class>
      </handler>
      <handler>
          <handler-name>MySOAPHandler</handler-name>
          <handler-class>com.myapp.jaxws.TestingSOAPHandler</handler-class>
      </handler>
    </handler-chain>
</handler-chains>
</endpoint>
  • 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-31T12:18:26+00:00Added an answer on May 31, 2026 at 12:18 pm

    Issue resolved. It was JAXB jar conflict, another older JAXB implementation was wrongly put in classpath. And JAXWS 2.2.6 libs were not endorsed, JVM was using JDK older impl. See details here. http://www.bitspedia.com/2012/03/how-to-use-jax-ws-226-with-jdk-16.html

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

Sidebar

Related Questions

I am trying to use jax-ws to generate web service proxy classes, using the
JDK 1.6 includes the capability for using FastInfoset web services via the JAX-WS API.
I have a web service app on Apache Geronimo 2.1.3. I am using JAX-WS,
Using IE 7, JDK 1.6 and Sun Web server 7. Inside the jsp form,
Our desktop-only product at work has been using JDK 1.4.2 until now (also 1.4.2
I am working on a tool which is built using jdk 1.5u22. But, I
I'm using Java 6 for learning more about web Services (JAX-WS). I also read
I am using JDK 1.6.0.18 for my Swing application. I am experiencing very different
First a little background, I'm using jdk 1.6. I've got a 2 column table
I have a relatively simple class. I serialize it using JDK 1.7 on my

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.