How can I force a SOAP fault to be returned when JAAS authentication fails?

Solution Unverified - Updated -

Issue

I have a JAX-WS endpoint, and I am configuring my JAAS authentication in web.xml and jboss-web.xml. When authentication fails, no SOAP fault is returned; I only get an HTTP 401 (Unautorized) error. How can I force a SOAP fault to be returned?

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 5.x
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.