Hi Fiona,

Looks like there is a bug with the MongoDB rest controller plugin and its 
optional integration with AppSchema module trying to load some classes without 
need.


I would recommend to add the AppSchema plugin as workaround while this bug gets 
a fix.  I will add this bug to Geoserver JIRA (if not created yet).


Regards,Fernando Mino==GeoServer Professional Services from the experts! Visit 
http://goo.gl/it488V for more information.==Fernando MinoSoftware Engineer
GeoSolutions S.A.S.Via di Montramito 3/A55054  Massarosa (LU)Italyphone: +39 
0584 962313fax:     +39 0584 1660272
http://www.geo-solutions.ithttp://twitter.com/geosolutions_it
-------------------------------------------------------
Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 
2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa 
che ogni circostanza inerente alla presente email (il suo contenuto, gli 
eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i 
destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per 
errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei 
comunque grato se potesse darmene notizia.

This email is intended only for the person or entity to which it is addressed 
and may contain information that is privileged, confidential or otherwise 
protected from disclosure. We remind that - as provided by European Regulation 
2016/679 “GDPR” - copying, dissemination or use of this e-mail or the 
information herein by anyone other than the intended recipient is prohibited. 
If you have received this email by mistake, please notify us immediately by 
telephone or e-mail.







From: fiona.bucking...@hse.gov.uk
To: geoserver-users@lists.sourceforge.net
Cc: 
Date: Mon, 18 Nov 2019 15:00:33 +0000
Subject: Re: [Geoserver-users] GeoServer MongoDB Plugin










Hello,
 
Checked the geoserver log file in the GeoServer Data Directory and found the 
following error:
 
2019-11-18 14:49:57,485 ERROR [context.ContextLoader] - Context initialization 
failed
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'gwcWmtsRestUrlHandlerMapping' defined in URL 
[jar:file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%209.0/webapps/geoserver/WEB-INF/lib/gs-gwc-2.16.0.jar!/applicationContext.xml]:
 Invocation of init method failed; nested exception is 
java.lang.IllegalStateException: Failed to introspect Class 
[org.geoserver.rest.service.MongoStoreRestController] from ClassLoader 
[ParallelWebappClassLoader
  context: geoserver
  delegate: false
----------> Parent Classloader:
java.net.URLClassLoader@254989ff
]
                at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1745)
                at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:576)
                at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:498)
                at 
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)
                at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
                at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)
                at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
                at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:846)
                at 
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:863)
                at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:546)
                at 
org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:400)
                at 
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:291)
                at 
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:103)
                at 
org.geoserver.platform.GeoServerContextLoaderListener.contextInitialized(GeoServerContextLoaderListener.java:22)
                at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4685)
                at 
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5146)
                at 
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
                at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:717)
                at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690)
                at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:705)
                at 
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:978)
                at 
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1849)
                at java.util.concurrent.Executors$RunnableAdapter.call(Unknown 
Source)
                at java.util.concurrent.FutureTask.run(Unknown Source)
                at 
org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
                at java.util.concurrent.AbstractExecutorService.submit(Unknown 
Source)
                at 
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:773)
                at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427)
                at 
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1576)
                at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:309)
                at 
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
                at 
org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423)
                at 
org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366)
                at 
org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:936)
                at 
org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:841)
                at 
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
                at 
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384)
                at 
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374)
                at java.util.concurrent.FutureTask.run(Unknown Source)
                at 
org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
                at java.util.concurrent.AbstractExecutorService.submit(Unknown 
Source)
                at 
org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909)
                at 
org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
                at 
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
                at 
org.apache.catalina.core.StandardService.startInternal(StandardService.java:421)
                at 
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
                at 
org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930)
                at 
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
                at org.apache.catalina.startup.Catalina.start(Catalina.java:633)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown 
Source)
                at java.lang.reflect.Method.invoke(Unknown Source)
                at 
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:344)
                at 
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:475)
Caused by: java.lang.IllegalStateException: Failed to introspect Class 
[org.geoserver.rest.service.MongoStoreRestController] from ClassLoader 
[ParallelWebappClassLoader
  context: geoserver
  delegate: false
----------> Parent Classloader:
java.net.URLClassLoader@254989ff
]
                at 
org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:680)
                at 
org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:577)
                at 
org.springframework.core.MethodIntrospector.selectMethods(MethodIntrospector.java:72)
                at 
org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.detectHandlerMethods(AbstractHandlerMethodMapping.java:264)
                at 
org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.processCandidateBean(AbstractHandlerMethodMapping.java:249)
                at 
org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.initHandlerMethods(AbstractHandlerMethodMapping.java:208)
                at 
org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.afterPropertiesSet(AbstractHandlerMethodMapping.java:196)
                at 
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.afterPropertiesSet(RequestMappingHandlerMapping.java:164)
                at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1804)
                at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1741)
                ... 54 more
Caused by: java.lang.NoClassDefFoundError: 
org/geotools/data/complex/AppSchemaDataAccess
                at java.lang.Class.getDeclaredMethods0(Native Method)
                at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
                at java.lang.Class.getDeclaredMethods(Unknown Source)
                at 
org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:662)
                ... 63 more
Caused by: java.lang.ClassNotFoundException: 
org.geotools.data.complex.AppSchemaDataAccess
                at 
org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1365)
                at 
org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1188)
                ... 67 more
 
Kind regards,
 
Fiona Buckingham
 
From: Vitor Fonseca <vfonse...@gmail.com>


Sent: 18 November 2019 14:12

To: Fiona Buckingham <fiona.bucking...@hse.gov.uk>

Cc: geoserver-users <geoserver-users@lists.sourceforge.net>

Subject: Re: [Geoserver-users] GeoServer MongoDB Plugin
 

 

check geoserver log in data_dir for any errors


 


<fiona.bucking...@hse.gov.uk> escreveu no dia segunda, 18/11/2019 à(s) 13:25:




Hello,
 
Got GeoServer 2.16.0 running with Java Version 8 Update 112 (64-bit) on Windows 
Server 2012.
 
Tried to install the MongoDB plugin (geoserver-2.16.0-mongodb-plugin) using the 
instruction in the GeoServer 2.16.0 User Manual but it breaks GeoServer i.e. 
unable to access the
 GeoServer Admin UI due to being presented with the error message displayed in 
Figure 1. For the installation of the MongoDB Plugin, I pasted all of the 
extracted files (gt-mongodb-22.0.jar, gs-mongodb-2.16.0.jar and 
mongo-java-driver-3.3.0.jar) into …\geoserver\WEB-INF\lib
 directory then restarted GeoServer. 
 


Figure 1: Error Message
If I only paste gs-mongodb-2.16.0..jar into …\geoserver\WEB-INF\lib directory 
then restart GeoServer, I can access the GeoServer Admin UI and can access the 
MongoDB vector data
 source web page. However, not sure what to do with gs-mongodb-2.16.0.jar and 
mongo-java-driver-3.3.0.jar. Any suggestions?
 
Kind regards,
 
Fiona Buckingham

*****************************************************************************************************************
Please note : Incoming and outgoing email messages are routinely monitored for 
compliance with our policy on the use of electronic communications and may be 
automatically logged, monitored and
 / or recorded for lawful purposes by the GSI service provider.
 
Interested in Occupational Health and Safety information?

Please visit the HSE website at the following address to keep yourself up to 
date

 
www.hse.gov.uk
 
*****************************************************************************************************************
 
 

_______________________________________________

Geoserver-users mailing list



Please make sure you read the following two resources before posting to this 
list:

- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/

- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html



If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer





Geoserver-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/geoserver-users






 

-- 













www.vfonsecaz.pt


 












______________________________________________________________________

This email has been scanned by the Symantec Email Security.cloud service.

For more information please visit http://www.symanteccloud.com

______________________________________________________________________



_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to