I believe you will have to grab the latest nightly build of 2.1.x to use the
latest monitoring extension. Some changes were made to it after 2.1.0 that
require an upgrade of the core geoserver as well.

On Fri, May 27, 2011 at 8:25 AM, rm <[email protected]> wrote:

> I am using GeoServer 2.1.0 and have pulled the Monitoring Extension from
> the
> nightly build, copied the .jar files into the WEB-INF/lib directory, and
> repackaged the .war file as directed here:
> http://docs.geoserver.org/2.1.0/user/community/monitoring/installation.html
>
> When I deploy the .war I get Class Not Found Exceptions for the
> org.geoserver.filters.GeoServerFilter class.  I assume I must be missing
> another required .jar library or another extension.  I should add that I am
> using Glassfish 3.1.
>
> Any ideas what I did wrong or what I am missing?
>
> Here is the stack trace:
>
>
> [#|2011-05-27T10:03:19.413-0400|SEVERE|glassfish3.1|org.geoserver|_ThreadID=159;_ThreadName=Thread-1;|bean
> lookup error
> org.springframework.beans.factory.CannotLoadBeanClassException: Error
> loading class [org.geoserver.monitor.MonitorFilter] for bean w
> ith name 'monitorFilter' defined in URL
>
> [jar:file:/appbin/glassfish3.1/glassfish/domains/domain1/applications/geoserver/WEB-INF/
> lib/monitoring-2.1-SNAPSHOT.jar!/applicationContext.xml]: problem with
> class
> file or dependent class; nested exception is java.lang.
> NoClassDefFoundError: org/geoserver/filters/GeoServerFilter
>        at
>
> org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1141)
>        at
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanF
> actory.java:524)
>        at
>
> org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1174)
>        at
>
> org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:
> 222)
>        at
>
> org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:
> 202)
>        at
>
> org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:934)
>        at
>
> org.geoserver.platform.GeoServerExtensions.extensions(GeoServerExtensions.java:106)
>        at
>
> org.geoserver.platform.GeoServerExtensions.bean(GeoServerExtensions.java:276)
>        at
>
> org.geoserver.platform.GeoServerExtensions.bean(GeoServerExtensions.java:259)
>        at
>
> org.geoserver.security.SecureCatalogImpl.lookupDataAccessManager(SecureCatalogImpl.java:85)
>        at
>
> org.geoserver.security.SecureCatalogImpl.lookupResourceAccessManager(SecureCatalogImpl.java:76)
>        at
> org.geoserver.security.SecureCatalogImpl.<init>(SecureCatalogImpl.java:66)
>        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
>        at
>
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>        at
>
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>        at
> org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100)
>        at
>
> org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
>        at
>
> org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:248)
>        at
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableB
> eanFactory.java:925)
>        at
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBe
> anFactory.java:835)
>        at
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFact
> ory.java:440)
>        at
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.jav
> a:409)
>        at java.security.AccessController.doPrivileged(Native Method)
>        at
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactor
> y.java:380)
>        at
>
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
>        at
>
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221
> )
>        at
>
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
>        at
>
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
>        at
>
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
>        at
>
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:2
> 69)
>        at
>
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver
> .java:104)
>        at
>
> org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:495)
>        at
>
> org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:162)
>        at
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableB
> eanFactory.java:925)
>        at
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBe
> anFactory.java:835)
>        at
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFact
> ory.java:440)
>        at
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.jav
> a:409)
>        at java.security.AccessController.doPrivileged(Native Method)
>        at
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactor
> y.java:380)
>        at
>
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
>        at
>
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221
> )
>        at
>
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
>        at
>
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
>        at
>
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
>        at
>
> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.
> java:429)
>        at
>
> org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext
> .java:729)
>        at
>
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
>        at
>
> org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
>        at
>
> org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
>        at
>
> org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
>        at
>
> org.geoserver.platform.GeoServerContextLoaderListener.contextInitialized(GeoServerContextLoaderListener.java:18)
>        at
>
> org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:4690)
>        at
> com.sun.enterprise.web.WebModule.contextListenerStart(WebModule.java:534)
>        at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:5305)
>        at com.sun.enterprise.web.WebModule.start(WebModule.java:500)
>        at
>
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:917)
>        at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:901)
>        at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:755)
>        at
> com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1980)
>        at
> com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1630)
>        at
> com.sun.enterprise.web.WebApplication.start(WebApplication.java:100)
>        at org.glassfish.internal.data.EngineRef.start(EngineRef.java:130)
>        at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269)
>        at
> org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:286)
>        at
>
> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461)
>        at
>
> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
>        at
>
> org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:370)
>        at
>
> com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:354)
>        at
>
> com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:369)
>        at
>
> com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1080)
>        at
>
> com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:95)
>        at
>
> com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1260)
>        at
>
> com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1248)
>        at
>
> org.glassfish.admingui.common.util.LocalDeploymentFacility$LocalDFCommandRunner.run(LocalDeploymentFacility.java:143)
>        at
>
> org.glassfish.deployment.client.AbstractDeploymentFacility.deploy(AbstractDeploymentFacility.java:406)
>        at
>
> org.glassfish.admingui.common.util.DeployUtil.invokeDeploymentFacility(DeployUtil.java:100)
>        at
> org.glassfish.admingui.common.util.DeployUtil.deploy(DeployUtil.java:76)
>        at
>
> org.glassfish.admingui.common.handlers.DeploymentHandler.deploy(DeploymentHandler.java:191)
>        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:597)
>        at
>
> com.sun.jsftemplating.layout.descriptors.handler.Handler.invoke(Handler.java:442)
>        at
>
> com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:420)
>        at
>
> com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:394)
>        at
>
> com.sun.jsftemplating.layout.event.CommandActionListener.invokeCommandHandlers(CommandActionListener.java:150)
>        at
>
> com.sun.jsftemplating.layout.event.CommandActionListener.processAction(CommandActionListener.java:98)
>        at
> javax.faces.event.ActionEvent.processListener(ActionEvent.java:88)
>        at
> javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:769)
>        at javax.faces.component.UICommand.broadcast(UICommand.java:300)
>        at
> com.sun.webui.jsf.component.WebuiCommand.broadcast(WebuiCommand.java:166)
>        at
> javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:794)
>        at
> javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1259)
>        at
>
> com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)
>        at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
>        at
> com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
>        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:409)
>        at
> org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1534)
>        at
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)
>        at
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
>        at
> com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:223)
>        at
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
>        at
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
>        at
>
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
>        at
>
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
>        at
>
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
>        at
>
> org.apache.catalina.core.StandardPipeline.doChainInvoke(StandardPipeline.java:600)
>        at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:96)
>        at
>
> com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)
>        at
>
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
>        at
>
> org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:326)
>        at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:227)
>        at
>
> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:228)
>        at
> com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822)
>        at
> com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719)
>        at
> com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013)
>        at
>
> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
>        at
>
> com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
>        at
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
>        at
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
>        at
> com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
>        at
>
> com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
>        at
>
> com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
>        at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
>        at
>
> com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
>        at
>
> com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
>        at java.lang.Thread.run(Thread.java:662)
> Caused by: java.lang.NoClassDefFoundError:
> org/geoserver/filters/GeoServerFilter
>        at java.lang.ClassLoader.defineClass1(Native Method)
>        at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
>        at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
>        at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
>        at
>
> org.glassfish.web.loader.WebappClassLoader.findClass(WebappClassLoader.java:925)
>        at
>
> org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1485)
>        at
>
> org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1368)
>        at org.springframework.util.ClassUtils.forName(ClassUtils.java:242)
>        at
>
> org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:383)
>        at
>
> org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1135)
>        ... 127 more
> Caused by: java.lang.ClassNotFoundException:
> org.geoserver.filters.GeoServerFilter
>        at
>
> org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1518)
>        at
>
> org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1368)
>        ... 137 more
> |#]
>
>
> --
> View this message in context:
> http://osgeo-org.1803224.n2.nabble.com/Monitoring-Extension-ClassNotFoundException-org-geoserver-filters-GeoServerFilter-tp6411242p6411242.html
> Sent from the GeoServer - User mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> vRanger cuts backup time in half-while increasing security.
> With the market-leading solution for virtual backup and recovery,
> you get blazing-fast, flexible, and affordable data protection.
> Download your free trial now.
> http://p.sf.net/sfu/quest-d2dcopy1
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>



-- 
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.
------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to