<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    On 03/14/2012 12:05 PM, <a class="moz-txt-link-abbreviated" href="mailto:david.suarezdelis@telefonica.es">david.suarezdelis@telefonica.es</a> wrote:
    <blockquote
cite="mid:OF070A1400.522ADBBD-ONC12579C1.003C8458-C12579C1.003CF3FB@telefonica.es"
      type="cite">
      <br>
      <font face="sans-serif" size="2">Greetings,</font>
      <br>
      <br>
      <font face="sans-serif" size="2">I am trying to evaluate midPoint
        to
        check if it may cover out necessities but after deploy on Tomcat
        I am greeted
        with this exception when I try to log in:</font>
      <br>
      <br>
      <font face="sans-serif" size="2">2012-03-14 11:43:36,677 []
        [http-8080-1]
        ERROR (com.evolveum.midpoint.common.crypto.AESProtector):
        Exception during
        decryption: Illegal key size</font>
      <br>
      <font face="sans-serif" size="2">org.apache.xml.security.encryption.XMLEncryptionException:
Illegal
        key size</font>
      <br>
      <font face="sans-serif" size="2">        at
        org.apache.xml.security.encryption.XMLCipher.decryptToByteArray(Unknown
        Source) ~[xmlsec-1.4.5.jar:na]</font>
      <br>
      <font face="sans-serif" size="2">        at
        org.apache.xml.security.encryption.XMLCipher.decryptElement(Unknown
        Source) ~[xmlsec-1.4.5.jar:na]</font>
      <br>
      <font face="sans-serif" size="2">        at
        org.apache.xml.security.encryption.XMLCipher.doFinal(Unknown
        Source) ~[xmlsec-1.4.5.jar:na]</font>
      <br>
      <font face="sans-serif" size="2">        at
com.evolveum.midpoint.common.crypto.AESProtector.decrypt(AESProtector.java:278)[common-1.10.jar:na]</font>
      <br>
      <font face="sans-serif" size="2">        at
com.evolveum.midpoint.common.crypto.AESProtector.decryptString(AESProtector.java:222)[common-1.10.jar:na]</font>
      <br>
      <font face="sans-serif" size="2">        at
com.evolveum.midpoint.web.security.MidPointAuthenticationProvider.authenticateUser(MidPointAuthenticationProvider.java:178)[MidPointAuthenticationProvider.class:na]</font>
      <br>
      <font face="sans-serif" size="2">        at
com.evolveum.midpoint.web.security.MidPointAuthenticationProvider.authenticate(MidPointAuthenticationProvider.java:87)[MidPointAuthenticationProvider.class:na]</font>
      <br>
      <font face="sans-serif" size="2">        at
org.springframework.security.authentication.ProviderManager.doAuthentication(ProviderManager.java:130)[spring-security-core-3.0.6.RELEASE.jar:3.0.6.RELEASE]</font>
      <br>
      <font face="sans-serif" size="2">        at
org.springframework.security.authentication.AbstractAuthenticationManager.authenticate(AbstractAuthenticationManager.java:48)[spring-security-core-3.0.6.RELEASE.jar:3.0.6.RELEASE]</font>
      <br>
      <font face="sans-serif" size="2">        at
org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter.attemptAuthentication(UsernamePasswordAuthenticationFilter.java:97)[spring-security-web-3.0.6.RELEASE.jar:3.0.6.RELEASE]</font>
      <br>
      <font face="sans-serif" size="2">        at
org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:199)[spring-security-web-3.0.6.RELEASE.jar:3.0.6.RELEASE]</font>
      <br>
      <font face="sans-serif" size="2">        at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381)[spring-security-web-3.0.6.RELEASE.jar:3.0.6.RELEASE]</font>
      <br>
      <font face="sans-serif" size="2">        at
org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)[spring-security-web-3.0.6.RELEASE.jar:3.0.6.RELEASE]</font>
      <br>
      <font face="sans-serif" size="2">        at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381)[spring-security-web-3.0.6.RELEASE.jar:3.0.6.RELEASE]</font>
      <br>
      <font face="sans-serif" size="2">        at
org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79)[spring-security-web-3.0.6.RELEASE.jar:3.0.6.RELEASE]</font>
      <br>
      <font face="sans-serif" size="2">        at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381)[spring-security-web-3.0.6.RELEASE.jar:3.0.6.RELEASE]</font>
      <br>
      <font face="sans-serif" size="2">        at
org.springframework.security.web.session.ConcurrentSessionFilter.doFilter(ConcurrentSessionFilter.java:109)[spring-security-web-3.0.6.RELEASE.jar:3.0.6.RELEASE]</font>
      <br>
      <font face="sans-serif" size="2">        at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381)[spring-security-web-3.0.6.RELEASE.jar:3.0.6.RELEASE]</font>
      <br>
      <font face="sans-serif" size="2">        at
org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:168)[spring-security-web-3.0.6.RELEASE.jar:3.0.6.RELEASE]</font>
      <br>
      <font face="sans-serif" size="2">        at
org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)[spring-web-3.0.6.RELEASE.jar:3.0.6.RELEASE]</font>
      <br>
      <font face="sans-serif" size="2">        at
org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)[spring-web-3.0.6.RELEASE.jar:3.0.6.RELEASE]</font>
      <br>
      <font face="sans-serif" size="2">        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)[catalina.jar:6.0.35]</font>
      <br>
      <font face="sans-serif" size="2">        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[catalina.jar:6.0.35]</font>
      <br>
      <font face="sans-serif" size="2">        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)[catalina.jar:6.0.35]</font>
      <br>
      <font face="sans-serif" size="2">        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)[catalina.jar:6.0.35]</font>
      <br>
      <font face="sans-serif" size="2">        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)[catalina.jar:6.0.35]</font>
      <br>
      <font face="sans-serif" size="2">        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)[catalina.jar:6.0.35]</font>
      <br>
      <font face="sans-serif" size="2">        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)[catalina.jar:6.0.35]</font>
      <br>
      <font face="sans-serif" size="2">        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)[catalina.jar:6.0.35]</font>
      <br>
      <font face="sans-serif" size="2">        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)[tomcat-coyote.jar:6.0.35]</font>
      <br>
      <font face="sans-serif" size="2">        at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)[tomcat-coyote.jar:6.0.35]</font>
      <br>
      <font face="sans-serif" size="2">        at
        org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        [tomcat-coyote.jar:6.0.35]</font>
      <br>
      <font face="sans-serif" size="2">        at
        java.lang.Thread.run(Thread.java:619)
        [na:1.6.0_20]</font>
      <br>
      <font face="sans-serif" size="2">2012-03-14 11:43:36,678 []
        [http-8080-1]
        ERROR
        (com.evolveum.midpoint.web.security.MidPointAuthenticationProvider):
        Can't get user with username 'administrator'. Unknown error
        occured, reason
        web.security.provider.unavailable.</font>
      <br>
      <br>
      <font face="sans-serif" size="2">I am certain that it's a problem
        with
        the JCP files, but I did install them all in the /lib/security
        directory
        of the JRE inside the JDK.</font>
      <br>
      <br>
      <font face="sans-serif" size="2">Can anyone hint any solution to
        me?</font>
      <br>
      <br>
      <font face="sans-serif" size="2">Thanks a lot,</font>
      <br>
      <font face="sans-serif" size="2">dwd</font>
      <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>
    Hi,<br>
    <br>
    you need to install JCE, because midPoint in runtime also requires
    it for cryptographic operations.<br>
    It's not installed with java by default.<br>
    <br>
<a class="moz-txt-link-freetext" href="http://wiki.evolveum.com/display/midPoint/Installing+midPoint#InstallingmidPoint-JavaCryptographyExtension%28JCE%29UnlimitedStrengthJurisdictionPolicyFiles6">http://wiki.evolveum.com/display/midPoint/Installing+midPoint#InstallingmidPoint-JavaCryptographyExtension%28JCE%29UnlimitedStrengthJurisdictionPolicyFiles6</a><br>
    <br>
    <br>
    Regards<br>
    <br>
    vilo<br>
  </body>
</html>