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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:12:55+00:00 2026-05-26T11:12:55+00:00

I have two WARs deployed to the same Tomcat 7 instance, and both use

  • 0

I have two WARs deployed to the same Tomcat 7 instance, and both use CXF + WSS4J. The two apps communicate via SOAP, and WSS4J interceptors handle SAML assertions in the SOAP headers. When testing each war in isolation everything works fine, but when both apps are deployed and one app sends a SOAP message to the other, I receive the following ClassCastException:

java.lang.ClassCastException: org.apache.ws.security.WSDocInfo cannot be cast to org.apache.ws.security.WSDocInfo

To me, this implies a class loader issue, but what in specific I cant figure out. Each app has its own copy of WSS4J in their respective WEB-INF/lib folders, and I don’t see any WSS4J library in Tomcat’s common libraries.

In production these two apps will most likely never use the same JVM let alone be in the same Tomcat instance, but I will feel more comfortable when I get to the bottom of this issue. It also helps to launch both apps from the same Tomcat instance in development. Does anyone have any ideas what the issue might be?

UPDATE 1:
I deployed each war in separate Tomcat instances that both use the same JVM and the ClassCastException goes away. Must be something I don’t understand with Tomcat class loading?

  • 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-26T11:12:56+00:00Added an answer on May 26, 2026 at 11:12 am

    From the WSS4J issue tracker:

    https://issues.apache.org/jira/browse/WSS-282

    STRTransform JCE provider throws java.lang.ClassCastException: org.jcp.xml.dsig.internal.dom.DOMSubTreeData incompatible with javax.xml.crypto.OctetStreamData in Websphere

    Affected versions: 1.6

    Ick…

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

Sidebar

Related Questions

I have a problem. I have two web apps deployed as wars. Let's call
I have a project which needs to deploy multiple wars on a tomcat instance.
I have two applications written in Java that communicate with each other using XML
I have two classes, and want to include a static instance of one class
I have two relations A and B, both with all integer attributes (A {a1,a2,a3,...}
I have two wars, foo.war and bar.war. foo uses classes from bar. I'm trying
Have two fields start and end, both are dates, I want to write a
I have two Generic Lists with the same objects Type T within them. For
I have two WARS: base-overlay example-app base-overlay has XML config files in src/main/webapp/WEB-INF/spring/*.xml .
Have two variables both containing integers: var input; var value; Need to perform arithmetic

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.