[GeoNetwork-users-fr] Problème bootstrap.less 404

Bonjour,

J'utilise Geonetwork depuis 2 semaines et je n'ai eu aucun problèmes jusque là, hier j'ai lancé le serveur en local et là, grosse erreur, impossible d'accéder à la page du catalogue, je ne sais pas du tout à quoi ça peut être dû :

FileError: 'http://localhost:8080/geonetwork/catalog/lib/style/bootstrap-3.0.1/bootstrap.less’ wasn't found (404)

in bootstrap.less
Raised exception while starting the application. Fix the error and restart.
Message
java.lang.ClassCastException: org.geotools.data.shapefile.ShapefileFeatureSource cannot be cast to org.geotools.data.FeatureStore

Handler
org.fao.geonet.Geonetwork

Exception
java.lang.RuntimeException: java.lang.ClassCastException: org.geotools.data.shapefile.ShapefileFeatureSource cannot be cast to org.geotools.data.FeatureStore

Stack
java.lang.RuntimeException: java.lang.ClassCastException: org.geotools.data.shapefile.ShapefileFeatureSource cannot be cast to org.geotools.data.FeatureStore
  at org.fao.geonet.kernel.search.SearchManager$Spatial.createWriter(SearchManager.java:1694)
  at org.fao.geonet.kernel.search.SearchManager$Spatial.<init>(SearchManager.java:1672)
  at org.fao.geonet.kernel.search.SearchManager.initNonStaticData(SearchManager.java:543)
  at org.fao.geonet.kernel.search.SearchManager.init(SearchManager.java:524)
  at org.fao.geonet.Geonetwork.start(Geonetwork.java:281)
  at jeeves.server.JeevesEngine.initAppHandler(JeevesEngine.java:448)
  at jeeves.server.JeevesEngine.init(JeevesEngine.java:191)
  at jeeves.server.sources.http.JeevesServlet.init(JeevesServlet.java:84)
  at javax.servlet.GenericServlet.init(GenericServlet.java:158)
  at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1124)
  at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1079)
  at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:971)
  at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4823)
  at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5133)
  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
  at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:740)
  at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:716)
  at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:703)
  at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1131)
  at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1865)
  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.deployDirectories(HostConfig.java:1043)
  at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:433)
  at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1575)
  at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:308)
  at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
  at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:424)
  at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:367)
  at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:964)
  at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:839)
  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
  at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1425)
  at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1415)
  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:941)
  at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:258)
  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
  at org.apache.catalina.core.StandardService.startInternal(StandardService.java:422)
  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
  at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:770)
  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
  at org.apache.catalina.startup.Catalina.start(Catalina.java:682)
  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:353)
  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:493)
Caused by: java.lang.ClassCastException: org.geotools.data.shapefile.ShapefileFeatureSource cannot be cast to org.geotools.data.FeatureStore
  at org.fao.geonet.kernel.search.spatial.SpatialIndexWriter.findSpatialIndexStore(SpatialIndexWriter.java:457)
  at org.fao.geonet.kernel.search.spatial.SpatialIndexWriter.createFeatureStore(SpatialIndexWriter.java:433)
  at org.fao.geonet.kernel.search.spatial.SpatialIndexWriter.<init>(SpatialIndexWriter.java:122)
  at org.fao.geonet.kernel.search.SearchManager$Spatial.createWriter(SearchManager.java:1689)
  ... 52 more

Merci

Bonjour, l'erreur est bizarre. Ce pourrait être lié à un arrêt brutal et
une corruption de l'index spatial que l'application ne semble pas être en
mesure d'ouvrir au démarrage.

Une suggestion :
* arrêter le catalogue
* supprimer l'index WEB-INF/data/index et WEB-INF/data/spatialindex
* relancer

Salutations.

Francois

2018-03-20 10:29 GMT+01:00 Mickaël Le Ralec <
mickael.leralec@anonymised.com>:

Bonjour,

J'utilise Geonetwork depuis 2 semaines et je n'ai eu aucun problèmes
jusque là, hier j'ai lancé le serveur en local et là, grosse erreur,
impossible d'accéder à la page du catalogue, je ne sais pas du tout à quoi
ça peut être dû :

FileError: 'http://localhost:8080/geonetwork/catalog/lib/style/
bootstrap-3.0.1/bootstrap.less' wasn't found (404)

in bootstrap.less
Raised exception while starting the application. Fix the error and restart.
Message
java.lang.ClassCastException: org.geotools.data.shapefile.ShapefileFeatureSource
cannot be cast to org.geotools.data.FeatureStore

Handler
org.fao.geonet.Geonetwork

Exception
java.lang.RuntimeException: java.lang.ClassCastException:
org.geotools.data.shapefile.ShapefileFeatureSource cannot be cast to
org.geotools.data.FeatureStore

Stack
java.lang.RuntimeException: java.lang.ClassCastException:
org.geotools.data.shapefile.ShapefileFeatureSource cannot be cast to
org.geotools.data.FeatureStore
        at org.fao.geonet.kernel.search.SearchManager$Spatial.
createWriter(SearchManager.java:1694)
        at org.fao.geonet.kernel.search.SearchManager$Spatial.<init>(
SearchManager.java:1672)
        at org.fao.geonet.kernel.search.SearchManager.initNonStaticData(
SearchManager.java:543)
        at org.fao.geonet.kernel.search.SearchManager.init(
SearchManager.java:524)
        at org.fao.geonet.Geonetwork.start(Geonetwork.java:281)
        at jeeves.server.JeevesEngine.initAppHandler(JeevesEngine.
java:448)
        at jeeves.server.JeevesEngine.init(JeevesEngine.java:191)
        at jeeves.server.sources.http.JeevesServlet.init(
JeevesServlet.java:84)
        at javax.servlet.GenericServlet.init(GenericServlet.java:158)
        at org.apache.catalina.core.StandardWrapper.initServlet(
StandardWrapper.java:1124)
        at org.apache.catalina.core.StandardWrapper.loadServlet(
StandardWrapper.java:1079)
        at org.apache.catalina.core.StandardWrapper.load(
StandardWrapper.java:971)
        at org.apache.catalina.core.StandardContext.loadOnStartup(
StandardContext.java:4823)
        at org.apache.catalina.core.StandardContext.startInternal(
StandardContext.java:5133)
        at org.apache.catalina.util.LifecycleBase.start(
LifecycleBase.java:183)
        at org.apache.catalina.core.ContainerBase.addChildInternal(
ContainerBase.java:740)
        at org.apache.catalina.core.ContainerBase.addChild(
ContainerBase.java:716)
        at org.apache.catalina.core.StandardHost.addChild(
StandardHost.java:703)
        at org.apache.catalina.startup.HostConfig.deployDirectory(
HostConfig.java:1131)
        at org.apache.catalina.startup.HostConfig$DeployDirectory.
run(HostConfig.java:1865)
        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.deployDirectories(
HostConfig.java:1043)
        at org.apache.catalina.startup.HostConfig.deployApps(
HostConfig.java:433)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.
java:1575)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(
HostConfig.java:308)
        at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(
LifecycleBase.java:123)
        at org.apache.catalina.util.LifecycleBase.setStateInternal(
LifecycleBase.java:424)
        at org.apache.catalina.util.LifecycleBase.setState(
LifecycleBase.java:367)
        at org.apache.catalina.core.ContainerBase.startInternal(
ContainerBase.java:964)
        at org.apache.catalina.core.StandardHost.startInternal(
StandardHost.java:839)
        at org.apache.catalina.util.LifecycleBase.start(
LifecycleBase.java:183)
        at org.apache.catalina.core.ContainerBase$StartChild.call(
ContainerBase.java:1425)
        at org.apache.catalina.core.ContainerBase$StartChild.call(
ContainerBase.java:1415)
        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:941)
        at org.apache.catalina.core.StandardEngine.startInternal(
StandardEngine.java:258)
        at org.apache.catalina.util.LifecycleBase.start(
LifecycleBase.java:183)
        at org.apache.catalina.core.StandardService.startInternal(
StandardService.java:422)
        at org.apache.catalina.util.LifecycleBase.start(
LifecycleBase.java:183)
        at org.apache.catalina.core.StandardServer.startInternal(
StandardServer.java:770)
        at org.apache.catalina.util.LifecycleBase.start(
LifecycleBase.java:183)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:682)
        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:353)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:493)
Caused by: java.lang.ClassCastException: org.geotools.data.shapefile.ShapefileFeatureSource
cannot be cast to org.geotools.data.FeatureStore
        at org.fao.geonet.kernel.search.spatial.SpatialIndexWriter.
findSpatialIndexStore(SpatialIndexWriter.java:457)
        at org.fao.geonet.kernel.search.spatial.SpatialIndexWriter.
createFeatureStore(SpatialIndexWriter.java:433)
        at org.fao.geonet.kernel.search.spatial.SpatialIndexWriter.<
init>(SpatialIndexWriter.java:122)
        at org.fao.geonet.kernel.search.SearchManager$Spatial.
createWriter(SearchManager.java:1689)
        ... 52 more

Merci
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
GeoNetwork-users-fr mailing list
GeoNetwork-users-fr@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users-fr

Cela a en effet corrigé mon problème, merci beaucoup !
J'ai cependant un autre problème, lorsque je souhaite éditer une fiche existante, j'arrive sur une page blanche qui charge à l'infini...
Cela fonctionnait également la semaine dernière,
Merci.

Bonjour, l'erreur est bizarre. Ce pourrait être lié à un arrêt brutal et une corruption de l'index spatial que l'application ne semble pas être en mesure d'ouvrir au démarrage.
Une suggestion :
* arrêter le catalogue
* supprimer l'index WEB-INF/data/index et WEB-INF/data/spatialindex
* relancer

Salutations.

Francois

2018-03-20 10:29 GMT+01:00 Mickaël Le Ralec < mickael.leralec@anonymised.com. > :

Bonjour,

J'utilise Geonetwork depuis 2 semaines et je n'ai eu aucun problèmes jusque là, hier j'ai lancé le serveur en local et là, grosse erreur, impossible d'accéder à la page du catalogue, je ne sais pas du tout à quoi ça peut être dû :

FileError: ' http://localhost:8080/geonetwork/catalog/lib/style/bootstrap-3.0.1/bootstrap.less ' wasn't found (404)

in bootstrap.less
Raised exception while starting the application. Fix the error and restart.
Message
java.lang.ClassCastException: org.geotools.data.shapefile.ShapefileFeatureSource cannot be cast to org.geotools.data.FeatureStore

Handler
org.fao.geonet.Geonetwork

Exception
java.lang.RuntimeException: java.lang.ClassCastException: org.geotools.data.shapefile.ShapefileFeatureSource cannot be cast to org.geotools.data.FeatureStore

Stack
java.lang.RuntimeException: java.lang.ClassCastException: org.geotools.data.shapefile.ShapefileFeatureSource cannot be cast to org.geotools.data.FeatureStore
at org.fao.geonet.kernel.search.SearchManager$Spatial.createWriter(SearchManager.java:1694)
at org.fao.geonet.kernel.search.SearchManager$Spatial.<init>(SearchManager.java:1672)
at org.fao.geonet.kernel.search.SearchManager.initNonStaticData(SearchManager.java:543)
at org.fao.geonet.kernel.search.SearchManager.init(SearchManager.java:524)
at org.fao.geonet.Geonetwork.start(Geonetwork.java:281)
at jeeves.server.JeevesEngine.initAppHandler(JeevesEngine.java:448)
at jeeves.server.JeevesEngine.init(JeevesEngine.java:191)
at jeeves.server.sources.http.JeevesServlet.init(JeevesServlet.java:84)
at javax.servlet.GenericServlet.init(GenericServlet.java:158)
at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1124)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1079)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:971)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4823)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5133)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:740)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:716)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:703)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1131)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1865)
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.deployDirectories(HostConfig.java:1043)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:433)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1575)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:308)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:424)
at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:367)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:964)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:839)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1425)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1415)
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:941)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:258)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:422)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:770)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.startup.Catalina.start(Catalina.java:682)
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:353)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:493)
Caused by: java.lang.ClassCastException: org.geotools.data.shapefile.ShapefileFeatureSource cannot be cast to org.geotools.data.FeatureStore
at org.fao.geonet.kernel.search.spatial.SpatialIndexWriter.findSpatialIndexStore(SpatialIndexWriter.java:457)
at org.fao.geonet.kernel.search.spatial.SpatialIndexWriter.createFeatureStore(SpatialIndexWriter.java:433)
at org.fao.geonet.kernel.search.spatial.SpatialIndexWriter.<init>(SpatialIndexWriter.java:122)
at org.fao.geonet.kernel.search.SearchManager$Spatial.createWriter(SearchManager.java:1689)
... 52 more

Merci
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
GeoNetwork-users-fr mailing list
GeoNetwork-users-fr@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users-fr