About running the Tomcat Server

About running the Tomcat Server

HI I want to run a simple program on servlet and the application is a simple program Hello world to print on Internet browser. And the directory for servlet is like this Apache Software Foundation/Tomcat 5.0/webapps/ i created myapps folder and in that folder i created WEB-INF folder and in that i created classes and lib and web.xml folders. Now i compiled Helloworld program in myapps directory and it is ok Next in web-xml i set class-name and URL-pattern as followes in class-name i put the Servlet class name(Which i put as ServletDemo) and in URL pattern i typed myapps/ServletDemo. Next i cut the java.class and pasted in classes folder. Next i created Servlet.html file and in that html file i typed like this(< form action="http://localhost:8080/myapps/ServletDmeo" method="Get"> Next step deployed war file under the myapps directory Now i started Tomcat . Next i opened Browser and i typed Tomcat Manager and i got /myaps directory now i clicked on /myapps and got html file,java,file and war file . next i clicked on html and i got html page now i clicked on Submit button and the browser is showing an error like 404 the path servletDemo is not there SO kindly tell me why it so happened and rectify the problem to get the correct solution.

View Answers

June 18, 2011 at 10:24 AM

Put your ServletDemo.java class into classes folder and then compile it. After compiling restart the tomcat server.And then run the html file.

For more information, go through the following links:

http://www.roseindia.net/servlets/HowToRunAServlet.shtml

http://www.roseindia.net/servlets/HelloWorld.shtml

http://www.roseindia.net/servlets/introductiontoconfigrationservlet.shtml

Ads









Related Tutorials/Questions & Answers:
About running the Tomcat Server
About running the Tomcat Server   HI I want to run a simple... this Apache Software Foundation/Tomcat 5.0/webapps/ i created myapps... directory Now i started Tomcat . Next i opened Browser and i typed Tomcat Manager
Running and deploying Tomcat Server
Running and deploying Tomcat Server  HI Somebody has given... for servlet is like this Apache Software Foundation/Tomcat 5.0/webapps/ i created... directory Now i started Tomcat . Next i opened Browser and i typed Tomcat Manager
Advertisements
error of HTTP Status 404 while running servlet on apache tomcat server
the apache tomcat page. It mean that my tomcat server is up and running. but whn i...error of HTTP Status 404 while running servlet on apache tomcat server  i have followed the steps given here.Also hava put servlet-api in lib folder
problem running a servlet on tomcat.
problem running a servlet on tomcat.  i have followed the steps given here. on typing "http://localhost:8080" i do get the apache tomcat page. i suppose that should mean that my tomcat server is up and running. but whn i try
About running the Applet Program
About running the Applet Program  Hi I have composed an Applet Program and compiled the program, until that it is fine but how to run the Applet program(compiling i typed as javac AppletDemo.java)? Is compiling
About running the Applet Program
About running the Applet Program  Hi I have composed an Applet Program and compiled the program, until that it is fine but how to run the Applet program(compiling i typed as javac AppletDemo.java)? Is compiling
Tomcat Server
Tomcat Server In this section we will read about the Tomcat Server. Here we... is tomcat server, components of tomcat, features of tomcat and many more. What is Tomcat Server? Tomcat Server is a pure Java HTTP web server environment to run
stop the running hidden server
stop the running hidden server  Port 8080 required by Tomcat v6.0 Server at localhost is already in use. The server may already be running in another process, or a system process may be using the port. To start this server you
About downloading Tomcat 7.x version
About downloading Tomcat 7.x version  Hi Kindly tell me from which website i can download Tomcat 7.x version
java web application without running tomcat
java web application without running tomcat  I did a project by using jsp,html,javascript,css,tomcat,editplus and MSAccess as backend..i created set... is there any way to run the web application(only in single system)without running
Tomcat Server
Tomcat Server  Why my tomcat server installation stop at using:jvm c:\program files\java\jdk 1.6.0\bin\client\jvm.dll. Even though i trying to install several times. please help me....   Installing Tomcat Server
Tomcat server
Tomcat server  Can anyone tell me in simple words what this error is about.. ERROR org.hibernate.event.def.AbstractFlushingEventListener Could not synchronize database state with session org.hibernate.StaleObjectStateException
Apache Server Running But project not deploying on server?
Apache Server Running But project not deploying on server?  May 27... based Apache Tomcat Native library which allows optimal performance...)\Apache Software Foundation\Tomcat 5.5\bin;.;C:\Windows\sys tem32;C:\Windows
Tomcat Configuration For Eclipse Server
Tomcat Server? I am using Tomcat 6.0v Thanks In Advance   Install tomcat... and ready to run on tomcat server. Right panel content all application that are ready to run on tomcat server. And click on the finish button. After
tomcat web server
Tomcat Web Server         ... the Tomcat Server Tomcat is an open source web server developed by Apache Group. Apache Tomcat is the servlet container that is used in the official
Tomcat server/any application server
Tomcat server/any application server  how the server understands request is coming from client and how can it give response within very short span of time
Download Tomcat
Download Tomcat In this section we will discuss about downloading tomcat. This section will describe you about Apache Tomcat. This page will describe you... to install tomcat etc. What is Apache Tomcat ? Apache Tomcat is a Web Server
tomcat server problem
tomcat server problem  hello rose india, my name is raju. I am placing a problem with tomcat5.5 server. when i am trying to execute my project I have deployed my project in tomcat and then i tried to execute first it showed me
Tomcat Server configuration with Eclipse at remote machine
Tomcat Server configuration with Eclipse at remote machine  "Several Ports (8081,8009), required by /Tomcat v6.0 Server at a localhost are already in use. The server may already be running in another process, or a system process
uploading file to tomcat server
uploading file to tomcat server  please tell me how to upload a file to the URL "http://192.168.12.7:8000/tomcat-docs/" ? thanks
Setting up Tomcat Server with Eclipse Galileo
Setting up Tomcat Server with Eclipse Galileo  Please let me know the steps to install Tomcat Server and setting that up with Eclipse Galileo
problem regarding tomcat server 6.0
problem regarding tomcat server 6.0  Jul 27, 2012 10:39:19 PM... Tomcat Native library which allows optimal performanc e in production environments... Foundation\Tomcat 6.0\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDO WS\system32;C:\WINDOWS;C
tomcat
/tomcatdownloadinstall.shtml http://www.roseindia.net/web-application-server/tomcat/install...tomcat   i downloaded and installed taomcat server but my servlet hasnotbeen running on it and im getting the message like "requested resources
How to run JSP program in Tomcat server step by step?
How to run JSP program in Tomcat server step by step?  Hi, I am... JSP program in Tomcat server step by step. Share me tutorial for leaning JSP. How to run JSP program in Tomcat server step by step? Thanks   Hi
Tomcat Web Server
Tomcat Web Server       Introduction to the Tomcat web server Tomcat is an open source web server developed by Apache Group. Apache Tomcat is the servlet
Introduction to Tomcat Server
Introduction to Tomcat Server      ... server developed by Apache Group. Apache Tomcat is the servlet container... application server). Installation and Configuration of the Tomcat Server
Introduction to the Tomcat web server
Introduction to the Tomcat web server       Tomcat is an open source web server developed... a web application with jsp/servlet install any web server like JRun, Tomcat etc
hibernate tomcat
In this section, you will learn about Hibernate datasource configuration in Tomcat
Same email-massage is sending twice in online server(tomcat) but working fine in my local server(Tomcat)..
Same email-massage is sending twice in online server(tomcat) but working fine in my local server(Tomcat)..  Sir, I created one project in jsp... mail to admin at specific time. In local Server(tomcat):::>When employee
Working with Tomcat Server
Working with Tomcat Server       This section explains how to work with Tomcat Server... and java  Server Pages. Tomcat is very easy to install and configure. 
tomcat
tomcat  Is it necessary to restart the server if we change the JDK path in tomcat server?   Yes, Thanks   Yes, Thanks
Tomcat
Tomcat  to run one application in tomcat server which files we need.i think jsp,xml,html is sufficient
What do you think about client-side/server-side coding ?
What do you think about client-side/server-side coding ?  Hi, What do you think about client-side/server-side coding
Downloading and Viewing html source of a page i.e. running on the server
Downloading and Viewing html source of a page i.e. running on the server... of the program which views the html source code of your given page running on server... illustrates you the procedure of viewing complete html code of a page i.e. running
Tomcat 6.0
Tomcat 6.0  Hi,this is harish i got an issue while running my project.I hope something wrong with my tomcat server .. ERROR:An internal error occurred during: "Publishing to Tomcat v6.0 Server at localhost
How Run JSP in Apache TomCat Server? - JSP-Servlet
How Run JSP in Apache TomCat Server?  How to Run JSP in Apache Tomcat Server? I have getting Jasper Exception which says class not found i have... program there. You can also check compete tomcat tutorial at http
JSP Hello World example using Eclipse IDE and Tomcat web server
server In this vidoe tutorial I have explained how to download the Eclipe, Tomcat... on the Tomcat server. This tutorial is for beginners in JSP and teaches to make first... and Tomcat server in combination makes the process much easier. It's very easy
Apache Tomcat Login Failed
Apache Tomcat Login Failed  Several ports (8080, 8009) required by Tomcat v7.0 Server at localhost are already in use. The server may already be running in another process, or a system process may be using the port. To start
Apache Tomcat Login Failed
Apache Tomcat Login Failed  Several ports (8080, 8009) required by Tomcat v7.0 Server at localhost are already in use. The server may already be running in another process, or a system process may be using the port. To start
Sending error code to access log of tomcat server from Action class
Sending error code to access log of tomcat server from Action class  How to send an error code (500) to access log file when we get null value in an if condition in Action class? Is anyone aware of this! Thanks
exception in thread main while running servlet
exception in thread main while running servlet  I got exception in thread main no such method error while running servlet. I have added...\Tomcat 6.0\lib\servlet-api.jar;C:\Program Files\Apache Software Foundation
TOMCAT
TOMCAT  how can we deploy the project in Apache Tomcat
Tomcat
Tomcat  I am using UBUNTU and I want to install tomcat to run servlet programs
Tomcat
Tomcat  i have a problem in starting tomcat server.. May 12, 2011 12... resolving reference java.io.FileNotFoundException: D:\Workspace\conf\tomcat... Global JNDI Resources javax.naming.NamingException: D:\Workspace\conf\tomcat
catching tomcat object to swing application
catching tomcat object to swing application  Hi, I have 2 java projects, one is running on tomcat server and another is at client pc ie swing application. So I need to catch a server side object from swing application. How can I
TOMCAT
TOMCAT  When i am deploy the servlet class file in tomcat server i get the following errors pe Exception report message description The server encountered an internal error () that prevented it from fulfilling this request
Tomcat
Tomcat  send me one simple project application how can we deploy the project in tomcat where we can store the html and Jsp ad Java, XML files in the tomcat web apps folder. the following structure is correct or not Tomcat-web
Tomcat
type in the url path of the tomcat to see the output
Tomcat
Tomcat  When i want to run the servlet program in tomcat i got the following errors type Status report message Servlet InsertServlet is not available description The requested resource (Servlet InsertServlet is not available
tomcat problem
tomcat problem  error like requested(rootdirectory/urlpattern) resources are not available getting while running servlet on tomcatserver

Ads