You ran your application from JDeveloper and the URL you got was:
Here is how you can get it to be:
Next step is to add an index.html file to your application and in that file just use an HTML Meta tag to do a redirect to the JSF file you want to access. So for example:
Now when people access your running server they'll get your JSF page without having to specify anything on the URL.
http://127.0.0.1:7101/TestApplication -ViewController-context-root/faces/home.jsfA common question is can I make this URL shorter and easy to remember?
Here is how you can get it to be:
http://127.0.0.1:7101/The first step is to switch the Java EE Web contextroot setting of your application. Go to Project Properties of your view controller project and under Java EE Application set the name to be something shorter like myapp or if you prefer even just "/". When you run your application on the embedded weblogic server in JDeveloper you might get an error saying:
Context path '' is already in use by the module: / application: TestApplication Welcome Page Application [Version=11.1.0.0.0]This is because the built in WebLogic server comes with a welcome application that sits at this location. You can safely remove it using the application server navigator undeploy option.
Next step is to add an index.html file to your application and in that file just use an HTML Meta tag to do a redirect to the JSF file you want to access. So for example:
<meta http-equiv="refresh" content="0;url=/faces/home.jsf">That's it.
Now when people access your running server they'll get your JSF page without having to specify anything on the URL.