Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa JavaScriptQuestions How to run our application after deploying .war file in tomcat6.0
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Ashish Ashok Nargade
How to run our application after deploying .war file in tomcat6.0
1 Answer(s)      3 years and 11 months ago
Posted in : JavaScript Questions


How to run our application after deploying .war file in tomcat6.0?


Advertisement
View Answers

January 21, 2011 at 12:49 PM


Hi Friend,

After installing the tomcat, follow these steps:

1)Go to the Control Panel>>System>>Environment Variable And the set the variable CATALINA_HOME and put the path of your apache tomcat as a value like: C:\apache-tomcat-6.0 .

2)Like that create another variable classpath and put the path of apache-tomcat lib as a value like C:\apache-tomcat-6.0\lib.*;

3)Also put the servlet api.jar file inside the lib folder of tomcat.

4)Now create a jsp file:'hello.jsp'

<%@page language="java"%>
<%String st="Hello World";
%>
Message is <%=st%>

5)Put this jsp file inside the apache-tomcat>>webapps>>web application folder>>

6)You have to give appropriate name to web application folder like examples and put jsp file into it.

7)Then start the tomcat server by clicking startup.bat from the bin folder of your tomcat.

8)Open your browser and type the following url:

http://localhost:8080/examples/hello.jsp and press enter.

9)You jsp program will then display the output on the browser.

For more information, visit the following links:

JSP Tutorials

Servlet Tutorials

Thanks



Related Tutorials/Questions & Answers:
How to run our application after deploying .war file in tomcat6.0
How to run our application after deploying .war file in tomcat6.0  I... application. 4) I started tomcat 5) Then in tomcat I mention .war file location of my application to deploy it. Now the .war file is successfully deployed in tomcat
How to run our application after deploying .war file in tomcat6.0
How to run our application after deploying .war file in tomcat6.0  How to run our application after deploying .war file in tomcat6.0?   Hi... application folder like examples and put jsp file into it. 7)Then start
Advertisements
Deploying website war file on linux
Deploying website war file on linux  I have BOLLYWOOD_MIRROR.war file.I want to host it on linux server on path. After deployment of war file its... guidance of hosting war file on linux Thank you
Error with Maven while deploying the war file
Error with Maven while deploying the war file  Hi, I am new... war : war. for creating the war. then i deployed the war file in localhost 8080. then I got the index page of my application.. then after clicking any link
Error with Maven while deploying the war file
Error with Maven while deploying the war file  Hi, I am new... this command mvn war : war. for creating the war. then i deployed the war file in localhost 8080. then I got the index page of my application.. then after clicking
WAR file
WAR file  What is a WAR file
How to open a .war file inside Netbean IDE? - IDE Questions
netbean as .war file. When I pressed the run tab inside my netbean ide to see how... appreciate it if you could run through the steps on how to put a .war file inside...How to open a .war file inside Netbean IDE?  Dear experts, I've
Wats Deploying war in Target Server - Development process
Wats Deploying war in Target Server   Hi Friends, I am new to web application, can u explain briefly wat is "Deploying a .war,.jar,.ear files in target server. Thank u in advance   Hi rajendra
war file
war file  where should we create this war file in servlet program for example servlet structure like this 1.app(servlet) 2.WEB-inf(web.xml) 3.class(.class
deploy war file
deploy war file  i created dynamic web project and run using tomcat server how to deploy the war in the company's production server
jsf application war file not running in my jboss 6.0 on linux 5.5
jsf application war file not running in my jboss 6.0 on linux 5.5  17:15:47,647 INFO [config] Initializing Mojarra (1.2_08-b06-FCS) for context '/MFPMSDeployment' 17:15:48,354 INFO [TomcatDeployment] deploy, ctxPath=/ 17
war file in myenclipse - Struts
war file in myenclipse   i create war file from myenclipse but i dont know about how war file deploy in myenclispse to create same project  Hi friend, For more information on MyEclipse visit to : http
How can store image in server folder when deployed with a .war file?
How can store image in server folder when deployed with a .war file?  Hi all; When I am using application.getRealPath() , it return null when deployed with a .war file and when I use hard code it shows syntax error or path
Deploy war file
Deploy war file  hi friend, when i deploy my struts-hibernate war file then it is not working while same project running under ecclipse so how can i solve it pls give help me. thanks in advance
how to run a .exe file in jsp
how to run a .exe file in jsp  i want code for to run a .exe file in jsp
how to run java application with out stoping
how to run java application with out stoping  I have one java application to download some pdf file but its going to stop downloading after some time it not giving any errors any thing can any one help me to solve this problem
war file deploy in tomcat server - WebSevices
war file deploy in tomcat server  can anyone tell me how i can deploy war file in tomcat server ????  to deploy ur war file ...jus start... ur war file ..select ur war file location and click deploy ..it will start
conversion of war file into executable jar file
conversion of war file into executable jar file  how to convert war file into executable jar file
Building Web Application With Ant and Deploying on Jboss 3.0
of Example2 directory After understanding the structure of .ear and .war file... Building Web Application With Ant and Deploying on Jboss 3.0... will show you how to build you web application and install on the Jboss 3.0
Deploying Application
Deploying Application      ... for deploying Application on the Sun Java System Application Server Platform Edition 9.../quickstart/hello.war and copy the war file to install-dir
how to compile and run struts application - Struts
how to compile and run struts application  how to compile and run struts program(ex :actionform,actionclass) from command line or in editplus 3
Abut Deploying and Developing Web-Logic in JDK1.5 version to run the EJB
Abut Deploying and Developing Web-Logic in JDK1.5 version to run the EJB  Hello What is the path setting for the Web-Logic and how to deploy and run the Web-Logic in JDK1.5 version. And can we have Tomcat installed
How to run java swing application from jar files .
How to run java swing application from jar files .  Hello Sir, I developed a java swing application .Now i want to execute it as .exe setup file .As per my knowledge i have to run .jar file from dist folder
we can create our own header file in java?n how to create?
we can create our own header file in java?n how to create?  we can create our own header file in java?n how to create
Apache Tomcat6.0
Apache Tomcat6.0  Starting Tomcat process... Waiting for Tomcat... Starting of Tomcat failed. E:\Project\Medisoft\nbproject\build-impl.xml:590... FAILED (total time: 3 minutes 5 seconds) i dont know why it occur when run
not able to deploy application war on JBOSS 6.0 running on linux 5.5
not able to deploy application war on JBOSS 6.0 running on linux 5.5  While deploying a war file on Linux5.5 through jboss 6.0 admin console, its giving me following error javax.servlet.ServletException: Java heap space
How to Configure, Deploy & Run EJB Application on JBoss4.0.5.GA - EJB
How to Configure, Deploy & Run EJB Application on JBoss4.0.5.GA  I am... my console application, the client to access the deployed bean; and 3) How can i... actually building an ejb application using a console application as my client
Spring Web MVC Application Error:ClassNotFoundException: DispatcherServlet on deploying
the application by clicking the "Run As" -> "Run on Server"... the project on Tomcat. Now you can run and test your application on Tomcat as shown below.... DispatcherServlet I am discussing about the Spring Web MVC Application Error
Apache MyFaces Examples
-simple-1.1.6.war file provides the code for every example. Downloading and deploying this war file in the Tomcat6.0 server has been described in the previous tutorial... to webapps\myfaces directory of Tomcat server and open JSP file for the examples
run jsp file
run jsp file  how to run the jsp file in varies web servers  ...-Web Application Folder- WEB INF-classes You have to set the class path also. The jsp file is to be saved into the web application folder.Let the file
Run XML file
Run XML file  Hi.. How do I execute or run an XML file? please tell me about that Thanks
 

 

 

DMCA.com