I explain the situation which is actually a bit tricky. I'm working with fedora 10 and tomcat 5.5. I have a domain name (eg www.stoner2008.com) in which I used to host my application. I currently just finished a jsf2.2 application that only works with apache tomcat 7.if I deploy my application locally, it works perfectly with tomcat7(in 127.0.0.1:8087) but if I deploy as usual to the webapps to put online, it doesn't work.Html pages are ok but in other hand the jsp pages and .xhtml pages are not showed properly (no component jsf or primefaces).
NB: I modified the file /bash_profile and I put in the variable CATALINA_HOME location of the new tomcat 7..
I think that by accessing online (in www.stoner2008.com/myApp), the system uses the old tomcat.
What to do? Do I reconfigure apache2 and also to listen the port 87 mode?i did so but it doesn't work too. please help !!!
JSF 2.2 requires a Servlet API 3.0 compatible servlet container - so you need at least Tomcat 7. How you need to reconfigure the Apache to use the new Tomcat depends on how you connect them - Tomcat has extensive documentation on the subject, make sure you follow all the steps described there.
Haythem Ben Yahia
Joined: Nov 29, 2012
i know that i need tomcat 7 but how can i configure it? i have tomcat 5.5 indtalled in my server and i think that my app is deployed with that version (tomcat 5.5)
i changed the $CATALINA_HOME but it didn't work
It sounds like there's a proxy between your web client and Tomcat on the external server. I'm basing that assumption on the fact that you didn't supply an explicit port number on your sample URL (www.stoner2008.com/myApp).
If that is the case, your proxy server is almost certainly still forwarding to the Tomcat 5.5 server. You would either have to set up an environment where the new URL is forwarded to the Tomcat 7 server or you would have to alter the existing proxy to forward to Tomcat 7 (depending on whether you want to run both Tomcats at the same time).
Customer surveys are for companies who didn't pay proper attention to begin with.
Joined: Mar 22, 2005
It seems you missed what I said earlier:
How you need to reconfigure the Apache to use the new Tomcat depends on how you connect them - Tomcat has extensive documentation on the subject, make sure you follow all the steps described there.