WebLogic 12c 12.2.1.2.0 Windows Server 20xx
1 WAR file with multiple JAX-WS Web Services needs to be migrated to multiple WAR files with 1 JAX-WS Web Service each, for ease of deployment and minimization of downtime during deployment. However, this change must work with existing endpoints, all under the same context root, in order not to disrupt all the clients using the Web Services.
Example: Context root = /XWS, endpoints http://server:port/XWS/WS1 ... http://server:port/XWS/WSn.
WebLogic doesn't allow multiple WARs to be deployed with the same context root, so what's the best way to achieve this?
This is currently a pure WebLogic setup so we have no easy URL redirection facilities. Clustering/load balancing is considered for other purposes, but I would rather that the solution doesn't depend upon these.
Context root is either set to /XWS upon first deployment for each WAR or set in weblogic.xml /weblogic-web-app/context-root.
The log shows the following error:
weblogic.application.ModuleException: Context path '/XWS' is already in use by the module: WS1.war application: WS1.
I understand that multiple WARs can't share the same context root, but as long as all resulting endpoints are unique it should somehow be allowed.