Networking Forums

Networking Forums > Computer Networking > Linux Networking > help running servlets

Reply
Thread Tools Display Modes

help running servlets

 
 
Allan Bruce
Guest
Posts: n/a

 
      01-15-2004, 11:45 AM
I have jakarta-tomcat-5 installed alongside my apache web server. I have
been trying to get servlets running but cant seem to get it right. How do I
run a servlet using tomcat? Once it is running, is there a special
directory structure to get to it, e.g. http://<server>/servlet/ ?
Thanks
Allan


 
Reply With Quote
 
 
 
 
Jan Geertsma
Guest
Posts: n/a

 
      01-15-2004, 05:44 PM
The servlets run in a "context" and these are defined in the conf/server.xml
(and also the portnumber).
This context usually resides in the webapps directory. In this directory
there is a WEB-INF subdir which contains the web.xml which has mappings for
the servlet into a java path, which would normally reside in one jar files
in the lib director

So the linux directory WEB-INF/web.xml will have servlet mappings.
The url will be in the form of http://<server>:8080/context/servlet
Check the examples to see it in action... goodluck, Jan

"Allan Bruce" <(E-Mail Removed)> wrote in message
news:bu61ub$uto$(E-Mail Removed)...
> I have jakarta-tomcat-5 installed alongside my apache web server. I have
> been trying to get servlets running but cant seem to get it right. How do

I
> run a servlet using tomcat? Once it is running, is there a special
> directory structure to get to it, e.g. http://<server>/servlet/ ?
> Thanks
> Allan
>
>



 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Running .exe David Windows Networking 2 05-10-2007 02:15 PM
Apache 2 and Tomcat 4, SSL servlets mfreak1171@yahoo.com Linux Networking 7 12-08-2004 07:08 PM
Fedora Core 2 NAT Router freezes when left running with Azurus running on a local machine. Lee Caves Linux Networking 0 11-01-2004 08:45 PM
running servlets on apache Allan Bruce Linux Networking 0 01-13-2004 01:33 PM
Webhosting options/broadband for hosting a website/hosting fro servlets and sql server Simon Harvey Broadband 2 07-12-2003 03:21 PM



1 2 3 4 5 6 7 8 9 10 11