Hi,
I tried to install GeoNetwork - just copy/paste geonetwork.war to webapps folder in tomcat/webapps/ . After this Tomcat unpacs the war file, but nothing more happens. When I try the Start button in webapp manager, I get message saying
FAIL - Application at context path /geonetwork could not be started <<
Thank you for any help
Hi,
Probably it is a problem with privileges over the folder where the h2
database has to be created. Can you attach the catalina.out logfile of
tomcat?
On Mon, May 9, 2016 at 11:18 PM, Idélcio Filho <isafilho@anonymised.com> wrote:
Hi,
I tried to install GeoNetwork - just copy/paste geonetwork.war to webapps
folder in tomcat/webapps/ . After this Tomcat unpacs the war file, but
nothing more happens. When I try the Start button in webapp manager, I get
message saying
FAIL - Application at context path /geonetwork could not be started <<
Thank you for any help
--
------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork
2016-05-10 16:11:04,262 FATAL [jeeves.engine] - Stack : org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘entityManagerFactory’ defined in URL [jar:file:/var/lib/tomcat8/webapps/geonetwork/WEB-INF/lib/domain-3.0.4-0.jar!/config-spring-geonetwork.xml]: Cannot resolve reference to bean ‘jdbcDataSource’ while setting bean property ‘dataSource’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘jdbcDataSource’ defined in URL [file:/var/lib/tomcat8/webapps/geonetwork/WEB-INF/config-db/defaultJdbcDataSource.xml]: Initialization of bean failed; nested exception is java.lang.RuntimeException: org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Error opening database: “Could not save properties /var/lib/tomcat8/geonetwork.lock.db” [8000-174])
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:329)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:107)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1417)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1158)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1117)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:922)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
at jeeves.config.springutil.JeevesContextLoaderListener.contextInitialized(JeevesContextLoaderListener.java:56)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4812)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5255)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:939)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1812)
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:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘jdbcDataSource’ defined in URL [file:/var/lib/tomcat8/webapps/geonetwork/WEB-INF/config-db/defaultJdbcDataSource.xml]: Initialization of bean failed; nested exception is java.lang.RuntimeException: org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Error opening database: “Could not save properties /var/lib/tomcat8/geonetwork.lock.db” [8000-174])
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:529)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:323)
… 26 more
Caused by: java.lang.RuntimeException: org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Error opening database: “Could not save properties /var/lib/tomcat8/geonetwork.lock.db” [8000-174])
at org.fao.geonet.DatabaseMigration.postProcessAfterInitialization(DatabaseMigration.java:100)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:409)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1518)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)
… 32 more
Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Error opening database: “Could not save properties /var/lib/tomcat8/geonetwork.lock.db” [8000-174])
at org.apache.commons.dbcp.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:1549)
at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1388)
at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
at org.fao.geonet.DatabaseMigration.migrateDatabase(DatabaseMigration.java:126)
at org.fao.geonet.DatabaseMigration.postProcessAfterInitialization(DatabaseMigration.java:98)
… 35 more
Caused by: org.h2.jdbc.JdbcSQLException: Error opening database: “Could not save properties /var/lib/tomcat8/geonetwork.lock.db” [8000-174]
at org.h2.message.DbException.getJdbcSQLException(DbException.java:332)
at org.h2.message.DbException.get(DbException.java:161)
at org.h2.store.FileLock.getExceptionFatal(FileLock.java:450)
at org.h2.store.FileLock.save(FileLock.java:223)
at org.h2.store.FileLock.lockFile(FileLock.java:347)
at org.h2.store.FileLock.lock(FileLock.java:133)
at org.h2.engine.Database.open(Database.java:575)
at org.h2.engine.Database.openDatabase(Database.java:236)
at org.h2.engine.Database.(Database.java:231)
at org.h2.engine.Engine.openSession(Engine.java:56)
at org.h2.engine.Engine.openSession(Engine.java:160)
at org.h2.engine.Engine.createSessionAndValidate(Engine.java:139)
at org.h2.engine.Engine.createSession(Engine.java:122)
at org.h2.engine.Engine.createSession(Engine.java:28)
at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:323)
at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:105)
at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:90)
at org.h2.Driver.connect(Driver.java:73)
at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38)
at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:1556)
at org.apache.commons.dbcp.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:1545)
… 39 more
Caused by: java.io.FileNotFoundException: /var/lib/tomcat8/geonetwork.lock.db (Permissão negada)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(FileOutputStream.java:270)
at java.io.FileOutputStream.(FileOutputStream.java:213)
at java.io.FileOutputStream.(FileOutputStream.java:101)
at org.h2.store.fs.FilePathDisk.newOutputStream(FilePathDisk.java:278)
at org.h2.store.fs.FileUtils.newOutputStream(FileUtils.java:220)
at org.h2.store.FileLock.save(FileLock.java:211)
… 57 more
···
2016-05-10 3:10 GMT-03:00 María Arias de Reyna <delawen@anonymised.com>:
Hi,
Probably it is a problem with privileges over the folder where the h2
database has to be created. Can you attach the catalina.out logfile of
tomcat?
On Mon, May 9, 2016 at 11:18 PM, Idélcio Filho <isafilho@anonymised.com> wrote:
Hi,
I tried to install GeoNetwork - just copy/paste geonetwork.war to webapps
folder in tomcat/webapps/ . After this Tomcat unpacs the war file, but
nothing more happens. When I try the Start button in webapp manager, I get
message saying
FAIL - Application at context path /geonetwork could not be started <<
Thank you for any help
–
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork
–
Hi,
Here you have your answer: the h2 database cannot be created due to
privileges over the tomcat8 folder:
On Tue, May 10, 2016 at 9:15 PM, Idélcio Filho <isafilho@anonymised.com> wrote:
: java.io.FileNotFoundException: /var/lib/tomcat8/geonetwork.lock.db
(Permissão negada)
So, the easiest way to solve it is to find the jdbc.properties or the
h2.xml files and change the url of the database to somewhere your
tomcat user has privileges to write. If this is just a test, using the
/tmp folder is helpful (although it will remove the database on every
system reboot). If it is not a test, choose the folder carefully so
you know what to backup.
María,
I changed the permission in /var/lib/tomcat8/ for writer and geonetwork it work’s.
After I changed h2 for Postgree.
Thank you!
···
2016-05-11 3:10 GMT-03:00 María Arias de Reyna <delawen@anonymised.com>:
Hi,
Here you have your answer: the h2 database cannot be created due to
privileges over the tomcat8 folder:
On Tue, May 10, 2016 at 9:15 PM, Idélcio Filho <isafilho@anonymised.com> wrote:
: java.io.FileNotFoundException: /var/lib/tomcat8/geonetwork.lock.db
(Permissão negada)
So, the easiest way to solve it is to find the jdbc.properties or the
h2.xml files and change the url of the database to somewhere your
tomcat user has privileges to write. If this is just a test, using the
/tmp folder is helpful (although it will remove the database on every
system reboot). If it is not a test, choose the folder carefully so
you know what to backup.
–