You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by petersk <pe...@msn.com> on 2010/09/21 01:47:52 UTC
Unexpected token error when starting
I tried the following (which I thought was simple) method of starting
activemq:
sudo ./activemq
broker:(tcp://localhost:9999,stomp://localhost:9998)?useJmx=true
and get:
bash: syntax error near unexpected token `('
What am I doing wrong? I looked in a lot of places and google doesn't even
seem to have any examples of someone having the same problem.
Kurt
--
View this message in context: http://activemq.2283324.n4.nabble.com/Unexpected-token-error-when-starting-tp2547823p2547823.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
RE: Unexpected token error when starting
Posted by Allen Reese <ar...@yahoo-inc.com>.
I think you are missing the start directive, I saw the ('s and immediately thought it was bash messing with you, but that might only be partly true.
sudo bin/activemq start 'broker:(tcp://localhost:9999,stomp://localhost:9998)?useJmx=true'
--Allen Reese
-----Original Message-----
From: petersk [mailto:peterskurt@msn.com]
Sent: Tuesday, September 21, 2010 9:50 AM
To: users@activemq.apache.org
Subject: RE: Unexpected token error when starting
I tried your suggestion and still get the same type of response:
[code]
/opt/javalibs/apache-activemq-5.4.0]$ sudo bin/activemq 'broker:(tcp://localhost:9999,stomp://localhost:9998)?useJmx=true'
INFO: Using default configuration
(you can configure options in one of these file: /etc/default/activemq
/home/kpeters/.activemqrc)
INFO: Invoke the following command to create a configuration file bin/activemq setup [ /etc/default/activemq | /home/kpeters/.activemqrc ]
INFO: Using java '/usr/bin/java'
;: -c: line 0: syntax error near unexpected token `('
;: -c: line 0: `/usr/bin/java
-Dactivemq.classpath="/opt/javalibs/apache-activemq-5.4.0/conf;"
-Dactivemq.home="/opt/javalibs/apache-activemq-5.4.0"
-Dactivemq.base="/opt/javalibs/apache-activemq-5.4.0"
-jar "/opt/javalibs/apache-activemq-5.4.0/bin/run.jar"
broker:(tcp://localhost:9999,stomp://localhost:9998)?useJmx=true'
[/code]
--
View this message in context: http://activemq.2283324.n4.nabble.com/Unexpected-token-error-when-starting-tp2547823p2549003.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
RE: Unexpected token error when starting
Posted by petersk <pe...@msn.com>.
I tried your suggestion and still get the same type of response:
[code]
/opt/javalibs/apache-activemq-5.4.0]$ sudo bin/activemq
'broker:(tcp://localhost:9999,stomp://localhost:9998)?useJmx=true'
INFO: Using default configuration
(you can configure options in one of these file: /etc/default/activemq
/home/kpeters/.activemqrc)
INFO: Invoke the following command to create a configuration file
bin/activemq setup [ /etc/default/activemq | /home/kpeters/.activemqrc ]
INFO: Using java '/usr/bin/java'
;: -c: line 0: syntax error near unexpected token `('
;: -c: line 0: `/usr/bin/java
-Dactivemq.classpath="/opt/javalibs/apache-activemq-5.4.0/conf;"
-Dactivemq.home="/opt/javalibs/apache-activemq-5.4.0"
-Dactivemq.base="/opt/javalibs/apache-activemq-5.4.0"
-jar "/opt/javalibs/apache-activemq-5.4.0/bin/run.jar"
broker:(tcp://localhost:9999,stomp://localhost:9998)?useJmx=true'
[/code]
--
View this message in context: http://activemq.2283324.n4.nabble.com/Unexpected-token-error-when-starting-tp2547823p2549003.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
RE: Unexpected token error when starting
Posted by Allen Reese <ar...@yahoo-inc.com>.
Bash is probably getting you.
The single quotes will keep it from evaluating the ('s for you. :)
Try sudo ./activemq 'broker:(tcp://localhost:9999,stomp://localhost:9998)?useJmx=true'
--Allen Reese
-----Original Message-----
From: petersk [mailto:peterskurt@msn.com]
Sent: Monday, September 20, 2010 4:48 PM
To: users@activemq.apache.org
Subject: Unexpected token error when starting
I tried the following (which I thought was simple) method of starting
activemq:
sudo ./activemq
broker:(tcp://localhost:9999,stomp://localhost:9998)?useJmx=true
and get:
bash: syntax error near unexpected token `('
What am I doing wrong? I looked in a lot of places and google doesn't even seem to have any examples of someone having the same problem.
Kurt
--
View this message in context: http://activemq.2283324.n4.nabble.com/Unexpected-token-error-when-starting-tp2547823p2547823.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.