4 Replies Latest reply on Apr 1, 2008 7:43 AM by Brian Kelly

    Jetty errors when starting 5.0.0.9 on Windows XP

    Brian Kelly Newbie

      Hi there,

       

      I'm seeing Jetty-related errors showing in my broker's console window on my XP box when I run activemq.bat from the 5.0.0.9 distribution.

       

      I've tried this on a few different boxes, all show the same problem. Any ideas on how to solve it?

       

      Thanks,

      Brian

      java.lang.ClassNotFoundException: org.springframework.web.servlet.DispatcherServlet

              at java.net.URLClassLoader$1.run(URLClassLoader.java:200)

              at java.security.AccessController.doPrivileged(Native Method)

              at java.net.URLClassLoader.findClass(URLClassLoader.java:188)

              at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

              at java.lang.ClassLoader.loadClass(ClassLoader.java:251)

              at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:375)

              at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:337)

              at org.mortbay.util.Loader.loadClass(Loader.java:91)

              at org.mortbay.util.Loader.loadClass(Loader.java:71)

              at org.mortbay.jetty.servlet.Holder.doStart(Holder.java:73)

              at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:233)

              at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)

              at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:612)

              at org.mortbay.jetty.servlet.Context.startContext(Context.java:139)

              at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1217)

              at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:500)

              at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)

              at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)

              at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)

              at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)

              at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117)

              at org.mortbay.jetty.Server.doStart(Server.java:222)

              at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)

              at org.mortbay.jetty.xbean.JettyFactoryBean.run(JettyFactoryBean.java:47)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

              at java.lang.reflect.Method.invoke(Method.java:585)

              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCap

      ableBeanFactory.java:1325)

      ...etc...

        • 1. Re: Jetty errors when starting 5.0.0.9 on Windows XP
          Brian Kelly Newbie

          Pasting in the entire stack trace:

           

          ACTIVEMQ_HOME: C:\IONA\fuse-message-broker-5.0.0.9\bin\..

          ACTIVEMQ_BASE: C:\IONA\fuse-message-broker-5.0.0.9\bin\..

          Loading message broker from: xbean:activemq.xml

          INFO  BrokerService                  - Using Persistence Adapter: AMQPersistenceAdapter(C:\IONA\fuse-message-broker-5.0.0.9\bin\..

          \data\localhost)

          INFO  BrokerService                  - ActiveMQ 5.0.0.9-fuse JMS Message Broker (localhost) is starting

          INFO  BrokerService                  - For help or more information please see: http://activemq.apache.org/

          INFO  AMQPersistenceAdapter          - AMQStore starting using directory: C:\IONA\fuse-message-broker-5.0.0.9\bin\..\data\localhos

          t

          INFO  ManagementContext              - JMX consoles can connect to service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi

          INFO  KahaStore                      - Kaha Store using data directory C:\IONA\fuse-message-broker-5.0.0.9\bin\..\data\localhost\k

          r-store\state

          INFO  AMQPersistenceAdapter          - Active data files: []

          WARN  AMQPersistenceAdapter          - The ReferenceStore is not valid - recovering ...

          INFO  KahaStore                      - Kaha Store successfully deleted data directory C:\IONA\fuse-message-broker-5.0.0.9\bin\..\d

          ata\localhost\kr-store\data

          INFO  AMQPersistenceAdapter          - Journal Recovery Started from: DataManager:(data-)

          INFO  KahaStore                      - Kaha Store using data directory C:\IONA\fuse-message-broker-5.0.0.9\bin\..\data\localhost\k

          r-store\data

          INFO  AMQPersistenceAdapter          - Recovered 44 operations from redo log in 0.265 seconds.

          INFO  AMQPersistenceAdapter          - Finished recovering the ReferenceStore

          INFO  TransportServerThreadSupport   - Listening for connections at: tcp://BKELLY670:61616

          INFO  TransportConnector             - Connector openwire Started

          INFO  TransportServerThreadSupport   - Listening for connections at: ssl://BKELLY670:61617

          INFO  TransportConnector             - Connector ssl Started

          INFO  TransportServerThreadSupport   - Listening for connections at: stomp://BKELLY670:61613

          INFO  TransportConnector             - Connector stomp Started

          INFO  TransportServerThreadSupport   - Listening for connections at: xmpp://BKELLY670:61222

          INFO  TransportConnector             - Connector xmpp Started

          INFO  NetworkConnector               - Network Connector org.apache.activemq.transport.discovery.multicast.MulticastDiscoveryAgent

          @c22a3b Started

          INFO  BrokerService                  - ActiveMQ JMS Message Broker (localhost, ID:BKELLY670-1152-1206998586968-0:0) started

          INFO  TransportConnector             - Connector vm://localhost Started

          INFO  log                            - Logging to org.slf4j.impl.JCLLoggerAdapter(org.mortbay.log) via org.mortbay.log.Slf4jLog

          INFO  log                            - jetty-6.1.0.1-fuse

          INFO  WebConsoleStarter              - ActiveMQ WebConsole initialized.

          WARN  log                            - EXCEPTION

          java.lang.ClassNotFoundException: org.springframework.web.servlet.DispatcherServlet

                  at java.net.URLClassLoader$1.run(URLClassLoader.java:200)

                  at java.security.AccessController.doPrivileged(Native Method)

                  at java.net.URLClassLoader.findClass(URLClassLoader.java:188)

                  at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

                  at java.lang.ClassLoader.loadClass(ClassLoader.java:251)

                  at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:375)

                  at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:337)

                  at org.mortbay.util.Loader.loadClass(Loader.java:91)

                  at org.mortbay.util.Loader.loadClass(Loader.java:71)

                  at org.mortbay.jetty.servlet.Holder.doStart(Holder.java:73)

                  at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:233)

                  at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)

                  at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:612)

                  at org.mortbay.jetty.servlet.Context.startContext(Context.java:139)

                  at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1217)

                  at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:500)

                  at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)

                  at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)

                  at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)

                  at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)

                  at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117)

                  at org.mortbay.jetty.Server.doStart(Server.java:222)

                  at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)

                  at org.mortbay.jetty.xbean.JettyFactoryBean.run(JettyFactoryBean.java:47)

                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                  at java.lang.reflect.Method.invoke(Method.java:585)

          • 2. Re: Jetty errors when starting 5.0.0.9 on Windows XP
            Torsten Mielke Apprentice

            I am seeing the same exception here when starting 5.0.0.9. Have an older 5.0.0.7 here, which starts up fine. The missing class does not seem to be present in any jar files.

            • 4. Re: Jetty errors when starting 5.0.0.9 on Windows XP
              Brian Kelly Newbie

              Thanks Torsten - hopefully 5.0.0.10 will include this fix.