Win a copy of Building Blockchain Apps this week in the Cloud/Virtualization forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

Unable to access my application in Tomcat 6

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • 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: 4106
72
Hibernate Fedora Chrome
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Please give Directory structure of your application.
 
Rajiv Shr
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • 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.
 
I am a man of mystery. Mostly because of this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!