You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by jang <wl...@naver.com> on 2016/11/27 10:09:36 UTC

jolokia-agent: Using policy access restrictor classpath:/jolokia-access.xml

Hello im a new user of this ActiveMQ

im just downloaded it already finished to set JAVA enviorment and MVN also

but when i start this ActiveMQ by console. 

it just stop int this moment


C:\apache-activemq-5.14.1\bin>java -jar activemq.jar start
Java Runtime: Oracle Corporation 1.8.0_111 C:\Program
Files\Java\jre1.8.0_111
  Heap sizes: current=58880k  free=57327k  max=859648k
    JVM args:
Extensions classpath:
 
[C:\apache-activemq-5.14.1\lib,C:\apache-activemq-5.14.1\lib\camel,C:\apache-activemq-5.14.1\lib\optional,C:\apache-activemq-5.14.1\lib\web,C:\apache-activemq-5.14.1\lib\extra]
ACTIVEMQ_HOME: C:\apache-activemq-5.14.1
ACTIVEMQ_BASE: C:\apache-activemq-5.14.1
ACTIVEMQ_CONF: C:\apache-activemq-5.14.1\conf
ACTIVEMQ_DATA: C:\apache-activemq-5.14.1\data
Loading message broker from: xbean:activemq.xml
 INFO | Refreshing org.apache.activemq.xbean.XBeanBrokerFactory$1@13969fbe:
startup date [Sun Nov 27 19:12:49 KST 2016]; root of context hierarchy
 INFO | Using Persistence Adapter:
KahaDBPersistenceAdapter[C:\apache-activemq-5.14.1\data\kahadb]
 INFO | KahaDB is version 6
 INFO | Recovering from the journal @1:95926
 INFO | Recovery replayed 31 operations from the journal in 0.102 seconds.
 INFO | PListStore:[C:\apache-activemq-5.14.1\data\localhost\tmp_storage]
started
 INFO | Apache ActiveMQ 5.14.1 (localhost, ID:Jinsu-35083-1480241571128-0:1)
is starting
 INFO | Listening for connections at:
tcp://Jinsu:61616?maximumConnections=1000&wireFormat.maxFrameSize=104857600
 INFO | Connector openwire started
 INFO | Listening for connections at:
amqp://Jinsu:5672?maximumConnections=1000&wireFormat.maxFrameSize=104857600
 INFO | Connector amqp started
 INFO | Listening for connections at:
stomp://Jinsu:61613?maximumConnections=1000&wireFormat.maxFrameSize=104857600
 INFO | Connector stomp started
 INFO | Listening for connections at:
mqtt://Jinsu:1883?maximumConnections=1000&wireFormat.maxFrameSize=104857600
 INFO | Connector mqtt started
 WARN |
ServletContext@o.e.j.s.ServletContextHandler@60b4beb4{/,null,STARTING} has
uncovered http methods for path: /
 INFO | Listening for connections at
ws://Jinsu:61614?maximumConnections=1000&wireFormat.maxFrameSize=104857600
 INFO | Connector ws started
 INFO | Apache ActiveMQ 5.14.1 (localhost, ID:Jinsu-35083-1480241571128-0:1)
started
 INFO | For help or more information please see: http://activemq.apache.org
 WARN | Store limit is 102400 mb (current store usage is 0 mb). The data
directory: C:\apache-activemq-5.14.1\data\kahadb only has 34602 mb of usable
space. - resetting to maximum available disk space: 34602 mb
 WARN | Temporary Store limit is 51200 mb (current store usage is 0 mb). The
data directory: C:\apache-activemq-5.14.1\data only has 34602 mb of usable
space. - resetting to maximum available disk space: 34602 mb
 INFO | No Spring WebApplicationInitializer types detected on classpath
 INFO | ActiveMQ WebConsole available at http://0.0.0.0:8161/
 INFO | ActiveMQ Jolokia REST API available at
http://0.0.0.0:8161/api/jolokia/
 INFO | Initializing Spring FrameworkServlet 'dispatcher'
 INFO | No Spring WebApplicationInitializer types detected on classpath
 INFO | jolokia-agent: Using policy access restrictor
classpath:/jolokia-access.xml

what should i do for run this ActiveMQ?



--
View this message in context: http://activemq.2283324.n4.nabble.com/jolokia-agent-Using-policy-access-restrictor-classpath-jolokia-access-xml-tp4719506.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: jolokia-agent: Using policy access restrictor classpath:/jolokia-access.xml

Posted by Tim Bain <tb...@alumni.duke.edu>.
And what happens when you take Claus's suggestion and run "activemq start"
from the bin directory instead of invoking java directly?

Calling java yourself isn't recommended for someone just getting started
with ActiveMQ.  In fact, it's not recommended for anyone at all unless they
have a concrete reason why the script won't work.

Tim

On Nov 28, 2016 9:13 AM, "jang" <wl...@naver.com> wrote:

> yes when i push the button start, it no longer running...
> and the ports are not open too..
>
> Atually i had experience to running this ActivemQ at 32bit Window computer
> before.
>
> but when i tryied in 64bit window and linux it just stopped in that moment.
> i can't type anything
> after stop this moment.
>
>
> i replyed again.
>
> Microsoft Windows [Version 10.0.14393]
> (c) 2016 Microsoft Corporation. All rights reserved.
>
> C:\Users\wlstn>java -version
> java version "1.8.0_111"
> Java(TM) SE Runtime Environment (build 1.8.0_111-b14)
> Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode)
>
> C:\Users\wlstn>javac -version
> javac 1.8.0_111
>
> C:\Users\wlstn>mvn -version
> Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5;
> 2015-11-11T01:41:47+09:00)
> Maven home:
> C:\Users\wlstn\Desktop\EPICS\apache-maven-3.3.9-bin\apache-
> maven-3.3.9\bin\..
> Java version: 1.8.0_111, vendor: Oracle Corporation
> Java home: C:\Program Files\Java\jdk1.8.0_111\jre
> Default locale: ko_KR, platform encoding: MS949
> OS name: "windows 10", version: "10.0", arch: "amd64", family: "dos"
>
> C:\Users\wlstn>cd C:\apache-activemq-5.14.1\bin
>
> C:\apache-activemq-5.14.1\bin>java -jar activemq.jar start
> Java Runtime: Oracle Corporation 1.8.0_111 C:\Program
> Files\Java\jre1.8.0_111
>   Heap sizes: current=58880k  free=57327k  max=859648k
>     JVM args:
> Extensions classpath:
>
> [C:\apache-activemq-5.14.1\lib,C:\apache-activemq-5.14.1\
> lib\camel,C:\apache-activemq-5.14.1\lib\optional,C:\apache-
> activemq-5.14.1\lib\web,C:\apache-activemq-5.14.1\lib\extra]
> ACTIVEMQ_HOME: C:\apache-activemq-5.14.1
> ACTIVEMQ_BASE: C:\apache-activemq-5.14.1
> ACTIVEMQ_CONF: C:\apache-activemq-5.14.1\conf
> ACTIVEMQ_DATA: C:\apache-activemq-5.14.1\data
> Loading message broker from: xbean:activemq.xml
>  INFO | Refreshing org.apache.activemq.xbean.XBeanBrokerFactory$1@13969fbe
> :
> startup date [Mon Nov 28 23:38:38 KST 2016]; root of context hierarchy
>  INFO | Using Persistence Adapter:
> KahaDBPersistenceAdapter[C:\apache-activemq-5.14.1\data\kahadb]
>  INFO | KahaDB is version 6
>  INFO | Recovering from the journal @1:144235
>  INFO | Recovery replayed 12 operations from the journal in 0.099 seconds.
>  INFO | PListStore:[C:\apache-activemq-5.14.1\data\localhost\tmp_storage]
> started
>  INFO | Apache ActiveMQ 5.14.1 (localhost, ID:Jinsu-45283-1480343920055-
> 0:1)
> is starting
>  INFO | Listening for connections at:
> tcp://Jinsu:61616?maximumConnections=1000&wireFormat.maxFrameSize=
> 104857600
>  INFO | Connector openwire started
>  INFO | Listening for connections at:
> amqp://Jinsu:5672?maximumConnections=1000&wireFormat.maxFrameSize=
> 104857600
>  INFO | Connector amqp started
>  INFO | Listening for connections at:
> stomp://Jinsu:61613?maximumConnections=1000&wireFormat.maxFrameSize=
> 104857600
>  INFO | Connector stomp started
>  INFO | Listening for connections at:
> mqtt://Jinsu:1883?maximumConnections=1000&wireFormat.maxFrameSize=
> 104857600
>  INFO | Connector mqtt started
>  WARN |
> ServletContext@o.e.j.s.ServletContextHandler@60b4beb4{/,null,STARTING} has
> uncovered http methods for path: /
>  INFO | Listening for connections at
> ws://Jinsu:61614?maximumConnections=1000&wireFormat.maxFrameSize=104857600
>  INFO | Connector ws started
>  INFO | Apache ActiveMQ 5.14.1 (localhost, ID:Jinsu-45283-1480343920055-
> 0:1)
> started
>  INFO | For help or more information please see:
> http://activemq.apache.org
>  WARN | Store limit is 102400 mb (current store usage is 0 mb). The data
> directory: C:\apache-activemq-5.14.1\data\kahadb only has 34461 mb of
> usable
> space. - resetting to maximum available disk space: 34461 mb
>  WARN | Temporary Store limit is 51200 mb (current store usage is 0 mb).
> The
> data directory: C:\apache-activemq-5.14.1\data only has 34461 mb of usable
> space. - resetting to maximum available disk space: 34461 mb
>  INFO | No Spring WebApplicationInitializer types detected on classpath
>  INFO | ActiveMQ WebConsole available at http://0.0.0.0:8161/
>  INFO | ActiveMQ Jolokia REST API available at
> http://0.0.0.0:8161/api/jolokia/
>  INFO | Initializing Spring FrameworkServlet 'dispatcher'
>  INFO | No Spring WebApplicationInitializer types detected on classpath
>  INFO | jolokia-agent: Using policy access restrictor
> classpath:/jolokia-access.xml
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.
> nabble.com/jolokia-agent-Using-policy-access-restrictor-classpath-jolokia-
> access-xml-tp4719506p4719521.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>

Re: jolokia-agent: Using policy access restrictor classpath:/jolokia-access.xml

Posted by jang <wl...@naver.com>.
yes when i push the button start, it no longer running...
and the ports are not open too.. 

Atually i had experience to running this ActivemQ at 32bit Window computer
before.

but when i tryied in 64bit window and linux it just stopped in that moment.
i can't type anything 
after stop this moment.


i replyed again. 

Microsoft Windows [Version 10.0.14393]
(c) 2016 Microsoft Corporation. All rights reserved.

C:\Users\wlstn>java -version
java version "1.8.0_111"
Java(TM) SE Runtime Environment (build 1.8.0_111-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode)

C:\Users\wlstn>javac -version
javac 1.8.0_111

C:\Users\wlstn>mvn -version
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5;
2015-11-11T01:41:47+09:00)
Maven home:
C:\Users\wlstn\Desktop\EPICS\apache-maven-3.3.9-bin\apache-maven-3.3.9\bin\..
Java version: 1.8.0_111, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.8.0_111\jre
Default locale: ko_KR, platform encoding: MS949
OS name: "windows 10", version: "10.0", arch: "amd64", family: "dos"

C:\Users\wlstn>cd C:\apache-activemq-5.14.1\bin

C:\apache-activemq-5.14.1\bin>java -jar activemq.jar start
Java Runtime: Oracle Corporation 1.8.0_111 C:\Program
Files\Java\jre1.8.0_111
  Heap sizes: current=58880k  free=57327k  max=859648k
    JVM args:
Extensions classpath:
 
[C:\apache-activemq-5.14.1\lib,C:\apache-activemq-5.14.1\lib\camel,C:\apache-activemq-5.14.1\lib\optional,C:\apache-activemq-5.14.1\lib\web,C:\apache-activemq-5.14.1\lib\extra]
ACTIVEMQ_HOME: C:\apache-activemq-5.14.1
ACTIVEMQ_BASE: C:\apache-activemq-5.14.1
ACTIVEMQ_CONF: C:\apache-activemq-5.14.1\conf
ACTIVEMQ_DATA: C:\apache-activemq-5.14.1\data
Loading message broker from: xbean:activemq.xml
 INFO | Refreshing org.apache.activemq.xbean.XBeanBrokerFactory$1@13969fbe:
startup date [Mon Nov 28 23:38:38 KST 2016]; root of context hierarchy
 INFO | Using Persistence Adapter:
KahaDBPersistenceAdapter[C:\apache-activemq-5.14.1\data\kahadb]
 INFO | KahaDB is version 6
 INFO | Recovering from the journal @1:144235
 INFO | Recovery replayed 12 operations from the journal in 0.099 seconds.
 INFO | PListStore:[C:\apache-activemq-5.14.1\data\localhost\tmp_storage]
started
 INFO | Apache ActiveMQ 5.14.1 (localhost, ID:Jinsu-45283-1480343920055-0:1)
is starting
 INFO | Listening for connections at:
tcp://Jinsu:61616?maximumConnections=1000&wireFormat.maxFrameSize=104857600
 INFO | Connector openwire started
 INFO | Listening for connections at:
amqp://Jinsu:5672?maximumConnections=1000&wireFormat.maxFrameSize=104857600
 INFO | Connector amqp started
 INFO | Listening for connections at:
stomp://Jinsu:61613?maximumConnections=1000&wireFormat.maxFrameSize=104857600
 INFO | Connector stomp started
 INFO | Listening for connections at:
mqtt://Jinsu:1883?maximumConnections=1000&wireFormat.maxFrameSize=104857600
 INFO | Connector mqtt started
 WARN |
ServletContext@o.e.j.s.ServletContextHandler@60b4beb4{/,null,STARTING} has
uncovered http methods for path: /
 INFO | Listening for connections at
ws://Jinsu:61614?maximumConnections=1000&wireFormat.maxFrameSize=104857600
 INFO | Connector ws started
 INFO | Apache ActiveMQ 5.14.1 (localhost, ID:Jinsu-45283-1480343920055-0:1)
started
 INFO | For help or more information please see: http://activemq.apache.org
 WARN | Store limit is 102400 mb (current store usage is 0 mb). The data
directory: C:\apache-activemq-5.14.1\data\kahadb only has 34461 mb of usable
space. - resetting to maximum available disk space: 34461 mb
 WARN | Temporary Store limit is 51200 mb (current store usage is 0 mb). The
data directory: C:\apache-activemq-5.14.1\data only has 34461 mb of usable
space. - resetting to maximum available disk space: 34461 mb
 INFO | No Spring WebApplicationInitializer types detected on classpath
 INFO | ActiveMQ WebConsole available at http://0.0.0.0:8161/
 INFO | ActiveMQ Jolokia REST API available at
http://0.0.0.0:8161/api/jolokia/
 INFO | Initializing Spring FrameworkServlet 'dispatcher'
 INFO | No Spring WebApplicationInitializer types detected on classpath
 INFO | jolokia-agent: Using policy access restrictor
classpath:/jolokia-access.xml



--
View this message in context: http://activemq.2283324.n4.nabble.com/jolokia-agent-Using-policy-access-restrictor-classpath-jolokia-access-xml-tp4719506p4719521.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: jolokia-agent: Using policy access restrictor classpath:/jolokia-access.xml

Posted by Tim Bain <tb...@alumni.duke.edu>.
First, the log line you quoted is an INFO line, not a WARN or an ERROR;
it's probably not a problem.

Second, what are the symptoms of the problem?  Is the process no longer
running (via ps)?  The logs show that it's listening for data on ports
61616, 5672, 61613, 1883, and 61614 and for web console connections on port
8161; are those ports not open?

Tim

On Nov 27, 2016 8:00 AM, "jang" <wl...@naver.com> wrote:

Hello im a new user of this ActiveMQ

im just downloaded it already finished to set JAVA enviorment and MVN also

but when i start this ActiveMQ by console.

it just stop int this moment


C:\apache-activemq-5.14.1\bin>java -jar activemq.jar start
Java Runtime: Oracle Corporation 1.8.0_111 C:\Program
Files\Java\jre1.8.0_111
  Heap sizes: current=58880k  free=57327k  max=859648k
    JVM args:
Extensions classpath:

[C:\apache-activemq-5.14.1\lib,C:\apache-activemq-5.14.1\lib
\camel,C:\apache-activemq-5.14.1\lib\optional,C:\apache-ac
tivemq-5.14.1\lib\web,C:\apache-activemq-5.14.1\lib\extra]
ACTIVEMQ_HOME: C:\apache-activemq-5.14.1
ACTIVEMQ_BASE: C:\apache-activemq-5.14.1
ACTIVEMQ_CONF: C:\apache-activemq-5.14.1\conf
ACTIVEMQ_DATA: C:\apache-activemq-5.14.1\data
Loading message broker from: xbean:activemq.xml
 INFO | Refreshing org.apache.activemq.xbean.XBeanBrokerFactory$1@13969fbe:
startup date [Sun Nov 27 19:12:49 KST 2016]; root of context hierarchy
 INFO | Using Persistence Adapter:
KahaDBPersistenceAdapter[C:\apache-activemq-5.14.1\data\kahadb]
 INFO | KahaDB is version 6
 INFO | Recovering from the journal @1:95926
 INFO | Recovery replayed 31 operations from the journal in 0.102 seconds.
 INFO | PListStore:[C:\apache-activemq-5.14.1\data\localhost\tmp_storage]
started
 INFO | Apache ActiveMQ 5.14.1 (localhost, ID:Jinsu-35083-1480241571128-0:1)
is starting
 INFO | Listening for connections at:
tcp://Jinsu:61616?maximumConnections=1000&wireFormat.maxFrameSize=104857600
 INFO | Connector openwire started
 INFO | Listening for connections at:
amqp://Jinsu:5672?maximumConnections=1000&wireFormat.maxFrameSize=104857600
 INFO | Connector amqp started
 INFO | Listening for connections at:
stomp://Jinsu:61613?maximumConnections=1000&wireFormat.
maxFrameSize=104857600
 INFO | Connector stomp started
 INFO | Listening for connections at:
mqtt://Jinsu:1883?maximumConnections=1000&wireFormat.maxFrameSize=104857600
 INFO | Connector mqtt started
 WARN |
ServletContext@o.e.j.s.ServletContextHandler@60b4beb4{/,null,STARTING} has
uncovered http methods for path: /
 INFO | Listening for connections at
ws://Jinsu:61614?maximumConnections=1000&wireFormat.maxFrameSize=104857600
 INFO | Connector ws started
 INFO | Apache ActiveMQ 5.14.1 (localhost, ID:Jinsu-35083-1480241571128-0:1)
started
 INFO | For help or more information please see: http://activemq.apache.org
 WARN | Store limit is 102400 mb (current store usage is 0 mb). The data
directory: C:\apache-activemq-5.14.1\data\kahadb only has 34602 mb of usable
space. - resetting to maximum available disk space: 34602 mb
 WARN | Temporary Store limit is 51200 mb (current store usage is 0 mb). The
data directory: C:\apache-activemq-5.14.1\data only has 34602 mb of usable
space. - resetting to maximum available disk space: 34602 mb
 INFO | No Spring WebApplicationInitializer types detected on classpath
 INFO | ActiveMQ WebConsole available at http://0.0.0.0:8161/
 INFO | ActiveMQ Jolokia REST API available at
http://0.0.0.0:8161/api/jolokia/
 INFO | Initializing Spring FrameworkServlet 'dispatcher'
 INFO | No Spring WebApplicationInitializer types detected on classpath
 INFO | jolokia-agent: Using policy access restrictor
classpath:/jolokia-access.xml

what should i do for run this ActiveMQ?



--
View this message in context: http://activemq.2283324.n4.nab
ble.com/jolokia-agent-Using-policy-access-restrictor-
classpath-jolokia-access-xml-tp4719506.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: jolokia-agent: Using policy access restrictor classpath:/jolokia-access.xml

Posted by Paolo Antinori <so...@gmail.com>.
It is valid.

But it's then, up to you, to manually pass all the environment
variables, which, at the end, is what the script does for you,
together with other helper  functionalities.

On Mon, Nov 28, 2016 at 4:24 AM, Tim Bain <tb...@alumni.duke.edu> wrote:
> The script is definitely the most common way to start a broker, but if the
> other way is no longer valid, we would need to update
> https://activemq.apache.org/activemq-command-line-tools-reference.html to
> reflect that.  But I'm not aware of a reason why it shouldn't be possible
> to direct invoke Java as long as you had set everything up to use default
> settings and configuration (i.e. you didn't need any of the things the
> script does for you).
>
> On Nov 27, 2016 11:08 AM, "Claus Ibsen" <cl...@gmail.com> wrote:
>
>> Hi
>>
>> You start ActiveMQ using the scripts in the bin directory, not using java
>> -jar.
>>
>> See here how to start/stop ActiveMQ
>> http://activemq.apache.org/getting-started.html#GettingStarted-
>> StartingActiveMQStartingActiveMQ
>>
>> On Sun, Nov 27, 2016 at 11:09 AM, jang <wl...@naver.com> wrote:
>> > Hello im a new user of this ActiveMQ
>> >
>> > im just downloaded it already finished to set JAVA enviorment and MVN
>> also
>> >
>> > but when i start this ActiveMQ by console.
>> >
>> > it just stop int this moment
>> >
>> >
>> > C:\apache-activemq-5.14.1\bin>java -jar activemq.jar start
>> > Java Runtime: Oracle Corporation 1.8.0_111 C:\Program
>> > Files\Java\jre1.8.0_111
>> >   Heap sizes: current=58880k  free=57327k  max=859648k
>> >     JVM args:
>> > Extensions classpath:
>> >
>> > [C:\apache-activemq-5.14.1\lib,C:\apache-activemq-5.14.1\
>> lib\camel,C:\apache-activemq-5.14.1\lib\optional,C:\apache-
>> activemq-5.14.1\lib\web,C:\apache-activemq-5.14.1\lib\extra]
>> > ACTIVEMQ_HOME: C:\apache-activemq-5.14.1
>> > ACTIVEMQ_BASE: C:\apache-activemq-5.14.1
>> > ACTIVEMQ_CONF: C:\apache-activemq-5.14.1\conf
>> > ACTIVEMQ_DATA: C:\apache-activemq-5.14.1\data
>> > Loading message broker from: xbean:activemq.xml
>> >  INFO | Refreshing org.apache.activemq.xbean.
>> XBeanBrokerFactory$1@13969fbe:
>> > startup date [Sun Nov 27 19:12:49 KST 2016]; root of context hierarchy
>> >  INFO | Using Persistence Adapter:
>> > KahaDBPersistenceAdapter[C:\apache-activemq-5.14.1\data\kahadb]
>> >  INFO | KahaDB is version 6
>> >  INFO | Recovering from the journal @1:95926
>> >  INFO | Recovery replayed 31 operations from the journal in 0.102
>> seconds.
>> >  INFO | PListStore:[C:\apache-activemq-5.14.1\data\
>> localhost\tmp_storage]
>> > started
>> >  INFO | Apache ActiveMQ 5.14.1 (localhost, ID:Jinsu-35083-1480241571128-
>> 0:1)
>> > is starting
>> >  INFO | Listening for connections at:
>> > tcp://Jinsu:61616?maximumConnections=1000&wireFormat.maxFrameSize=
>> 104857600
>> >  INFO | Connector openwire started
>> >  INFO | Listening for connections at:
>> > amqp://Jinsu:5672?maximumConnections=1000&wireFormat.maxFrameSize=
>> 104857600
>> >  INFO | Connector amqp started
>> >  INFO | Listening for connections at:
>> > stomp://Jinsu:61613?maximumConnections=1000&wireFormat.maxFrameSize=
>> 104857600
>> >  INFO | Connector stomp started
>> >  INFO | Listening for connections at:
>> > mqtt://Jinsu:1883?maximumConnections=1000&wireFormat.maxFrameSize=
>> 104857600
>> >  INFO | Connector mqtt started
>> >  WARN |
>> > ServletContext@o.e.j.s.ServletContextHandler@60b4beb4{/,null,STARTING}
>> has
>> > uncovered http methods for path: /
>> >  INFO | Listening for connections at
>> > ws://Jinsu:61614?maximumConnections=1000&wireFormat.maxFrameSize=
>> 104857600
>> >  INFO | Connector ws started
>> >  INFO | Apache ActiveMQ 5.14.1 (localhost, ID:Jinsu-35083-1480241571128-
>> 0:1)
>> > started
>> >  INFO | For help or more information please see:
>> http://activemq.apache.org
>> >  WARN | Store limit is 102400 mb (current store usage is 0 mb). The data
>> > directory: C:\apache-activemq-5.14.1\data\kahadb only has 34602 mb of
>> usable
>> > space. - resetting to maximum available disk space: 34602 mb
>> >  WARN | Temporary Store limit is 51200 mb (current store usage is 0 mb).
>> The
>> > data directory: C:\apache-activemq-5.14.1\data only has 34602 mb of
>> usable
>> > space. - resetting to maximum available disk space: 34602 mb
>> >  INFO | No Spring WebApplicationInitializer types detected on classpath
>> >  INFO | ActiveMQ WebConsole available at http://0.0.0.0:8161/
>> >  INFO | ActiveMQ Jolokia REST API available at
>> > http://0.0.0.0:8161/api/jolokia/
>> >  INFO | Initializing Spring FrameworkServlet 'dispatcher'
>> >  INFO | No Spring WebApplicationInitializer types detected on classpath
>> >  INFO | jolokia-agent: Using policy access restrictor
>> > classpath:/jolokia-access.xml
>> >
>> > what should i do for run this ActiveMQ?
>> >
>> >
>> >
>> > --
>> > View this message in context: http://activemq.2283324.n4.
>> nabble.com/jolokia-agent-Using-policy-access-restrictor-classpath-jolokia-
>> access-xml-tp4719506.html
>> > Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>
>>
>>
>> --
>> Claus Ibsen
>> -----------------
>> http://davsclaus.com @davsclaus
>> Camel in Action 2: https://www.manning.com/ibsen2
>>

Re: jolokia-agent: Using policy access restrictor classpath:/jolokia-access.xml

Posted by Tim Bain <tb...@alumni.duke.edu>.
The script is definitely the most common way to start a broker, but if the
other way is no longer valid, we would need to update
https://activemq.apache.org/activemq-command-line-tools-reference.html to
reflect that.  But I'm not aware of a reason why it shouldn't be possible
to direct invoke Java as long as you had set everything up to use default
settings and configuration (i.e. you didn't need any of the things the
script does for you).

On Nov 27, 2016 11:08 AM, "Claus Ibsen" <cl...@gmail.com> wrote:

> Hi
>
> You start ActiveMQ using the scripts in the bin directory, not using java
> -jar.
>
> See here how to start/stop ActiveMQ
> http://activemq.apache.org/getting-started.html#GettingStarted-
> StartingActiveMQStartingActiveMQ
>
> On Sun, Nov 27, 2016 at 11:09 AM, jang <wl...@naver.com> wrote:
> > Hello im a new user of this ActiveMQ
> >
> > im just downloaded it already finished to set JAVA enviorment and MVN
> also
> >
> > but when i start this ActiveMQ by console.
> >
> > it just stop int this moment
> >
> >
> > C:\apache-activemq-5.14.1\bin>java -jar activemq.jar start
> > Java Runtime: Oracle Corporation 1.8.0_111 C:\Program
> > Files\Java\jre1.8.0_111
> >   Heap sizes: current=58880k  free=57327k  max=859648k
> >     JVM args:
> > Extensions classpath:
> >
> > [C:\apache-activemq-5.14.1\lib,C:\apache-activemq-5.14.1\
> lib\camel,C:\apache-activemq-5.14.1\lib\optional,C:\apache-
> activemq-5.14.1\lib\web,C:\apache-activemq-5.14.1\lib\extra]
> > ACTIVEMQ_HOME: C:\apache-activemq-5.14.1
> > ACTIVEMQ_BASE: C:\apache-activemq-5.14.1
> > ACTIVEMQ_CONF: C:\apache-activemq-5.14.1\conf
> > ACTIVEMQ_DATA: C:\apache-activemq-5.14.1\data
> > Loading message broker from: xbean:activemq.xml
> >  INFO | Refreshing org.apache.activemq.xbean.
> XBeanBrokerFactory$1@13969fbe:
> > startup date [Sun Nov 27 19:12:49 KST 2016]; root of context hierarchy
> >  INFO | Using Persistence Adapter:
> > KahaDBPersistenceAdapter[C:\apache-activemq-5.14.1\data\kahadb]
> >  INFO | KahaDB is version 6
> >  INFO | Recovering from the journal @1:95926
> >  INFO | Recovery replayed 31 operations from the journal in 0.102
> seconds.
> >  INFO | PListStore:[C:\apache-activemq-5.14.1\data\
> localhost\tmp_storage]
> > started
> >  INFO | Apache ActiveMQ 5.14.1 (localhost, ID:Jinsu-35083-1480241571128-
> 0:1)
> > is starting
> >  INFO | Listening for connections at:
> > tcp://Jinsu:61616?maximumConnections=1000&wireFormat.maxFrameSize=
> 104857600
> >  INFO | Connector openwire started
> >  INFO | Listening for connections at:
> > amqp://Jinsu:5672?maximumConnections=1000&wireFormat.maxFrameSize=
> 104857600
> >  INFO | Connector amqp started
> >  INFO | Listening for connections at:
> > stomp://Jinsu:61613?maximumConnections=1000&wireFormat.maxFrameSize=
> 104857600
> >  INFO | Connector stomp started
> >  INFO | Listening for connections at:
> > mqtt://Jinsu:1883?maximumConnections=1000&wireFormat.maxFrameSize=
> 104857600
> >  INFO | Connector mqtt started
> >  WARN |
> > ServletContext@o.e.j.s.ServletContextHandler@60b4beb4{/,null,STARTING}
> has
> > uncovered http methods for path: /
> >  INFO | Listening for connections at
> > ws://Jinsu:61614?maximumConnections=1000&wireFormat.maxFrameSize=
> 104857600
> >  INFO | Connector ws started
> >  INFO | Apache ActiveMQ 5.14.1 (localhost, ID:Jinsu-35083-1480241571128-
> 0:1)
> > started
> >  INFO | For help or more information please see:
> http://activemq.apache.org
> >  WARN | Store limit is 102400 mb (current store usage is 0 mb). The data
> > directory: C:\apache-activemq-5.14.1\data\kahadb only has 34602 mb of
> usable
> > space. - resetting to maximum available disk space: 34602 mb
> >  WARN | Temporary Store limit is 51200 mb (current store usage is 0 mb).
> The
> > data directory: C:\apache-activemq-5.14.1\data only has 34602 mb of
> usable
> > space. - resetting to maximum available disk space: 34602 mb
> >  INFO | No Spring WebApplicationInitializer types detected on classpath
> >  INFO | ActiveMQ WebConsole available at http://0.0.0.0:8161/
> >  INFO | ActiveMQ Jolokia REST API available at
> > http://0.0.0.0:8161/api/jolokia/
> >  INFO | Initializing Spring FrameworkServlet 'dispatcher'
> >  INFO | No Spring WebApplicationInitializer types detected on classpath
> >  INFO | jolokia-agent: Using policy access restrictor
> > classpath:/jolokia-access.xml
> >
> > what should i do for run this ActiveMQ?
> >
> >
> >
> > --
> > View this message in context: http://activemq.2283324.n4.
> nabble.com/jolokia-agent-Using-policy-access-restrictor-classpath-jolokia-
> access-xml-tp4719506.html
> > Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>
>
> --
> Claus Ibsen
> -----------------
> http://davsclaus.com @davsclaus
> Camel in Action 2: https://www.manning.com/ibsen2
>

Re: jolokia-agent: Using policy access restrictor classpath:/jolokia-access.xml

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

You start ActiveMQ using the scripts in the bin directory, not using java -jar.

See here how to start/stop ActiveMQ
http://activemq.apache.org/getting-started.html#GettingStarted-StartingActiveMQStartingActiveMQ

On Sun, Nov 27, 2016 at 11:09 AM, jang <wl...@naver.com> wrote:
> Hello im a new user of this ActiveMQ
>
> im just downloaded it already finished to set JAVA enviorment and MVN also
>
> but when i start this ActiveMQ by console.
>
> it just stop int this moment
>
>
> C:\apache-activemq-5.14.1\bin>java -jar activemq.jar start
> Java Runtime: Oracle Corporation 1.8.0_111 C:\Program
> Files\Java\jre1.8.0_111
>   Heap sizes: current=58880k  free=57327k  max=859648k
>     JVM args:
> Extensions classpath:
>
> [C:\apache-activemq-5.14.1\lib,C:\apache-activemq-5.14.1\lib\camel,C:\apache-activemq-5.14.1\lib\optional,C:\apache-activemq-5.14.1\lib\web,C:\apache-activemq-5.14.1\lib\extra]
> ACTIVEMQ_HOME: C:\apache-activemq-5.14.1
> ACTIVEMQ_BASE: C:\apache-activemq-5.14.1
> ACTIVEMQ_CONF: C:\apache-activemq-5.14.1\conf
> ACTIVEMQ_DATA: C:\apache-activemq-5.14.1\data
> Loading message broker from: xbean:activemq.xml
>  INFO | Refreshing org.apache.activemq.xbean.XBeanBrokerFactory$1@13969fbe:
> startup date [Sun Nov 27 19:12:49 KST 2016]; root of context hierarchy
>  INFO | Using Persistence Adapter:
> KahaDBPersistenceAdapter[C:\apache-activemq-5.14.1\data\kahadb]
>  INFO | KahaDB is version 6
>  INFO | Recovering from the journal @1:95926
>  INFO | Recovery replayed 31 operations from the journal in 0.102 seconds.
>  INFO | PListStore:[C:\apache-activemq-5.14.1\data\localhost\tmp_storage]
> started
>  INFO | Apache ActiveMQ 5.14.1 (localhost, ID:Jinsu-35083-1480241571128-0:1)
> is starting
>  INFO | Listening for connections at:
> tcp://Jinsu:61616?maximumConnections=1000&wireFormat.maxFrameSize=104857600
>  INFO | Connector openwire started
>  INFO | Listening for connections at:
> amqp://Jinsu:5672?maximumConnections=1000&wireFormat.maxFrameSize=104857600
>  INFO | Connector amqp started
>  INFO | Listening for connections at:
> stomp://Jinsu:61613?maximumConnections=1000&wireFormat.maxFrameSize=104857600
>  INFO | Connector stomp started
>  INFO | Listening for connections at:
> mqtt://Jinsu:1883?maximumConnections=1000&wireFormat.maxFrameSize=104857600
>  INFO | Connector mqtt started
>  WARN |
> ServletContext@o.e.j.s.ServletContextHandler@60b4beb4{/,null,STARTING} has
> uncovered http methods for path: /
>  INFO | Listening for connections at
> ws://Jinsu:61614?maximumConnections=1000&wireFormat.maxFrameSize=104857600
>  INFO | Connector ws started
>  INFO | Apache ActiveMQ 5.14.1 (localhost, ID:Jinsu-35083-1480241571128-0:1)
> started
>  INFO | For help or more information please see: http://activemq.apache.org
>  WARN | Store limit is 102400 mb (current store usage is 0 mb). The data
> directory: C:\apache-activemq-5.14.1\data\kahadb only has 34602 mb of usable
> space. - resetting to maximum available disk space: 34602 mb
>  WARN | Temporary Store limit is 51200 mb (current store usage is 0 mb). The
> data directory: C:\apache-activemq-5.14.1\data only has 34602 mb of usable
> space. - resetting to maximum available disk space: 34602 mb
>  INFO | No Spring WebApplicationInitializer types detected on classpath
>  INFO | ActiveMQ WebConsole available at http://0.0.0.0:8161/
>  INFO | ActiveMQ Jolokia REST API available at
> http://0.0.0.0:8161/api/jolokia/
>  INFO | Initializing Spring FrameworkServlet 'dispatcher'
>  INFO | No Spring WebApplicationInitializer types detected on classpath
>  INFO | jolokia-agent: Using policy access restrictor
> classpath:/jolokia-access.xml
>
> what should i do for run this ActiveMQ?
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/jolokia-agent-Using-policy-access-restrictor-classpath-jolokia-access-xml-tp4719506.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2