Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / March 2005

Tip: Looking for answers? Try searching our database.

Tomcat Virtual Host Setup

Thread view: 
Drewjw81@gmail.com - 10 Mar 2005 02:11 GMT
I am currently running Tomcat 5.5 and IIS6.  Up until recently I had
only one site that was using servlets.  But as of this week I have
acquired a new site that will also be using a few servlets.  Originally
I placed copies of the servlets for the site in the sites directory,
and I set up a generic <host> for that site in tomcat's server.xml to
link to them.
The new site I acquired will be using one of the same servlets that my
original site is using.  Now rather then create a completely new copy
of the servlet and set up a <host> for the new site.  I want to use the
same servlet by placing it in Tomcat's webapps directory.  I can get
this to work fine if I take the <host> out of the server.xml, but if I
remove the <host> Tomcat can no longer access the jsp pages and
servlets at the root of the site.
I need to know if there is a way to keep the generic <host> in the
server.xml so that all the jsp pages and other servlets on the root of
the sites will continue working from the sites directory, while at the
same time allowing the shared servlet to run from webapps.

Any ideas?
Claus Petersen - 10 Mar 2005 14:16 GMT
Hi there,

as far as i remember u have a folder called shared/classes  in the tomcat
lib, and its there u should have all Servlets u wish to share though ur
applications.

Claus

>I am currently running Tomcat 5.5 and IIS6.  Up until recently I had
> only one site that was using servlets.  But as of this week I have
[quoted text clipped - 15 lines]
>
> Any ideas?


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.