Gradually making progress, I can run up the ActiveMQ Web Console within tomcat.
I was running ActiveMQ as a stand-alone broker, I am trying to setup the stand-alone broker, in Tomcat. To that end, I can't seem to figure out where I should put the 'activemq.xml' configuration, that I was using in the stand-alone broker. Basically, I can start up the stand-alone broker, browse to the admin page and and see queues, etc. The stand-alone broker is configured to talk to other brokers, not use discovery. I want to duplicate that functionality within Tomcat. I figure I would need to put the activemq/conf/* files somewhere. For those that are interested, the steps I took to get the activemq console to work in tomcat 6.0.20 on windows are... * Download and install Tomcat 6 Windows Service Installer * Download ActiveMQ and extract to a temporary location * Download the activemq-web-console WAR (find the link in the Example configuration using Tomcat section of http://activemq.apache.org/web-console.html). Install Tomcat 6 * Execute the Tomcat Installer * Edit $CATALINA_HOME/conf/tomcat-users.xml to look like the following File: $CATALINA_HOME/conf/tomcat-users.xml <?xml version='1.0' encoding='utf-8'?> <tomcat-users> <role rolename="manager"/> <role rolename="admin"/> <user username="admin" password="admin" roles="admin,manager"/> </tomcat-users> * Start Tomcat (Start->All Programs->Apache Tomcat 6.0->Monitor Tomcat) o If it is not showing the little green triangle, right click it and start it. * Browse to the tomcat admin page (Start->All Programs->Apache Tomcat 6.0->Tomcat Manager) * Login with user/password, as shown in the tomcat-users.xml file ActiveMQ Deployment * Stop Tomcat * Copy $ACTIVEMQ_HOME/activemq-all-5.2.0.jar into $CATALINA_HOME/lib * Start Tomcat (Start->All Programs->Apache Tomcat 6.0->Monitor Tomcat) o If it is not showing the little green triangle, right click it and start it. * Deploy ActiveMQ Web Console o At the bottom of the manager page, browse to the ActiveMQ Web Console .war file, in the temporary location and deploy it. * Shutdown Tomcat (right click the systray green triangle) * Create $CATALINA_HOME/conf/Catalina/localhost/activemq-web-console-5.2.0.xml File: $CATALINA_HOME/conf/Catalina/localhost/activemq-web-console-5.2.0.xml <?xml version='1.0' encoding='utf-8'?> <!-- 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. --> <!-- The contents of this file will be loaded for each web application --> <Context> <!-- Default set of monitored resources --> <WatchedResource>WEB-INF/web.xml</WatchedResource> <!-- Uncomment this to disable session persistence across Tomcat restarts --> <!-- <Manager pathname="" /> --> <!-- Uncomment this to enable Comet connection tacking (provides events on session expiration as well as webapp lifecycle) --> <!-- <Valve className="org.apache.catalina.valves.CometConnectionManagerValve" /> --> <Resource name="jms/ConnectionFactory" auth="Container" type="org.apache.activemq.ActiveMQConnectionFactory" description="JMS Connection Factory" factory="org.apache.activemq.jndi.JNDIReferenceFactory" brokerURL="tcp://localhost:61616" brokerName="LocalActiveMQBroker" useEmbeddedBroker="false" UserName="system" Password="manager"/> <!-- <Resource name="jms/topic/MyTopic" auth="Container" type="org.apache.activemq.command.ActiveMQTopic" factory="org.apache.activemq.jndi.JNDIReferenceFactory" physicalName="MY.TEST.FOO"/> <Resource name="jms/queue/MyQueue" auth="Container" type="org.apache.activemq.command.ActiveMQQueue" factory="org.apache.activemq.jndi.JNDIReferenceFactory" physicalName="MY.TEST.FOO.QUEUE"/> --> </Context> * The admin console will still fail, at this point, with "This absolute uri (http://java.sun.com/jstl/core) cannot be resolved in either web.xml or the jar files deployed with this application," * The solution was identified in this forum topic (http://forums.sun.com/thread.jspa?threadID=486791) o Download http://www.apache.org/dist/jakarta/taglibs/standard/jakarta-taglibs-standard-current.zip o Extract jstl.jar and standard.jar o Copy them into $CATALINA_HOME/lib * Start Tomcat * Browse to the activemq-web-console application. TODO: * The activemq server is not taking the configuration I want * The activemq server is storing it's data in C:\Program Files\Apache Software Foundation\Tomcat 6.0\activemq-data -- View this message in context: http://www.nabble.com/Howto-Run-ActiveMQ-5.2-in-Tomcat-6-on-Windows--tp25676368p25692906.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.