[midPoint] Error during Startup
Viliam Repan
vilo.repan at evolveum.com
Sat Sep 28 12:17:04 CEST 2013
Hi Sebastian,
I'm not sure what causes this problem, but at first sight I see: Caused
by: java.lang.NoClassDefFoundError: org/mozilla/javascript/ContextFactory
so you should check if there is *rhino-1.7R4.jar* in
<tomcat>/webapps/midpoint/WEB-INF/lib. if not then you should check this
file is in midpoint.war
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.
By the way what version of Java is used? ...and operating system?
Best regards,
Vilo
On 09/27/2013 11:04 PM, Mailing wrote:
> Hello Midpoint users,
>
> I'm trying to deploy midpoint 2.2 on a Tomcat 7 server, but the
> deployment fails:
>
> 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( /
> {http://midpoint.evolveum.com/xml/ns/public/common/common-2a}running,
> REPLACE),PropertyDelta( /
> {http://midpoint.evolveum.com/xml/ns/public/common/common-2a}lastCheckInTime,
> REPLACE)],
> R(com.evolveum.midpoint.task.quartzimpl.TaskManagerQuartzImpl.shutdown
> UNKNOWN null))
> 2013-09-27 22:52:54,344 [localhost-startStop-1][] DEBUG (PROFILING):
> ##### Exit: 12 ...repo.sql.SqlRepositoryServiceImpl->modifyObject
> etime: 137.583 ms
> 2013-09-27 22:52:54,345 [localhost-startStop-1][] TRACE (PROFILING):
> ###### retval: null
> 2013-09-27 22:52:54,345 [localhost-startStop-1][] INFO
> (c.e.m.task.quartzimpl.TaskManagerQuartzImpl): Task Manager shutdown
> finished
> 2013-09-27 22:52:54,345 [localhost-startStop-1][] DEBUG (PROFILING):
> ##### Exit: 10 ...task.quartzimpl.TaskManagerQuartzImpl->shutdown
> etime: 591.388 ms
> 2013-09-27 22:52:54,345 [localhost-startStop-1][] TRACE (PROFILING):
> ###### retval: null
> 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.
> 2013-09-27 22:52:54,729 [localhost-startStop-1][] ERROR
> (org.springframework.web.context.ContextLoader): Context
> initialization failed
> 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
> at
> org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:287)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1106)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)
> ~[spring-context-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)
> ~[spring-context-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:384)
> ~[spring-web-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)
> ~[spring-web-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
> ~[spring-web-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4797)
> ~[catalina.jar:7.0.35]
> at
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5291)
> ~[catalina.jar:7.0.35]
> at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> ~[catalina.jar:7.0.35]
> at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
> ~[catalina.jar:7.0.35]
> at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) ~[catalina.jar:7.0.35]
>
> at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
> ~[catalina.jar:7.0.35]
> at
> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:977)
> ~[catalina.jar:7.0.35]
> at
> org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1655)
> ~[catalina.jar:7.0.35]
> at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) ~[na:1.7.0-internal]
>
> at
> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> ~[na:1.7.0-internal]
> at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> ~[na:1.7.0-internal]
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> ~[na:1.7.0-internal]
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> ~[na:1.7.0-internal]
> at java.lang.Thread.run(Thread.java:724) ~[na:1.7.0-internal]
> 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
> at
> org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:506)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:284)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> ... 27 common frames omitted
> 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
> at
> org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:287)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1106)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:848)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:790)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:707)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:478)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> ... 29 common frames omitted
> 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
> at
> org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:506)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:284)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> ... 40 common frames omitted
> 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
> at
> org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:287)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1106)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:848)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:790)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:707)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:478)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> ... 42 common frames omitted
> 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
> at
> org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:506)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:284)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> ... 53 common frames omitted
> 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
> at
> org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:287)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1106)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:848)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:790)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:707)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:478)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> ... 55 common frames omitted
> 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
> at
> org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:506)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:284)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> ... 66 common frames omitted
> 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
> at
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1360)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1118)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:848)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:790)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:707)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:478)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> ... 68 common frames omitted
> 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
> at
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:353)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:153)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:630)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:148)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1035)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:939)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> ... 81 common frames omitted
> 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
> at
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:630)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:148)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1035)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:939)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> ... 95 common frames omitted
> 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
> at
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:353)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:153)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:630)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:148)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1035)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:939)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> ... 107 common frames omitted
> 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
> at
> org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:288)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1035)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:939)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> ... 121 common frames omitted
> 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
> at
> org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:162)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:110)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> at
> org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:280)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> ... 130 common frames omitted
> Caused by: java.lang.NoClassDefFoundError:
> org/mozilla/javascript/ContextFactory
> at
> com.sun.script.javascript.RhinoScriptEngine.<clinit>(RhinoScriptEngine.java:71)
> ~[na:1.7.0-internal]
> at
> com.sun.script.javascript.RhinoScriptEngineFactory.getScriptEngine(RhinoScriptEngineFactory.java:74)
> ~[na:1.7.0-internal]
> at
> javax.script.ScriptEngineManager.getEngineByName(ScriptEngineManager.java:235)
> ~[na:1.7.0-internal]
> at
> com.evolveum.midpoint.common.expression.script.jsr223.Jsr223ScriptEvaluator.<init>(Jsr223ScriptEvaluator.java:79)
> ~[common-2.2.jar:na]
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method) ~[na:1.7.0-internal]
> at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
> ~[na:1.7.0-internal]
> at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> ~[na:1.7.0-internal]
> at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
> ~[na:1.7.0-internal]
> at
> org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147)
> ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
> ... 132 common frames omitted
>
>
> What is going wrong there? I googled a bit, but I don't found a hint
> how to solve this issue.
>
>
> Best regards,
> Sebastian
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com
> http://lists.evolveum.com/mailman/listinfo/midpoint
--
Ing. Viliam Repán(
Evolveum, s.r.o.
tel: +421 910 797978
mail: vilo.repan at evolveum.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20130928/ebf8ea44/attachment.htm>
More information about the midPoint
mailing list