PDA

View Full Version : [ubuntu] Can't get My WebApps to Work with Tomcat


nikhilbhardwaj
July 1st, 2009, 08:23 AM
hi

i installed tomcat with apt-get
now when i try to run my custom web app
i get a 404 error

the name of the web app is TechieBookie
here is the list of plcaes where i have put the TechieBookie folder
/var/lib/tomcat6/webapps/
/usr/share/tomcat6/webapps/
ie in both CATALINA_HOME and CATALINA_BASE
but for some reason tomcat refuses to pick them up

i try to access the web app as
http://localhost:8080/TechieBookie/index.jsp

yes i have stopped the server and restarted it by
sudo service tomcat6 stop
sudo service tomcat6 start

i would be grateful if somebody could help me out here and tell me where to place my web apps inorder to get them working.

i had created this in windows using xampp+tomcat there i hdate top place it under CATALINA_HOME\webapps

nikhilbhardwaj
July 6th, 2009, 12:43 PM
its been 5 days
no reply
come on you can do better than that

TuckLive
July 7th, 2009, 07:27 AM
To narrow down the problem, do you at least get the Tomcat page when you visit http://localhost:8080?

nikhilbhardwaj
July 11th, 2009, 03:37 PM
yes absolutely
i get the tomcat pace on localhost:8080
and the examples supplied with it work too

TuckLive
July 14th, 2009, 05:44 AM
I don't have much experience with Tomcat, but the webapp I'm running is under

usr/local/tomcat/webapps

This is the only directory I have the webapp under.

nikhilbhardwaj
July 15th, 2009, 01:54 PM
i don't know what the problem is either
when i downloaded a tat.gz from the tomcat site
and extracted it in my ~/Public
set up the variables JAVA_HOME etc
that works without a problem

Tux.Ice
July 15th, 2009, 04:08 PM
Have you installed Apache?

nikhilbhardwaj
July 16th, 2009, 10:03 AM
no i havent installed apache
but i have xampp 1.7.1 in /opt/lampp