This discussion is archived
1 Reply Latest reply: Mar 19, 2013 9:26 PM by r035198x RSS

Change default context of EAR file

user2695214 Newbie
Currently Being Moderated
I'm deploying an EAR file on weblogic 10.3.4. The EAR file contains a war file and a jar file that implements web services using EJBs.

The application deploys and is functioning correctly. The application is available from the following URLs:
web application: http://hostname:8001/http/webServlet/index.jsp
web services: http://hostname:8001/wsapi/Service1 and http://hostname:8001/wsapi/Service2

However, I would like configure the deployment to insert the "app1" string into the URL so the application is available like this:
web application: http://hostname:8001/app1/http/webServlet/index.jsp
web services: http://hostname:8001/app1/wsapi/Service1 and http://hostname:8001/app1/wsapi/Service2

Does anyone know if this is possible? I've been looking at some of the configuration options in deployment plans, but can't seem to get anything working.


Edited by: user2695214 on Mar 19, 2013 10:36 AM
  • 1. Re: Change default context of EAR file
    r035198x Pro
    Currently Being Moderated
    Did you you try configuring it in the application.xml file with something like
    <module id="yourWebModule">


  • Correct Answers - 10 points
  • Helpful Answers - 5 points