Overview
When launching Aurea Monitor Management Server (AMS) right after the installation you get an ActiveMQ related error:
com.actional.APIRuntimeException: com.actional.jms.ext.JMSMisconfiguredException: Unable to create connection factory for activemq.js
The full stack trace:
actional@amsnplwsmam101:/opt/actional/AMS-app/dev/DefaultProfile/bin>./StartAureaMonitorServer.sh 2021/02/19 19:20:35.024 EVENT Starting Jetty/4.2.x 2021/02/19 19:20:35.047 EVENT Started ServletHttpContext[/] 2021/02/19 19:20:35.586 EVENT Started WebApplicationContext[/lgserver,Aurea Monitor Management Server] ::: 21/02/19 19:20:39 LGSERVER INFO null (Superuser/Superuser) main LGSERVER0080: Starting Aurea Monitor Management Server. ::: 21/02/19 19:20:39 APPLICATION INFO null (Superuser/Superuser) main APPL0068: System.currentTimeMillis() has milliseconds precision. ::: 21/02/19 19:20:39 MSGBROKER INFO null (Superuser/Superuser) main MSGBROKER0006: The message framework is disabled. ::: 21/02/19 19:20:39 APPLICATION INFO Keywords=[EX=com.actional.APIRuntimeException] null (Superuser/Superuser) main APPL0125: Failed to start com.actional.APIRuntimeException: com.actional.jms.ext.JMSMisconfiguredException: Unable to create connection factory for activemq.js at com.actional.broker.impl.ActMessageBrokerBase.startSenders(ActMessageBrokerBase.java:200) at com.actional.server.startup.ServerStartup.startup(ServerStartup.java:158) at com.actional.server.startup.ServerLifeCycle.start(ServerLifeCycle.java:144) at com.actional.server.startup.InitFilter.init(InitFilter.java:43) at com.actional.j2ee.J2EEFilter.init(J2EEFilter.java:50) at org.mortbay.jetty.servlet.FilterHolder.start(FilterHolder.java:165) at org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplicationHandler.java:153) at org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationContext.java:459) at org.mortbay.http.HttpServer.start(HttpServer.java:670) at com.actional.jetty.Start.main(Start.java:140) Caused by: com.actional.jms.ext.JMSMisconfiguredException: Unable to create connection factory for activemq.js at com.actional.jms.ext.JmsBootstrap.createFactory(JmsBootstrap.java:180) at com.actional.jms.ext.JmsBootstrap.createConnectionFactory(JmsBootstrap.java:120) at com.actional.broker.impl.ActMessageBrokerBase.createConnectionFactory(ActMessageBrokerBase.java:644) at com.actional.lg.server.broker.ServerBroker.getConnectionFactory(ServerBroker.java:120) at com.actional.lg.server.broker.ServerBroker.doStartSenders(ServerBroker.java:138) at com.actional.broker.impl.ActMessageBrokerBase.startSenders(ActMessageBrokerBase.java:183) ... 9 more Caused by: org.mozilla.javascript.WrappedException: Wrapped java.lang.ClassNotFoundException: org.apache.activemq.ActiveMQConnectionFactory (activemq.js#5) at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754) at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148) at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225) at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32) at org.mozilla.javascript.gen.activemq_js_1._c_newConnectionFactory_1(activemq.js:5) at org.mozilla.javascript.gen.activemq_js_1.call(activemq.js) at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394) at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091) at org.mozilla.javascript.gen.activemq_js_1.call(activemq.js) at com.actional.jms.ext.JmsBootstrap.create(JmsBootstrap.java:208) at com.actional.jms.ext.JmsBootstrap.createFactory(JmsBootstrap.java:165) ... 14 more Caused by: java.lang.ClassNotFoundException: org.apache.activemq.ActiveMQConnectionFactory at com.actional.j2ee.J2EEClassLoader.loadClass(J2EEClassLoader.java:684) at java.lang.ClassLoader.loadClass(ClassLoader.java:352) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:264) 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:498) at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126) ... 23 more 2021/02/19 19:20:39.823 EVENT HTTP header for impersonating user identity: X-Progress-User 2021/02/19 19:20:39.823 EVENT Role that allows to impersonate a user identity: ProgressImpersonateUser 2021/02/19 19:20:40.830 EVENT Started WebApplicationContext[/appsrv,Aurea Monitor Application Server UI] 2021/02/19 19:20:41.435 EVENT main Superuser/Superuser APPLICATION null APPL0068: System.currentTimeMillis() has milliseconds precision. 2021/02/19 19:20:41.980 EVENT Started SocketChannelListener on 0.0.0.0/0.0.0.0:4040 2021/02/19 19:20:41.997 EVENT Selector 0.0.0.0/0.0.0.0:4040: listening on addressed 0.0.0.0/0.0.0.0:4040. Requested backlog is 32 2021/02/19 19:20:42.089 EVENT JsseListener.needClientAuth=false 2021/02/19 19:20:42.108 EVENT Started SocketListener on 0.0.0.0:1024 Feb 19, 2021 7:20:42 PM com.actional.jetty.Start main SEVERE: An unexpected error occurred while starting the application. org.mortbay.util.MultiException[javax.servlet.UnavailableException: com.actional.APIRuntimeException: com.actional.jms.ext.JMSMisconfiguredException: Unable to create connection factory for activemq.js at com.actional.broker.impl.ActMessageBrokerBase.startSenders(ActMessageBrokerBase.java:200) at com.actional.server.startup.ServerStartup.startup(ServerStartup.java:158) at com.actional.server.startup.ServerLifeCycle.start(ServerLifeCycle.java:144) at com.actional.server.startup.InitFilter.init(InitFilter.java:43) at com.actional.j2ee.J2EEFilter.init(J2EEFilter.java:50) at org.mortbay.jetty.servlet.FilterHolder.start(FilterHolder.java:165) at org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplicationHandler.java:153) at org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationContext.java:459) at org.mortbay.http.HttpServer.start(HttpServer.java:670) at com.actional.jetty.Start.main(Start.java:140) Caused by: com.actional.jms.ext.JMSMisconfiguredException: Unable to create connection factory for activemq.js at com.actional.jms.ext.JmsBootstrap.createFactory(JmsBootstrap.java:180) at com.actional.jms.ext.JmsBootstrap.createConnectionFactory(JmsBootstrap.java:120) at com.actional.broker.impl.ActMessageBrokerBase.createConnectionFactory(ActMessageBrokerBase.java:644) at com.actional.lg.server.broker.ServerBroker.getConnectionFactory(ServerBroker.java:120) at com.actional.lg.server.broker.ServerBroker.doStartSenders(ServerBroker.java:138) at com.actional.broker.impl.ActMessageBrokerBase.startSenders(ActMessageBrokerBase.java:183) ... 9 more Caused by: org.mozilla.javascript.WrappedException: Wrapped java.lang.ClassNotFoundException: org.apache.activemq.ActiveMQConnectionFactory (activemq.js#5) at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754) at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148) at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225) at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32) at org.mozilla.javascript.gen.activemq_js_1._c_newConnectionFactory_1(activemq.js:5) at org.mozilla.javascript.gen.activemq_js_1.call(activemq.js) at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394) at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091) at org.mozilla.javascript.gen.activemq_js_1.call(activemq.js) at com.actional.jms.ext.JmsBootstrap.create(JmsBootstrap.java:208) at com.actional.jms.ext.JmsBootstrap.createFactory(JmsBootstrap.java:165) ... 14 more Caused by: java.lang.ClassNotFoundException: org.apache.activemq.ActiveMQConnectionFactory at com.actional.j2ee.J2EEClassLoader.loadClass(J2EEClassLoader.java:684) at java.lang.ClassLoader.loadClass(ClassLoader.java:352) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:264) 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:498) at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126) ... 23 more ] at org.mortbay.http.HttpServer.start(HttpServer.java:647) at com.actional.jetty.Start.main(Start.java:140)
Solution
The meaning of the error message is that your AMS is not able to connect to ActiveMQ.
Your ActiveMQ should be already up and running when you start your AMS. ActiveMQ can be downloaded from here, and installation instructions are available here.
As an alternative to ActiveMQ, you can use also Aurea Messenger (aka Sonic). Depending on your license, it might be already available for you via the Aurea Unlimited program. Please contact your Account Executive for further details on this program.