Unable to have different web context for webservice exposed from EJB3

Solution Verified - Updated -

Issue

We have in one application many EJB3 that expose web service using the @Service and the @WebContext for each group of these EJBs we want to have a different webContext, when we do that we encounter the following exception

  Deployment "vfszip:/E:/projects/jboss/domains/***/TwoContextRootApp.jar/
" is in error due to the following reason(s): java.lang.IllegalStateException: Context root must be the same for all dep
loyed endpoints

How can I be able to specify different web context please ?

Environment

Red Hat JBoss Enterprise Application Platform 5.1.2

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.