[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

create new web application

Posted on 2005-04-14
2
Medium Priority
?
165 Views
Last Modified: 2012-05-05
Hi,
I want to create a webapplication called 'test' in Tomcat 5.0.28.
I want to deploy a simple servet which says helloworld.
Can anybody give me some tips as to how to create a web application and delpy it?
Anu
0
Comment
Question by:anumit
2 Comments
 
LVL 19

Accepted Solution

by:
ramazanyich earned 800 total points
ID: 13790140
under $TOMCAT_HOME/webapps sirectory create directory test
Create following directory structure under test:

WEB-INF--
           --lib
           -- classes
         
put web.xml file into test/WEB-INF directory.
copy your servlet class files into test/WEB-INF/classes directory.
make mapping to your servlet in web.xml file.

access you servlet by calling:
http://localhost:8080/test/servletPath

replace servletPath by path which you defined in web.xml
0
 

Author Comment

by:anumit
ID: 13792832
Hi,
Thanks for your help. I got it working.
I had to lok for syntax of web.xml file on the net.
This is a sample web.xml file.
http://www.hccfl.edu/pollock/AJava/WAR/webXmlSrc.htm
Thanks,
Anu
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses
Course of the Month20 days, 8 hours left to enroll

868 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question