I am totally miffed too. I have installed and configured many frameworks in the past, I can't recall having this much trouble. It has to be something so basic it is right of front of my nose.
>From the beginning. I downloaded the 1.2 zip from Apache. I unzipped it into my C:\\lib folder. I cd to C:\\lib\apache-artemis-1.2.0\bin. >From there I followed the readme.html. I ran ./artemis create with C:\\Servers\artemis-1.2.0 as directory I provided admin as default user, xxx as default password, and I answered yes to anonymous access. Under the Running the Server section of the user doc, I followed the instructions for installing as a service. It starts and stops fine. The zip is the contents of my C:\\Servers\artemis-1.2.0 directory. Even though ARTEMIS_HOME points to C:\\lib\apache-artemis-1.2.0 this should be the same for everyone. The etc/example folder contains the etc content from the security example The etc/original folder contains the etc content from my install. Not sure what else might be useful. From: Justin Bertram-2 [via ActiveMQ] [mailto:ml-node+s2283324n4706186...@n4.nabble.com] Sent: Tuesday, January 19, 2016 2:49 PM To: Pruitt, Byron S Subject: Re: basic security tag in bootstrap.xml Can you provide a set of steps or something that I can use to reproduce what you're seeing? I'm not real sure how to help beyond that. Based on what you're saying I would expect it to work but there's obviously some other factor involved. At the very least could you zip you configuration up and provide it to me? This should really be pretty straight-forward. Justin ----- Original Message ----- From: "spruitt" <[hidden email]</user/SendEmail.jtp?type=node&node=4706186&i=0>> To: [hidden email]</user/SendEmail.jtp?type=node&node=4706186&i=1> Sent: Tuesday, January 19, 2016 12:49:31 PM Subject: RE: basic security tag in bootstrap.xml Ok, I have something really wrong with my setup. I copied all the server0/etc files to my installed broker. Started the broker and then executed mvn -PnoServer verify and got this. Default user cannot get a connection. Details: AMQ119031: Unable to validate user User bill failed to connect. Details: AMQ119031: Unable to validate user [ERROR] java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.apache.activemq.artemis.maven.ArtemisClientPlugin.doExecute(ArtemisClientPlugin.java:61) at org.apache.activemq.artemis.maven.ArtemisAbstractPlugin.execute(ArtemisAbstractPlugin.java:75) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106) : This runs ok: mvn verify I copy the server0/etc folder to my installed broker and run mvn -PnoServer verify, start the broker service, and I get unable to validate user??? From: Justin Bertram-2 [via ActiveMQ] [mailto:[hidden email]</user/SendEmail.jtp?type=node&node=4706186&i=2>] Sent: Tuesday, January 19, 2016 12:30 PM To: Pruitt, Byron S Subject: Re: basic security tag in bootstrap.xml Looking at your etc.zip... Your bootstrap.xml looks fine. The jaas-security domain is "activemq" (which is defined in login.config). Your login.config looks fine. It's using the default configuration. However, your artemis-users.properties and artemis-roles.properties don't contain the users/roles that the example expects to be there. That's why you get an authentication failure for the user "bill" when you run the example against your broker (e.g. using 'mvn -PnoServer verify'). Also, your broker.xml doesn't have the security-setting configuration that the example expects so even if you added the right users and roles to the properties files you'd still get failures when running the example against your broker. You can take a look at each of these files from the example (i.e. artemis-users.properties, artemis-roles.properties, and broker.xml) to see what you need to change in your configuration to run the example successfully against your broker. Just to be clear, the output you shared console2.txt is what I would expect from . It looks to me like everything is working properly given the circumstances. Justin ----- Original Message ----- From: "spruitt" <[hidden email]</user/SendEmail.jtp?type=node&node=4706170&i=0>> To: [hidden email]</user/SendEmail.jtp?type=node&node=4706170&i=1> Sent: Tuesday, January 19, 2016 9:38:57 AM Subject: Re: basic security tag in bootstrap.xml yeah. i messed up. Here is the console when not starting broker manually. Also, here are the config files I have been working with on my broker. Hope this makes sense. console2.txt <http://activemq.2283324.n4.nabble.com/file/n4706166/console2.txt> etc.zip <http://activemq.2283324.n4.nabble.com/file/n4706166/etc.zip> -- View this message in context: http://activemq.2283324.n4.nabble.com/basic-security-tag-in-bootstrap-xml-tp4705994p4706166.html Sent from the ActiveMQ - User mailing list archive at Nabble.com. ________________________________ If you reply to this email, your message will be added to the discussion below: http://activemq.2283324.n4.nabble.com/basic-security-tag-in-bootstrap-xml-tp4705994p4706170.html To unsubscribe from basic security tag in bootstrap.xml, click here< NAML<http://activemq.2283324.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> -- View this message in context: http://activemq.2283324.n4.nabble.com/basic-security-tag-in-bootstrap-xml-tp4705994p4706184.html Sent from the ActiveMQ - User mailing list archive at Nabble.com. ________________________________ If you reply to this email, your message will be added to the discussion below: http://activemq.2283324.n4.nabble.com/basic-security-tag-in-bootstrap-xml-tp4705994p4706186.html To unsubscribe from basic security tag in bootstrap.xml, click here<http://activemq.2283324.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4705994&code=c3RldmUucHJ1aXR0QGhwLmNvbXw0NzA1OTk0fDU0MzU1MTgyNg==>. NAML<http://activemq.2283324.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> installed-artemis.zip (3M) <http://activemq.2283324.n4.nabble.com/attachment/4706187/0/installed-artemis.zip> -- View this message in context: http://activemq.2283324.n4.nabble.com/basic-security-tag-in-bootstrap-xml-tp4705994p4706187.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.