Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 42452 invoked from network); 10 Sep 2007 09:28:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Sep 2007 09:28:26 -0000 Received: (qmail 47761 invoked by uid 500); 10 Sep 2007 09:28:08 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 47730 invoked by uid 500); 10 Sep 2007 09:28:08 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 47718 invoked by uid 99); 10 Sep 2007 09:28:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Sep 2007 02:28:08 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 24.24.2.57 is neither permitted nor denied by domain of dns4@cornell.edu) Received: from [24.24.2.57] (HELO ms-smtp-03.nyroc.rr.com) (24.24.2.57) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Sep 2007 09:29:35 +0000 Received: from [192.168.5.102] (cpe-24-59-111-127.twcny.res.rr.com [24.59.111.127]) by ms-smtp-03.nyroc.rr.com (8.13.6/8.13.6) with ESMTP id l8A9RfRI009055 for ; Mon, 10 Sep 2007 05:27:41 -0400 (EDT) Message-ID: <46E50E0C.3030908@cornell.edu> Date: Mon, 10 Sep 2007 05:27:40 -0400 From: David Smith User-Agent: Thunderbird 1.5 (X11/20051201) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: How to change the CLASSPATH in tomcat 5.028 for a concrete webservice References: <46E4F1A7.3010408@indenova.com> <46E4F592.7030004@gmail.com> <46E4FD06.8040006@indenova.com> <46E50B63.9000709@indenova.com> In-Reply-To: <46E50B63.9000709@indenova.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: Symantec AntiVirus Scan Engine X-Virus-Checked: Checked by ClamAV on apache.org I wold STRONLY recommend you DO NOT touch the CLASSPATH env variable. It's just a horrible idea. What is it about your webservice that requires the alteration of CLASSPATH? Can you describe that a bit more? The standard classloader structure works very well in virtually all other cases. --David Tom�s Tormo wrote: > Hi again > > I've tried to set the classpath in catalina.sh in order to have my > own classpath set when tomcat starts up ( I show it in catalina.sh as > well and it looks good). But my problem is that when I show it in my > webservice (using > System.out.println(System.getProperty("java.class.path"))) it is > changed again (it only points to a few jar files in /bin folder) and > therefore my webservice can't work properly. Shouldn't it be pinting > to my my /webapp/webservice/WEB-INF/lib folder as well? Does anybody > know how to fix this problem? > > Hakan: I've tried the solution you gave me (create a setenv.sh script > called from startup.sh) but tomcat don't start up! > > Thank you very much for your future answers :p > > Tom�s Tormo escribi�: >> Hi Hakan >> >> First of all thank you for your fast answer ;). >> >> Do you mean to create an script called setenv.sh wich will set the >> CLASSPATH (by export CLASSPATH.. etc)? This script should be called >> by a modified startup.sh? >> >> By they way, I printed the CLASSPATH in my webservice (using >> System.out.println(System.getProperty("java.class.path")); ) and it >> says that my CLASSPATH is only pointing to a few jars in the bin >> folder, not even to my /lib folder in my webservice folder (I hope I >> explained myself well, I'm not using war files). Shouldn't it be >> pointing to my /webapp/webservice/WEB-INF/lib folder as well? >> >> Thank you!! >> >> Greetings!! >> >> >> >> Hakan Koseoglu escribi�: >>> Hi Tom�s, >>> Tom�s Tormo said the following on 09/10/2007 08:26 AM: >>>> I would like to change the classpath for a concrete webservice in >>>> Tomcat 5.028 because the webservice has to use a concrete folder in >>>> order to work. This folder should be in the CLASSPATH in order to >>>> make the webservice work properly and because the webservice can't >>>> find it, it doesn't work. >>> With Tomcat 5, creating a setenv.sh solves the problem for me. It >>> gets called if you start the Tomcat using startup.sh. >>> >>> Any variable you define there will be used, including the classpath. >>> We use it to point to the libraries which we don't put into >>> common/lib nor war files. >>> >>> >> > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org