[midPoint] Error creating bean with name 'keyStoreFactory'

Mencel, Matt mr-mencel at wiu.edu
Thu Aug 18 17:12:11 CEST 2016


I'm trying to setup Midpoint with a MySQL db.  I think I have all the
configs right, but I'm getting this error when Tomcat starts.

2016-08-17 23:41:15,829 [] [localhost-startStop-1] INFO
> (com.evolveum.midpoint.init.StartupConfiguration): Loading midPoint
> configuration from
>  file /opt/midpoint/config.xml
> 2016-08-17 23:41:16,165 [] [localhost-startStop-1] WARN
> (org.springframework.web.context.support.XmlWebApplicationContext):
> Exception encounte
> red during context initialization - cancelling refresh attempt:
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean w
> ith name 'keyStoreFactory' defined in class path resource
> [ctx-configuration.xml]: Invocation of init method failed; nested exception
> is java.
> lang.NullPointerException
> 2016-08-17 23:41:16,184 [] [localhost-startStop-1] ERROR
> (org.springframework.web.context.ContextLoader): Context initialization
> failed
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name 'keyStoreFactory' defined in class path resource [ctx-c
> onfiguration.xml]: Invocation of init method failed; nested exception is
> java.lang.NullPointerException
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java
> :1578) ~[spring-beans-4.2.5.RELEASE.jar:4.2.5.RELEASE]



etc...

Here is my config.xml

<configuration>
>     <midpoint>
>         <repository>
>
> <repositoryServiceFactoryClass>com.evolveum.midpoint.repo.sql.SqlRepositoryFactory</repositoryServiceFactoryClass>
>             <embedded>false</embedded>
>
> <hibernateDialect>com.evolveum.midpoint.repo.sql.util.MidPointMySQLDialect</hibernateDialect>
>             <hibernateHbm2ddl>validate</hibernateHbm2ddl>
>             <dataSource>java:comp/env/jdbc/mysql</dataSource>
>         </repository>
>     </midpoint>
> </configuration>


Does the dataSource need to have the database name in it?  In my case I
named the DB 'midpoint'.

Thanks,
Matt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20160818/ac35f86b/attachment.htm>


More information about the midPoint mailing list