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

  • Home
  • SEARCH
  • 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 7936243
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T22:09:15+00:00 2026-06-03T22:09:15+00:00

i have 2 web services, both work just fine when i test them with

  • 0

i have 2 web services, both work just fine when i test them with a client. but when i try to build the port to one web service from another web service JBOSS just explodes with several exceptions:

Exception sending context initialized event to listener instance of
class pt.ist.anacom.shared.security.SecurityInitListener:
javax.xml.ws.WebServiceException:
org.apache.cxf.service.factory.ServiceConstructionException: Failed to
create service.

caused by

org.apache.cxf.service.factory.ServiceConstructionException: Failed to
create service.

caused by

javax.wsdl.WSDLException: WSDLException: faultCode=PARSER_ERROR:
java.lang.ClassCastException:
org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be
cast to org.apache.xerces.xni.parser.XMLParserConfiguration

caused by:

java.lang.ClassCastException:
org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be
cast to org.apache.xerces.xni.parser.XMLParserConfiguration

so i have web service A and web service B. i deploy web service A and then on my contextlistener for web service B i add:

org.stubs.WebServiceA_Service service = new org.stubs.WebServiceA_Service(); // EXPLODES HERE
org.stubs.WebServiceA web = service.getWebServiceAPort(); //never runs this line, crashes before

both web services are implementation first (bottom up?) meaning i define the WebService class, deploy it (JBOSS automatically generates wsdl) and then i consume it.

when i access webserviceA from a test client it just works fine, but not when i try to access it from WebServiceB.

i’ve lost a few days on this already and tried pretty much everything i could.. so any help is greatly appretiated.

  • 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-06-03T22:09:17+00:00Added an answer on June 3, 2026 at 10:09 pm

    I experienced the same problem in multiple cases with deployment of web service to a WebLogic server with the problem being a version conflict between xerces libraries on the server classpath versus what was included with the web service instance.

    In one scenario, the solution was to avoid including the xerces library with the web service application (indicated scope ‘provided’ for the xerces library in the maven pom, if that happens to be your engine). In the other, the solution was to use the filtering classloader feature (of weblogic) to direct the server to use the xerces library included in the application versus the server’s implementation.

    Based on your issue, I looked around for this functionality in jboss and located this article: http://www.mastertheboss.com/jboss-application-server/223-solving-jboss-5-classloading-issues.html

    Hopefully this helps…

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

Sidebar

Related Questions

I have a console application that communicates with a web service. Both of them
I have several web services I need to create for them some testing mechanism
I don't have much experience with web services, but I think I have a
I have an ASP.NET web service running that accepts both HTTP POST and SOAP
I have classes that are needed in both my web service and my server.
I have a website that talks to a remote WCF web service. Both use
I have two applications: c++ service and a RoR web server (they are both
We have SOAP web services in production that are relying on SOAP Headers (containing
I have numerous Web Services in my project that share types. For simplicity I
I have this web service : using System.Web.Services; namespace Contracts { [WebService(Namespace = http://tempuri.org/)]

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.