On Thu, 2007-11-08 at 19:40 -0500, Angso, Tony wrote: > Am using RAD6 (Websphere6) > The class path is both in .ClassPath file and also configured in > Websphere JVM classPath > The project is also configured to load PARENT_LAST, but I tried both > (PARENT_FIRST too) but it doesn't matter > > I still get ClassDefNotFound >
Welcome to Websphere hell. This problem has nothing to do with HttpClient, but a classic class loader problem. You may have a better luck writing to a Websphere support forum. Oleg > The .classpath file is below > <?xml version="1.0" encoding="UTF-8"?> > <classpath> > <classpathentry kind="src" path="JavaSource"/> > <classpathentry exported="true" kind="con" > path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.d > ebug.ui.launcher.StandardVMType/WebSphere v6 JRE"/> > <classpathentry exported="true" kind="con" > path="com.ibm.wtp.server.java.core.container/com.ibm.ws.ast.st.runtime.c > ore.runtimeTarget.v60/was.base.v6"/> > <classpathentry exported="true" kind="lib" > path="C:/fnsw/ISRA330/Jar/ISRA.jar"/> > <classpathentry exported="true" kind="lib" path="C:/Program > Files/IBM/Rational/SDP/6.0/runtimes/base_v6/lib/naming.jar"/> > <classpathentry exported="true" kind="lib" > path="C:/Tony/Download/Java/log4j/apache-log4j-1.2.15/log4j-1.2.15.jar"/ > > > <classpathentry exported="true" kind="lib" > path="C:/Tony/Download/Java/dom4j/dom4j-1.6.1/dom4j-1.6.1.jar"/> > <classpathentry > sourcepath="ECLIPSE_HOME/plugins/org.eclipse.jdt.source_3.0.0/src/org.ju > nit_3.8.1/junitsrc.zip" kind="var" path="JUNIT_HOME/junit.jar"/> > <classpathentry exported="true" kind="lib" > path="WebContent/WEB-INF/lib/prototaglib.jar"/> > <classpathentry exported="true" kind="lib" > path="C:/Tony/Download/Java/shared/jars/commons-logging-1.1.jar"/> > <classpathentry exported="true" kind="lib" > path="C:/Tony/Download/Java/shared/jars/commons-codec-1.3.jar"/> > <classpathentry exported="true" kind="lib" > path="C:/Tony/Download/Java/shared/jars/commons-httpclient-3.1.jar"/> > <classpathentry kind="output" > path="WebContent/WEB-INF/classes"/> > </classpath> > > Thanks > > Tony > > > -----Original Message----- > From: sebb [mailto:[EMAIL PROTECTED] > Sent: Thursday, November 08, 2007 7:34 PM > To: HttpClient User Discussion > Subject: Re: HttpClient No ClassDefFoundError > > > 1) Since you are using relative paths for the classpath entries, make > sure that the launch directory is correct; > > 2) How are you starting the application? Note that if you are using > something like: > > java -jar application.jar > > then the classpath is ignored. See the java documentation for details. > > On 08/11/2007, ggcampbell <[EMAIL PROTECTED]> wrote: > > > > Where ever you got the httpclient classpath link. I think and of the > > three would work. Just be sure to get all 3 .jar files in the path. > > > > I used > > set ClassPath=.;.... > > since the lib/ etc is just below the working directory. > > > > > > > > Angso, Tony wrote: > > > > > > Thanks for the reply, but where do you specify the classpath? 1. in > > > windows environment 2. in websphere jvm? > > > 3. in project build path? > > > > > > Tony > > > > > > > > > -----Original Message----- > > > From: ggcampbell [mailto:[EMAIL PROTECTED] > > > Sent: Thursday, November 08, 2007 4:52 PM > > > To: httpclient-user@jakarta.apache.org > > > Subject: Re: HttpClient No ClassDefFoundError > > > > > > > > > > > > CLASSPATH=.;lib/commons-httpclient-3.1-rc1.jar;lib/commons-logging-1 > > > .0.4 > > > .jar;lib/commons-codec-1.3.jar > > > > > > > > > > > > Angso, Tony wrote: > > >> > > >> Am trying to use commons-HttpClient, the jar is in my JVM classPath > > > >> and I get the error below > > >> > > >> java.lang.NoClassDefFoundError: > > >> org.apache.commons.httpclient.HttpClient > > >> > > >> I tried using version 3.1 and 2.0.2 still the same resut. > > >> > > >> Is there dependencies to other commons-jar? > > >> > > >> Thanks > > >> > > >> Tony > > >> > > >> ----------------------------------------- > > >> This e-mail message and any attachments contain confidential > > >> information from Medco. If you are not the intended recipient, you > > >> are > > > > > >> hereby notified that disclosure, printing, copying, distribution, > > >> or the taking of any action in reliance on the contents of this > > >> electronic information is strictly prohibited. If you have received > > > >> this e-mail message in error, please immediately notify the sender > > >> by reply message and then delete the electronic message and any > > >> attachments. > > >> > > >> ------------------------------------------------------------------- > > >> -- > > >> To unsubscribe, e-mail: > [EMAIL PROTECTED] > > >> For additional commands, e-mail: > > >> [EMAIL PROTECTED] > > >> > > >> > > >> > > > > > > -- > > > View this message in context: > > > http://www.nabble.com/https-and-aspx-tf4773539.html#a13656716 > > > Sent from the HttpClient-User mailing list archive at Nabble.com. > > > > > > > > > -------------------------------------------------------------------- > > > - > > > To unsubscribe, e-mail: > [EMAIL PROTECTED] > > > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > > > > > > -------------------------------------------------------------------- > > > - > > > To unsubscribe, e-mail: > [EMAIL PROTECTED] > > > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > > > > > > > > > > -- > > View this message in context: > > http://www.nabble.com/https-and-aspx-tf4773539.html#a13657229 > > Sent from the HttpClient-User mailing list archive at Nabble.com. > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: > > [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]