Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 48370 invoked from network); 9 Mar 2005 15:30:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 9 Mar 2005 15:30:43 -0000 Received: (qmail 68631 invoked by uid 500); 9 Mar 2005 15:30:35 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 68556 invoked by uid 500); 9 Mar 2005 15:30:34 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 68541 invoked by uid 99); 9 Mar 2005 15:30:34 -0000 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,FORGED_RCVD_HELO,HTML_30_40,HTML_MESSAGE,HTML_TITLE_EMPTY X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from smtp110.mail.sc5.yahoo.com (HELO smtp110.mail.sc5.yahoo.com) (66.163.170.8) by apache.org (qpsmtpd/0.28) with SMTP; Wed, 09 Mar 2005 07:30:32 -0800 Received: from unknown (HELO yahoo.com) (hale?india@195.14.153.33 with plain) by smtp110.mail.sc5.yahoo.com with SMTP; 9 Mar 2005 15:30:27 -0000 Message-ID: <422F1694.7040600@yahoo.com> Date: Wed, 09 Mar 2005 17:30:28 +0200 From: A Leg User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040510 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jakarta Commons Developers List Subject: Re: [logging][httpclient] pb using eclipse References: In-Reply-To: Content-Type: multipart/alternative; boundary="------------020808070400010004040203" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N --------------020808070400010004040203 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 8bit Hi Jorg Thank's for your help. I will try to find a solution following your advices. Cheers Andre J�rg Schaible wrote: >Hi Andre, > >A Leg wrote on Wednesday, March 09, 2005 3:32 PM: > > > >>Hi Jorg >> >>I try httpclient in another place and I get a problem too. >>I don't understand and worse I don't find any solution. >> >> > >[snip] > > > >>{orion:rcs} java -classpath >>$JWSDP_HOME/jwsdp-shared/lib/commons-httpclient.jar:$JWSDP_HOM >>E/jwsdp-shared/lib/commons-logging.jar:$J2RE_LIBRARY/jsse.jar: >>$J2RE_LIBRARY/jce.jar -jar Test.jar >>Exception in thread "main" java.lang.NoClassDefFoundError: >>org/apache/commons/httpclient/protocol/SecureProtocolSocketFactory >> >> > >Hmmm. Never used httpclient nor jsse so I am unsure about the classloader requirement for this factory. E.g. an own implementation for java.util.log.Formatter is only found everytime, if it is located in the system class loader (means also J2SE/lib/ext), but not if your app has special classloader hierarchy. Same may apply here for this factory for httpclient. Then you have no choice but stuffing anything into J2SE/lib/ext again. > >The problem with Eclipse is, that is uses the Log interface loaded by the classloader of the help plugin utilizing Tomcat and the Jdk14Logger is found in the system classloader. This will not work. Part of the problem is also, that the integrated tomcat in eclipse comes with both commons-logging.jar and commons-logging-api.jar. Try to remove the -api.jar and adjust the plugin.xml. The other jar has all classes anyway. > >- J�rg > >--------------------------------------------------------------------- >To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org >For additional commands, e-mail: commons-dev-help@jakarta.apache.org > > > > --------------020808070400010004040203--