From users-return-30888-apmail-activemq-users-archive=activemq.apache.org@activemq.apache.org Mon May 21 15:27:30 2012 Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D5A549864 for ; Mon, 21 May 2012 15:27:30 +0000 (UTC) Received: (qmail 2024 invoked by uid 500); 21 May 2012 15:27:30 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 1991 invoked by uid 500); 21 May 2012 15:27:30 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 1983 invoked by uid 99); 21 May 2012 15:27:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 May 2012 15:27:30 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of torsten@fusesource.com designates 74.125.245.72 as permitted sender) Received: from [74.125.245.72] (HELO na3sys010aog102.obsmtp.com) (74.125.245.72) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 May 2012 15:27:24 +0000 Received: from mail-pb0-f43.google.com ([209.85.160.43]) (using TLSv1) by na3sys010aob102.postini.com ([74.125.244.12]) with SMTP ID DSNKT7pex1QhCL8oXWrSCyDL2ma6bLGdHi18@postini.com; Mon, 21 May 2012 08:27:03 PDT Received: by pbcwz7 with SMTP id wz7so7936711pbc.30 for ; Mon, 21 May 2012 08:27:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer :x-gm-message-state; bh=9tfuGrHtkk3juC3mm3nwlLUf93zc7FIFCbawyZeZnW4=; b=b7vCF1zuj82fbMB+hB6XVZcSsZeRzOHDbcHpT1zFGq5y9qhzv4voDTdaDjvUb0njEV azvzkdT2aHwNxkXtVullcDwSyrOAmyTrCZXY/rGpHGMaOGJvQYtEDHYmd6ZINj1EZeMM FLFdJ3qscLL7mAgxaG3lFYmXQIWwPqE9AnJuawxyuc6ltz/exVJj7Y9qkpv7d3Ft7nGs 5ZlWsEN1TSXghkq2oNrJn+Qp/MXzNmO/eh7xLim5JhYMSlUuGmWqgVMXt134SwzumBcP IiURghWAMbj+a7JcDDlC1R/4NZG2pRiiVEdN1WNTl8NTO8jKcmq3+sTdin7PfFPjNEyG ryWg== Received: by 10.68.189.133 with SMTP id gi5mr25756924pbc.154.1337614022493; Mon, 21 May 2012 08:27:02 -0700 (PDT) Received: from [192.168.178.31] (p57BD6D14.dip0.t-ipconnect.de. [87.189.109.20]) by mx.google.com with ESMTPS id og6sm23408517pbb.42.2012.05.21.08.26.59 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 21 May 2012 08:27:01 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1084) Subject: Re: Little help on Java HTTP client From: Torsten Mielke In-Reply-To: Date: Mon, 21 May 2012 17:26:53 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <92F4617E-B2A9-4DD2-A2D6-F5F893D22FC2@fusesource.com> References: To: users@activemq.apache.org X-Mailer: Apple Mail (2.1084) X-Gm-Message-State: ALoCoQnVi77RBZ3JBey7DYShEqnjo7HAUPNdJY10/hBAUCRYIRSrRlv7wUZ3pQrbSmfdGIm0oYG4 X-Virus-Checked: Checked by ClamAV on apache.org I checked my local maven repo and have this class in=20 org/apache/httpcomponents/httpcore/4.1.2/httpcore-4.1.2.jar Try adding this dependency to your maven pom or reference the jar = directly on your classpath. Hope this helps. Torsten Mielke torsten@fusesource.com tmielke@blogspot.com On May 4, 2012, at 7:47 PM, Chris Robison wrote: > I'm trying to get a java client connecting an AMQ server over HTTP, = but the > client keeps throwing the following exception: >=20 > Exception in thread "main" java.lang.NoClassDefFoundError: > org/apache/http/message/AbstractHttpMessage > at > = org.apache.activemq.transport.http.HttpTransportFactory.createTransport(Ht= tpTransportFactory.java:72) > at > = org.apache.activemq.transport.TransportFactory.doConnect(TransportFactory.= java:141) > at > = org.apache.activemq.transport.TransportFactory.doConnect(TransportFactory.= java:51) > at > = org.apache.activemq.transport.TransportFactory.connect(TransportFactory.ja= va:80) > at > = org.apache.activemq.ActiveMQConnectionFactory.createTransport(ActiveMQConn= ectionFactory.java:252) > at > = org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(Act= iveMQConnectionFactory.java:267) > at > = org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(Act= iveMQConnectionFactory.java:239) > at > = org.apache.activemq.ActiveMQConnectionFactory.createConnection(ActiveMQCon= nectionFactory.java:185) > at ResponderProgram.run(ResponderProgram.java:34) > at ResponderProgram.main(ResponderProgram.java:58) > Caused by: java.lang.ClassNotFoundException: > org.apache.http.message.AbstractHttpMessage > at java.net.URLClassLoader$1.run(Unknown Source) > at java.net.URLClassLoader$1.run(Unknown Source) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(Unknown Source) > at java.lang.ClassLoader.loadClass(Unknown Source) > at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) > at java.lang.ClassLoader.loadClass(Unknown Source) > ... 10 more >=20 > I'm referencing every jar library I can. Any thoughts? >=20 > Chris