jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jokuja <jozefkut...@gmail.com>
Subject Cannot instantiate persistence manager
Date Wed, 22 Aug 2018 11:23:48 GMT
I am trying to run app on tomcat7 on windows which uses jackrabbit and from
some reason persistence manager cannot be instantiated - I think the reason
is that it cannot connect to mysql database.
But I can connect to this database in other web-app on the same tomcat with
the same credentials.

Repository.xml config file is loading and I have just added credentials
there but always getting same error.

Could you help how could I investigate db connectivity?


Logs:

[localhost-startStop-1] INFO codes.thischwa.c5c.PropertiesLoader -
/default.properties successful loaded
[localhost-startStop-1] INFO codes.thischwa.c5c.PropertiesLoader -
/c5connector.properties not found
[localhost-startStop-1] INFO org.apache.jackrabbit.core.RepositoryImpl -
Starting repository...
[localhost-startStop-1] INFO
org.apache.jackrabbit.core.fs.local.LocalFileSystem - LocalFileSystem
initialized at path jackrabbit\repository
[localhost-startStop-1] INFO
org.apache.jackrabbit.core.nodetype.NodeTypeRegistry - no custom node type
definitions found
[localhost-startStop-1] INFO
org.apache.jackrabbit.core.fs.local.LocalFileSystem - LocalFileSystem
initialized at path jackrabbit\version
Wed Aug 22 11:54:23 CEST 2018 WARN: Establishing SSL connection without
server's identity verification is not recommended. According to MySQL
5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established
by default if explicit option isn't set. For compliance with existing
applications not using SSL the verifyServerCertificate property is set to
'false'. You need either to explicitly disable SSL by setting useSSL=false,
or set useSSL=true and provide truststore for server certificate
verification.
[localhost-startStop-1] ERROR org.apache.jackrabbit.core.RepositoryImpl -
failed to start Repository: Cannot instantiate persistence manager
org.apache.jackrabbit.core.persistence.pool.MySqlPersistenceManager
javax.jcr.RepositoryException: Cannot instantiate persistence manager
org.apache.jackrabbit.core.persistence.pool.MySqlPersistenceManager
	at
org.apache.jackrabbit.core.RepositoryImpl.createPersistenceManager(RepositoryImpl.java:1379)
	at
org.apache.jackrabbit.core.RepositoryImpl.createVersionManager(RepositoryImpl.java:512)
	at
org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:313)
	at
org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:615)
	at
org.apache.jackrabbit.core.TransientRepository$3.getRepository(TransientRepository.java:250)
	at
org.apache.jackrabbit.core.TransientRepository.startRepository(TransientRepository.java:280)
	at
org.apache.jackrabbit.core.TransientRepository.login(TransientRepository.java:376)
	at
org.apache.jackrabbit.commons.AbstractRepository.login(AbstractRepository.java:144)
	at
org.omilab.services.repo.service.JackRabbitRepositoryProvider.<init>(JackRabbitRepositoryProvider.java:60)
	at
org.omilab.services.repo.service.JackRabbitRepositoryProvider.getInstance(JackRabbitRepositoryProvider.java:41)
	at
org.omilab.services.repo.service.JackRabbitConnector.<init>(JackRabbitConnector.java:45)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
	at java.lang.reflect.Constructor.newInstance(Unknown Source)
	at java.lang.Class.newInstance(Unknown Source)
	at codes.thischwa.c5c.ConnectorServlet.init(ConnectorServlet.java:79)
	at javax.servlet.GenericServlet.init(GenericServlet.java:158)
	at
org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1282)
	at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1195)
	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1085)
	at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5318)
	at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5610)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
	at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
	at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1092)
	at
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1984)
	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot create
PoolableConnectionFactory (Could not create connection to database server.)
	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.apache.jackrabbit.core.util.db.ConnectionHelper.getExtraNameCharacters(ConnectionHelper.java:187)
	at
org.apache.jackrabbit.core.util.db.ConnectionHelper.prepareDbIdentifier(ConnectionHelper.java:142)
	at
org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager.init(BundleDbPersistenceManager.java:542)
	at
org.apache.jackrabbit.core.persistence.pool.MySqlPersistenceManager.init(MySqlPersistenceManager.java:51)
	at
org.apache.jackrabbit.core.RepositoryImpl.createPersistenceManager(RepositoryImpl.java:1375)



--
Sent from: http://jackrabbit.510166.n4.nabble.com/Jackrabbit-Users-f510167.html

Mime
View raw message