<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi Sebastian,<br>
    <br>
    I'm not sure what causes this problem, but at first sight I see:
    Caused by: java.lang.NoClassDefFoundError:
    org/mozilla/javascript/ContextFactory
    <br>
    so you should check if there is <b>rhino-1.7R4.jar</b> in
    <tomcat>/webapps/midpoint/WEB-INF/lib. if not then you should
    check this file is in midpoint.war<br>
    which you tried to deploy (it must be and should be there - there is
    one in war in 2.2 release), otherwise I'm out of ideas, why that
    class was not found.<br>
    By the way what version of Java is used? ...and operating system?<br>
    <br>
    Best regards,<br>
    <br>
    <br>
    Vilo<br>
    <br>
    <div class="moz-cite-prefix">On 09/27/2013 11:04 PM, Mailing wrote:<br>
    </div>
    <blockquote
      cite="mid:ff75ddb663adf048c7a9dec40b4993c8@xenoserver.net"
      type="cite">Hello Midpoint users,
      <br>
      <br>
      I'm trying to deploy midpoint 2.2 on a Tomcat 7 server, but the
      deployment fails:
      <br>
      <br>
      2013-09-27 22:52:54,207 [localhost-startStop-1][] TRACE
      (PROFILING): ###### args:
      (com.evolveum.midpoint.xml.ns._public.common.common_2a.NodeType,
      c9261417-dc0f-4a48-8bd8-c6a463ffcd27, [PropertyDelta( /
      {<a class="moz-txt-link-freetext" href="http://midpoint.evolveum.com/xml/ns/public/common/common-2a">http://midpoint.evolveum.com/xml/ns/public/common/common-2a</a>}running,
      REPLACE),PropertyDelta( /
      {<a class="moz-txt-link-freetext" href="http://midpoint.evolveum.com/xml/ns/public/common/common-2a">http://midpoint.evolveum.com/xml/ns/public/common/common-2a</a>}lastCheckInTime,
      REPLACE)],
      R(com.evolveum.midpoint.task.quartzimpl.TaskManagerQuartzImpl.shutdown
      UNKNOWN null))
      <br>
      2013-09-27 22:52:54,344 [localhost-startStop-1][] DEBUG
      (PROFILING): ##### Exit: 12  
      ...repo.sql.SqlRepositoryServiceImpl->modifyObject etime:
      137.583 ms
      <br>
      2013-09-27 22:52:54,345 [localhost-startStop-1][] TRACE
      (PROFILING): ###### retval: null
      <br>
      2013-09-27 22:52:54,345 [localhost-startStop-1][] INFO 
      (c.e.m.task.quartzimpl.TaskManagerQuartzImpl): Task Manager
      shutdown finished
      <br>
      2013-09-27 22:52:54,345 [localhost-startStop-1][] DEBUG
      (PROFILING): ##### Exit: 10 
      ...task.quartzimpl.TaskManagerQuartzImpl->shutdown etime:
      591.388 ms
      <br>
      2013-09-27 22:52:54,345 [localhost-startStop-1][] TRACE
      (PROFILING): ###### retval: null
      <br>
      2013-09-27 22:52:54,535 [localhost-startStop-1][] INFO 
      (c.e.midpoint.repo.sql.SqlRepositoryFactory): Repository is not
      running in embedded mode, shutdown complete.
      <br>
      2013-09-27 22:52:54,729 [localhost-startStop-1][] ERROR
      (org.springframework.web.context.ContextLoader): Context
      initialization failed
      <br>
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'modelController': Injection of autowired
      dependencies failed; nested exception is
      org.springframework.beans.factory.BeanCreationException: Could not
      autowire field: private com.evolveum.midpoint.model.lens.Clockwork
      com.evolveum.midpoint.model.controller.ModelController.clockwork;
      nested exception is
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'clockwork': Injection of autowired
      dependencies failed; nested exception is
      org.springframework.beans.factory.BeanCreationException: Could not
      autowire field: private
      com.evolveum.midpoint.model.lens.projector.Projector
      com.evolveum.midpoint.model.lens.Clockwork.projector; nested
      exception is
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'projector': Injection of autowired
      dependencies failed; nested exception is
      org.springframework.beans.factory.BeanCreationException: Could not
      autowire field: private
      com.evolveum.midpoint.model.lens.projector.UserPolicyProcessor
      com.evolveum.midpoint.model.lens.projector.Projector.userPolicyProcessor;
      nested exception is
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'userPolicyProcessor': Injection of
      autowired dependencies failed; nested exception is
      org.springframework.beans.factory.BeanCreationException: Could not
      autowire field: private
      com.evolveum.midpoint.common.mapping.MappingFactory
      com.evolveum.midpoint.model.lens.projector.UserPolicyProcessor.mappingFactory;
      nested exception is
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'mappingFactory' defined in class path
      resource [ctx-model.xml]: Cannot resolve reference to bean
      'expressionFactory' while setting bean property
      'expressionFactory'; nested exception is
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'expressionFactory' defined in class path
      resource [ctx-model.xml]: Cannot resolve reference to bean
      'scriptExpressionEvaluatorFactory' while setting constructor
      argument with key [0]; nested exception is
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'scriptExpressionEvaluatorFactory' defined
      in class path resource [ctx-model.xml]: Cannot resolve reference
      to bean 'scriptExpressionFactory' while setting constructor
      argument; nested exception is
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'scriptExpressionFactory' defined in class
      path resource [ctx-model.xml]: Cannot resolve reference to bean
      'javascriptScriptEvaluator' while setting constructor argument
      with key [1]; nested exception is
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'javascriptScriptEvaluator' defined in
      class path resource [ctx-model.xml]: Instantiation of bean failed;
      nested exception is
      org.springframework.beans.BeanInstantiationException: Could not
      instantiate bean class
      [com.evolveum.midpoint.common.expression.script.jsr223.Jsr223ScriptEvaluator]:
      Constructor threw exception; nested exception is
      java.lang.NoClassDefFoundError:
      org/mozilla/javascript/ContextFactory
      <br>
          at
      org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:287)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1106)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)
      ~[spring-context-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)
      ~[spring-context-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:384)
      ~[spring-web-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)
      ~[spring-web-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
      ~[spring-web-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4797)
      ~[catalina.jar:7.0.35]
      <br>
          at
      org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5291)
      ~[catalina.jar:7.0.35]
      <br>
          at
      org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
      ~[catalina.jar:7.0.35]
      <br>
          at
      org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
      ~[catalina.jar:7.0.35]
      <br>
          at
      org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
      ~[catalina.jar:7.0.35]
      <br>
          at
      org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
      ~[catalina.jar:7.0.35]
      <br>
          at
      org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:977)
      ~[catalina.jar:7.0.35]
      <br>
          at
      org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1655)
      ~[catalina.jar:7.0.35]
      <br>
          at
      java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      ~[na:1.7.0-internal]
      <br>
          at
      java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      ~[na:1.7.0-internal]
      <br>
          at java.util.concurrent.FutureTask.run(FutureTask.java:166)
      ~[na:1.7.0-internal]
      <br>
          at
      java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      ~[na:1.7.0-internal]
      <br>
          at
      java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      ~[na:1.7.0-internal]
      <br>
          at java.lang.Thread.run(Thread.java:724) ~[na:1.7.0-internal]
      <br>
      Caused by:
      org.springframework.beans.factory.BeanCreationException: Could not
      autowire field: private com.evolveum.midpoint.model.lens.Clockwork
      com.evolveum.midpoint.model.controller.ModelController.clockwork;
      nested exception is
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'clockwork': Injection of autowired
      dependencies failed; nested exception is
      org.springframework.beans.factory.BeanCreationException: Could not
      autowire field: private
      com.evolveum.midpoint.model.lens.projector.Projector
      com.evolveum.midpoint.model.lens.Clockwork.projector; nested
      exception is
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'projector': Injection of autowired
      dependencies failed; nested exception is
      org.springframework.beans.factory.BeanCreationException: Could not
      autowire field: private
      com.evolveum.midpoint.model.lens.projector.UserPolicyProcessor
      com.evolveum.midpoint.model.lens.projector.Projector.userPolicyProcessor;
      nested exception is
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'userPolicyProcessor': Injection of
      autowired dependencies failed; nested exception is
      org.springframework.beans.factory.BeanCreationException: Could not
      autowire field: private
      com.evolveum.midpoint.common.mapping.MappingFactory
      com.evolveum.midpoint.model.lens.projector.UserPolicyProcessor.mappingFactory;
      nested exception is
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'mappingFactory' defined in class path
      resource [ctx-model.xml]: Cannot resolve reference to bean
      'expressionFactory' while setting bean property
      'expressionFactory'; nested exception is
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'expressionFactory' defined in class path
      resource [ctx-model.xml]: Cannot resolve reference to bean
      'scriptExpressionEvaluatorFactory' while setting constructor
      argument with key [0]; nested exception is
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'scriptExpressionEvaluatorFactory' defined
      in class path resource [ctx-model.xml]: Cannot resolve reference
      to bean 'scriptExpressionFactory' while setting constructor
      argument; nested exception is
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'scriptExpressionFactory' defined in class
      path resource [ctx-model.xml]: Cannot resolve reference to bean
      'javascriptScriptEvaluator' while setting constructor argument
      with key [1]; nested exception is
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'javascriptScriptEvaluator' defined in
      class path resource [ctx-model.xml]: Instantiation of bean failed;
      nested exception is
      org.springframework.beans.BeanInstantiationException: Could not
      instantiate bean class
      [com.evolveum.midpoint.common.expression.script.jsr223.Jsr223ScriptEvaluator]:
      Constructor threw exception; nested exception is
      java.lang.NoClassDefFoundError:
      org/mozilla/javascript/ContextFactory
      <br>
          at
      org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:506)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:284)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          ... 27 common frames omitted
      <br>
      Caused by:
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'clockwork': Injection of autowired
      dependencies failed; nested exception is
      org.springframework.beans.factory.BeanCreationException: Could not
      autowire field: private
      com.evolveum.midpoint.model.lens.projector.Projector
      com.evolveum.midpoint.model.lens.Clockwork.projector; nested
      exception is
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'projector': Injection of autowired
      dependencies failed; nested exception is
      org.springframework.beans.factory.BeanCreationException: Could not
      autowire field: private
      com.evolveum.midpoint.model.lens.projector.UserPolicyProcessor
      com.evolveum.midpoint.model.lens.projector.Projector.userPolicyProcessor;
      nested exception is
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'userPolicyProcessor': Injection of
      autowired dependencies failed; nested exception is
      org.springframework.beans.factory.BeanCreationException: Could not
      autowire field: private
      com.evolveum.midpoint.common.mapping.MappingFactory
      com.evolveum.midpoint.model.lens.projector.UserPolicyProcessor.mappingFactory;
      nested exception is
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'mappingFactory' defined in class path
      resource [ctx-model.xml]: Cannot resolve reference to bean
      'expressionFactory' while setting bean property
      'expressionFactory'; nested exception is
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'expressionFactory' defined in class path
      resource [ctx-model.xml]: Cannot resolve reference to bean
      'scriptExpressionEvaluatorFactory' while setting constructor
      argument with key [0]; nested exception is
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'scriptExpressionEvaluatorFactory' defined
      in class path resource [ctx-model.xml]: Cannot resolve reference
      to bean 'scriptExpressionFactory' while setting constructor
      argument; nested exception is
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'scriptExpressionFactory' defined in class
      path resource [ctx-model.xml]: Cannot resolve reference to bean
      'javascriptScriptEvaluator' while setting constructor argument
      with key [1]; nested exception is
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'javascriptScriptEvaluator' defined in
      class path resource [ctx-model.xml]: Instantiation of bean failed;
      nested exception is
      org.springframework.beans.BeanInstantiationException: Could not
      instantiate bean class
      [com.evolveum.midpoint.common.expression.script.jsr223.Jsr223ScriptEvaluator]:
      Constructor threw exception; nested exception is
      java.lang.NoClassDefFoundError:
      org/mozilla/javascript/ContextFactory
      <br>
          at
      org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:287)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1106)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:848)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:790)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:707)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:478)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          ... 29 common frames omitted
      <br>
      Caused by:
      org.springframework.beans.factory.BeanCreationException: Could not
      autowire field: private
      com.evolveum.midpoint.model.lens.projector.Projector
      com.evolveum.midpoint.model.lens.Clockwork.projector; nested
      exception is
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'projector': Injection of autowired
      dependencies failed; nested exception is
      org.springframework.beans.factory.BeanCreationException: Could not
      autowire field: private
      com.evolveum.midpoint.model.lens.projector.UserPolicyProcessor
      com.evolveum.midpoint.model.lens.projector.Projector.userPolicyProcessor;
      nested exception is
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'userPolicyProcessor': Injection of
      autowired dependencies failed; nested exception is
      org.springframework.beans.factory.BeanCreationException: Could not
      autowire field: private
      com.evolveum.midpoint.common.mapping.MappingFactory
      com.evolveum.midpoint.model.lens.projector.UserPolicyProcessor.mappingFactory;
      nested exception is
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'mappingFactory' defined in class path
      resource [ctx-model.xml]: Cannot resolve reference to bean
      'expressionFactory' while setting bean property
      'expressionFactory'; nested exception is
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'expressionFactory' defined in class path
      resource [ctx-model.xml]: Cannot resolve reference to bean
      'scriptExpressionEvaluatorFactory' while setting constructor
      argument with key [0]; nested exception is
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'scriptExpressionEvaluatorFactory' defined
      in class path resource [ctx-model.xml]: Cannot resolve reference
      to bean 'scriptExpressionFactory' while setting constructor
      argument; nested exception is
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'scriptExpressionFactory' defined in class
      path resource [ctx-model.xml]: Cannot resolve reference to bean
      'javascriptScriptEvaluator' while setting constructor argument
      with key [1]; nested exception is
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'javascriptScriptEvaluator' defined in
      class path resource [ctx-model.xml]: Instantiation of bean failed;
      nested exception is
      org.springframework.beans.BeanInstantiationException: Could not
      instantiate bean class
      [com.evolveum.midpoint.common.expression.script.jsr223.Jsr223ScriptEvaluator]:
      Constructor threw exception; nested exception is
      java.lang.NoClassDefFoundError:
      org/mozilla/javascript/ContextFactory
      <br>
          at
      org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:506)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:284)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          ... 40 common frames omitted
      <br>
      Caused by:
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'projector': Injection of autowired
      dependencies failed; nested exception is
      org.springframework.beans.factory.BeanCreationException: Could not
      autowire field: private
      com.evolveum.midpoint.model.lens.projector.UserPolicyProcessor
      com.evolveum.midpoint.model.lens.projector.Projector.userPolicyProcessor;
      nested exception is
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'userPolicyProcessor': Injection of
      autowired dependencies failed; nested exception is
      org.springframework.beans.factory.BeanCreationException: Could not
      autowire field: private
      com.evolveum.midpoint.common.mapping.MappingFactory
      com.evolveum.midpoint.model.lens.projector.UserPolicyProcessor.mappingFactory;
      nested exception is
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'mappingFactory' defined in class path
      resource [ctx-model.xml]: Cannot resolve reference to bean
      'expressionFactory' while setting bean property
      'expressionFactory'; nested exception is
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'expressionFactory' defined in class path
      resource [ctx-model.xml]: Cannot resolve reference to bean
      'scriptExpressionEvaluatorFactory' while setting constructor
      argument with key [0]; nested exception is
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'scriptExpressionEvaluatorFactory' defined
      in class path resource [ctx-model.xml]: Cannot resolve reference
      to bean 'scriptExpressionFactory' while setting constructor
      argument; nested exception is
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'scriptExpressionFactory' defined in class
      path resource [ctx-model.xml]: Cannot resolve reference to bean
      'javascriptScriptEvaluator' while setting constructor argument
      with key [1]; nested exception is
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'javascriptScriptEvaluator' defined in
      class path resource [ctx-model.xml]: Instantiation of bean failed;
      nested exception is
      org.springframework.beans.BeanInstantiationException: Could not
      instantiate bean class
      [com.evolveum.midpoint.common.expression.script.jsr223.Jsr223ScriptEvaluator]:
      Constructor threw exception; nested exception is
      java.lang.NoClassDefFoundError:
      org/mozilla/javascript/ContextFactory
      <br>
          at
      org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:287)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1106)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:848)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:790)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:707)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:478)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          ... 42 common frames omitted
      <br>
      Caused by:
      org.springframework.beans.factory.BeanCreationException: Could not
      autowire field: private
      com.evolveum.midpoint.model.lens.projector.UserPolicyProcessor
      com.evolveum.midpoint.model.lens.projector.Projector.userPolicyProcessor;
      nested exception is
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'userPolicyProcessor': Injection of
      autowired dependencies failed; nested exception is
      org.springframework.beans.factory.BeanCreationException: Could not
      autowire field: private
      com.evolveum.midpoint.common.mapping.MappingFactory
      com.evolveum.midpoint.model.lens.projector.UserPolicyProcessor.mappingFactory;
      nested exception is
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'mappingFactory' defined in class path
      resource [ctx-model.xml]: Cannot resolve reference to bean
      'expressionFactory' while setting bean property
      'expressionFactory'; nested exception is
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'expressionFactory' defined in class path
      resource [ctx-model.xml]: Cannot resolve reference to bean
      'scriptExpressionEvaluatorFactory' while setting constructor
      argument with key [0]; nested exception is
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'scriptExpressionEvaluatorFactory' defined
      in class path resource [ctx-model.xml]: Cannot resolve reference
      to bean 'scriptExpressionFactory' while setting constructor
      argument; nested exception is
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'scriptExpressionFactory' defined in class
      path resource [ctx-model.xml]: Cannot resolve reference to bean
      'javascriptScriptEvaluator' while setting constructor argument
      with key [1]; nested exception is
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'javascriptScriptEvaluator' defined in
      class path resource [ctx-model.xml]: Instantiation of bean failed;
      nested exception is
      org.springframework.beans.BeanInstantiationException: Could not
      instantiate bean class
      [com.evolveum.midpoint.common.expression.script.jsr223.Jsr223ScriptEvaluator]:
      Constructor threw exception; nested exception is
      java.lang.NoClassDefFoundError:
      org/mozilla/javascript/ContextFactory
      <br>
          at
      org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:506)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:284)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          ... 53 common frames omitted
      <br>
      Caused by:
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'userPolicyProcessor': Injection of
      autowired dependencies failed; nested exception is
      org.springframework.beans.factory.BeanCreationException: Could not
      autowire field: private
      com.evolveum.midpoint.common.mapping.MappingFactory
      com.evolveum.midpoint.model.lens.projector.UserPolicyProcessor.mappingFactory;
      nested exception is
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'mappingFactory' defined in class path
      resource [ctx-model.xml]: Cannot resolve reference to bean
      'expressionFactory' while setting bean property
      'expressionFactory'; nested exception is
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'expressionFactory' defined in class path
      resource [ctx-model.xml]: Cannot resolve reference to bean
      'scriptExpressionEvaluatorFactory' while setting constructor
      argument with key [0]; nested exception is
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'scriptExpressionEvaluatorFactory' defined
      in class path resource [ctx-model.xml]: Cannot resolve reference
      to bean 'scriptExpressionFactory' while setting constructor
      argument; nested exception is
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'scriptExpressionFactory' defined in class
      path resource [ctx-model.xml]: Cannot resolve reference to bean
      'javascriptScriptEvaluator' while setting constructor argument
      with key [1]; nested exception is
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'javascriptScriptEvaluator' defined in
      class path resource [ctx-model.xml]: Instantiation of bean failed;
      nested exception is
      org.springframework.beans.BeanInstantiationException: Could not
      instantiate bean class
      [com.evolveum.midpoint.common.expression.script.jsr223.Jsr223ScriptEvaluator]:
      Constructor threw exception; nested exception is
      java.lang.NoClassDefFoundError:
      org/mozilla/javascript/ContextFactory
      <br>
          at
      org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:287)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1106)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:848)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:790)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:707)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:478)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          ... 55 common frames omitted
      <br>
      Caused by:
      org.springframework.beans.factory.BeanCreationException: Could not
      autowire field: private
      com.evolveum.midpoint.common.mapping.MappingFactory
      com.evolveum.midpoint.model.lens.projector.UserPolicyProcessor.mappingFactory;
      nested exception is
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'mappingFactory' defined in class path
      resource [ctx-model.xml]: Cannot resolve reference to bean
      'expressionFactory' while setting bean property
      'expressionFactory'; nested exception is
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'expressionFactory' defined in class path
      resource [ctx-model.xml]: Cannot resolve reference to bean
      'scriptExpressionEvaluatorFactory' while setting constructor
      argument with key [0]; nested exception is
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'scriptExpressionEvaluatorFactory' defined
      in class path resource [ctx-model.xml]: Cannot resolve reference
      to bean 'scriptExpressionFactory' while setting constructor
      argument; nested exception is
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'scriptExpressionFactory' defined in class
      path resource [ctx-model.xml]: Cannot resolve reference to bean
      'javascriptScriptEvaluator' while setting constructor argument
      with key [1]; nested exception is
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'javascriptScriptEvaluator' defined in
      class path resource [ctx-model.xml]: Instantiation of bean failed;
      nested exception is
      org.springframework.beans.BeanInstantiationException: Could not
      instantiate bean class
      [com.evolveum.midpoint.common.expression.script.jsr223.Jsr223ScriptEvaluator]:
      Constructor threw exception; nested exception is
      java.lang.NoClassDefFoundError:
      org/mozilla/javascript/ContextFactory
      <br>
          at
      org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:506)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:284)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          ... 66 common frames omitted
      <br>
      Caused by:
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'mappingFactory' defined in class path
      resource [ctx-model.xml]: Cannot resolve reference to bean
      'expressionFactory' while setting bean property
      'expressionFactory'; nested exception is
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'expressionFactory' defined in class path
      resource [ctx-model.xml]: Cannot resolve reference to bean
      'scriptExpressionEvaluatorFactory' while setting constructor
      argument with key [0]; nested exception is
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'scriptExpressionEvaluatorFactory' defined
      in class path resource [ctx-model.xml]: Cannot resolve reference
      to bean 'scriptExpressionFactory' while setting constructor
      argument; nested exception is
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'scriptExpressionFactory' defined in class
      path resource [ctx-model.xml]: Cannot resolve reference to bean
      'javascriptScriptEvaluator' while setting constructor argument
      with key [1]; nested exception is
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'javascriptScriptEvaluator' defined in
      class path resource [ctx-model.xml]: Instantiation of bean failed;
      nested exception is
      org.springframework.beans.BeanInstantiationException: Could not
      instantiate bean class
      [com.evolveum.midpoint.common.expression.script.jsr223.Jsr223ScriptEvaluator]:
      Constructor threw exception; nested exception is
      java.lang.NoClassDefFoundError:
      org/mozilla/javascript/ContextFactory
      <br>
          at
      org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1360)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1118)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:848)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:790)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:707)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:478)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          ... 68 common frames omitted
      <br>
      Caused by:
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'expressionFactory' defined in class path
      resource [ctx-model.xml]: Cannot resolve reference to bean
      'scriptExpressionEvaluatorFactory' while setting constructor
      argument with key [0]; nested exception is
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'scriptExpressionEvaluatorFactory' defined
      in class path resource [ctx-model.xml]: Cannot resolve reference
      to bean 'scriptExpressionFactory' while setting constructor
      argument; nested exception is
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'scriptExpressionFactory' defined in class
      path resource [ctx-model.xml]: Cannot resolve reference to bean
      'javascriptScriptEvaluator' while setting constructor argument
      with key [1]; nested exception is
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'javascriptScriptEvaluator' defined in
      class path resource [ctx-model.xml]: Instantiation of bean failed;
      nested exception is
      org.springframework.beans.BeanInstantiationException: Could not
      instantiate bean class
      [com.evolveum.midpoint.common.expression.script.jsr223.Jsr223ScriptEvaluator]:
      Constructor threw exception; nested exception is
      java.lang.NoClassDefFoundError:
      org/mozilla/javascript/ContextFactory
      <br>
          at
      org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:353)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:153)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:630)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:148)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1035)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:939)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          ... 81 common frames omitted
      <br>
      Caused by:
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'scriptExpressionEvaluatorFactory' defined
      in class path resource [ctx-model.xml]: Cannot resolve reference
      to bean 'scriptExpressionFactory' while setting constructor
      argument; nested exception is
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'scriptExpressionFactory' defined in class
      path resource [ctx-model.xml]: Cannot resolve reference to bean
      'javascriptScriptEvaluator' while setting constructor argument
      with key [1]; nested exception is
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'javascriptScriptEvaluator' defined in
      class path resource [ctx-model.xml]: Instantiation of bean failed;
      nested exception is
      org.springframework.beans.BeanInstantiationException: Could not
      instantiate bean class
      [com.evolveum.midpoint.common.expression.script.jsr223.Jsr223ScriptEvaluator]:
      Constructor threw exception; nested exception is
      java.lang.NoClassDefFoundError:
      org/mozilla/javascript/ContextFactory
      <br>
          at
      org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:630)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:148)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1035)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:939)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          ... 95 common frames omitted
      <br>
      Caused by:
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'scriptExpressionFactory' defined in class
      path resource [ctx-model.xml]: Cannot resolve reference to bean
      'javascriptScriptEvaluator' while setting constructor argument
      with key [1]; nested exception is
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'javascriptScriptEvaluator' defined in
      class path resource [ctx-model.xml]: Instantiation of bean failed;
      nested exception is
      org.springframework.beans.BeanInstantiationException: Could not
      instantiate bean class
      [com.evolveum.midpoint.common.expression.script.jsr223.Jsr223ScriptEvaluator]:
      Constructor threw exception; nested exception is
      java.lang.NoClassDefFoundError:
      org/mozilla/javascript/ContextFactory
      <br>
          at
      org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:353)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:153)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:630)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:148)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1035)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:939)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          ... 107 common frames omitted
      <br>
      Caused by:
      org.springframework.beans.factory.BeanCreationException: Error
      creating bean with name 'javascriptScriptEvaluator' defined in
      class path resource [ctx-model.xml]: Instantiation of bean failed;
      nested exception is
      org.springframework.beans.BeanInstantiationException: Could not
      instantiate bean class
      [com.evolveum.midpoint.common.expression.script.jsr223.Jsr223ScriptEvaluator]:
      Constructor threw exception; nested exception is
      java.lang.NoClassDefFoundError:
      org/mozilla/javascript/ContextFactory
      <br>
          at
      org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:288)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1035)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:939)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          ... 121 common frames omitted
      <br>
      Caused by: org.springframework.beans.BeanInstantiationException:
      Could not instantiate bean class
      [com.evolveum.midpoint.common.expression.script.jsr223.Jsr223ScriptEvaluator]:
      Constructor threw exception; nested exception is
      java.lang.NoClassDefFoundError:
      org/mozilla/javascript/ContextFactory
      <br>
          at
      org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:162)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:110)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          at
      org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:280)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          ... 130 common frames omitted
      <br>
      Caused by: java.lang.NoClassDefFoundError:
      org/mozilla/javascript/ContextFactory
      <br>
          at
      com.sun.script.javascript.RhinoScriptEngine.<clinit>(RhinoScriptEngine.java:71)
      ~[na:1.7.0-internal]
      <br>
          at
      com.sun.script.javascript.RhinoScriptEngineFactory.getScriptEngine(RhinoScriptEngineFactory.java:74)
      ~[na:1.7.0-internal]
      <br>
          at
      javax.script.ScriptEngineManager.getEngineByName(ScriptEngineManager.java:235)
      ~[na:1.7.0-internal]
      <br>
          at
      com.evolveum.midpoint.common.expression.script.jsr223.Jsr223ScriptEvaluator.<init>(Jsr223ScriptEvaluator.java:79)
      ~[common-2.2.jar:na]
      <br>
          at
      sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
      Method) ~[na:1.7.0-internal]
      <br>
          at
      sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
      ~[na:1.7.0-internal]
      <br>
          at
      sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      ~[na:1.7.0-internal]
      <br>
          at
      java.lang.reflect.Constructor.newInstance(Constructor.java:526)
      ~[na:1.7.0-internal]
      <br>
          at
      org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147)
      ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      <br>
          ... 132 common frames omitted
      <br>
      <br>
      <br>
      What is going wrong there? I googled a bit, but I don't found a
      hint how to solve this issue.
      <br>
      <br>
      <br>
      Best regards,
      <br>
      Sebastian
      <br>
      _______________________________________________
      <br>
      midPoint mailing list
      <br>
      <a class="moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a>
      <br>
      <a class="moz-txt-link-freetext" href="http://lists.evolveum.com/mailman/listinfo/midpoint">http://lists.evolveum.com/mailman/listinfo/midpoint</a>
      <br>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Ing. Viliam Repáň
Evolveum, s.r.o.

tel: +421 910 797978
mail: <a class="moz-txt-link-abbreviated" href="mailto:vilo.repan@evolveum.com">vilo.repan@evolveum.com</a>
</pre>
  </body>
</html>