Best unofficial Apache Server developers community
Username
Forgot password?
Sign in with Twitter account
Sign in with Facebook account
List archives

Broker URI configuration causing SAX errors

How to Purge a queue via TCP/NMS or HTTP
(26 lines)
Nov 11, 2010
Mikey
Mikey
I have a JNDI configuration for an embedded broker in my Tomcat
context.xml,
I'm trying to use the broker uri syntax to configure the broker and having
varied luck.  My configuration works until I try to add the useJmx option
to
the URI.  When I add useJmx=false I get the following on tomcat startup:

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" must
end with the ';' delimiter.>...at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(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:


<Resource name="jms/connectionFactory" auth="Container" 
    type="org.apache.activemq.ActiveMQConnectionFactory" 
    description="JMS Connection Factory Home" 
    factory="org.apache.activemq.jndi.JNDIReferenceFactory" 
    brokerURL="vm://localhost?broker.persistent=false" 
              brokerName="sharedAuditBroker"/>

The above works, but when I change brokerURL to:


brokerURL="vm://localhost?broker.persistent=false&useJmx=false"

or

brokerURL="vm://localhost?broker.persistent=false&broker.useJmx=false"

I get the error listed above.  

Thanks for any insight on this!
 
 



Reply
Tags: syntax
Messages in this thread
Broker URI configuration causing SAX errors
Similar Threads
Created: (DTACLOUD-4) JSON gem as of version 1.4.6 is causing server errors
JSON gem as of version 1.4.6 is causing server errors
Created: (CAMEL-2776) Cached stream file deletion causing file not found errors
Cached stream file deletion causing file not found errors
Created: (HDFS-1418) DFSClient Uses Deprecated "mapred.task.id" Configuration Key Causing
DFSClient Uses Deprecated "mapred.task.id" Configuration Key Causing Unecessary Warning Messages
Updated: (AMQ-2388) improve logging configuration for broker & examples
[ https://issues.apache.org/activemq/browse/AMQ-2388?page=com.atlassian. jira.plugin.system.issuetabpanels:all-tabpanel ] Bruce Snyder updated AMQ-2388:
Updated: (AMQ-2388) improve logging configuration for broker & examples
[ https://issues.apache.org/activemq/browse/AMQ-2388?page=com.atlassian. jira.plugin.system.issuetabpanels:all-tabpanel ] Hadrian Zbarcea updated AMQ-2388:
Could not start up embeded ActiveMQ Broker 'xbean:broker-config.xml'
Hello: I´m working with activemq 5.3.2 and a JCA-Conector activemq-rar-5.3.2 for oc4j. Whe I try to deploy the conector activemq-rar-5.3.2, I get following Exception ADVERTENCIA: Could not start up embeded ActiveMQ Broker…
Updated: (AMQ-2329) Queue.send NPE in broker => inoperative broker
[ https://issues.apache.org/activemq/browse/AMQ-2329?page=com.atlassian. jira.plugin.system.issuetabpanels:all-tabpanel ] Bruce Snyder updated AMQ-2329:
Commented: (AMQ-1862) Master broker is down when slave broker is crashed
[ https://issues.apache.org/activemq/browse/AMQ-1862?page=com.atlassian. jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentI d=61537#action_61537 ] Oleg Kiorsak commented on AMQ-1862:
Commented: (AMQ-1862) Master broker is down when slave broker is crashed
[ https://issues.apache.org/activemq/browse/AMQ-1862?page=com.atlassian. jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentI d=61543#action_61543 ] Gary Tully commented on AMQ-1862:
Re: Broker to Broker authentication using JAAS fails
Jim, Good to hear it's working. The closeAsync=false won't be necessary to get the SSL bit working, but helps with socket use if you've got lots of clients connecting for a short time. James. On 21 May 2010 21:13, Jim Lloyd…
How report errors and random errors in clients
Hello, I am using puppet 2.6.1rc3 in a test environment with AIX, Suse, Debians. Right now there are 5 clients... I am running puppet from cron each 30m (using random minute per host). I have prepared a configuration ready to deploy puppet in…
Updated: (AMQ-330) HTTP based discovery mechanism to allow broker discovery at broker & client l
[ https://issues.apache.org/activemq/browse/AMQ-330?page=com.atlassian.j ira.plugin.system.issuetabpanels:all-tabpanel ] Bruce Snyder updated AMQ-330:
log4j Causing Exceptions
Good Morning, I'm attempting to implement log4j logging for MyBatis to troubleshoot my single-result collection being null issue. I am getting exceptions (see bottom of this email) when I merely add log4j-1.2.16.jar to the classpath. Even if I…
How to troubleshoot what's causing so many connections?
Hi, We're using Tomcat 6.0.24. We're noticing a high number of active Tomcat connections on one of our servers. We suspect that a lot of these connections are idle and waiting for a database call to return, but how can we nail down more…
Trunk causing breakage
FYI, trunk seems to be breaking builds: http://markmail.org/message/sahqepu3ane6ati5 -Rahul
GC took 299 secs causing region server to die
I kept running into the stop-the-world GC during batch import of data into hbase. The configuration of a node in the 8-node cluster is as follows. * 4-core * 64-bit JVM * 8 GB of memory * CDH2 for hadoop and 0.20.5 for hbase * TT: 128 MB * DN:…
Exception causing close of session
Hi, zookeeper-3.2.2 is used out of HBase 0.20.5 Linux sjc1-.com 2.6.18-92.el5 #1 SMP Tue Jun 10 18:51:06 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux In hbase-hadoop-zookeeper-sjc1-cml-grid00.log, I see a lot of the following: 2010-08-26 22:58:01,930…
Trigger conditionally causing delete
Hi: I want to use to trigger on deletion of a detail record to automatically delete a summary record, if not more detail records exist, something like: CREATE TRIGGER detail_delete AFTER DELETE ON detail BEGIN -- here I don't know…
mongodb causing memory problems in other processes
Hi, I'm writing a Rails webapp that uses MongoDB as its main database. It's been running for a few months on our demo server and everything was ok, though we've never put much data into it. Now we have a staging and production site on MediaTemple…
Created: (POOL-170) Maven configuration updated with configuration for transitive dependency conflic
Maven configuration updated with configuration for transitive dependency conflict.