views:

27

answers:

1

My JSF application is deployed under tomcat and server.xml is configured as follows for my application

   <Host name="myapp.com" appBase="/home/myapp/public_html">
      <Alias>www.myapp.com</Alias>
      <Context path="" reloadable="true" docBase="/home/myapp/public_html" debug="1"/>
      <Context path="/manager" debug="0" privileged="true" docBase="/usr/local/jakarta/tomcat/server/webapps/manager">
      </Context>
   </Host>

With these settings I can access all the pages under 'web' folder. I have 'app' folder under 'web' and I have couple of jsp pages under 'app', when I try to access some pages available under 'app' with the following URL: www.myapp.com/app/test_page.jsf, I get 'requested resource cannot be found'

What are the changes I need to do in Tomcat`s Server.xml to get this working.

Do I need to add context path for the 'app' subcontext like this mentioned below in Server.xml:

<Context path="/myapp/app" reloadable="true" docBase="/home/myapp/public_html/app" debug="1"/>
+1  A: 

Assuming that /web folder is placed in /public_html folder, you need to include the /web folder in either appBase and docBase, or in URL.

BalusC
@BalusC, pages under web works well, the problem I have with is with the pages under 'app' folder
Abhishek
You told that the `/app` folder is placed in `/web` folder, but you aren't specifying the `/web` folder anywhere in `server.xml` or in URL. You need to correct this.
BalusC