From tomcat-user-return-15388-qmlist-jakarta-archive-tomcat-user=jakarta.apache.org@jakarta.apache.org Tue Apr 02 12:59:44 2002 Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 35753 invoked from network); 2 Apr 2002 12:59:44 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 2 Apr 2002 12:59:44 -0000 Received: (qmail 4600 invoked by uid 97); 2 Apr 2002 12:59:09 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 4584 invoked by uid 97); 2 Apr 2002 12:59:08 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 4573 invoked from network); 2 Apr 2002 12:59:08 -0000 Date: Tue, 02 Apr 2002 07:58:57 -0500 From: Robert Evans Subject: Re: multiple users using tomcat To: Tomcat Users List , j h Message-id: <3CA9AB11.4060008@webdev.apl.jhu.edu> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=ISO-8859-1 Content-transfer-encoding: 8BIT User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.4.1) Gecko/20020314 Netscape6/6.2.2 X-Accept-Language: en-us References: <20020328061640.37533.qmail@web21301.mail.yahoo.com> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Joe, I have to do this at JHU for some Java classes. The best I've figured it out, you use a Listener that designates a certain directory as a "home" directory for web apps. It iterates through all of the directories in the "home" directory, and builds webapps for any that contain the WEB-INF/web.xml structure (your student accounts). This sounds complex, but all you have to do is have the following in your server.xml file: I left the definition of the virtual host in as a guide to where to put the Listener in the server.xml file. This particular configuration looks for all directories in the /export/home directory that are configured to be web applications, and automatically sets up the web app. The only down side is that the server has to be restarted when new directories are added, since the server builds the web-apps as it starts up. If anybody knows how to get around this limitiation, I'd love to know.... Bob j h wrote: >Hi there... > >I have a server that I need to have 20-75 separate >student users accessing tomcat. > >Do I set it up so each user has a separate directory >that they can write to, under the directory that >tomcat uses? > >Or possibly run tomcat on a separate port for each >user? > >Sorry to say, the instructor wanted each student to >run tomcat on a win 95/98/nt machine, and he has no >idea how to set this up, so it's on me. > >I have perused many hundreds of messages on this >newsgroup with nothing to steer me. I've also looked >at the documentation and scoured the jakarta >homepage for help. I'm sure it's in the server.xml >file, but I'm stumped. > >Please send crumbs...no problems here following the >trail...thank you in advance.. > >Joe > > > >__________________________________________________ >Do You Yahoo!? >Yahoo! Movies - coverage of the 74th Academy Awards® >http://movies.yahoo.com/ > >-- >To unsubscribe: >For additional commands: >Troubles with the list: > > > -- To unsubscribe: For additional commands: Troubles with the list: