5

when i try access my webapplication with link http://localhost:8080/MyWebApp/login.do It works fine but when i try to access default page in tomcat with URL http://localhost:8080/ i am getting below error

UPDATE:- i am using springsource-tc-server-developer

type Status report
message /
description The requested resource (/) is not available.

As per my understanding it should give me the default welcome page. Should i need to configure anything for this?

M Sach
  • 33,416
  • 76
  • 221
  • 314
  • Do you get your welcome page if you hit `http://localhost:8080/MyWebApp/` ? If the answer is yes, then I suspect your context root is `MyWebApp`. This will typically be the case if you simply copied a war file called `MyWebApp.war` into `$CATALINA_HOME/webapps`. The application that shows up in the `/` context is called `ROOT`. So if you deploy a file called `ROOT.war`, it will be browsable at `http://localhost:8080/`. – Asaph Dec 09 '11 at 06:21
  • Hi Asaph i get my application login page with http://localhost:8080/MyWebApp not the tomcat welcome page. – M Sach Dec 09 '11 at 06:25
  • Did you delete ROOT or ROOT.war? – Asaph Dec 09 '11 at 06:29
  • No i did not. where i can find path for variable CATALINA_HOME as i dont have it in my environment variables – M Sach Dec 09 '11 at 06:35
  • $CATALINA_HOME is your tomcat installation directory. – Asaph Dec 09 '11 at 07:00

1 Answers1

1

Try hitting /admin for Tomcat Admin page.

If your using new install Tomcat 7, try installing the manager.

Andy
  • 8,841
  • 8
  • 45
  • 68
  • 1
    getting same error with http://localhost:8080/admin – M Sach Dec 09 '11 at 05:59
  • hmm, try /manager. In your tomcat_home/webapps folder do you have the "manager" directory? or the "root" directory. – Andy Dec 09 '11 at 06:03
  • 1
    yes i have manager directory inside webapps. It also did not work. I tried both links http://localhost:8080/manager and http://localhost:8080/ROOT but getting same error. – M Sach Dec 09 '11 at 06:09
  • Are you using tomcat 7? I'm more familiar with older versions. I think you need install manager app, http://tomcat.apache.org/tomcat-7.0-doc/manager-howto.html#Configuring_Manager_Application_Access – Andy Dec 09 '11 at 06:15
  • using tomcat 6 lying in springsource-tc-server-developer – M Sach Dec 09 '11 at 06:50