Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [geomesa-users] Configuring GeoServer for GeoMesa

Thanks Chris, will do.


From: geomesa-users-bounces@xxxxxxxxxxxxxxxx [mailto:geomesa-users-bounces@xxxxxxxxxxxxxxxx] On Behalf Of Chris Snider
Sent: Thursday, May 22, 2014 6:16 AM
To: Geomesa User discussions; hunter@xxxxxxxx
Subject: Re: [geomesa-users] Configuring GeoServer for GeoMesa




You are getting this error “java.lang.NoSuchMethodError: org.slf4j.Logger.isTraceEnabled()Z” which means you have at least 2 copies of the slf4j logger jar deployed for geomesa.  GeoServer comes with a log4j-1.2.14 and GeoMesa requires log4j-1.2.17 I believe (at least that is what I deploy with some of my other GeoServer extensions/apps we write).


Check your GeoServer folder WEB-INF/lib for log4j-X.X.X.jar and rename all of them except the one with the highest number.  Restart your container (Tomcat, JBoss, etc) and try adding the GeoMesa store again.


Chris Snider

Senior Software Engineer

Intelligent Software Solutions, Inc.

Direct (719) 452-7257

Description: Description: Description: cid:image001.png@01CA1F1F.CBC93990


From: geomesa-users-bounces@xxxxxxxxxxxxxxxx [mailto:geomesa-users-bounces@xxxxxxxxxxxxxxxx] On Behalf Of Barnhart, Bob M.
Sent: Wednesday, May 21, 2014 4:47 PM
To: hunter@xxxxxxxx; Geomesa User discussions
Subject: Re: [geomesa-users] Configuring GeoServer for GeoMesa


I think I’ve gotten past the “missing .jar file” issues, adding the following .jars:



accumulo-fate.jar (I002)

commons-configuration-1.6.jar (I002)

commons-lang-2.6.jar (I002)


I am continuing with the instruction at


I brought up GeoServer and added a new workspace (name:geomesa, That went fine.


Then I tried to register the GeoMesa data store with GeoServer, defining the “geomesa:gdelt” data store as shown in the tutorial. I used all the same connection parameters I used to ingest the GDELT 20140507 data.


However, when I hit “Save” I got the following error on the web-page:


Error creating data store, check the parameters. Error message: Failed to connect to zookeeper (localhost:2181) within 2x zookeeper timeout period 30000


The GeoServer standard-error output a large number of the following errors (presumably one for each failed attempt to connect to ZooKeeper):


272858 [btpool0-7-SendThread(localhost:2181)] INFO org.apache.zookeeper.ClientCnxn - Socket connection established to localhost/, initiating session

272862 [btpool0-7-SendThread(localhost:2181)] WARN org.apache.zookeeper.ClientCnxn - Session 0x0 for server localhost/, unexpected error, closing socket connection and attempting reconnect

java.lang.NoSuchMethodError: org.slf4j.Logger.isTraceEnabled()Z

                at org.apache.zookeeper.ClientCnxnSocket.readConnectResult(

                at org.apache.zookeeper.ClientCnxnSocketNIO.doIO(

                at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(

                at org.apache.zookeeper.ClientCnxn$

274761 [btpool0-7-SendThread(localhost:2181)] INFO org.apache.zookeeper.ClientCnxn - Opening socket connection to server localhost/0:0:0:0:0:0:0:1:2181. Will not attempt to authenticate using SASL (unknown error)


However, as far as I can tell, ZooKeeper is running fine and responded to commands such as “echo ruok | nc 5111”.


Any ideas what might be going wrong here?




From: geomesa-users-bounces@xxxxxxxxxxxxxxxx [mailto:geomesa-users-bounces@xxxxxxxxxxxxxxxx] On Behalf Of Hunter Provyn
Sent: Wednesday, May 21, 2014 11:33 AM
To: geomesa-users@xxxxxxxxxxxxxxxx
Subject: Re: [geomesa-users] Configuring GeoServer for GeoMesa



I think you will need:


You do not need the geomesa-dist in your geoserver/WEB-INF/lib

We are planning to update the documentation with our next release, thanks for bearing with us in the meantime.


On 05/21/2014 02:00 PM, Barnhart, Bob M. wrote:

I am trying to configure GeoServer to work with GeoMesa as described in


I installed GeoServer and copied the following jar files to $GEOMESA_HOME/webapps/geoserver/WEB-INF/lib:


-rw-rw-r--. 1 barnhartr barnhartr 145182720 May  9 10:13 geomesa-dist-1.0.0-SNAPSHOT-distribution.tar

-rw-rw-r--. 1 barnhartr barnhartr  18352705 May 21 09:52 geomesa-plugin-1.0.0-SNAPSHOT-geoserver-plugin.jar

-rw-r--r--. 1 barnhartr barnhartr   3736955 May 21 10:24 accumulo-core.jar

drwxr-xr-x. 2 barnhartr barnhartr     12288 May 21 10:27 .

-rw-rw-r--. 1 barnhartr barnhartr   1340305 May 21 10:27 zookeeper-3.4.6.jar


However, when I start GeoServer, I’m getting the following exception:


INFO org.mortbay.log - Logging to org.slf4j.impl.SimpleLogger@4019eb89 via org.mortbay.log.Slf4jLog

367 [main] WARN org.mortbay.log - Deprecated configuration used for /usr/local/geoserver-2.5/webapps

417 [main] INFO org.mortbay.log - jetty-6.1.8

log4j:WARN File option not set for appender [geoserverlogfile].

log4j:WARN Are you using FileAppender instead of ConsoleAppender?

3659 [main] INFO /geoserver - Initializing Spring root WebApplicationContext

May 21, 2014 10:29:49 AM org.geoserver.platform.GeoServerExtensions checkContext

WARNING: Extension lookup occured, but ApplicationContext is unset.

May 21, 2014 10:29:52 AM org.geotools.factory.FactoryRegistry scanForPlugins

WARNING: Can't load a service for category "DataStoreFactorySpi". Cause is "ServiceConfigurationError: Provider could not be instantiated".

java.util.ServiceConfigurationError: Provider could not be instantiated


                at java.util.ServiceLoader.access$100(

                at java.util.ServiceLoader$

                . . .


The tutorial says that “Your local Accumulo and Zookeepers JARs also need to be available within your GeoServer’s lib directory.”.


The GeoMesa “Getting Started” document also says:


Note that you will also need other JAR files, particularly those pertaining to: accumulo-core; hadoop-core; zookeeper; libthrift; and cloudtrace. These are support services that are referenced by GeoMesa, yet are part of your base infrastructure.


Which other .jar files are required for GeoServer+GeoMesa and where must they be installed?




Bob Barnhart

Chief Systems Engineer | 858 826 5596 (Office) | 619 972 9489 (Mobile) | Robert.M.Barnhart@xxxxxxxxxx




geomesa-users mailing list


Back to the top