Return-Path: Delivered-To: apmail-jakarta-jmeter-user-archive@www.apache.org Received: (qmail 4596 invoked from network); 23 Sep 2003 19:40:31 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 23 Sep 2003 19:40:31 -0000 Received: (qmail 29163 invoked by uid 500); 23 Sep 2003 19:40:17 -0000 Delivered-To: apmail-jakarta-jmeter-user-archive@jakarta.apache.org Received: (qmail 29143 invoked by uid 500); 23 Sep 2003 19:40:17 -0000 Mailing-List: contact jmeter-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "JMeter Users List" Reply-To: "JMeter Users List" Delivered-To: mailing list jmeter-user@jakarta.apache.org Received: (qmail 29129 invoked from network); 23 Sep 2003 19:40:16 -0000 Received: from unknown (HELO icsaward.com) (64.3.56.254) by daedalus.apache.org with SMTP; 23 Sep 2003 19:40:16 -0000 Received: {(helo=ccc) }}by icsaward.com with smtp (Exim 3.35 #1) id 1A1t8i-0001DW-00 for jmeter-user@jakarta.apache.org; Tue, 23 Sep 2003 15:48:00 -0400 Message-ID: <003d01c3820a$856505a0$0f63a8c0@ccc> From: "Clifton Craig" To: "JMeter Users List" References: <20030923010143.86429.qmail@web13305.mail.yahoo.com> Subject: Re: CLASSPATH woes with Java Request Sampler Date: Tue, 23 Sep 2003 15:40:19 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Thank you Peter, However, my code is calling code that I have no control over. This code uses the System classpath to locate resources. I set the system classpath prior to invoking JMeter but it appears that JMeter is altering the system classpath upon execution. Please, I'm a beginner with class loaders and such. Could someone help me with a good solution? Clifton C. Craig Intelligent Computer Systems A division of Global Beverage Group ccc@icsaward.com (717) 295-7977 ----- Original Message ----- From: "peter lin" To: "JMeter Users List" Sent: Monday, September 22, 2003 9:01 PM Subject: Re: CLASSPATH woes with Java Request Sampler > > if you wrote your own sampler, the cleanest way is to write a custom classloader that extends URLClassLoader. then use your classloader to load those resources. > > this should give you the control needed. hope that helps. > > > peter > > > Clifton Craig wrote: > Hello all: > > I've created a Java Request Sampler that I intend to use to test my EJB app. > However it is necessary that my Java request sampler have some additional > entries in the CLASSPATH. These entries include classes which are in > development along with some EJB server specific stuff. According to the > JMeter docs it appears that I need to have any additional resources jarred > and stored in the lib/ext folder. This approach is impractical to my > scenario. I've experimented with using Class-Path headers in the jar > manifest for my Java Request sampler but they seemed to not work. Are there > any other workarounds. I looked briefly at the NewDriver.java file in > JMeter's core jar file and it seems as though it is filtering all entries > from the CLASSPATH that do not end with ".jar". I need help. How can I get > my Java Requester to see the rest of my app without jarring everything up? > > Clifton C. Craig > Intelligent Computer Systems > A division of Global Beverage Group > ccc@icsaward.com > (717) 295-7977 > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org > > > --------------------------------- > Do you Yahoo!? > Yahoo! SiteBuilder - Free, easy-to-use web site design software --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: jmeter-user-help@jakarta.apache.org