aspose file tools*
The moose likes JSF and the fly likes JSF application giving 404 for a sub-context Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF application giving 404 for a sub-context" Watch "JSF application giving 404 for a sub-context" New topic
Author

JSF application giving 404 for a sub-context

abhishek dhote
Greenhorn

Joined: Sep 14, 2010
Posts: 2
My JSF application works in my local tomcat for URL like http://localhost:8080/MyApp/admin, but not on the hosting server, the URL there is http://www.myapp.com/admin Do I need to do something with 'context.xml'/ put BocBase & AppBase. I got these things googling, but could not understand what exactly I have to do. Can anyone help me with the exact thing thats has to be done to get this working?

Thanks | Abhi
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15641
    
  15

Welcome to the JavaRanch, Abhishek!

Although it is possible to configure Tomcat to respond to a "normal" URL, production servers often place a front-end server ahead of it. Apache is a popular choice. The front-end server takes the "normal" URLs and reroutes them to Tomcat using a proxy or tomcat connector channel. This is mostly done by configuring the front-end server to let it know what URLs to route to Tomcat and what channel to use.


Customer surveys are for companies who didn't pay proper attention to begin with.
abhishek dhote
Greenhorn

Joined: Sep 14, 2010
Posts: 2
Can you provide me an example of what exactly I have to do to fix this?
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15641
    
  15

That would depend on what (if any) front-end you use ahead of Tomcat.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSF application giving 404 for a sub-context
 
Similar Threads
Auto send an email
ibm and myfaces JSF
jsf post to a page
Security in JSF
How to start or run a application on newly created server2 on WebSphere