Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting Prob to deploy new application under tomcat

 
RaviSingh Kumar
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I had install the tomcat and under Tomcat home directory, i had made a new folder name Test under webapps folder. Under that i had put all the jsp file along with WEB-INF folder.

Start the tomcat service and open the tomcat admin page .
Test folder is shown there but when i click on that it is giving error
'HTTP Status 404 - /Ravi/'

Let me know if any thing should be change in web.xml under WEB-INF folder.
 
paritosh ranjan
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no need to change web.xml for a jsp file(except for some cases when you are mapping its name to a servlet like this
<servlet-name>InitTestServlet</servlet-name>
<jsp-file>/initTest.jsp</jsp-file>)

Keep all the jsp files inside Test directory directly,start tomcat,then in the url type
http://localhost:8080/Test/yourjsppage.jsp

or make a index.jsp and keep it inside Test directory,start tomcat,
then by merely typing
http://localhost:8080/Test
index.jsp file will run
[ October 10, 2007: Message edited by: paritosh ranjan ]
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic