Thanks Rob! Appreciate the help Unfortunately, after setting the property, it didn't make any difference. Still trying to start on 8080.
Any clues? Is there a way to disable the management website? This the last excepting printed to stdout. I'm pretty sure that "no uncaught exception handler set" means there's a port conflict, because tomcat is definitely running on that port Caused by: java.lang.IllegalStateException: no uncaught exception handler set at org.apache.qpid.server.management.plugin.filter.ExceptionHandlingFilter.init(ExceptionHandlingFilter.java:50) at org.eclipse.jetty.servlet.FilterHolder.doStart(FilterHolder.java:118) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:768) at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:265) at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95) at org.eclipse.jetty.server.Server.doStart(Server.java:282) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) at org.apache.qpid.server.management.plugin.HttpManagement.doStart(HttpManagement.java:163) On Sun, Jan 31, 2016 at 5:20 PM, Rob Godfrey <rob.j.godf...@gmail.com> wrote: > You're not starting in management mode (and you probably don't want to :-) > ), so setting the management port overrides is not really what you want. > > Making the Broker easier to embed and start programmatically for unit > tests, etc... is on my personal roadmap (I even have some work somewhere on > my laptop that I should dig out), but for the moment, you can alter the > ports that are used on startup by either creating your own initial config > file, or simply by setting system properties. > > The default initial config file can be seen here: > http://svn.apache.org/repos/asf/qpid/java/tags/6.0.0/broker-core/src/main/resources/initial-config.json > > In particular the following lines are of interest in terms of ports: > > "port" : "${qpid.amqp_port}", > > and... > > "port" : "${qpid.http_port}", > > > (By default in Qpid 6.0, the JMX ports are not enabled/created.) > > So, to set the HTTP port to 9090, you could just do > > System.setProperty("qpid.http.port", "9090"); > > before starting up the broker. > > For proper unit testing you'd probably want a different initial config > using in-memory stores / config. You might also want to set the ports to > use to be port 0 (which will allocate a random free port). > > Hope this helps, > Rob > > > On 31 January 2016 at 22:09, Alex O'Ree <alexo...@apache.org> wrote: > >> I've made some progress using 6.0.0. >> >> org.apache.qpid.server.Broker broker = new Broker(); >> BrokerOptions options = new BrokerOptions(); >> options.setManagementModeHttpPortOverride(9090); >> options.setManagementModeJmxPortOverride(9099); >> options.setManagementMode(false); >> options.setStartupLoggedToSystemOut(true); >> broker.startup(options); >> >> >> The issue is that I have a port conflict on port 8080 and setting the >> ManagementModeHttpPortOverride doesn't seem to be honored. Any ideas? >> >> On Sun, Jan 31, 2016 at 4:07 PM, Alex O'Ree <alexo...@apache.org> wrote: >> > I'm working on a project that needs to fire up a qpid java broker, >> > send some messages, wait for replies, then shutdown, in the context of >> > a java unit test in maven. I saw that this used to be possible on SO >> > at one point. Anyhow, is there any examples on how to do this? Perhaps >> > I could reuse one of the existing unit tests from qpid? >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org >> For additional commands, e-mail: users-h...@qpid.apache.org >> >> --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org For additional commands, e-mail: users-h...@qpid.apache.org