This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

web application not visible.

 
Sai Swami
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am creating a new dynamic web application in Eclipse. It is creating a folder called "WebContent" under the application root directory and under it is the WEB-INF directory. However, when I see the sample applications under tomcat installation, I see they have WEB-INF directly under the root folder.

I am unable to see my deployed application in Tomcat. I am getting a 404 error

Can anyone throw some light please?



Thanks for your time,
Sai
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The project directory in Eclipse is the source/working directory, it is not the deploy directory. Have you created a Tomcat server within Eclipse? If so, add your project to the Tomcat server - then when your app is published the correct files (essentially the contents of the webcontent directory plus the compiled classes) are deployed to Tomcat.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic