From commonsjenny79@example.org Mon Jul 11 17:55:06 2005
Return-Path: <commonsjenny79@example.org>
Delivered-To: jenny79@example.org
Received: (qmail 99935 invoked from network); 11 Jul 2005 17:55:06 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155)
  by minotaur.apache.org with SMTP; 11 Jul 2005 17:55:06 -0000
Received: (qmail 23032 invoked by uid 500); 11 Jul 2005 17:55:05 -0000
Delivered-To: jenny79@example.org
Received: (qmail 23016 invoked by uid 500); 11 Jul 2005 17:55:05 -0000
Mailing-List: contact jenny79@example.org; run by ezmlm
Precedence: bulk
list-help: <mailto:jenny79@example.org>
list-unsubscribe: <mailto:jenny79@example.org>
List-Post: <mailto:jenny79@example.org>
list-id: "DB Commons Developers List" <commons-dev.db.apache.org>
reply-to: "DB Commons Developers List" <jenny79@example.org>
Delivered-To: mailing list jenny79@example.org
Delivered-To: moderator for jenny79@example.org
Received: (qmail 96252 invoked by uid 99); 11 Jul 2005 17:48:29 -0000
X-ASF-Spam-Status: No, hits=0.1 required=10.0
	tests=HTML_50_60,HTML_MESSAGE
X-Spam-Check-By: apache.org
Received-SPF: neutral (asf.osuosl.org: local policy)
X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C58640.BBD97614"
Subject: HttpClient and classpath issues
Date: Mon, 11 Jul 2005 14:48:23 -0300
Message-ID: <jenny79@example.org>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: simulator status
Thread-Index: AcWDKlWP1DDJ/oPHRpSEUt6dvExanwC+rSDgAAbTNJA=
From: "Brad Barkhouse" <jenny79@example.org>
To: <jenny79@example.org>
X-OriginalArrivalTime: 11 Jul 2005 17:48:25.0236 (UTC) FILETIME=[BCBB7D40:01C58640]
X-Virus-Checked: Checked by ClamAV on apache.org
X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N

This is a multi-part message in MIME format.

------_=_NextPart_001_01C58640.BBD97614
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi all,

> I'm running into some issues running the modem simulator on UNIX  (it =
runs fine on Windows) and I was wondering if anyone else has encountered =
similar behaviour.  I'll try to briefly sum up what's happening:
>=20
> Here's my shell script:
>=20
> java -verbose -classpath =
.:classes:lib\mail.jar:lib\activation.jar:lib\xalan.jar:lib\j2ee.jar:lib\=
sun-xercesImpl.jar:lib\xercesImpl.jar:lib\dom.jar:lib\saaj-api.jar:lib\sa=
aj-impl.jar:lib\commons-httpclient-2.0.jar:lib\commons-logging.jar:lib\co=
mmons-logging-api.jar:lib\commons-httpclient-2.0.jar =
com.supportsoft.acs.modemsimulator.simulate_n_modem $*
>=20
> And now the console output (note that I've turned verbosity on, and =
included the most important parts):
>=20
> .Finished processing...
> Use -Kill commands to kill the modems
> [Loaded com.supportsoft.acs.modemsimulator.UserInterfaceHttpListener]
> [Loaded java.io.UnsupportedEncodingException from =
/usr/local/j2sdk1.4.1_07/jre/lib/rt.jar]
>=20
>          -Kill_range n,m=3D kills modem starting from n to m
>          -Kill_one n=3D kills nth modem
>          -Kill_all =3D kills all the launched modem
>          -Start_one n=3D restarts nth modem
> Listening for incoming HTTP requests on port 8181
> [Loaded java.lang.ClassFormatError from =
/usr/local/j2sdk1.4.1_07/jre/lib/rt.jar]
> java.lang.NoClassDefFoundError: =
org/apache/commons/httpclient/HttpClient
> [Loaded java.lang.StackTraceElement from =
/usr/local/j2sdk1.4.1_07/jre/lib/rt.jar]
>         at java.lang.ClassLoader.defineClass0(Native Method)
>         at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
>         at =
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
>         at =
java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
>         at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
>         at =
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:272)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
>         at =
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
>         at =
com.supportsoft.acs.modemsimulator.worker.do_the_real_work(worker.java:49=
)
>         at =
com.supportsoft.acs.modemsimulator.worker.run(worker.java:479)
>         at java.lang.Thread.run(Thread.java:536)
>=20
>=20
> Appears to be an issue with commons-httpclient-2.0.jar.  I'm not sure =
if the presence of the ClassFormatError indicates that it is corrupt, =
but that seems unlikely as I have tried copying the same file from other =
areas on aluminum.  I've also tried playing with the classpath-ordering =
of the jar file, to no avail.  Debugging it from the command-line hasn't =
turned up anything useful either.  Help, I'm running out of ideas!
>=20
> P.S. - I AM using the same java version between Windows and UNIX  =
(1.4.1_07), so that shouldn't be an issue.
>=20
> --
> Brad Barkhouse
> Senior Software Engineer
> SupportSoft Canada Inc.
> jenny79@example.org
> http://www.supportsoft.com
> v. (706)930-1836
> f. (706)930-1836
>=20
>=20
>=20

------_=_NextPart_001_01C58640.BBD97614
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.5.7226.0">
<TITLE>HttpClient and classpath issues</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=3D2 FACE=3D"Arial">Hi all,</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">I'm running into some issues running =
the modem simulator on </FONT><FONT COLOR=3D"#0000FF" SIZE=3D2 =
FACE=3D"Arial">UNIX</FONT><FONT SIZE=3D2 FACE=3D"Arial">&nbsp; (it runs =
fine on Windows) and I was wondering if anyone else has encountered =
similar behaviour.&nbsp; I'll try to briefly sum up what's =
happening:</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Here's my shell script:</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">java -verbose -classpath =
.:classes:lib\mail.jar:lib\activation.jar:lib\xalan.jar:lib\j2ee.jar:lib\=
sun-xercesImpl.jar:lib\xercesImpl.jar:lib\dom.jar:lib\saaj-api.jar:lib\sa=
aj-impl.jar:lib\commons-httpclient-2.0.jar:lib\commons-logging.jar:lib\co=
mmons-logging-api.jar:<B>lib\commons-httpclient-2.0.jar</B> =
com.supportsoft.acs.modemsimulator.simulate_n_modem $*</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">And now the console output (note that =
I've turned verbosity on, and included the most important parts):</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Courier New">.Finished processing...</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier New">Use -Kill commands to kill the =
modems</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier New">[Loaded =
com.supportsoft.acs.modemsimulator.UserInterfaceHttpListener]</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier New">[Loaded =
java.io.UnsupportedEncodingException from =
/usr/local/j2sdk1.4.1_07/jre/lib/rt.jar]</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Courier =
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -Kill_range n,m=3D =
kills modem starting from n to m</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier =
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -Kill_one n=3D =
kills nth modem</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier =
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -Kill_all =3D =
kills all the launched modem</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier =
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -Start_one n=3D =
restarts nth modem</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier New">Listening for incoming HTTP =
requests on port 8181</FONT>

<BR><B><FONT SIZE=3D2 FACE=3D"Courier New">[Loaded =
java.lang.ClassFormatError from =
/usr/local/j2sdk1.4.1_07/jre/lib/rt.jar]</FONT></B>

<BR><B><FONT SIZE=3D2 FACE=3D"Courier =
New">java.lang.NoClassDefFoundError: =
org/apache/commons/httpclient/HttpClient</FONT></B>

<BR><FONT SIZE=3D2 FACE=3D"Courier New">[Loaded =
java.lang.StackTraceElement from =
/usr/local/j2sdk1.4.1_07/jre/lib/rt.jar]</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier =
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
java.lang.ClassLoader.defineClass0(Native Method)</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier =
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
java.lang.ClassLoader.defineClass(ClassLoader.java:502)</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier =
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)</=
FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier =
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
java.net.URLClassLoader.defineClass(URLClassLoader.java:250)</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier =
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
java.net.URLClassLoader.access$100(URLClassLoader.java:54)</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier =
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
java.net.URLClassLoader$1.run(URLClassLoader.java:193)</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier =
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
java.security.AccessController.doPrivileged(Native Method)</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier =
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
java.net.URLClassLoader.findClass(URLClassLoader.java:186)</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier =
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
java.lang.ClassLoader.loadClass(ClassLoader.java:299)</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier =
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:272)</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier =
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
java.lang.ClassLoader.loadClass(ClassLoader.java:255)</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier =
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier =
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
com.supportsoft.acs.modemsimulator.worker.do_the_real_work(worker.java:49=
)</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier =
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
com.supportsoft.acs.modemsimulator.worker.run(worker.java:479)</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier =
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
java.lang.Thread.run(Thread.java:536)</FONT>
</P>
<BR>

<P><FONT SIZE=3D2 FACE=3D"Arial">Appears to be an issue with =
commons-httpclient-2.0.jar.&nbsp; I'm not sure if the presence of the =
ClassFormatError indicates that it is corrupt, but that seems unlikely =
as I have tried copying the same file from other areas on =
aluminum.&nbsp; I've also tried playing with the classpath-ordering of =
the jar file, to no avail.&nbsp; Debugging it from the command-line =
hasn't turned up anything useful either.&nbsp; Help, I'm running out of =
ideas!</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">P.S. - I AM using the same java version =
between </FONT><FONT COLOR=3D"#0000FF" SIZE=3D2 =
FACE=3D"Arial">Windows</FONT><FONT SIZE=3D2 FACE=3D"Arial"> and =
</FONT><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial">UNIX</FONT><FONT =
SIZE=3D2 FACE=3D"Arial">&nbsp; (1.4.1_07), so that shouldn't be an =
issue.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">--</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">Brad Barkhouse</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">Senior Software Engineer</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">SupportSoft Canada Inc.</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">jenny79@example.org</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial"><A =
HREF=3D"http://www.supportsoft.com">http://www.supportsoft.com</A></FONT>=


<BR><FONT SIZE=3D2 FACE=3D"Arial">v. (706)930-1836</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">f. (706)930-1836</FONT>
</P>
<BR>
<BR>

</BODY>
</HTML>
------_=_NextPart_001_01C58640.BBD97614--


{'source': 'Apache Software Foundation Public Mail Archives'}