• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Unable to access my application in Tomcat 6

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys

I have deployed a web application in my tomcat server, and I see that the application is up and running as I am able to make SOAP requests to my application api endpoints and get a proper SOAP response. However, I am unable to access any pages under the application folder.

When I type this in the URL - http://<hostname>:<port>/myapplication/index.html or http://<hostname>:<port>/myapplication/mypage.jsp , I am not able to access it. It gives me a 404 error saying that - The requested resource () is not available.

I can see that the WAR file has exploded under the webapps with all the required files in it, and my application is running as well. But I also want to access the mypage.jsp under my application folder to bring up my app admin console, which I am not able to do at the moment.

Any ideas?
 
Bartender
Posts: 4116
72
Mac TypeScript Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is this a local server? Have you tried by IP address instead host name? And are you able to access the Tomcat root (i.e.: http://<host>:<port>/)?
 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please give Directory structure of your application.
 
Rajiv Shr
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I resolved the issue guys. Basically, we have a Tomcat home instance deployed on our linux box and multiple base instances. For some reason, tomcat was not reading the web.xml from the conf folder of the home installation. I had to copy the web.xml from the {catalina.home}/conf folder to the {catalina.base}/conf folder. The web.xml has the mappings for the default servlet/jsps. Once I restarted the server after that, things worked fine.
 
reply
    Bookmark Topic Watch Topic
  • New Topic