Tomcat6 not deploying my webapp

14,135

Solution 1

Did you try stopping and starting tomcat?

Solution 2

When you say you put your own webapp, I assume you are putting your webapp.war file? Make sure you delete the existing webapp directory first before you place webapp.war. Tomcat will automatically inflate the war file to create that webapp directory.

Share:
14,135
ktm5124
Author by

ktm5124

I'm a software engineer and computer scientist.

Updated on June 04, 2022

Comments

  • ktm5124
    ktm5124 almost 2 years

    I have access to a Tomcat server that is currently deploy two webapps. When I put my own webapp in the apache-tomcat-6.xxx/webapps directory, it doesn't deploy it. I tried downloading the Tomcat sample webapp, and deployed it in the webapps directory, and it still doesn't deploy.

    Is there anything I have to do beyond putting the webapps in the apache*/webapps directory to get them to deploy? I have tried starting/restarting Tomcat ad nauseam.

    Thanks,
    ktm

  • ktm5124
    ktm5124 over 13 years
    Okay, I deleted the webapp directory and tried it with just webapp.war. Tomcat did indeed inflate my war file, but it still is not deploying it. When I go to my.url.com/[mywebapp], I get a 404 Not Found error. But when I go to my.url.com/[otherwebapp], the other web app runs fine.
  • limc
    limc over 13 years
    It seems like your autoDeploy must be false: tomcat.apache.org/tomcat-5.5-doc/… . Turn that on, and it should work.
  • ktm5124
    ktm5124 over 13 years
    No, autoDeploy is true. It has always been that way.
  • limc
    limc over 13 years
    Try reloading the application by typing this in the web browser: localhost:8080/manager/reload?path=/webapp
  • ktm5124
    ktm5124 over 13 years
    I tried that. I got a 403 Forbidden: "You don't have permission to access /manager/reload on this server." (I don't have physical access to the server, I am accessing it through SSH.)
  • ktm5124
    ktm5124 over 13 years
    How do I know if the security manager is running? But I checked catalina.policy, and I didn't see any of the working webapps being granted permissions.
  • Woot4Moo
    Woot4Moo over 13 years
    in the startup scripts it will have the -security flag