You need to put the webapplication in the tomcat root directory or to change the context name to root.
Also you need to change the FacesServlet mapping from /faces/* to *.jps.
If that *.jps is actually a typo: at least you need to change it to an extension-mapping, like *.jsf.
No, you can´t use *.jsp.
Yeah.. the "/faces/" part was easy... and .jps was a typo, i meant jsp. and I've renamed jsp to jsf. Works perfectly.
Now, because I have Enterprise project with EJBs and I'm using Glassfish I think I can't move war file to the root directory of my domain1. or i'm wrong?
You can change the context root in the application.xml of the EAR.
Maksim Ustinov
Greenhorn
Joined: Sep 15, 2008
Posts: 26
posted
0
For some reason I can't find application.xml in my project. I think I need to make it manually.
Are you sure that I need to add that to application.xml? I thought it should be somewhere on the application server level.
I'm using NetBeans to make my application, so is it possible application.xml file is missing because NetBeans did not add it?
Maksim Ustinov
Greenhorn
Joined: Sep 15, 2008
Posts: 26
posted
0
I have figure out how to put application.xml to my enterprise app.
In NetBeans I just need to right-click on the EAR icon in the project view (triangle icon in NB), select New…, and choose “Standard Deployment Descriptor…”.
This will cause NetBeans to create and populate the application.xml file, including referencing the EAR’s source war files and putting in your already-defined context roots.
But when I put <context-root> </context-root> it did not work to specify root. How can I do it?