activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dejan Bosanac <de...@nighttale.net>
Subject Re: "InactivityMonitor WriteCheck" java.lang.NoClassDefFoundError: org/apache/activemq/transport/InactivityMonitor$3
Date Mon, 28 Sep 2009 07:29:50 GMT
It might be a better solution to embed your broker directly in your web
application (
http://activemq.apache.org/how-do-i-embed-a-broker-inside-a-connection.html)
instead of starting and stopping it using a wrapper script.

Cheers
--
Dejan Bosanac

Open Source Integration - http://fusesource.com/
ActiveMQ in Action - http://www.manning.com/snyder/
Blog - http://www.nighttale.net


On Thu, Sep 24, 2009 at 7:57 PM, ericne <ericn.groups@gmail.com> wrote:

>
> I have a web-app deployed on tomcat on Ubuntu linux 8.04. There is a piece
> of
> code in the web-app which starts up activemq by executing the
> wrapper-service activemq start command(activemq/bin/linux-x86-32/activemq
> start). This code also starts a TransportListener on a jms connection
> object
> on this activemq url.
>
> When the application is restarted,
> [1]the code in the webapp which starts up activemq also shuts it down using
> the wrapper-service activemq start command
> (activemq/bin/linux-x86-32/activemq stop). Before executing the stop
> command, all TransportListeners on the jms connection object are removed.
> If
> the stop command doesnt succeed for some reason, I do a kill -9 on all the
> activemq processes.
> [2]after this tomcat itself is restarted.
>
> Off and on, I see the following exception on the tomcat logs :
> catalina.out.
> This causes the web-app from loading.
>
> Any ideas on what might be causing this. I am urgently in need of help here
> !!! Will appreciate any help.
>
>
> Exception in thread "InactivityMonitor WriteCheck"
> java.lang.NoClassDefFoundError:
> org/apache/activemq/transport/InactivityMonitor$3
>        at
>
> org.apache.activemq.transport.InactivityMonitor.writeCheck(InactivityMonitor.java:128)
>        at
>
> org.apache.activemq.transport.InactivityMonitor$2.run(InactivityMonitor.java:103)
>        at
>
> org.apache.activemq.thread.SchedulerTimerTask.run(SchedulerTimerTask.java:33)
>        at java.util.TimerThread.mainLoop(Timer.java:512)
>        at java.util.TimerThread.run(Timer.java:462)
> Caused by: java.lang.ClassNotFoundException:
> org.apache.activemq.transport.InactivityMonitor$3
>        at
>
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
>        at
>
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
>        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
> --
> View this message in context:
> http://www.nabble.com/%22InactivityMonitor-WriteCheck%22-java.lang.NoClassDefFoundError%3A-org-apache-activemq-transport-InactivityMonitor%243-tp25578021p25578021.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message