Більше

FileSystemException при використанні розширення імпортера


Я намагаюся імпортувати Shapefile до Geosever із розширенням Importer. Це json, який я публікую в… / geoserver / rest / import:

{"import": {"targetWorkspace": {"workspace": {"name": "cube"}}, "targetStore": {"dataStore": {"name": "test3"}}, "data": {"type": "file", "file": "/data/shapefiles/states.shp"}}}

Файл є, а робоча область та сховище даних (SQL Server) існують.

Це Stacktrace, який я отримую від Geoserver:

   Помилка 500 org / apache / commons / vfs / FileSystemException  

ПОМИЛКА HTTP: 500

org / apache / commons / vfs / FileSystemException

RequestURI = / геосервер / відпочинок / імпорт

Спричинений:

java.lang.NoClassDefFoundError: org / apache / commons / vfs / FileSystemException на org.geoserver.importer.FileData.createFromFile (FileData.java:42) на org.geoserver.importer.rest.ImportJSONReader.file54 Import. ) на org.geoserver.importer.rest.ImportJSONReader.data (ImportJSONReader.java:331) на org.geoserver.importer.rest.ImportJSONReader.context (ImportJSONReader.java:108) на org.geoserver.importer.our.ImportRes. ImportContextJSONFormat.read (ImportResource.java:260) на org.geoserver.rest.format.StreamDataFormat.toObject (StreamDataFormat.java:34) на org.geoserver.importer.rest.ImportResource.createImport (ImportResource.java: ImportResource.java .geoserver.importer.rest.ImportResource.handlePost (ImportResource.java:205) на org.restlet.Finder.handle (Finder.java:296) на org.geoserver.rest.BeanDelegatingRestlet.handle (BeanDelegatingRestlet.java:38) в. org.restlet.Filter.doHandle (Filter.java:105) на org.restlet.Filter.handle (Filter.java:134) на org.restlet.Router.handle (Router.java:444) на org.geoserver.rest.RESTDispatcher $ 1.handle (RESTDispatcher.java:205) на com.noelios.restlet.ext.servlet.ServletConverter.service (ServletConverter.java:129) на org.geoserver.rest.RESTDispatcher.handleRequestInternal ( RESTDispatcher.java:87) на org.springframework.web.servlet.mvc.AbstractController.handleRequest (AbstractController.java:153) на org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle (SimpleControllerHandlera org. .springframework.web.servlet.DispatcherServlet.doDispatch (DispatcherServlet.java:923) на org.springframework.web.servlet.DispatcherServlet.doService (DispatcherServlet.java:852) на org.springframework.vletwork.vletwork.vb. .java: 882) на org.springframework.web.servlet.FrameworkServlet.doPost (FrameworkServlet.java:789) на javax.servlet.http.HttpServlet.service (HttpServlet.java:727) на javax.servlet.http.http.http.http.http.http.http.http служби (HttpServlet.java:820) на org.mortbay.jetty.servlet.ServletHolder.handle (ServletHolder.java:487) на org.mortbay.jetty.servlet.ServletHandler $ CachedChain.doFilter (ServletHandler.java:1093) на org.geoserver.filters.ThreadLocalsCleanupFilter.doFilter (ThreadLocalsCjav. jetty.servlet.ServletHandler $ CachedChain.doFilter (ServletHandler.java:1084) на org.geoserver.filters.SpringDelegatingFilter $ Chain.doFilter (SpringDelegatingFilter.java:75) на org.geoserver.wms.anil.Filter. java: 71) на org.geoserver.filters.SpringDelegatingFilter $ Chain.doFilter (SpringDelegatingFilter.java:71) на org.geoserver.filters.SpringDelegatingFilter.doFilter (SpringDelegatingFilter.java:46) на org.mserbaaletterletterjetlerjetjetjetjetjetjetjetjetjet $ CachedChain.doFilter (ServletHandler.java:1084) на org.geoserver.platform.AdvancedDispatchFilter.doFilter (AdvancedDispatchFilter.java:50) на org.mortbay.jetty.servlet.ServletHandler $ CachedChain.doFilterler org.springframework.security.web.FilterChainProxy $ VirtualFilterChai n.doFilter (FilterChainProxy.java:311) на org.geoserver.security.filter.GeoServerCompositeFilter $ NestedFilterChain.doFilter (GeoServerCompositeFilter.java:69) на org.springframework.security.web.access.intercept.Finter.Inter. java: 116) на org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter (FilterSecurityInterceptor.java:83) на org.geoserver.security.filter.GeoServerCompositeFilter $ NestedFilterChain.doFilter: at). .geoserver.security.filter.GeoServerCompositeFilter. .doFilter (GeoServerCompositeFilter.java:69) на org.springframework.security.web.access.ExceptionTranslationFilter.doFilter (ExceptionTranslationFilter.java:113) на org.geoserver.security.filter.Ge oServerCompositeFilter $ NestedFilterChain.doFilter (GeoServerCompositeFilter.java:73) на org.geoserver.security.filter.GeoServerCompositeFilter.doFilter (GeoServerCompositeFilter.java:92) на org.springFrainCrainCrainFinterCrainCrainFinterCrainFinterChain.FilterChain. 323) на org.geoserver.security.filter.GeoServerAnonymousAuthenticationFilter.doFilter (GeoServerAnonymousAuthenticationFilter.java:54) на org.springframework.security.web.FilterChainProxy $ VirtualFilterChain.doFilterxy.doFilterxy.doFilterxy.doFilterxy. .GeoServerCompositeFilter $ NestedFilterChain.doFilter (GeoServerCompositeFilter.java:69) в org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter (BasicAuthenticationFilter.vaterFoverGrafserverFejverFejverFejverFejverFejverFeterFejverFejverFejterFejverFeterFejverFeterFejverFeterFejverFejterFejverFeterFejverFejterFejterFejterFejzFerterFejverFejterFejterFejterFejterFejterFejzFerter. (GeoServerCompositeFilter.java:73) на org.geoserver.security.filter.GeoServerCompositeFilter.doFilter (GeoServerCompositeFilter.java:92) на або g.geoserver.security.filter. NestedFilterChain.doFilter (GeoServerCompositeFilter.java:69) на org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter (SecurityContextPersistenceFilter.java:87) на org.geoserver.security.filter.server.security.filter.server.security.filter. ) на org.geoserver.security.filter.GeoServerCompositeFilter $ NestedFilterChain.doFilter (GeoServerCompositeFilter.java:73) на org.geoserver.security.filter.GeoServerCompositeFilter.doFilter (GeoServerCompositeFilter. FilterChainProxy $ VirtualFilterChain.doFilter (FilterChainProxy.java:323) на org.springframework.security.web.FilterChainProxy.doFilter (Fi lterChainProxy.java:173) на org.geoserver.security.GeoServerSecurityFilterChainProxy.doFilter (GeoServerSecurityFilterChainProxy.java:135) на org.springframework.web.filter.DelegatingFilterProxy.DelegatingFilterProxy.profil. .DelegatingFilterProxy.doFilter (DelegatingFilterProxy.java:259) на org.mortbay.jetty.servlet.ServletHandler $ CachedChain.doFilter (ServletHandler.java:1084) на org.geoserver.filters.LoggingFilter.Filter.83. org.mortbay.jetty.servlet.ServletHandler $ CachedChain.doFilter (ServletHandler.java:1084) на org.geoserver.filters.GZIPFilter.doFilter (GZIPFilter.java:42) на org.mortbay.jetty.servnd.Servlet. doFilter (ServletHandler.java:1084) на org.geoserver.filters.SessionDebugFilter.doFilter (SessionDebugFilter.java:48) на org.mortbay.jetty.servlet.ServletHandler $ CachedChain.doFilter (Servletgeo84) .filters.FlushSafeFilter.doFilter (FlushSafeFilter.java:44) в організації .mortbay.jetty.servlet.ServletHandler $ CachedChain.doFilter (ServletHandler.java:1084) на org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter (SetCharacterEncodingFilter.java.intartv. .doFilter (ServletHandler.java:1084) на org.mortbay.jetty.servlet.ServletHandler.handle (ServletHandler.java:360) на org.mortbay.jetty.security.SecurityHandler.handle (SecurityHandler.java:216) на org. mortbay.jetty.servlet.SessionHandler.handle (SessionHandler.java:181) на org.mortbay.jetty.handler.ContextHandler.handle (ContextHandler.java:726) на org.mortbay.jetty.webapp.WebAppConte. java: 405) на org.mortbay.jetty.handler.ContextHandlerCollection.handle (ContextHandlerCollection.java:206) на org.mortbay.jetty.handler.HandlerCollection.handle (HandlerCollection.java:11band) atjet orget.morthandband. .HandlerWrapper.handle (HandlerWrapper.java:152) на org.mortbay.jetty.Server.handle (Server.java:324) на org.mortbay.jetty.HttpConnection .handleRequest (HttpConnection.java:505) на org.mortbay.jetty.HttpConnection $ RequestHandler.content (HttpConnection.java:842) на org.mortbay.jetty.HttpParser.parseNext (HttpParser.java:648ba. jetty.HttpParser.parseAvailable (HttpParser.java:211) на org.mortbay.jetty.HttpConnection.handle (HttpConnection.java:380) на org.mortbay.io.nio.SelectChannelEndPoint.run (SelectChannelEndPoint.java .mortbay.thread.BoundedThreadPool $ PoolThread.run (BoundedThreadPool.java:450) Викликано: java.lang.ClassNotFoundException: org.apache.commons.vfs.FileSystemException на java.net.URLClassLoaderg. mortbay.jetty.webapp.WebAppClassLoader.loadClass (WebAppClassLoader.java:366) на org.mortbay.jetty.webapp.WebAppClassLoader.loadClass (WebAppClassLoader.java:337)… ще 92 

Спричинений:

java.lang.ClassNotFoundException: org.apache.commons.vfs.FileSystemException на java.net.URLClassLoader.findClass (невідоме джерело) на org.mortbay.jetty.webapp.WebAppClassLoader.loadClass (WebApp). .jetty.webapp.WebAppClassLoader.loadClass (WebAppClassLoader.java:337) на org.geoserver.importer.FileData.createFromFile (FileData.java:42) на org.geoserver.importer.rest.ImportJSONReader.file54. ) на org.geoserver.importer.rest.ImportJSONReader.data (ImportJSONReader.java:331) на org.geoserver.importer.rest.ImportJSONReader.context (ImportJSONReader.java:108) на org.geoserver.importer.our.ImportRes. ImportContextJSONFormat.read (ImportResource.java:260) на org.geoserver.rest.format.StreamDataFormat.toObject (StreamDataFormat.java:34) на org.geoserver.importer.rest.ImportResource.createImport (ImportResource.java: ImportResource.java .geoserver.importer.rest.ImportResource.handlePost (ImportResource.java:205) на org.restlet.Finder.handle (Finder.java:296 ) на org.geoserver.rest.BeanDelegatingRestlet.handle (BeanDelegatingRestlet.java:38) на org.restlet.Filter.doHandle (Filter.java:105) на org.restlet.Filter.handle (Filter.java:134) на org .restlet.Router.handle (Router.java:444) на org.geoserver.rest.RESTDispatcher $ 1.handle (RESTDispatcher.java:205) на com.noelios.restlet.ext.servlet.ServletConverter.service (ServletConverter.java: 129) на org.geoserver.rest.RESTDispatcher.handleRequestInternal (RESTDispatcher.java:87) на org.springframework.web.servlet.mvc.AbstractController.handleRequest (AbstractController.java:153) на org.springframework.web.servlet.mv .SimpleControllerHandlerAdapter.handle (SimpleControllerHandlerAdapter.java:48) на org.springframework.web.servlet.DispatcherServlet.doDispatch (DispatcherServlet.java:923) на org.springframework.web.servlet.Dev.servlet. org.springframework.web.servlet.FrameworkServlet.processRequest (FrameworkServlet.java:882) на org.springframework.web.servlet.Frame workServlet.doPost (FrameworkServlet.java:789) на javax.servlet.http.HttpServlet.service (HttpServlet.java:727) на javax.servlet.http.HttpServlet.service (HttpServlet.jag: 820ba) atjet .servlet.ServletHolder.handle (ServletHolder.java:487) на org.mortbay.jetty.servlet.ServletHandler $ CachedChain.doFilter (ServletHandler.java:1093) на org.geoserver.filters.ThreadLolalsCleanupFillaFillaFillaFillaFillaFillaFillaFillaFillaFillaFallaFillaFillaFillaFillaFillaFillaFillaFillaFillaFillaFillaFillaFallaFillaFallaFillaFillaFallaFillaFillaFaldala ) на org.mortbay.jetty.servlet.ServletHandler $ CachedChain.doFilter (ServletHandler.java:1084) на org.geoserver.filters.SpringDelegatingFilter $ Chain.doFilter (SpringDelegatingFilter.java:75. at org.msoanverver. AnimatorFilter. .jetty.servlet.ServletHandler $ CachedChain.doFilter (ServletHandler.java:1084) на org.geoserver.platform.Ad vancedDispatchFilter.doFilter (AdvancedDispatchFilter.java:50) на org.mortbay.jetty.servlet.ServletHandler $ CachedChain.doFilter (ServletHandler.java:1084) на org.springframework.security.web.FilterChainProxyFinterChainProxyFinterChainProxyFinterChainProxyFinterChainProxy 311) за адресою org.geoserver.security.filter.GeoServerCompositeFilter $ NestedFilterChain.doFilter (GeoServerCompositeFilter.java:69) за адресою org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invofra (filterSevaworkInspring). .security.web.access.intercept.FilterSecurityInterceptor.doFilter (FilterSecurityInterceptor.java:83) в org.geoserver.security.filter.GeoServerCompositeFilter $ NestedFilterChain.doFilter (GeoServerCompositeFilter.java: 73). .doFilter (GeoServerCompositeFilter.java:92) на org.springframework.security.web.FilterChainProxy $ VirtualFilterChain.doFilter (FilterChainProxy.java:323) на org.geoserver.security.filter.GeoServerCompo siteFilter $ NestedFilterChain.doFilter (GeoServerCompositeFilter.java:69) на org.springframework.security.web.access.ExceptionTranslationFilter.doFilter (ExceptionTranslationFilter.java:113) на org.geoserver.security.filter.FilterSecurity.filter. java: 73) на org.geoserver.security.filter.GeoServerCompositeFilter.doFilter (GeoServerCompositeFilter.java:92) на org.springframework.security.web.FilterChainProxy $ VirtualFilterChain.doFilter (FilterChainProxy. .filter. .java: 69) на org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter (BasicAuthenticationFilter.java:201) на org.geoserver.security.filter.GeoServerCompositeFilter $ NestedFilterChain.doFilter (GeoServerCompositeFilter.java:73) в org.geoserver.security.filter.GeoServerCompositeFilter.doFilter (GeoServer.OfserverFoverFoterFoterFoterFoterFoterFeter. doFilter (GeoServerBasicAuthenticationFilter.java:83) на org.springframework.security.web.FilterChainProxy $ VirtualFilterChain.doFilter (FilterChainProxy.java:323) на org.geoserver.security.filter.GeoSerterFilterServerFilterServerFilterServerFilterServerFilterServerFilterServerFilterServerFilterServerFilterServerFilterServerFilterServerFilterServerFilterServerFilterServerFilterServerFilterServerFilterServerFilterServiceFilterServiceFilterServiceFilterServerFilterServiceFilterServiceFilterService за адресою org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter (SecurityContextPersistenceFilter.java:87) в org.geoserver.security.filter.GeoServerSecurityContextPersistenceFilter $ 1.doFerterseverserverserverserverserver.serverserver.server.server.server.server.server. GeoServerCompositeFilter $ NestedFilterChain.doFilter (GeoServerCompositeFilter.java:73) на org.geoserver.security.filter.GeoServerComposit eFilter.doFilter (GeoServerCompositeFilter.java:92) на org.springframework.security.web.FilterChainProxy $ VirtualFilterChain.doFilter (FilterChainProxy.java:323) на org.springframework.security.web.FilterChainProinFroterChainProinProxy на org.geoserver.security.GeoServerSecurityFilterChainProxy.doFilter (GeoServerSecurityFilterChainProxy.java:135) на org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate (DelegatingFilterFirterFilterFilterFilterfrageFraterFilterfrag .java: 259) на org.mortbay.jetty.servlet.ServletHandler $ CachedChain.doFilter (ServletHandler.java:1084) на org.geoserver.filters.LoggingFilter.doFilter (LoggingFilter.java:83) на org.mortbay.jetty. servlet.ServletHandler $ CachedChain.doFilter (ServletHandler.java:1084) на org.geoserver.filters.GZIPFilter.doFilter (GZIPFilter.java:42) на org.mortbay.jetty.servlet.ServletHandler $ CachedChainChainChandChandlerhandlethandlethardler 1084) на org.geoserver.filters.Sessi onDebugFilter.doFilter (SessionDebugFilter.java:48) на org.mortbay.jetty.servlet.ServletHandler $ CachedChain.doFilter (ServletHandler.java:1084) на org.geoserver.filters.FlushSafeFilter.FilhusFailFailFailFailFailFailFailFailFailFailFailFailFailFailFailFailFailFailFail. .mortbay.jetty.servlet.ServletHandler $ CachedChain.doFilter (ServletHandler.java:1084) на org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter (SetCharacterEncodingFilter.java.intartv. .doFilter (ServletHandler.java:1084) на org.mortbay.jetty.servlet.ServletHandler.handle (ServletHandler.java:360) на org.mortbay.jetty.security.SecurityHandler.handle (SecurityHandler.java:216) на org. mortbay.jetty.servlet.SessionHandler.handle (SessionHandler.java:181) на org.mortbay.jetty.handler.ContextHandler.handle (ContextHandler.java:726) на org.mortbay.jetty.webapp.WebAppConte. java: 405) на org.mortbay.jetty.handler.ContextHandlerCollection.handle (ContextHandlerCollection.java:206) на org.mortbay.jetty.h andler.HandlerCollection.handle (HandlerCollection.java:114) на org.mortbay.jetty.handler.HandlerWrapper.handle (HandlerWrapper.java:152) на org.mortbay.jetty.Server.handle (Server.java:324) на org .mortbay.jetty.HttpConnection.handleRequest (HttpConnection.java:505) на org.mortbay.jetty.HttpConnection $ RequestHandler.content (HttpConnection.java:842) на org.mortbay.jetty.HttpParser.parse.parse. ) на org.mortbay.jetty.HttpParser.parseAvailable (HttpParser.java:211) на org.mortbay.jetty.HttpConnection.handle (HttpConnection.java:380) на org.mortbay.io.nio.SelectChannelEndPoint.run (SelectChannelEndPoint.run (SelectChannelEndPoint.run (SelectChannelEndPoint.run java: 395) на org.mortbay.thread.BoundedThreadPool $ PoolThread.run (BoundedThreadPool.java:450) 

Працює на Jetty: //





















Хтось знає, як це вирішити? Я використовую Geoserver 2.7.2, і імпортер повинен бути правильної версії (завантажений geoserver-2.7.2-importer-plugin.zip)


Знайшли рішення. Якjava.lang.NoClassDefFoundErrorвказує, класи, де відсутні. Довелося додати Apache CommonsVFSіЛісозаготівля(завантажив їх тут), і тепер мені вдалося успішно завантажити заархівований Shapefile з REST Importer.