Bonjour,
Je suis en train de migrer geonetwork sur un nouveau serveur, sur l'ancien serveur (windows) tout fonctionnait correctement mais sur le nouveau (linux debian), j'ai l'erreur suivante :
Raised exception while starting the application. Fix the error and restart.
Message
Failed whilst adding the schema information. Exception message if any is /var/lib/tomcat8/webapps/geonetwork/WEB-INF/data/data/resources/xml/schemas/iso19139/schema/gmx/gmx.xsd
Handler
org.fao.geonet.Geonetwork
Exception
OperationAbortedEx : Failed whilst adding the schema information. Exception message if any is /var/lib/tomcat8/webapps/geonetwork/WEB-INF/data/data/resources/xml/schemas/iso19139/schema/gmx/gmx.xsd
Stack
OperationAbortedEx : Failed whilst adding the schema information. Exception message if any is /var/lib/tomcat8/webapps/geonetwork/WEB-INF/data/data/resources/xml/schemas/iso19139/schema/gmx/gmx.xsd
at org.fao.geonet.kernel.SchemaManager.processSchema(SchemaManager.java:1287)
at org.fao.geonet.kernel.SchemaManager.configure(SchemaManager.java:226)
at org.fao.geonet.Geonetwork.start(Geonetwork.java:243)
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:1241)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1154)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1041)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4969)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5255)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:724)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:700)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:714)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1071)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1721)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.nio.file.AccessDeniedException: /var/lib/tomcat8/webapps/geonetwork/WEB-INF/data/data/resources/xml/schemas/iso19139/schema/gmx/gmx.xsd
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
at sun.nio.fs.UnixCopyFile.copy(UnixCopyFile.java:566)
at sun.nio.fs.UnixFileSystemProvider.copy(UnixFileSystemProvider.java:253)
at java.nio.file.Files.copy(Files.java:1274)
at org.fao.geonet.utils.IO$CopyAllFiles.visitFile(IO.java:431)
at org.fao.geonet.utils.IO$CopyAllFiles.visitFile(IO.java:414)
at java.nio.file.Files.walkFileTree(Files.java:2670)
at java.nio.file.Files.walkFileTree(Files.java:2742)
at org.fao.geonet.utils.IO.copyDirectoryOrFile(IO.java:162)
at org.fao.geonet.utils.IO.copyDirectoryOrFile(IO.java:131)
at org.fao.geonet.kernel.SchemaManager.copySchemaXSDsToWebApp(SchemaManager.java:1815)
at org.fao.geonet.kernel.SchemaManager.addSchema(SchemaManager.java:1008)
at org.fao.geonet.kernel.SchemaManager.processSchema(SchemaManager.java:1280)
... 22 more
En suivant les messages de la liste des utilisateurs Geonetwork, j'ai vu que cela pouvait venir d'un problème d'index spatial, j'ai donc suivi la procédure :
* arrêter le catalogue
* supprimer le contenu du dossier WEB-INF/data/index/index (j'ai laissé le dossier "taxonomy" ne sachant pas trop s'il fallait le supprimer ou pas)
* supprimer le contenu du dossier WEB-INF/data/spatialindex
* redémarrer tomcat
Mais malgré cela, l'erreur est toujours présente.
Merci d'avance pour vos réponses,
Mickaël
Mickaël CALLAC
Service SIG - Servij RTD
Tel. - Pgz 02 96 05 01 39