<div dir="ltr">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.<div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span style="font-family:monospace,monospace">2016-08-17 23:41:15,829 [] [localhost-startStop-1] INFO (com.evolveum.midpoint.init.StartupConfiguration): Loading midPoint configuration from<br></span><span style="font-family:monospace,monospace"> file /opt/midpoint/config.xml<br></span><span style="font-family:monospace,monospace">2016-08-17 23:41:16,165 [] [localhost-startStop-1] WARN (org.springframework.web.context.support.XmlWebApplicationContext): Exception encounte<br></span><span style="font-family:monospace,monospace">red during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean w<br></span><span style="font-family:monospace,monospace">ith name 'keyStoreFactory' defined in class path resource [ctx-configuration.xml]: Invocation of init method failed; nested exception is java.<br></span><span style="font-family:monospace,monospace">lang.NullPointerException<br></span><span style="font-family:monospace,monospace">2016-08-17 23:41:16,184 [] [localhost-startStop-1] ERROR (org.springframework.web.context.ContextLoader): Context initialization failed<br></span><span style="font-family:monospace,monospace">org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'keyStoreFactory' defined in class path resource [ctx-c<br></span><span style="font-family:monospace,monospace">onfiguration.xml]: Invocation of init method failed; nested exception is java.lang.NullPointerException<br></span><span style="font-family:monospace,monospace">        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java<br></span><font face="monospace, monospace">:1578) ~[spring-beans-4.2.5.RELEASE.jar:4.2.5.RELEASE]</font></blockquote><div><br></div><div><br></div><div>etc...</div><div><br></div><div>Here is my config.xml</div><div><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><configuration><br>    <midpoint><br>        <repository><br>            <repositoryServiceFactoryClass>com.evolveum.midpoint.repo.sql.SqlRepositoryFactory</repositoryServiceFactoryClass><br>            <embedded>false</embedded><br>            <hibernateDialect>com.evolveum.midpoint.repo.sql.util.MidPointMySQLDialect</hibernateDialect><br>            <hibernateHbm2ddl>validate</hibernateHbm2ddl><br>            <dataSource>java:comp/env/jdbc/mysql</dataSource><br>        </repository><br>    </midpoint><br></configuration></blockquote></div><div><br></div><div>Does the dataSource need to have the database name in it?  In my case I named the DB 'midpoint'.</div><div><br></div><div>Thanks,</div><div>Matt</div></div>