File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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