Can you provide the full stack-trace? Also, what version of Artemis are you using?
Justin ----- Original Message ----- From: "Julien d" <julie...@iki.fi> To: dev@activemq.apache.org Sent: Tuesday, April 26, 2016 11:34:20 AM Subject: Re: Need help with org.apache.activemq.artemis.rest.integration.EmbeddedRestActiveMQ Thank you for your answer Justin. When using the following one : <?xml version='1.0'?> <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:activemq" xsi:schemaLocation="urn:activemq /schema/artemis-server.xsd"> <jms xmlns="urn:activemq:jms"> <!--the queue used by the example--> <queue name="orders"/> </jms> <core xmlns="urn:activemq:core"> <persistence-enabled>false</persistence-enabled> <!-- Connectors --> <connectors> <connector name="in-vm">vm://0</connector> </connectors> <acceptors> <acceptor name="in-vm">vm://0</acceptor> <acceptor name="netty-acceptor">tcp://localhost:61616</acceptor> </acceptors> <!-- Other config --> <security-settings> <!--security for example queue--> <security-setting match="#"> <permission type="createDurableQueue" roles="guest"/> <permission type="deleteDurableQueue" roles="guest"/> <permission type="createNonDurableQueue" roles="guest"/> <permission type="deleteNonDurableQueue" roles="guest"/> <permission type="consume" roles="guest"/> <permission type="send" roles="guest"/> </security-setting> </security-settings> </core> </configuration> I get the following error : [Fatal Error] :2:6: The processing instruction target matching "[xX][mM][lL]" is not allowed. Exception in thread "main" org.xml.sax.SAXParseException; lineNumber: 2; columnNumber: 6; The processing instruction target matching "[xX][mM][lL]" is not allowed. at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:257) Would you know why? Julien D. Alternative email address : julie...@protonmail.ch On 04/26/2016 07:13 PM, Justin Bertram wrote: > You should be able to put the broker.xml anywhere on the application's > classpath. > > > Justin > > ----- Original Message ----- > From: "Julien d" <julie...@iki.fi> > To: dev@activemq.apache.org > Sent: Tuesday, April 26, 2016 11:00:48 AM > Subject: Need help with > org.apache.activemq.artemis.rest.integration.EmbeddedRestActiveMQ > > Hi everyone, > > Sorry for bothering, I am having some troubles working with Artemis, > more particularly > org.apache.activemq.artemis.rest.integration.EmbeddedRestActiveMQ and I > would like to know if someone here could give me a hand please. I did > not find this part documented, I could document it after understanding > it better. > > Where should I put the broker.xml ? > I have started a project where I have > org.apache.activemq.artemis.rest.integration.EmbeddedRestActiveMQ and > org.myproject packages in the same directory. > > At the moment my program is as simple as that since it is my first time > working with Artemis : > > public static void main(String[] args) throws Exception{ > > EmbeddedRestActiveMQ Restserver = new EmbeddedRestActiveMQ(); > Restserver.start(); } > > Thank you very much in advance, >