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?

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
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
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
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
how to convert war file into .exe file using java code
how to convert war file into .exe file using java code  hi,I am beginner in the java,I want to convert my java maven project to .exe file,plz tell me which is required jar files and how i convert this..?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
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
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
Building Web Application With Ant and Deploying on Jboss 3.0
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 application server. After the completion of the lesson you will be able to include
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 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
Deploying Application
Deploying Application      ... There are three ways for deploying Application on the Sun Java System Application Server... install-dir/samples/quickstart/hello.war and copy the war file to install-dir
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
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
How to export war file from Eclipse Luna 4.4.2 and deploy on Tom cat?
How to export war file from Eclipse Luna 4.4.2 and deploy on Tom cat? In this video tutorial we will learn how to export war file from Eclipse Luna 4.4.2... was deployed. Here is the video tutorial of "How to export war file from Eclipse
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
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
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
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
How to downloads an application of the file from remote location?
How to downloads an application of the file from remote location?  Hi, Can help me How to downloads an application of Java file from remote... an application of file in the remote location. Plz visit this link for how to download
run jsp file
run jsp file  how to run the jsp file in varies web servers  ... the class path also. The jsp file is to be saved into the web application folder.Let the file be 'abc.jsp' and web application folder be 'examples'. Start the tomcat
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 XML file
Run XML file  Hi.. How do I execute or run an XML file? please tell me about thatADS_TO_REPLACE_1 Thanks
How to launch my web application from my desktop without opening Netbeans IDE everytime i run the application?
How to launch my web application from my desktop without opening Netbeans IDE everytime i run the application?  Hi RoseIndia, Thanks for ur reply... web application, now my question is how can i start my web application, wat i mean
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
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
I got build failed when deploying enterprise application - EJB
% Deploying application in domain failed; Error loading deployment descriptors for module...I got build failed when deploying enterprise application  I created web application with ejb moduless and stateless session beans. However, i am
Spring Web MVC Application Error:ClassNotFoundException: DispatcherServlet on deploying
the application by clicking the "Run As" -> "Run on Server".... DispatcherServlet I am discussing about the Spring Web MVC Application Error... deploying on the Tomcat from Eclipse Eclipse is one of the most used free IDE
how to create a set up file of java web application
install and run from desktop like our installation files and applications, so if any one knows how to do the java web application as a set up file, please help...how to create a set up file of java web application  I have already
how to create a set up file of java web application
install and run from desktop like our installation files and applications, so if any one knows how to do the java web application as a set up file, please help...how to create a set up file of java web application  I have already
how to create a set up file of java web application
how to create a set up file of java web application  I have already... my client can install and run from desktop like our installation files and applications, so if any one knows how to do the java web application as a set up
run a java application - Java Beginners
run a java application  Hai Deepak, I ve set my environment... ClassName is SwingDemo and I saved my file as SwingDemo.java.My SwingDemo.java file can...$1.class,SwingDemo$2.class.But i couldnt run my file.During run time it gives
how to get a column values from a excel file after attaching it - JSP-Servlet
how to get a column values from a excel file after attaching it  hi sir, How to get a column values from a excel file after attaching it while sending a email,while sending a email if i attached a file that should be read
run a batch file through javascript
run a batch file through javascript   How to run a batch file through javascript without prompting
not able to run in gcj file - JDBC
not able to run in gcj file   We have a java program in Linux environment, which hits DB for some data and encode the same. We need to compile... to run the java program it says that Classes12.Jar?s oracle Driver missing. We
how can i open pdf file in assest folder in android application?
how can i open pdf file in assest folder in android application?  thanks
how to create .exe file of java application?? - Java Beginners
how to create .exe file of java application??  hi i want to know how to create exe file of whole application so that i can use that application... createJarArchive(File jarFile, File[] listFiles) { try { byte b
How to link a excel file with a application software using java swing
How to link a excel file with a application software using java swing  I have to link an excel file with a application software which I am developing.The excel file will contain questionnaire for surveys.I have this code which
How to link a excel file with a application software using java swing
How to link a excel file with a application software using java swing  I have to link an excel file with a application software which I am developing.The excel file will contain questionnaire for surveys.I have this code which
How to link an excel file with the application software using java swing
How to link an excel file with the application software using java swing  I have to link an excel file with a application software which I am developing.The excel file will contain questionnaire for surveys.I have this code which
How to save run time created text-file on a disk using jsp/servlet?
How to save run time created text-file on a disk using jsp/servlet?  I have a JSP page with save button.In that I created the file(e.g a.txt) at run-time,when I click on the save button,it will ask where to save the file
Run time Exception after Clean and Build JavaNetBeans Project
Run time Exception after Clean and Build JavaNetBeans Project  I have... The PROBLEM IS... When is run the jar file from the dist folder , the first form (i.e.... when i run the jar file form dist folder using cmdPrompt the following errors

Ads