Signup · Login
Stardeveloper.com  
Home · Tutorials · Forums · Web Hosting Plans · Faisal Khan's Blog · Contact
Forums : J2EE : JSP : Unable to keep Servlets and JSPS anywhere else other than ROOT of Tomacat Directory Signup · Login
Author Thread
Unable to keep Servlets and JSPS anywhere else other than ROOT of Tomacat Directory
Posted in tutorial: What are JavaBeans ?
·  vallabh_mulye
User
Joined: 2 Dec 2004
Total Posts: 1
Unable to keep Servlets and JSPS anywhere else other than ROOT of Tomacat Directory
Posted: 6 Dec 2004
Hi,

I need to deploy my servlets and JSPS in C:\jakarta-tomcat-4.1.31\webapps\ROOT

how do i change this mapping and keep my servlets and JSPS in my own web application
·  sumitkondal
User
Joined: 14 Aug 2006
Total Posts: 1
RE:Unable to keep Servlets and JSPS anywhere else other than ROOT of Tomacat Directory
Posted: 14 Aug 2006
C:\jakarta-tomcat-4.1.31\webapps\myApplication\
First make folder myApplication in webapps.
if you want to deploy new context in tomcat web server,you need to do some configuration in tomcat.
You have made changes in C:\jakarta-tomcat-4.1.31\conf\web.xml file. and uncommented the servlet invoker
1.
<servlet>
<servlet-name>invoker</servlet-name>
<servlet-class>
org.apache.catalina.servlets.InvokerServlet
</servlet-class>
<init-param>
<param-name>debug</param-name>
<param-value>0</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>

2.
Uncommented servlet mapping part also.

<!-- The mapping for the invoker servlet -->

<servlet-mapping>
<servlet-name>invoker</servlet-name>
<url-pattern>/servlet/*</url-pattern>
</servlet-mapping>

And now restart tomcat web server again and open your application at browser.

http://localhost:8080/myApplication/myPage.jsp

More info

Tomcat Configuration and web server
Hi,

I need to deploy my servlets and JSPS in C:\jakarta-tomcat-4.1.31\webapps\ROOT

how do i change this mapping and keep my servlets and JSPS in my own web application

Users Who Have Visited This Thread In Last 24 Hours
3 Visitors

Login
UserName Or Email Address:       Password:       Auto-Login:    
· Create New User Account
· Send Forgotten Password by Email
 
© 1999 - 2009 Stardeveloper.com, All Rights Reserved.