<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Hi Matt,</p>
    <p>if you don't require Activity (workflow), you don't need to
      import the activity sql scripts and you can disable the workflow
      alltogether in config.xml</p>
    <p>...</p>
    <p></repository><br>
    </p>
    <p>  <workflow><br>
          <enabled>false</enabled><br>
        </workflow><br>
      ...</p>
    <p></midpoint></p>
    <p></configuration><br>
    </p>
    <p>Otherwise you need to import also the activity scripts. For
      convenience you can also create the tables using mysql-3.4-all.sql
      which will create midPoint + Activity (workflow) + Quartz tables
      in the repository.<br>
    </p>
    Hope this helps,<br>
    Ivan<br>
    <br>
    <div class="moz-cite-prefix">On 08/18/2016 07:13 PM, Mencel, Matt
      wrote:<br>
    </div>
    <blockquote
cite="mid:CABpVbHK4probwHbxJGSsiOeBsGoeRbcLaSJmRuGQYvvuA+X5rg@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi Pavel,
        <div><br>
        </div>
        <div>Thanks! That solved the keystore problem.  I don't think
          it's clear in the installation docs that you need all that
          info in the config.xml file.</div>
        <div><br>
        </div>
        <div>Next issue.....  when I imported the SQL schema, I only
          imported this file...</div>
        <div>config/sql/midpoint/3.4/mysql/mysql-3.4.sql<br>
        </div>
        <div><br>
        </div>
        <div>The logs are indicating I am missing Activiti tables.  Do I
          also need to load these activiti mysql files into the DB?</div>
        <div>config/sql/activiti/activiti.mysql.create.*.sql<br>
        </div>
        <div><br>
        </div>
        <div>Here's a gist of the errors:  <a moz-do-not-send="true"
href="https://gist.github.com/MattMencel/2a3208371a1b0ce422e0b4923df413f7">https://gist.github.com/MattMencel/2a3208371a1b0ce422e0b4923df413f7</a></div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Thu, Aug 18, 2016 at 11:31 AM, Pavol
          Mederly <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:pavol.mederly@evolveum.com" target="_blank">pavol.mederly@evolveum.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div>
              <div style="font-family:times new roman,new
                york,times,serif;font-size:12pt;color:#000000">
                <div>Matt,<br>
                </div>
                <div><br>
                </div>
                <div>from the logfile it is clear. The reason is that
                  midPoint needs some other configuration parameters
                  besides repository configuration. In particular, this
                  error is caused by missing keyStorePath parameter.<br>
                   (I'll fix midPoint to produce more meaningful error
                  message.)<br>
                </div>
                <div><br>
                </div>
                <div>So, your whole config file should look like this:<br>
                </div>
                <div><br>
                </div>
                <div><span style="font-family:courier
                    new,courier,monaco,monospace,sans-serif;font-size:small"><configuration></span><br>
                  <span style="font-family:courier
                    new,courier,monaco,monospace,sans-serif;font-size:small">   
                    <midpoint></span><br>
                  <span style="font-family:courier
                    new,courier,monaco,monospace,sans-serif;font-size:small">       
                    <webApplication></span><br>
                  <span style="font-family:courier
                    new,courier,monaco,monospace,sans-serif;font-size:small">           
                    <importFolder>${midpoint.home}<wbr>/import</importFolder></span><br>
                  <span style="font-family:courier
                    new,courier,monaco,monospace,sans-serif;font-size:small">       
                    </webApplication></span><span class=""><br>
                    <span style="font-family:courier
                      new,courier,monaco,monospace,sans-serif;font-size:small">       
                      <repository></span><br>
                    <div><span
                        style="font-size:medium;font-family:courier
                        new,courier,monaco,monospace,sans-serif"><code>     
                                </code><code><</code><code>repositoryServiceFactoryClass</code><code><wbr>>com.evolveum.midpoint.repo.<wbr>sql.SqlRepositoryFactory</</code><code>repo<wbr>sitoryServiceFactoryClass</code><code>></code></span></div>
                    <div><span
                        style="font-size:medium;font-family:courier
                        new,courier,monaco,monospace,sans-serif"><code> 
                                    </code><code><</code><code>database</code><code>>mysql</</code><code>database</code><code>></code></span></div>
                    <div><span
                        style="font-size:medium;font-family:courier
                        new,courier,monaco,monospace,sans-serif"><code>           
                        </code><code><</code><code>jdbcUsername</code><code>>midpoint</</code><code>jdbcUs<wbr>ername</code><code>></code></span></div>
                    <div><span
                        style="font-size:medium;font-family:courier
                        new,courier,monaco,monospace,sans-serif"><code> 
                                    </code><code><</code><code>jdbcPassword</code><code>>password</</code><code>jdbcPa<wbr>ssword</code><code>></code></span></div>
                    <div><span
                        style="font-size:medium;font-family:courier
                        new,courier,monaco,monospace,sans-serif"><code>           
                        </code><code><</code><code>jdbcUrl</code><code>>jdbc:mysql://<wbr>localhost:3306/midpoint?<wbr>characterEncoding=utf8</</code><code>jdbcUr<wbr>l</code><code>></code></span></div>
                    <span style="font-family:courier
                      new,courier,monaco,monospace,sans-serif;font-size:small"><code></code>       
                      </repository></span><br>
                  </span><span style="font-family:courier
                    new,courier,monaco,monospace,sans-serif;font-size:small">       
                    <audit>   <!-- select audit service(s) you
                    want: either log-based or DB-based, both, or none
                    --></span><br>
                  <span style="font-family:courier
                    new,courier,monaco,monospace,sans-serif;font-size:small">           
                    <auditService></span><br>
                  <span style="font-family:courier
                    new,courier,monaco,monospace,sans-serif;font-size:small">               
                    <auditServiceFactoryClass>com.<wbr>evolveum.midpoint.audit.impl.<wbr>LoggerAuditServiceFactory</<wbr>auditServiceFactoryClass></span><br>
                  <span style="font-family:courier
                    new,courier,monaco,monospace,sans-serif;font-size:small">           
                    </auditService></span><br>
                  <span style="font-family:courier
                    new,courier,monaco,monospace,sans-serif;font-size:small">           
                    <auditService></span><br>
                  <span style="font-family:courier
                    new,courier,monaco,monospace,sans-serif;font-size:small">               
                    <auditServiceFactoryClass>com.<wbr>evolveum.midpoint.repo.sql.<wbr>SqlAuditServiceFactory</<wbr>auditServiceFactoryClass></span><br>
                  <span style="font-family:courier
                    new,courier,monaco,monospace,sans-serif;font-size:small">           
                    </auditService></span><br>
                  <span style="font-family:courier
                    new,courier,monaco,monospace,sans-serif;font-size:small">       
                    </audit></span><br>
                  <span style="font-family:courier
                    new,courier,monaco,monospace,sans-serif;font-size:small">       
                    <icf></span><br>
                  <span style="font-family:courier
                    new,courier,monaco,monospace,sans-serif;font-size:small">           
                    <scanClasspath>true</<wbr>scanClasspath></span><br>
                  <span style="font-family:courier
                    new,courier,monaco,monospace,sans-serif;font-size:small">           
                    <scanDirectory>${midpoint.<wbr>home}/icf-connectors</<wbr>scanDirectory></span><br>
                  <span style="font-family:courier
                    new,courier,monaco,monospace,sans-serif;font-size:small">       
                    </icf></span><br>
                  <span style="font-family:courier
                    new,courier,monaco,monospace,sans-serif;font-size:small">       
                    <keystore></span><br>
                  <span style="font-family:courier
                    new,courier,monaco,monospace,sans-serif;font-size:small">           
                    <keyStorePath>${midpoint.home}<wbr>/keystore.jceks</keyStorePath></span><br>
                  <span style="font-family:courier
                    new,courier,monaco,monospace,sans-serif;font-size:small">           
                    <keyStorePassword>changeit</<wbr>keyStorePassword></span><br>
                  <span style="font-family:courier
                    new,courier,monaco,monospace,sans-serif;font-size:small">           
                    <encryptionKeyAlias>default</<wbr>encryptionKeyAlias></span><br>
                  <span style="font-family:courier
                    new,courier,monaco,monospace,sans-serif;font-size:small">       
                    </keystore></span><br>
                  <span style="font-family:courier
                    new,courier,monaco,monospace,sans-serif;font-size:small">   
                    </midpoint></span><br>
                  <span style="font-family:courier
                    new,courier,monaco,monospace,sans-serif;font-size:small"></configuration></span></div>
                <div><span style="font-family:courier
                    new,courier,monaco,monospace,sans-serif;font-size:small"><br>
                  </span></div>
                <div>(The wiki page you mentioned deals only with the
                  repository configuration, not with the whole content
                  of config.xml.)<br>
                </div>
                <span class="">
                  <div><br>
                  </div>
                  <div>Hope this helps,<br>
                  </div>
                  <div>Pavol<br>
                  </div>
                  <div><br>
                  </div>
                  <hr></span>
                <div
style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt"><b>From:
                  </b>"Matt Mencel" <<a moz-do-not-send="true"
                    href="mailto:mr-mencel@wiu.edu" target="_blank">mr-mencel@wiu.edu</a>><br>
                  <b>To: </b>"midPoint General Discussion" <<a
                    moz-do-not-send="true"
                    href="mailto:midpoint@lists.evolveum.com"
                    target="_blank">midpoint@lists.evolveum.com</a>><br>
                  <b>Sent: </b>Thursday, August 18, 2016 5:54:38 PM<br>
                  <b>Subject: </b>Re: [midPoint] Error creating bean
                  with name 'keyStoreFactory'
                  <div>
                    <div class="h5"><br>
                      <div><br>
                      </div>
                      <div dir="ltr">Hi Pavel,
                        <div><br>
                        </div>
                        <div>I'll put the full stacktrace below.  I
                          think I used the config.xml example from the
                          main Repository Configuration page here.... <a
                            moz-do-not-send="true"
href="https://wiki.evolveum.com/display/midPoint/Repository+Configuration"
                            target="_blank">https://wiki.<wbr>evolveum.com/display/midPoint/<wbr>Repository+Configuration</a><br>
                        </div>
                        <div><br>
                        </div>
                        <div>I modified the config.xml to look like the
                          MySQL example you gave.  Seems I'm getting a
                          similar if not the same error.</div>
                        <div><br>
                        </div>
                        <div><br>
                        </div>
                        <div>This is the full stacktrace from my
                          original config.xml....</div>
                        <div><br>
                        </div>
                        <div><br>
                        </div>
                        <div>
                          <div>2016-08-18 10:38:33,776 []
                            [localhost-startStop-1] INFO
                            (com.evolveum.midpoint.init.<wbr>StartupConfiguration):
                            Loading midPoint configuration from file
                            /opt/midpoint/config.xml</div>
                          <div>2016-08-18 10:38:34,107 []
                            [localhost-startStop-1] WARN
                            (org.springframework.web.<wbr>context.support.<wbr>XmlWebApplicationContext):
                            Exception encountered during context
                            initialization - cancelling refresh attempt:
                            org.springframework.beans.<wbr>factory.BeanCreationException:
                            Error creating bean with name
                            'keyStoreFactory' defined in class path
                            resource [ctx-configuration.xml]: Invocation
                            of init method failed; nested exception is
                            java.lang.NullPointerException</div>
                          <div>2016-08-18 10:38:34,125 []
                            [localhost-startStop-1] ERROR
                            (org.springframework.web.<wbr>context.ContextLoader):
                            Context initialization failed</div>
                          <div>org.springframework.beans.<wbr>factory.BeanCreationException:
                            Error creating bean with name
                            'keyStoreFactory' defined in class path
                            resource [ctx-configuration.xml]: Invocation
                            of init method failed; nested exception is
                            java.lang.NullPointerException</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            org.springframework.beans.<wbr>factory.support.<wbr>AbstractAutowireCapableBeanFac<wbr>tory.initializeBean(<wbr>AbstractAutowireCapableBeanFac<wbr>tory.java:1578)
                            ~[spring-beans-4.2.5.RELEASE.<wbr>jar:4.2.5.RELEASE]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            org.springframework.beans.<wbr>factory.support.<wbr>AbstractAutowireCapableBeanFac<wbr>tory.doCreateBean(<wbr>AbstractAutowireCapableBeanFac<wbr>tory.java:545)
                            ~[spring-beans-4.2.5.RELEASE.<wbr>jar:4.2.5.RELEASE]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            org.springframework.beans.<wbr>factory.support.<wbr>AbstractAutowireCapableBeanFac<wbr>tory.createBean(<wbr>AbstractAutowireCapableBeanFac<wbr>tory.java:482)
                            ~[spring-beans-4.2.5.RELEASE.<wbr>jar:4.2.5.RELEASE]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            org.springframework.beans.<wbr>factory.support.<wbr>AbstractBeanFactory$1.<wbr>getObject(AbstractBeanFactory.<wbr>java:306)
                            ~[spring-beans-4.2.5.RELEASE.<wbr>jar:4.2.5.RELEASE]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            org.springframework.beans.<wbr>factory.support.<wbr>DefaultSingletonBeanRegistry.<wbr>getSingleton(<wbr>DefaultSingletonBeanRegistry.<wbr>java:230)
                            ~[spring-beans-4.2.5.RELEASE.<wbr>jar:4.2.5.RELEASE]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            org.springframework.beans.<wbr>factory.support.<wbr>AbstractBeanFactory.doGetBean(<wbr>AbstractBeanFactory.java:302)
                            ~[spring-beans-4.2.5.RELEASE.<wbr>jar:4.2.5.RELEASE]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            org.springframework.beans.<wbr>factory.support.<wbr>AbstractBeanFactory.getBean(<wbr>AbstractBeanFactory.java:197)
                            ~[spring-beans-4.2.5.RELEASE.<wbr>jar:4.2.5.RELEASE]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            org.springframework.beans.<wbr>factory.support.<wbr>DefaultListableBeanFactory.<wbr>preInstantiateSingletons(<wbr>DefaultListableBeanFactory.<wbr>java:772)
                            ~[spring-beans-4.2.5.RELEASE.<wbr>jar:4.2.5.RELEASE]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            org.springframework.context.<wbr>support.<wbr>AbstractApplicationContext.<wbr>finishBeanFactoryInitializatio<wbr>n(AbstractApplicationContext.<wbr>java:839)
                            ~[spring-context-4.2.5.<wbr>RELEASE.jar:4.2.5.RELEASE]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            org.springframework.context.<wbr>support.<wbr>AbstractApplicationContext.<wbr>refresh(<wbr>AbstractApplicationContext.<wbr>java:538)
                            ~[spring-context-4.2.5.<wbr>RELEASE.jar:4.2.5.RELEASE]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            org.springframework.web.<wbr>context.ContextLoader.<wbr>configureAndRefreshWebApplicat<wbr>ionContext(ContextLoader.java:<wbr>444)
                            ~[spring-web-4.2.5.RELEASE.<wbr>jar:4.2.5.RELEASE]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            org.springframework.web.<wbr>context.ContextLoader.<wbr>initWebApplicationContext(<wbr>ContextLoader.java:326)
                            ~[spring-web-4.2.5.RELEASE.<wbr>jar:4.2.5.RELEASE]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            org.springframework.web.<wbr>context.ContextLoaderListener.<wbr>contextInitialized(<wbr>ContextLoaderListener.java:<wbr>107)
                            [spring-web-4.2.5.RELEASE.jar:<wbr>4.2.5.RELEASE]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            org.apache.catalina.core.<wbr>StandardContext.listenerStart(<wbr>StandardContext.java:4716)
                            [catalina.jar:8.5.4]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            org.apache.catalina.core.<wbr>StandardContext.startInternal(<wbr>StandardContext.java:5178)
                            [catalina.jar:8.5.4]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            org.apache.catalina.util.<wbr>LifecycleBase.start(<wbr>LifecycleBase.java:152)
                            [catalina.jar:8.5.4]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            org.apache.catalina.core.<wbr>ContainerBase.<wbr>addChildInternal(<wbr>ContainerBase.java:724)
                            [catalina.jar:8.5.4]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            org.apache.catalina.core.<wbr>ContainerBase.addChild(<wbr>ContainerBase.java:700)
                            [catalina.jar:8.5.4]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            org.apache.catalina.core.<wbr>StandardHost.addChild(<wbr>StandardHost.java:734)
                            [catalina.jar:8.5.4]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            org.apache.catalina.startup.<wbr>HostConfig.deployWAR(<wbr>HostConfig.java:952)
                            [catalina.jar:8.5.4]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            org.apache.catalina.startup.<wbr>HostConfig$DeployWar.run(<wbr>HostConfig.java:1823)
                            [catalina.jar:8.5.4]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            java.util.concurrent.<wbr>Executors$RunnableAdapter.<wbr>call(Executors.java:511)
                            [na:1.8.0_101]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            java.util.concurrent.<wbr>FutureTask.run(FutureTask.<wbr>java:266)
                            [na:1.8.0_101]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            java.util.concurrent.<wbr>ThreadPoolExecutor.runWorker(<wbr>ThreadPoolExecutor.java:1142)
                            [na:1.8.0_101]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            java.util.concurrent.<wbr>ThreadPoolExecutor$Worker.run(<wbr>ThreadPoolExecutor.java:617)
                            [na:1.8.0_101]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            java.lang.Thread.run(Thread.<wbr>java:745)
                            [na:1.8.0_101]</div>
                          <div>Caused by: java.lang.<wbr>NullPointerException:
                            null</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            java.io.File.<init>(File.java:<wbr>277)
                            ~[na:1.8.0_101]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            com.evolveum.midpoint.init.<wbr>ConfigurableProtectorFactory.<wbr>init(<wbr>ConfigurableProtectorFactory.<wbr>java:55)
                            ~[system-init-3.4.jar:na]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            sun.reflect.<wbr>NativeMethodAccessorImpl.<wbr>invoke0(Native
                            Method) ~[na:1.8.0_101]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            sun.reflect.<wbr>NativeMethodAccessorImpl.<wbr>invoke(<wbr>NativeMethodAccessorImpl.java:<wbr>62)
                            ~[na:1.8.0_101]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            sun.reflect.<wbr>DelegatingMethodAccessorImpl.<wbr>invoke(<wbr>DelegatingMethodAccessorImpl.<wbr>java:43)
                            ~[na:1.8.0_101]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            java.lang.reflect.Method.<wbr>invoke(Method.java:498)
                            ~[na:1.8.0_101]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            org.springframework.beans.<wbr>factory.support.<wbr>AbstractAutowireCapableBeanFac<wbr>tory.invokeCustomInitMethod(<wbr>AbstractAutowireCapableBeanFac<wbr>tory.java:1706)
                            ~[spring-beans-4.2.5.RELEASE.<wbr>jar:4.2.5.RELEASE]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            org.springframework.beans.<wbr>factory.support.<wbr>AbstractAutowireCapableBeanFac<wbr>tory.invokeInitMethods(<wbr>AbstractAutowireCapableBeanFac<wbr>tory.java:1645)
                            ~[spring-beans-4.2.5.RELEASE.<wbr>jar:4.2.5.RELEASE]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            org.springframework.beans.<wbr>factory.support.<wbr>AbstractAutowireCapableBeanFac<wbr>tory.initializeBean(<wbr>AbstractAutowireCapableBeanFac<wbr>tory.java:1574)
                            ~[spring-beans-4.2.5.RELEASE.<wbr>jar:4.2.5.RELEASE]</div>
                          <div><span style="white-space:pre-wrap"> </span>...
                            25 common frames omitted</div>
                        </div>
                        <div><br>
                        </div>
                        <div><br>
                        </div>
                        <div>This is the full stacktrace using the
                          config.xml with the mysql db details in it.</div>
                        <div><br>
                        </div>
                        <div>
                          <div>2016-08-18 10:51:23,453 []
                            [localhost-startStop-1] INFO
                            (com.evolveum.midpoint.init.<wbr>StartupConfiguration):
                            Loading midPoint configuration from file
                            /opt/midpoint/config.xml</div>
                          <div>2016-08-18 10:51:23,779 []
                            [localhost-startStop-1] WARN
                            (org.springframework.web.<wbr>context.support.<wbr>XmlWebApplicationContext):
                            Exception encountered during context
                            initialization - cancelling refresh attempt:
                            org.springframework.beans.<wbr>factory.BeanCreationException:
                            Error creating bean with name
                            'keyStoreFactory' defined in class path
                            resource [ctx-configuration.xml]: Invocation
                            of init method failed; nested exception is
                            java.lang.NullPointerException</div>
                          <div>2016-08-18 10:51:23,798 []
                            [localhost-startStop-1] ERROR
                            (org.springframework.web.<wbr>context.ContextLoader):
                            Context initialization failed</div>
                          <div>org.springframework.beans.<wbr>factory.BeanCreationException:
                            Error creating bean with name
                            'keyStoreFactory' defined in class path
                            resource [ctx-configuration.xml]: Invocation
                            of init method failed; nested exception is
                            java.lang.NullPointerException</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            org.springframework.beans.<wbr>factory.support.<wbr>AbstractAutowireCapableBeanFac<wbr>tory.initializeBean(<wbr>AbstractAutowireCapableBeanFac<wbr>tory.java:1578)
                            ~[spring-beans-4.2.5.RELEASE.<wbr>jar:4.2.5.RELEASE]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            org.springframework.beans.<wbr>factory.support.<wbr>AbstractAutowireCapableBeanFac<wbr>tory.doCreateBean(<wbr>AbstractAutowireCapableBeanFac<wbr>tory.java:545)
                            ~[spring-beans-4.2.5.RELEASE.<wbr>jar:4.2.5.RELEASE]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            org.springframework.beans.<wbr>factory.support.<wbr>AbstractAutowireCapableBeanFac<wbr>tory.createBean(<wbr>AbstractAutowireCapableBeanFac<wbr>tory.java:482)
                            ~[spring-beans-4.2.5.RELEASE.<wbr>jar:4.2.5.RELEASE]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            org.springframework.beans.<wbr>factory.support.<wbr>AbstractBeanFactory$1.<wbr>getObject(AbstractBeanFactory.<wbr>java:306)
                            ~[spring-beans-4.2.5.RELEASE.<wbr>jar:4.2.5.RELEASE]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            org.springframework.beans.<wbr>factory.support.<wbr>DefaultSingletonBeanRegistry.<wbr>getSingleton(<wbr>DefaultSingletonBeanRegistry.<wbr>java:230)
                            ~[spring-beans-4.2.5.RELEASE.<wbr>jar:4.2.5.RELEASE]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            org.springframework.beans.<wbr>factory.support.<wbr>AbstractBeanFactory.doGetBean(<wbr>AbstractBeanFactory.java:302)
                            ~[spring-beans-4.2.5.RELEASE.<wbr>jar:4.2.5.RELEASE]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            org.springframework.beans.<wbr>factory.support.<wbr>AbstractBeanFactory.getBean(<wbr>AbstractBeanFactory.java:197)
                            ~[spring-beans-4.2.5.RELEASE.<wbr>jar:4.2.5.RELEASE]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            org.springframework.beans.<wbr>factory.support.<wbr>DefaultListableBeanFactory.<wbr>preInstantiateSingletons(<wbr>DefaultListableBeanFactory.<wbr>java:772)
                            ~[spring-beans-4.2.5.RELEASE.<wbr>jar:4.2.5.RELEASE]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            org.springframework.context.<wbr>support.<wbr>AbstractApplicationContext.<wbr>finishBeanFactoryInitializatio<wbr>n(AbstractApplicationContext.<wbr>java:839)
                            ~[spring-context-4.2.5.<wbr>RELEASE.jar:4.2.5.RELEASE]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            org.springframework.context.<wbr>support.<wbr>AbstractApplicationContext.<wbr>refresh(<wbr>AbstractApplicationContext.<wbr>java:538)
                            ~[spring-context-4.2.5.<wbr>RELEASE.jar:4.2.5.RELEASE]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            org.springframework.web.<wbr>context.ContextLoader.<wbr>configureAndRefreshWebApplicat<wbr>ionContext(ContextLoader.java:<wbr>444)
                            ~[spring-web-4.2.5.RELEASE.<wbr>jar:4.2.5.RELEASE]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            org.springframework.web.<wbr>context.ContextLoader.<wbr>initWebApplicationContext(<wbr>ContextLoader.java:326)
                            ~[spring-web-4.2.5.RELEASE.<wbr>jar:4.2.5.RELEASE]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            org.springframework.web.<wbr>context.ContextLoaderListener.<wbr>contextInitialized(<wbr>ContextLoaderListener.java:<wbr>107)
                            [spring-web-4.2.5.RELEASE.jar:<wbr>4.2.5.RELEASE]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            org.apache.catalina.core.<wbr>StandardContext.listenerStart(<wbr>StandardContext.java:4716)
                            [catalina.jar:8.5.4]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            org.apache.catalina.core.<wbr>StandardContext.startInternal(<wbr>StandardContext.java:5178)
                            [catalina.jar:8.5.4]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            org.apache.catalina.util.<wbr>LifecycleBase.start(<wbr>LifecycleBase.java:152)
                            [catalina.jar:8.5.4]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            org.apache.catalina.core.<wbr>ContainerBase.<wbr>addChildInternal(<wbr>ContainerBase.java:724)
                            [catalina.jar:8.5.4]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            org.apache.catalina.core.<wbr>ContainerBase.addChild(<wbr>ContainerBase.java:700)
                            [catalina.jar:8.5.4]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            org.apache.catalina.core.<wbr>StandardHost.addChild(<wbr>StandardHost.java:734)
                            [catalina.jar:8.5.4]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            org.apache.catalina.startup.<wbr>HostConfig.deployWAR(<wbr>HostConfig.java:952)
                            [catalina.jar:8.5.4]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            org.apache.catalina.startup.<wbr>HostConfig$DeployWar.run(<wbr>HostConfig.java:1823)
                            [catalina.jar:8.5.4]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            java.util.concurrent.<wbr>Executors$RunnableAdapter.<wbr>call(Executors.java:511)
                            [na:1.8.0_101]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            java.util.concurrent.<wbr>FutureTask.run(FutureTask.<wbr>java:266)
                            [na:1.8.0_101]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            java.util.concurrent.<wbr>ThreadPoolExecutor.runWorker(<wbr>ThreadPoolExecutor.java:1142)
                            [na:1.8.0_101]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            java.util.concurrent.<wbr>ThreadPoolExecutor$Worker.run(<wbr>ThreadPoolExecutor.java:617)
                            [na:1.8.0_101]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            java.lang.Thread.run(Thread.<wbr>java:745)
                            [na:1.8.0_101]</div>
                          <div>Caused by: java.lang.<wbr>NullPointerException:
                            null</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            java.io.File.<init>(File.java:<wbr>277)
                            ~[na:1.8.0_101]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            com.evolveum.midpoint.init.<wbr>ConfigurableProtectorFactory.<wbr>init(<wbr>ConfigurableProtectorFactory.<wbr>java:55)
                            ~[system-init-3.4.jar:na]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            sun.reflect.<wbr>NativeMethodAccessorImpl.<wbr>invoke0(Native
                            Method) ~[na:1.8.0_101]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            sun.reflect.<wbr>NativeMethodAccessorImpl.<wbr>invoke(<wbr>NativeMethodAccessorImpl.java:<wbr>62)
                            ~[na:1.8.0_101]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            sun.reflect.<wbr>DelegatingMethodAccessorImpl.<wbr>invoke(<wbr>DelegatingMethodAccessorImpl.<wbr>java:43)
                            ~[na:1.8.0_101]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            java.lang.reflect.Method.<wbr>invoke(Method.java:498)
                            ~[na:1.8.0_101]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            org.springframework.beans.<wbr>factory.support.<wbr>AbstractAutowireCapableBeanFac<wbr>tory.invokeCustomInitMethod(<wbr>AbstractAutowireCapableBeanFac<wbr>tory.java:1706)
                            ~[spring-beans-4.2.5.RELEASE.<wbr>jar:4.2.5.RELEASE]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            org.springframework.beans.<wbr>factory.support.<wbr>AbstractAutowireCapableBeanFac<wbr>tory.invokeInitMethods(<wbr>AbstractAutowireCapableBeanFac<wbr>tory.java:1645)
                            ~[spring-beans-4.2.5.RELEASE.<wbr>jar:4.2.5.RELEASE]</div>
                          <div><span style="white-space:pre-wrap"> </span>at
                            org.springframework.beans.<wbr>factory.support.<wbr>AbstractAutowireCapableBeanFac<wbr>tory.initializeBean(<wbr>AbstractAutowireCapableBeanFac<wbr>tory.java:1574)
                            ~[spring-beans-4.2.5.RELEASE.<wbr>jar:4.2.5.RELEASE]</div>
                          <div><span style="white-space:pre-wrap"> </span>...
                            25 common frames omitted</div>
                        </div>
                        <div><br>
                        </div>
                      </div>
                      <div class="gmail_extra"><br>
                        <div class="gmail_quote">On Thu, Aug 18, 2016 at
                          10:39 AM, Pavol Mederly <span dir="ltr"><<a
                              moz-do-not-send="true"
                              href="mailto:pavol.mederly@evolveum.com"
                              target="_blank">pavol.mederly@evolveum.com</a>></span>
                          wrote:<br>
                          <blockquote class="gmail_quote"
                            style="margin:0 0 0 .8ex;border-left:1px
                            #ccc solid;padding-left:1ex">
                            <div>
                              <div style="font-family:times new
                                roman,new
                                york,times,serif;font-size:12pt;color:#000000">
                                <div>Hello Matt,<br>
                                </div>
                                <div><br>
                                </div>
                                <div>it seems to me that the real reason
                                  of the problem is written in the log
                                  just a few lines under the text you've
                                  posted. Please, could you send here
                                  the whole exception stack trace?<br>
                                </div>
                                <div><br>
                                </div>
                                <div>As for your question: No, it is
                                  generally not needed to put the
                                  database name into data source name:
                                  the data source name can be anything
                                  that you consider descriptive enough.
                                  What is needed, though, is that the
                                  data source should be correctly
                                  defined in your application server
                                  configuration. (Of course, also with
                                  the database name.)<br>
                                </div>
                                <div><br>
                                </div>
                                <div>But using data source is something
                                  I would call "advanced use". If you're
                                  not familiar with Tomcat data source
                                  configuration, I would suggest more
                                  straightforward way: configure DB
                                  connection directly in midPoint
                                  config.xml, like this:<br>
                                </div>
                                <div><br>
                                </div>
                                <div>
                                  <div title="Hint: double-click to
                                    select code">
                                    <div><span style="font-size:medium"><code><</code><code>configuration</code><code>></code></span></div>
                                    <div><span style="font-size:medium"><code>  </code><code><</code><code>midpoint</code><code>></code></span></div>
                                    <div><span style="font-size:medium"><code>    </code><code><</code><code>repository</code><code>></code></span></div>
                                    <div><span style="font-size:medium"><code>      </code><code><</code><code>repositoryServiceFactor<wbr>yClass</code><code>>com.evolveum.midpoint.<wbr>repo.sql.SqlRepositoryFactory<<wbr>/</code><code>repositoryServiceFactoryClass</code><code><wbr>></code></span></div>
                                    <div><span style="font-size:medium"><code>      </code><code><</code><code>database</code><code>>mysql</</code><code>databas<wbr>e</code><code>></code></span></div>
                                    <div><span style="font-size:medium"><code>      </code><code><</code><code>jdbcUsername</code><code>>midpoint</</code><code><wbr>jdbcUsername</code><code>></code></span></div>
                                    <div><span style="font-size:medium"><code>      </code><code><</code><code>jdbcPassword</code><code>>password</</code><code><wbr>jdbcPassword</code><code>></code></span></div>
                                    <div><span style="font-size:medium"><code>      </code><code><</code><code>jdbcUrl</code><code>>jdbc:mysql://<wbr>localhost:3306/midpoint?<wbr>characterEncoding=utf8</</code><code>jdbcUr<wbr>l</code><code>></code></span></div>
                                    <div><span style="font-size:medium"><code>    </code><code></</code><code>repository</code><code>></code></span></div>
                                    <div><span style="font-size:medium"><code>  </code><code></</code><code>midpoint</code><code>></code></span></div>
                                    <div><span style="font-size:medium"><code></</code><code>configuration</code><code>></code></span></div>
                                    <div><br>
                                    </div>
                                    <div>Here the database name is
                                      "midpoint", and is a part of
                                      jdbcUrl.<br>
                                    </div>
                                    <div><br>
                                    </div>
                                    <div>You could also check <a
                                        moz-do-not-send="true"
                                        href="https://wiki.evolveum.com/display/midPoint/MySQL"
                                        target="_blank">https://wiki.evolveum.com/<wbr>display/midPoint/MySQL</a>,
                                      but beware; this page is quite old
                                      and probably needs a little
                                      update.<br>
                                    </div>
                                    <div><br>
                                    </div>
                                  </div>
                                </div>
                                <div>Hope this helps,<br>
                                </div>
                                <div>Pavol<br>
                                </div>
                                <div><br>
                                </div>
                                <hr>
                                <div
style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt"><b>From:
                                  </b>"Matt Mencel" <<a
                                    moz-do-not-send="true"
                                    href="mailto:mr-mencel@wiu.edu"
                                    target="_blank">mr-mencel@wiu.edu</a>><br>
                                  <b>To: </b><a moz-do-not-send="true"
href="mailto:midpoint@lists.evolveum.com" target="_blank">midpoint@lists.evolveum.com</a><br>
                                  <b>Sent: </b>Thursday, August 18,
                                  2016 5:12:11 PM<br>
                                  <b>Subject: </b>[midPoint] Error
                                  creating bean with name
                                  'keyStoreFactory'
                                  <div>
                                    <div><br>
                                      <div><br>
                                      </div>
                                      <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.<wbr>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.<wbr>context.support.<wbr>XmlWebApplicationContext):
                                            Exception encounte<br>
                                          </span><span
                                            style="font-family:monospace,monospace">red
                                            during context
                                            initialization - cancelling
                                            refresh attempt:
                                            org.springframework.beans.<wbr>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.<wbr>context.ContextLoader):
                                            Context initialization
                                            failed<br>
                                          </span><span
                                            style="font-family:monospace,monospace">org.springframework.beans.<wbr>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.<wbr>factory.support.<wbr>AbstractAutowireCapableBeanFac<wbr>tory.initializeBean(<wbr>AbstractAutowireCapableBeanFac<wbr>tory.java<br>
                                          </span><span
                                            style="font-family:monospace,monospace">:1578)
~[spring-beans-4.2.5.RELEASE.<wbr>jar:4.2.5.RELEASE]</span></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>
                                                        <<wbr>repositoryServiceFactoryClass><wbr>com.evolveum.midpoint.repo.<wbr>sql.SqlRepositoryFactory</<wbr>repositoryServiceFactoryClass><br>
                                                       
                                            <embedded>false</embedded><br>
                                                       
                                            <hibernateDialect>com.<wbr>evolveum.midpoint.repo.sql.<wbr>util.MidPointMySQLDialect</<wbr>hibernateDialect><br>
                                                       
                                            <hibernateHbm2ddl>validate</<wbr>hibernateHbm2ddl><br>
                                                       
                                            <dataSource>java:comp/env/<wbr>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>
                                      <br>
                                    </div>
                                  </div>
                                  ______________________________<wbr>_________________<br>
                                  midPoint mailing list<br>
                                  <a moz-do-not-send="true"
                                    href="mailto:midPoint@lists.evolveum.com"
                                    target="_blank">midPoint@lists.evolveum.com</a><br>
                                  <a moz-do-not-send="true"
                                    href="http://lists.evolveum.com/mailman/listinfo/midpoint"
                                    target="_blank">http://lists.evolveum.com/<wbr>mailman/listinfo/midpoint</a><br>
                                </div>
                                <div><br>
                                </div>
                              </div>
                            </div>
                            <br>
                            ______________________________<wbr>_________________<br>
                            midPoint mailing list<br>
                            <a moz-do-not-send="true"
                              href="mailto:midPoint@lists.evolveum.com"
                              target="_blank">midPoint@lists.evolveum.com</a><br>
                            <a moz-do-not-send="true"
                              href="http://lists.evolveum.com/mailman/listinfo/midpoint"
                              rel="noreferrer" target="_blank">http://lists.evolveum.com/<wbr>mailman/listinfo/midpoint</a><br>
                            <br>
                          </blockquote>
                        </div>
                        <br>
                      </div>
                      <br>
                      ______________________________<wbr>_________________<br>
                      midPoint mailing list<br>
                      <a moz-do-not-send="true"
                        href="mailto:midPoint@lists.evolveum.com"
                        target="_blank">midPoint@lists.evolveum.com</a><br>
                      <a moz-do-not-send="true"
                        href="http://lists.evolveum.com/mailman/listinfo/midpoint"
                        target="_blank">http://lists.evolveum.com/<wbr>mailman/listinfo/midpoint</a><br>
                    </div>
                  </div>
                </div>
                <div><br>
                </div>
              </div>
            </div>
            <br>
            ______________________________<wbr>_________________<br>
            midPoint mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a><br>
            <a moz-do-not-send="true"
              href="http://lists.evolveum.com/mailman/listinfo/midpoint"
              rel="noreferrer" target="_blank">http://lists.evolveum.com/<wbr>mailman/listinfo/midpoint</a><br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
midPoint mailing list
<a class="moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a>
<a class="moz-txt-link-freetext" href="http://lists.evolveum.com/mailman/listinfo/midpoint">http://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Ivan Noris
Senior Identity Engineer
evolveum.com
</pre>
  </body>
</html>