Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 10887 invoked from network); 11 Nov 2010 17:30:53 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 11 Nov 2010 17:30:53 -0000 Received: (qmail 8571 invoked by uid 500); 11 Nov 2010 17:31:24 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 8534 invoked by uid 500); 11 Nov 2010 17:31:23 -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 8526 invoked by uid 99); 11 Nov 2010 17:31:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Nov 2010 17:31:23 +0000 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of chubrilo@gmail.com designates 209.85.214.43 as permitted sender) Received: from [209.85.214.43] (HELO mail-bw0-f43.google.com) (209.85.214.43) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Nov 2010 17:31:19 +0000 Received: by bwz14 with SMTP id 14so2390657bwz.2 for ; Thu, 11 Nov 2010 09:30:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:content-type:content-transfer-encoding; bh=1UDIIavz8NMU/1V5imLkJlhTeS7PfgJKlQr4hmvMKdQ=; b=jfYE46G/TGLKmGp90Tp1eMzWoiNWVmAUY+Jyi7OiqtYDb5gsK59jYaDU3e5Z/mfk6Z l+J+WWEvHzjbhvgZcQSJhTwYqNhELJFKRu2RoWjwIE/nb4wM7DOR6pUPh/cHA1REY6NB N7+Qdw/t8n6A+cnXrC/aofI5wD+xW8VyvnHhE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=Th0jJb4rK/CKuWD+XGWd7IreXTEC/f3WC+eVFQZQhMa9yM6WDjv1xk59hfl3uN2QEc fK2HCnV4LzUwd9nn9UjuIKOxi7yWPPqMxXz0P0o1uXbQNQb93NaragkXfPk5OAU4U6vU 7s73a+M3y3WMzC7Xnvy6ZgCpQ8BVxVuxe7kVk= MIME-Version: 1.0 Received: by 10.204.100.139 with SMTP id y11mr1691052bkn.93.1289496657688; Thu, 11 Nov 2010 09:30:57 -0800 (PST) Sender: chubrilo@gmail.com Received: by 10.204.80.226 with HTTP; Thu, 11 Nov 2010 09:30:57 -0800 (PST) In-Reply-To: <1289492884079-3038143.post@n4.nabble.com> References: <1289492884079-3038143.post@n4.nabble.com> Date: Thu, 11 Nov 2010 18:30:57 +0100 X-Google-Sender-Auth: -yzeG64RCx_7KnEbvSoqnLy_KEY Message-ID: Subject: Re: Broker URI configuration causing SAX errors From: Dejan Bosanac To: users@activemq.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Try using & instead of & Cheers -- Dejan Bosanac ----------------- FuseSource - The experts in open source integration and messaging. Email: dejanb@fusesource.com Web: http://fusesource.com Twitter: =A0http://twitter.com/dejanb ActiveMQ in Action - http://www.manning.com/snyder/ Blog - http://www.nighttale.net On Thu, Nov 11, 2010 at 5:28 PM, mikey wrote: > > I have a JNDI configuration for an embedded broker in my Tomcat context.x= ml, > I'm trying to use the broker uri syntax to configure the broker and havin= g > varied luck. =A0My configuration works until I try to add the useJmx opti= on to > the URI. =A0When I add useJmx=3Dfalse I get the following on tomcat start= up: > > SEVERE: Parse Fatal Error at line 37 column 134: The reference to entity > "broker.useJmx" must end with the ';' delimiter. > org.xml.sax.SAXParseException: The reference to entity "broker.useJmx" mu= st > end with the ';' delimiter.>...at > com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXPars= eException(ErrorHandlerWrapper.java:195) > > Can anyone help me figure out what I am doing wrong in my broker config > syntax? > > Here is my resource in tomcat: > > > =A0 =A0type=3D"org.apache.activemq.ActiveMQConnectionFactory" > =A0 =A0description=3D"JMS Connection Factory Home" > =A0 =A0factory=3D"org.apache.activemq.jndi.JNDIReferenceFactory" > =A0 =A0brokerURL=3D"vm://localhost?broker.persistent=3Dfalse" > =A0 =A0 =A0 =A0 =A0 =A0 =A0brokerName=3D"sharedAuditBroker"/> > > The above works, but when I change brokerURL to: > > > brokerURL=3D"vm://localhost?broker.persistent=3Dfalse&useJmx=3Dfalse" > > or > > brokerURL=3D"vm://localhost?broker.persistent=3Dfalse&broker.useJmx=3Dfal= se" > > I get the error listed above. > > Thanks for any insight on this! > > > -- > View this message in context: http://activemq.2283324.n4.nabble.com/Broke= r-URI-configuration-causing-SAX-errors-tp3038143p3038143.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. >