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 31B49916E for ; Sun, 20 Nov 2011 19:56:49 +0000 (UTC) Received: (qmail 91943 invoked by uid 500); 20 Nov 2011 19:56:48 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 91919 invoked by uid 500); 20 Nov 2011 19:56:48 -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 91911 invoked by uid 99); 20 Nov 2011 19:56:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 20 Nov 2011 19:56:48 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of seijoed@gmail.com designates 209.85.210.171 as permitted sender) Received: from [209.85.210.171] (HELO mail-iy0-f171.google.com) (209.85.210.171) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 20 Nov 2011 19:56:40 +0000 Received: by iaby12 with SMTP id y12so8007754iab.2 for ; Sun, 20 Nov 2011 11:56:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=0vxRvwLg4ZVcTtZlSXCx7wqWs2O6ZpsHR2Vd9xLn18w=; b=msmcBlRXwFxRkJdyFwWinJycbKNtwxN3Ta2N381Vf4HndHFTPApDGtEbld4IXmjEVp zM+1mpWSteHfE59sdID1KebtSF2JBRQdcofTBW3NhH25trL06ZF6OvClUWBTFrqMndMX y7kZhWgp+aYIHcRABhF7S9TJIeOGu5MDS24HQ= Received: by 10.50.213.40 with SMTP id np8mr11679412igc.10.1321818979332; Sun, 20 Nov 2011 11:56:19 -0800 (PST) Received: from [192.168.15.12] (70-59-32-208.hlrn.qwest.net. [70.59.32.208]) by mx.google.com with ESMTPS id mb4sm20660648igc.1.2011.11.20.11.56.16 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 20 Nov 2011 11:56:17 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1251.1) Subject: Re: use Http transport in version 5.5.0 with osgi From: Johan Edstrom In-Reply-To: <1321805254465-4088887.post@n4.nabble.com> Date: Sun, 20 Nov 2011 12:56:15 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <5F0B8A74-5B9D-4612-9502-462C0B949EE7@gmail.com> References: <1321789272801-4088466.post@n4.nabble.com> <946B4A29-2990-44C7-88DA-990407C3422A@gmail.com> <1321793797408-4088593.post@n4.nabble.com> <1321805254465-4088887.post@n4.nabble.com> To: users@activemq.apache.org X-Mailer: Apple Mail (2.1251.1) X-Virus-Checked: Checked by ClamAV on apache.org Something like this worked for 5.4, I think 5.5 will be very similar. bundles edu.ucar.ral.wcsri.bundles 3.1-beta-1-SNAPSHOT 4.0.0 = edu.ucar.ral.wcsri.bundles.activemq-optional-http= bundle WCSRI :: Bundles :: ${pkgArtifactId} This bundle wraps activemq-optional (HTTP) into WCSRI. org.apache.activemq activemq-optional ${activemq-optional-http.version} !com.thoughtworks.xstream*, !sun.misc*, !sun.reflect*, !org.mortbay.util.ajax, javax.xml.stream*;version=3D"[1.0,2)", net.sf.cglib*;resolution:=3Doptional;version=3D"[2.1.3,3)", nu.xom;resolution:=3Doptional;version=3D"[1.1,2)", org.codehaus.jettison*;resolution:=3Doptional;version=3D"[1,2)= ", org.dom4j*;resolution:=3Doptional;version=3D"[1.6.1,2)", org.jdom*;resolution:=3Doptional;version=3D"[1,2)", org.xmlpull*;version=3D"[1.1.3,2)", org.apache.activemq.transport.http, org.apache.activemq.command, * = org.apache.activemq.transport.http;version=3D"${activemq-optional-http.ver= sion}", = org.apache.activemq.transport.https;version=3D"${activemq-optional-http.ve= rsion}", = org.apache.activemq.transport.discovery.http;version=3D"${activemq-optiona= l-http.version}", = org.apache.activemq.transport.xstream;version=3D"${activemq-optional-http.= version}", '=3DMETA-INF.services.org.apache.activemq.transport', '=3DMETA-INF.services.org.apache.activemq.wireformat', = '=3DMETA-INF.services.org.apache.activemq.transport.discoveryagent' = org.apache.activemq.transport.util;version=3D"${activemq-optional-http.ver= sion}", * = edu.ucar.ral.wcsri.bundles.jetty-bundle-7.0.1= .v20091125,xstream = {maven-resources},{maven-dependencies} true org.apache.activemq activemq-optional ${activemq-optional-http.version} edu.ucar.ral.wcsri.bundles = edu.ucar.ral.wcsri.bundles.jetty-bundle-7.0.1.v20091125 ${project.version} com.thoughtworks.xstream xstream ${xstream.version} org.apache.maven.plugins maven-shade-plugin package shade = ${pkgGroupId}:${pkgArtifactId} = org.apache.activemq:activemq-optional = org/apache/activemq/transport/discovery/** = org/apache/activemq/transport/http/** = org/apache/activemq/transport/https/** = org/apache/activemq/transport/util/** = org/apache/activemq/transport/xstream/** = META-INF/services/org/apache/activemq/transport/** = META-INF/services/org/apache/activemq/wireformat/** = META-INF/services/org/apache/activemq/transport/discoveryagent/**= = com.thoughtworks.xstream:xstream ** =20 = true = true On Nov 20, 2011, at 9:07 AM, JacobS wrote: > I managed to get the server to work, but I cant receive object = messages in > the client because of this exception: >=20 > com.thoughtworks.xstream.converters.ConversionException: Cannot = construct > org.apache.activemq.util.ByteSequence as it does not have a no-args > constructor : Cannot construct org.apache.activemq.util.ByteSequence = as it > does not have a no-args constructor > ---- Debugging information ---- > message : Cannot construct = org.apache.activemq.util.ByteSequence > as it does not have a no-args constructor > cause-exception : > com.thoughtworks.xstream.converters.reflection.ObjectAccessException > cause-message : Cannot construct = org.apache.activemq.util.ByteSequence > as it does not have a no-args constructor > class : org.apache.activemq.command.MessageDispatch > required-type : org.apache.activemq.util.ByteSequence > path : > /org.apache.activemq.command.MessageDispatch/message/content >=20 >=20 > -- > View this message in context: = http://activemq.2283324.n4.nabble.com/use-Http-transport-in-version-5-5-0-= with-osgi-tp4088466p4088887.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com.