This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Tomcat and the fly likes Getting Prob to deploy new application under tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Getting Prob to deploy new application under tomcat" Watch "Getting Prob to deploy new application under tomcat" New topic
Author

Getting Prob to deploy new application under tomcat

RaviSingh Kumar
Ranch Hand

Joined: Sep 04, 2007
Posts: 52
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

Joined: Aug 24, 2007
Posts: 62
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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Getting Prob to deploy new application under tomcat