You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by YunFeng Ma <yu...@yahoo.com> on 2008/01/15 14:08:32 UTC

NoClassDefFoundError when stop a module in admin console

Hi David,

I noticed that you commentted out  the dependency 
geronimo-gbean-deployer in 
geronimo\plugins\console\console-jetty\pom.xml in rev
611338. Maybe this 
caused the NoClassDefFoundError when stop a module in
admin console. The 
dependency geronimo-gbean-deployer still exists in 
geronimo\plugins\console\console-tomcat\pom.xml.

Such as stop 
org.apache.geronimo.plugins/sysdb-console-jetty/2.1-SNAPSHOT/car
in 
admin console, got the exception:


    HTTP ERROR: 500

org.apache.geronimo.deployment.plugin.TargetModuleIDImpl

RequestURI=/console/portal//Applications/Web%20App%20WARs/__ac0x3console-base0x2WARModules!874780194|0


      Caused by:

java.lang.NoClassDefFoundError:
org.apache.geronimo.deployment.plugin.TargetModuleIDImpl
	at
org.apache.geronimo.console.configmanager.ConfigManagerPortlet.printResults(ConfigManagerPortlet.java:166)
	at
org.apache.geronimo.console.configmanager.ConfigManagerPortlet.processAction(ConfigManagerPortlet.java:210)
	at
org.apache.pluto.core.PortletServlet.dispatch(PortletServlet.java:218)
	at
org.apache.pluto.core.PortletServlet.doGet(PortletServlet.java:139)
	at
javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
	at
javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
	at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
	at
org.apache.geronimo.jetty6.InternalJettyServletHolder.handle(InternalJettyServletHolder.java:65)
	at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
	at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
	at
org.apache.geronimo.jetty6.handler.JettySecurityHandler.handle(JettySecurityHandler.java:114)
	at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
	at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
	at
org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
	at
org.apache.geronimo.jetty6.handler.TwistyWebAppContext.access$101(TwistyWebAppContext.java:40)
	at
org.apache.geronimo.jetty6.handler.TwistyWebAppContext$TwistyHandler.handle(TwistyWebAppContext.java:65)
	at
org.apache.geronimo.jetty6.handler.ThreadClassloaderHandler.handle(ThreadClassloaderHandler.java:46)
	at
org.apache.geronimo.jetty6.handler.InstanceContextHandler.handle(InstanceContextHandler.java:67)
	at
org.apache.geronimo.jetty6.handler.UserTransactionHandler.handle(UserTransactionHandler.java:48)
	at
org.apache.geronimo.jetty6.handler.ComponentContextHandler.handle(ComponentContextHandler.java:47)
	at
org.apache.geronimo.jetty6.handler.TwistyWebAppContext.handle(TwistyWebAppContext.java:59)
	at
org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:192)
	at
org.apache.pluto.core.DefaultPortletInvokerService.invoke(DefaultPortletInvokerService.java:167)
	at
org.apache.pluto.core.DefaultPortletInvokerService.action(DefaultPortletInvokerService.java:85)
	at
org.apache.pluto.core.PortletContainerImpl.doAction(PortletContainerImpl.java:219)
	at
org.apache.pluto.driver.PortalDriverServlet.doGet(PortalDriverServlet.java:112)
	at
javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
	at
javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
	at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
	at
org.apache.geronimo.jetty6.InternalJettyServletHolder.handle(InternalJettyServletHolder.java:65)
	at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
	at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
	at
org.apache.geronimo.jetty6.handler.JettySecurityHandler.handle(JettySecurityHandler.java:114)
	at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
	at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
	at
org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
	at
org.apache.geronimo.jetty6.handler.TwistyWebAppContext.access$101(TwistyWebAppContext.java:40)
	at
org.apache.geronimo.jetty6.handler.TwistyWebAppContext$TwistyHandler.handle(TwistyWebAppContext.java:65)
	at
org.apache.geronimo.jetty6.handler.ThreadClassloaderHandler.handle(ThreadClassloaderHandler.java:46)
	at
org.apache.geronimo.jetty6.handler.InstanceContextHandler.handle(InstanceContextHandler.java:58)
	at
org.apache.geronimo.jetty6.handler.UserTransactionHandler.handle(UserTransactionHandler.java:48)
	at
org.apache.geronimo.jetty6.handler.ComponentContextHandler.handle(ComponentContextHandler.java:47)
	at
org.apache.geronimo.jetty6.handler.TwistyWebAppContext.handle(TwistyWebAppContext.java:59)
	at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
	at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
	at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
	at org.mortbay.jetty.Server.handle(Server.java:324)
	at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
	at
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:828)
	at
org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
	at
org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
	at
org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
	at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
	at
org.apache.geronimo.pool.ThreadPool$1.run(ThreadPool.java:214)
	at
org.apache.geronimo.pool.ThreadPool$ContextClassLoaderRunnable.run(ThreadPool.java:344)
	at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
	at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
	at java.lang.Thread.run(Thread.java:801)

- Yun Feng



      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 



Re: NoClassDefFoundError when stop a module in admin console

Posted by David Jencks <da...@yahoo.com>.
Thanks for finding this, I rewrote the code to not use the offending  
class.  Rev 612279, GERONIMO-3732.

It looks like there could be more I18n work here with the status  
messages, but I don't have much of an idea how to do that.

david jencks

On Jan 15, 2008, at 5:08 AM, YunFeng Ma wrote:

> Hi David,
>
> I noticed that you commentted out  the dependency
> geronimo-gbean-deployer in
> geronimo\plugins\console\console-jetty\pom.xml in rev
> 611338. Maybe this
> caused the NoClassDefFoundError when stop a module in
> admin console. The
> dependency geronimo-gbean-deployer still exists in
> geronimo\plugins\console\console-tomcat\pom.xml.
>
> Such as stop
> org.apache.geronimo.plugins/sysdb-console-jetty/2.1-SNAPSHOT/car
> in
> admin console, got the exception:
>
>
>     HTTP ERROR: 500
>
> org.apache.geronimo.deployment.plugin.TargetModuleIDImpl
>
> RequestURI=/console/portal//Applications/Web%20App%20WARs/ 
> __ac0x3console-base0x2WARModules!874780194|0
>
>
>       Caused by:
>
> java.lang.NoClassDefFoundError:
> org.apache.geronimo.deployment.plugin.TargetModuleIDImpl
> 	at
> org.apache.geronimo.console.configmanager.ConfigManagerPortlet.printRe 
> sults(ConfigManagerPortlet.java:166)
> 	at
> org.apache.geronimo.console.configmanager.ConfigManagerPortlet.process 
> Action(ConfigManagerPortlet.java:210)
> 	at
> org.apache.pluto.core.PortletServlet.dispatch(PortletServlet.java:218)
> 	at
> org.apache.pluto.core.PortletServlet.doGet(PortletServlet.java:139)
> 	at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
> 	at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
> 	at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
> 	at
> org.apache.geronimo.jetty6.InternalJettyServletHolder.handle 
> (InternalJettyServletHolder.java:65)
> 	at
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 
> 362)
> 	at
> org.mortbay.jetty.security.SecurityHandler.handle 
> (SecurityHandler.java:216)
> 	at
> org.apache.geronimo.jetty6.handler.JettySecurityHandler.handle 
> (JettySecurityHandler.java:114)
> 	at
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: 
> 181)
> 	at
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: 
> 726)
> 	at
> org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
> 	at
> org.apache.geronimo.jetty6.handler.TwistyWebAppContext.access$101 
> (TwistyWebAppContext.java:40)
> 	at
> org.apache.geronimo.jetty6.handler.TwistyWebAppContext 
> $TwistyHandler.handle(TwistyWebAppContext.java:65)
> 	at
> org.apache.geronimo.jetty6.handler.ThreadClassloaderHandler.handle 
> (ThreadClassloaderHandler.java:46)
> 	at
> org.apache.geronimo.jetty6.handler.InstanceContextHandler.handle 
> (InstanceContextHandler.java:67)
> 	at
> org.apache.geronimo.jetty6.handler.UserTransactionHandler.handle 
> (UserTransactionHandler.java:48)
> 	at
> org.apache.geronimo.jetty6.handler.ComponentContextHandler.handle 
> (ComponentContextHandler.java:47)
> 	at
> org.apache.geronimo.jetty6.handler.TwistyWebAppContext.handle 
> (TwistyWebAppContext.java:59)
> 	at
> org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:192)
> 	at
> org.apache.pluto.core.DefaultPortletInvokerService.invoke 
> (DefaultPortletInvokerService.java:167)
> 	at
> org.apache.pluto.core.DefaultPortletInvokerService.action 
> (DefaultPortletInvokerService.java:85)
> 	at
> org.apache.pluto.core.PortletContainerImpl.doAction 
> (PortletContainerImpl.java:219)
> 	at
> org.apache.pluto.driver.PortalDriverServlet.doGet 
> (PortalDriverServlet.java:112)
> 	at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
> 	at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
> 	at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
> 	at
> org.apache.geronimo.jetty6.InternalJettyServletHolder.handle 
> (InternalJettyServletHolder.java:65)
> 	at
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 
> 362)
> 	at
> org.mortbay.jetty.security.SecurityHandler.handle 
> (SecurityHandler.java:216)
> 	at
> org.apache.geronimo.jetty6.handler.JettySecurityHandler.handle 
> (JettySecurityHandler.java:114)
> 	at
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: 
> 181)
> 	at
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: 
> 726)
> 	at
> org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
> 	at
> org.apache.geronimo.jetty6.handler.TwistyWebAppContext.access$101 
> (TwistyWebAppContext.java:40)
> 	at
> org.apache.geronimo.jetty6.handler.TwistyWebAppContext 
> $TwistyHandler.handle(TwistyWebAppContext.java:65)
> 	at
> org.apache.geronimo.jetty6.handler.ThreadClassloaderHandler.handle 
> (ThreadClassloaderHandler.java:46)
> 	at
> org.apache.geronimo.jetty6.handler.InstanceContextHandler.handle 
> (InstanceContextHandler.java:58)
> 	at
> org.apache.geronimo.jetty6.handler.UserTransactionHandler.handle 
> (UserTransactionHandler.java:48)
> 	at
> org.apache.geronimo.jetty6.handler.ComponentContextHandler.handle 
> (ComponentContextHandler.java:47)
> 	at
> org.apache.geronimo.jetty6.handler.TwistyWebAppContext.handle 
> (TwistyWebAppContext.java:59)
> 	at
> org.mortbay.jetty.handler.ContextHandlerCollection.handle 
> (ContextHandlerCollection.java:206)
> 	at
> org.mortbay.jetty.handler.HandlerCollection.handle 
> (HandlerCollection.java:114)
> 	at
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 
> 139)
> 	at org.mortbay.jetty.Server.handle(Server.java:324)
> 	at
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 
> 505)
> 	at
> org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete 
> (HttpConnection.java:828)
> 	at
> org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
> 	at
> org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
> 	at
> org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
> 	at
> org.mortbay.io.nio.SelectChannelEndPoint.run 
> (SelectChannelEndPoint.java:395)
> 	at
> org.apache.geronimo.pool.ThreadPool$1.run(ThreadPool.java:214)
> 	at
> org.apache.geronimo.pool.ThreadPool$ContextClassLoaderRunnable.run 
> (ThreadPool.java:344)
> 	at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask 
> (ThreadPoolExecutor.java:665)
> 	at
> java.util.concurrent.ThreadPoolExecutor$Worker.run 
> (ThreadPoolExecutor.java:690)
> 	at java.lang.Thread.run(Thread.java:801)
>
> - Yun Feng
>
>
>
>        
> ______________________________________________________________________ 
> ______________
> Be a better friend, newshound, and
> know-it-all with Yahoo! Mobile.  Try it now.  http:// 
> mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
>
>