Home Answers Viewqa Java-Beginners Running and deploying Tomcat Server

 
 


Venkatasitaramayya
Running and deploying Tomcat Server
1 Answer(s)      a year and 10 months ago
Posted in : Java Beginners

HI Somebody has given the solution but it doesn't work out. kindly tell the solution for my problem which i described below 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 in myapps directory 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 Status 404 the resource of servletDemo is not available therefor kindly tell me why it so happened and rectify the problem to get the correct solution.

View Answers

July 11, 2011 at 7:27 PM


HI Somebody has given the solution but it doesn't work out. kindly tell the solution for my problem which i described below 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 in myapps directory 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 Status 404 the resource of servletDemo is not available therefor kindly tell me why it so happened and rectify the problem to get the correct solution









Related Pages:
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
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
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
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
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
confused about an error in my web application deploying to Tomcat - Java Server Faces Questions
confused about an error in my web application deploying to Tomcat  ... it to Tomcat 6 and receive this message in eclipse Ganymede: Jul 4, 2008 8:45:18...: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source
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
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
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 server start up error - Struts
tomcat server start up error   Hai friends..... while running tomcat server ,I got a problem..... Sep 5, 2009 4:49:08 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent INFO: The Apache Tomcat Native
Tomcat Books
and Code Download Tomcat is an open source web server that processes JavaServer... will learn how to integrate Tomcat with the Apache HTTP server (and the situations...;  Tomcat Books Tomcat is an application server built around
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
Tomcat
Tomcat  to run one application in tomcat server which files we need.i think jsp,xml,html is sufficient
tomcat
tomcat  Is it necessary to restart the server if we change the JDK path in tomcat server?   Yes, Thanks   Yes, Thanks
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 tomcat server then type http://localhost:8080 in ur address bar
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 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
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
Deploying Application
for deploying Application on the Sun Java System Application Server Platform Edition 9... Deploying Application      ... with  Sun Java System Application Server Platform Edition 9. We will also learn
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 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
TOMCAT
TOMCAT  why we got the error like HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception
Download Tomcat
to install tomcat etc. What is Apache Tomcat ? Apache Tomcat is a Web Server... protocol for web server. Jasper : Jasper is called the JSP engine of Tomcat. JSP... Releases Apache Software Foundation release tomcat web server time to time
DEVELOPING & DEPLOYING A PACKAGED EJB
a package for a JSP-Bean. Without a package, the Tomcat server may not locate... to h:\tomcat41\webapps\root Start the tomcat server with JAVA_HOME=g:\jdk1.4 ... DEVELOPING & DEPLOYING A PACKAGED EJB (WEBLOGIC-7) & ACCESSING
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
Running and Testing Struts 2 Login application
Running and Testing Struts 2 Login application       Running Struts 2 Login Example In this section we will run the example on Tomcat 6.0 server and check how it works. Running Tomcat To run the Tomcat
Eclipse-Apache tomcat error
) required by Tomcat v7.0 Server at localhost are already in use. The server may...Eclipse-Apache tomcat error  Hi..I'v been trying to install apache tomcat 7 with eclipse helios to try web applications ..but unable to run
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
Running the application
step to see this application running on the browser. Just follow the steps: Start Tomcat Server Type "http://localhost:8080/RichLRApplication... Running the Application     
Error with Maven while deploying the war file
Error with Maven while deploying the war file  Hi, I am new...;org.codehaus.mojo</groupId> <artifactId>tomcat-maven...; </build> </project> But after deploying that i got this error
servlet (tomcat server) and jar
servlet (tomcat server) and jar  how to create a jar file and where to place the jar file in tomecat server
Deploying Weblogic Server in MyEclipseBlue6.6 - IDE Questions
Deploying Weblogic Server in MyEclipseBlue6.6  Hi I am facing some problem in deploying "weblogicserver8.1" in my "MyEclipseBlue6.6".Please provide me detailed path of BEA home directory, Web logic Installation directory
tomcat startup problem - IDE Questions
the tomcat server and deploying the project in server from myecllipse ide,when i try to start the tomcat server from ide, it shows the namingexception,ioexception...tomcat startup problem  hiiiiii My computer os is windows vista.i
Tomcat Server error - Framework
Tomcat Server error  I am doing problem on struts,spring integration.in that at the time of tomcat server starting SEVERE: Error listenerStart occurs.why this error will occurs please tell the reason
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
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
ecclipse_tomcat - JSP-Servlet
have java also installed.. How can I configure Tomcat for ecclipse...For running a small applcation..  Procedure to configure Tomcat in eclipse Go to Window--> Preferences click on this menu item Go to Server->installed
How to run our application after deploying .war file in tomcat6.0
the tomcat server by clicking startup.bat from the bin folder of your tomcat. 8)Open...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
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 - WebSevices
tomcat server  i want to know about installion process of 6.0.16 tomcat server.please give me detailed procedure along with how to set environment variable
Upload Code error on deploying
Upload Code error on deploying  on deploying the above code as it is said it is giving error that " No getter method for property thefile of bean org.apache.struts.taglib.html.BEAN " Error 500--Internal Server Error
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
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
problem with starting tomcat - IDE Questions
problem with starting tomcat  I'm running Eclipse 3.1with Tomcat 5.5 When I start Tomcat inside of Eclipse using the "Servers" tab, the "Console" window shows that Tomcat is running but the "Servers" window shows "starting
servlets deploying - Java Beginners
servlets deploying  how to deploy the servlets using tomcat?can you please explain the total deploying and executing process?  Hi friend, package javacode; import java.io.*; import javax.servlet.*; import
Server running Button - Java Beginners
Server running Button  Hi there, I have a created a GUI using NetBeans IDE 6.1. The aim of this interface is to display the messages that have been recived by the server , when the client is connected , in the textArea
JSF using Tomcat 6.0 - Java Server Faces Questions
JSF using Tomcat 6.0  Hai i have a problem during deployement time... org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/109 config=null Mar 3, 2010 12:09:43 PM org.apache.catalina.startup.Catalina start INFO: Server startup

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.