Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic Extensions 1.7.1 fails to load on Alfresco 4.2.4 #160

Closed
koenvangeerteruy opened this issue Oct 19, 2017 · 4 comments
Closed

Dynamic Extensions 1.7.1 fails to load on Alfresco 4.2.4 #160

koenvangeerteruy opened this issue Oct 19, 2017 · 4 comments
Labels
Milestone

Comments

@koenvangeerteruy
Copy link

koenvangeerteruy commented Oct 19, 2017

Dynamic Extensions fails to load.
The log file snippet contains the load error:

2017-10-19T07:27:41.065293714Z  2017-10-19 07:27:41,064  INFO  [repo.module.ModuleServiceImpl] [localhost-startStop-1] Starting module 'alfresco-dynamic-extensions-repo' version 1.7.1.
2017-10-19T07:27:41.216627226Z  2017-10-19 07:27:41,216  WARN  [factory.config.PropertyPlaceholderConfigurer] [localhost-startStop-1] Could not load properties from class path resource [dynamic-extensions/osgi-container.properties]: class path resource [dynamic-extensions/osgi-container.properties] cannot be opened because it does not exist
2017-10-19T07:27:43.304424491Z  2017-10-19 07:27:43,278  ERROR [internal.activator.ContextLoaderListener] [localhost-startStop-1] Application context refresh failed (DynamicExtensionsApplicationContext(bundle=eu.xenit.de.control-panel, config=osgibundle:/META-INF/spring/*.xml))
2017-10-19T07:27:43.304456511Z  org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'messageConverterRegister': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.github.dynamicextensionsalfresco.webscripts.MessageConverterRegistry]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/springframework/http/converter/json/MappingJackson2HttpMessageConverter
2017-10-19T07:27:43.304467627Z  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:965)
2017-10-19T07:27:43.304473166Z  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:911)
2017-10-19T07:27:43.304493072Z  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
2017-10-19T07:27:43.304501894Z  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
2017-10-19T07:27:43.304508289Z  at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
2017-10-19T07:27:43.304514748Z  at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
2017-10-19T07:27:43.304520574Z  at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
2017-10-19T07:27:43.304526760Z  at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
2017-10-19T07:27:43.304532635Z  at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
2017-10-19T07:27:43.304538480Z  at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
2017-10-19T07:27:43.304546120Z  at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:60)
2017-10-19T07:27:43.304552296Z  at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:325)
2017-10-19T07:27:43.304558022Z  at org.eclipse.gemini.blueprint.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
2017-10-19T07:27:43.304565338Z  at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:290)
2017-10-19T07:27:43.304571285Z  at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:137)
2017-10-19T07:27:43.304577408Z  at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:48)
2017-10-19T07:27:43.304586377Z  at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageTwo(DependencyWaiterApplicationContextExecutor.java:311)
2017-10-19T07:27:43.304592324Z  at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:258)
2017-10-19T07:27:43.304598078Z  at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:177)
2017-10-19T07:27:43.304604013Z  at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:157)
2017-10-19T07:27:43.304615364Z  at org.eclipse.gemini.blueprint.extender.internal.activator.LifecycleManager$1.run(LifecycleManager.java:211)
2017-10-19T07:27:43.304623014Z  at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:48)
2017-10-19T07:27:43.304628772Z  at org.eclipse.gemini.blueprint.extender.internal.activator.LifecycleManager.maybeCreateApplicationContextFor(LifecycleManager.java:270)
2017-10-19T07:27:43.304634527Z  at org.eclipse.gemini.blueprint.extender.internal.activator.ContextLoaderListener$ContextBundleListener.handleEvent(ContextLoaderListener.java:223)
2017-10-19T07:27:43.304643035Z  at org.eclipse.gemini.blueprint.extender.internal.activator.ContextLoaderListener$BaseListener.bundleChanged(ContextLoaderListener.java:137)
2017-10-19T07:27:43.304649261Z  at org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:868)
2017-10-19T07:27:43.304655331Z  at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:789)
2017-10-19T07:27:43.304660909Z  at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:514)
2017-10-19T07:27:43.304666478Z  at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4403)
2017-10-19T07:27:43.304671807Z  at org.apache.felix.framework.Felix.startBundle(Felix.java:2092)
2017-10-19T07:27:43.304677091Z  at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:955)
2017-10-19T07:27:43.304682382Z  at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:942)
2017-10-19T07:27:43.304688666Z  at com.github.dynamicextensionsalfresco.osgi.DefaultFrameworkManager.startBundle(FrameworkManager.kt:195)
2017-10-19T07:27:43.304694286Z  at com.github.dynamicextensionsalfresco.osgi.DefaultFrameworkManager.startBundles(FrameworkManager.kt:187)
2017-10-19T07:27:43.304699899Z  at com.github.dynamicextensionsalfresco.osgi.DefaultFrameworkManager.initialize(FrameworkManager.kt:61)
2017-10-19T07:27:43.304705763Z  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2017-10-19T07:27:43.304713507Z  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2017-10-19T07:27:43.304718970Z  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2017-10-19T07:27:43.304724250Z  at java.lang.reflect.Method.invoke(Unknown Source)
2017-10-19T07:27:43.304732479Z  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1544)
2017-10-19T07:27:43.304738450Z  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1485)
2017-10-19T07:27:43.304744165Z  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)
2017-10-19T07:27:43.304749882Z  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
2017-10-19T07:27:43.304755595Z  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
2017-10-19T07:27:43.304761273Z  at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
2017-10-19T07:27:43.304766767Z  at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
2017-10-19T07:27:43.304775546Z  at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
2017-10-19T07:27:43.304781084Z  at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
2017-10-19T07:27:43.304787764Z  at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
2017-10-19T07:27:43.304793556Z  at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
2017-10-19T07:27:43.304799278Z  at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
2017-10-19T07:27:43.304804969Z  at com.github.dynamicextensionsalfresco.osgi.OsgiContainerModuleComponent.initializeOsgiContainerApplicationContext(OsgiContainerModuleComponent.java:109)
2017-10-19T07:27:43.304810729Z  at com.github.dynamicextensionsalfresco.osgi.OsgiContainerModuleComponent.startFramework(OsgiContainerModuleComponent.java:96)
2017-10-19T07:27:43.304816331Z  at com.github.dynamicextensionsalfresco.osgi.OsgiContainerModuleComponent.executeInternal(OsgiContainerModuleComponent.java:56)
2017-10-19T07:27:43.304821841Z  at org.alfresco.repo.module.AbstractModuleComponent.execute(AbstractModuleComponent.java:353)
2017-10-19T07:27:43.304827308Z  at org.alfresco.repo.module.ModuleComponentHelper.executeComponent(ModuleComponentHelper.java:723)
2017-10-19T07:27:43.304832741Z  at org.alfresco.repo.module.ModuleComponentHelper.startModule(ModuleComponentHelper.java:642)
2017-10-19T07:27:43.304838231Z  at org.alfresco.repo.module.ModuleComponentHelper.access$500(ModuleComponentHelper.java:59)
2017-10-19T07:27:43.304843836Z  at org.alfresco.repo.module.ModuleComponentHelper$1$1.execute(ModuleComponentHelper.java:257)
2017-10-19T07:27:43.304849698Z  at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:457)
2017-10-19T07:27:43.304857853Z  at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:345)
2017-10-19T07:27:43.304863464Z  at org.alfresco.repo.module.ModuleComponentHelper$1.doWork(ModuleComponentHelper.java:278)
2017-10-19T07:27:43.304869844Z  at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:548)
2017-10-19T07:27:43.304875491Z  at org.alfresco.repo.module.ModuleComponentHelper.startModules(ModuleComponentHelper.java:207)
2017-10-19T07:27:43.304893576Z  at org.alfresco.repo.module.ModuleServiceImpl.startModules(ModuleServiceImpl.java:142)
2017-10-19T07:27:43.304901331Z  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2017-10-19T07:27:43.304909363Z  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2017-10-19T07:27:43.304916911Z  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2017-10-19T07:27:43.304923343Z  at java.lang.reflect.Method.invoke(Unknown Source)
2017-10-19T07:27:43.304929700Z  at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
2017-10-19T07:27:43.304936374Z  at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
2017-10-19T07:27:43.304944984Z  at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
2017-10-19T07:27:43.304953587Z  at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
2017-10-19T07:27:43.304960270Z  at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
2017-10-19T07:27:43.304966949Z  at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
2017-10-19T07:27:43.304973505Z  at com.sun.proxy.$Proxy120.startModules(Unknown Source)
2017-10-19T07:27:43.304980225Z  at org.alfresco.repo.module.ModuleStarter$1.execute(ModuleStarter.java:66)
2017-10-19T07:27:43.304986734Z  at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:457)
2017-10-19T07:27:43.304993310Z  at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:345)
2017-10-19T07:27:43.304999813Z  at org.alfresco.repo.module.ModuleStarter$2.doWork(ModuleStarter.java:76)
2017-10-19T07:27:43.305006164Z  at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:548)
2017-10-19T07:27:43.305012560Z  at org.alfresco.repo.module.ModuleStarter.onBootstrap(ModuleStarter.java:71)
2017-10-19T07:27:43.305020660Z  at org.springframework.extensions.surf.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:56)
2017-10-19T07:27:43.305027285Z  at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEventInternal(SafeApplicationEventMulticaster.java:209)
2017-10-19T07:27:43.305036650Z  at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEvent(SafeApplicationEventMulticaster.java:180)
2017-10-19T07:27:43.305043678Z  at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303)
2017-10-19T07:27:43.305054320Z  at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911)
2017-10-19T07:27:43.305060946Z  at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:428)
2017-10-19T07:27:43.305067543Z  at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
2017-10-19T07:27:43.305074093Z  at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
2017-10-19T07:27:43.305080583Z  at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
2017-10-19T07:27:43.305087226Z  at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:63)
2017-10-19T07:27:43.305093766Z  at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5016)
2017-10-19T07:27:43.305100026Z  at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5524)
2017-10-19T07:27:43.305106396Z  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
2017-10-19T07:27:43.305112810Z  at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
2017-10-19T07:27:43.305119161Z  at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
2017-10-19T07:27:43.305126714Z  at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649)
2017-10-19T07:27:43.305133087Z  at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1081)
2017-10-19T07:27:43.305139440Z  at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1877)
2017-10-19T07:27:43.305145894Z  at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
2017-10-19T07:27:43.305152249Z  at java.util.concurrent.FutureTask.run(Unknown Source)
2017-10-19T07:27:43.305158507Z  at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
2017-10-19T07:27:43.305165718Z  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
2017-10-19T07:27:43.305172341Z  at java.lang.Thread.run(Unknown Source)
2017-10-19T07:27:43.305179985Z Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.github.dynamicextensionsalfresco.webscripts.MessageConverterRegistry]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/springframework/http/converter/json/MappingJackson2HttpMessageConverter
2017-10-19T07:27:43.305187397Z  at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:141)
2017-10-19T07:27:43.305194027Z  at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:74)
2017-10-19T07:27:43.305203550Z  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:958)
2017-10-19T07:27:43.305210654Z  ... 104 more
2017-10-19T07:27:43.305216893Z Caused by: java.lang.NoClassDefFoundError: org/springframework/http/converter/json/MappingJackson2HttpMessageConverter
2017-10-19T07:27:43.305223549Z  at com.github.dynamicextensionsalfresco.webscripts.MessageConverterRegistry.<init>(MessageConverterRegistry.java:20)
2017-10-19T07:27:43.305230549Z  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
2017-10-19T07:27:43.305236936Z  at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
2017-10-19T07:27:43.305243207Z  at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
2017-10-19T07:27:43.305249600Z  at java.lang.reflect.Constructor.newInstance(Unknown Source)
2017-10-19T07:27:43.305255798Z  at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126)
2017-10-19T07:27:43.305262188Z  ... 106 more
2017-10-19T07:27:43.305268350Z Caused by: java.lang.ClassNotFoundException: org.springframework.http.converter.json.MappingJackson2HttpMessageConverter
2017-10-19T07:27:43.305277885Z  at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720)
2017-10-19T07:27:43.305284389Z  at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)
2017-10-19T07:27:43.305292717Z  ... 112 more
2017-10-19T07:27:43.306324972Z 2017-10-19 07:27:43,305  ERROR [dependencies.startup.DependencyWaiterApplicationContextExecutor] [localhost-startStop-1] Unable to create application context for [eu.xenit.de.control-panel], unsatisfied dependencies: none
2017-10-19T07:27:43.306345640Z  org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'messageConverterRegister': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.github.dynamicextensionsalfresco.webscripts.MessageConverterRegistry]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/springframework/http/converter/json/MappingJackson2HttpMessageConverter
2017-10-19T07:27:43.306355533Z  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:965)
2017-10-19T07:27:43.306364834Z  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:911)
2017-10-19T07:27:43.306385597Z  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
2017-10-19T07:27:43.306392529Z  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
2017-10-19T07:27:43.306399454Z  at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
2017-10-19T07:27:43.306411484Z  at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
2017-10-19T07:27:43.306418425Z  at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
2017-10-19T07:27:43.306425201Z  at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
2017-10-19T07:27:43.306436272Z  at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
2017-10-19T07:27:43.306449071Z  at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
2017-10-19T07:27:43.306456171Z  at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:60)
2017-10-19T07:27:43.306463124Z  at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:325)
2017-10-19T07:27:43.306469927Z  at org.eclipse.gemini.blueprint.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
2017-10-19T07:27:43.306480105Z  at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:290)
2017-10-19T07:27:43.306494062Z  at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:137)
2017-10-19T07:27:43.306966698Z  at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:48)
2017-10-19T07:27:43.306977535Z  at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageTwo(DependencyWaiterApplicationContextExecutor.java:311)
2017-10-19T07:27:43.306986729Z  at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:258)
2017-10-19T07:27:43.306995842Z  at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:177)
2017-10-19T07:27:43.307005196Z  at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:157)
2017-10-19T07:27:43.307014546Z  at org.eclipse.gemini.blueprint.extender.internal.activator.LifecycleManager$1.run(LifecycleManager.java:211)
2017-10-19T07:27:43.307023126Z  at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:48)
2017-10-19T07:27:43.307031511Z  at org.eclipse.gemini.blueprint.extender.internal.activator.LifecycleManager.maybeCreateApplicationContextFor(LifecycleManager.java:270)
2017-10-19T07:27:43.307041658Z  at org.eclipse.gemini.blueprint.extender.internal.activator.ContextLoaderListener$ContextBundleListener.handleEvent(ContextLoaderListener.java:223)
2017-10-19T07:27:43.307056515Z  at org.eclipse.gemini.blueprint.extender.internal.activator.ContextLoaderListener$BaseListener.bundleChanged(ContextLoaderListener.java:137)
2017-10-19T07:27:43.307280570Z  at org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:868)
2017-10-19T07:27:43.307294637Z  at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:789)
2017-10-19T07:27:43.307303133Z  at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:514)
2017-10-19T07:27:43.307311645Z  at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4403)
2017-10-19T07:27:43.307320257Z  at org.apache.felix.framework.Felix.startBundle(Felix.java:2092)
2017-10-19T07:27:43.307329046Z  at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:955)
2017-10-19T07:27:43.307337431Z  at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:942)
2017-10-19T07:27:43.307345891Z  at com.github.dynamicextensionsalfresco.osgi.DefaultFrameworkManager.startBundle(FrameworkManager.kt:195)
2017-10-19T07:27:43.307354451Z  at com.github.dynamicextensionsalfresco.osgi.DefaultFrameworkManager.startBundles(FrameworkManager.kt:187)
2017-10-19T07:27:43.307362852Z  at com.github.dynamicextensionsalfresco.osgi.DefaultFrameworkManager.initialize(FrameworkManager.kt:61)
2017-10-19T07:27:43.307371439Z  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2017-10-19T07:27:43.307533856Z  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2017-10-19T07:27:43.307570819Z  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2017-10-19T07:27:43.307580014Z  at java.lang.reflect.Method.invoke(Unknown Source)
2017-10-19T07:27:43.307588574Z  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1544)
2017-10-19T07:27:43.307597317Z  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1485)
2017-10-19T07:27:43.307606056Z  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)
2017-10-19T07:27:43.307686006Z  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
2017-10-19T07:27:43.307718433Z  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
2017-10-19T07:27:43.307726981Z  at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
2017-10-19T07:27:43.307735835Z  at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
2017-10-19T07:27:43.307745861Z  at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
2017-10-19T07:27:43.307814292Z  at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
2017-10-19T07:27:43.307827030Z  at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
2017-10-19T07:27:43.307863994Z  at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
2017-10-19T07:27:43.307873117Z  at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
2017-10-19T07:27:43.307882379Z  at com.github.dynamicextensionsalfresco.osgi.OsgiContainerModuleComponent.initializeOsgiContainerApplicationContext(OsgiContainerModuleComponent.java:109)
2017-10-19T07:27:43.307891420Z  at com.github.dynamicextensionsalfresco.osgi.OsgiContainerModuleComponent.startFramework(OsgiContainerModuleComponent.java:96)
2017-10-19T07:27:43.307900311Z  at com.github.dynamicextensionsalfresco.osgi.OsgiContainerModuleComponent.executeInternal(OsgiContainerModuleComponent.java:56)
2017-10-19T07:27:43.307909166Z  at org.alfresco.repo.module.AbstractModuleComponent.execute(AbstractModuleComponent.java:353)
2017-10-19T07:27:43.307919097Z  at org.alfresco.repo.module.ModuleComponentHelper.executeComponent(ModuleComponentHelper.java:723)
2017-10-19T07:27:43.307927577Z  at org.alfresco.repo.module.ModuleComponentHelper.startModule(ModuleComponentHelper.java:642)
2017-10-19T07:27:43.307935735Z  at org.alfresco.repo.module.ModuleComponentHelper.access$500(ModuleComponentHelper.java:59)
2017-10-19T07:27:43.307944050Z  at org.alfresco.repo.module.ModuleComponentHelper$1$1.execute(ModuleComponentHelper.java:257)
2017-10-19T07:27:43.308005646Z  at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:457)
2017-10-19T07:27:43.308014043Z  at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:345)
2017-10-19T07:27:43.308024041Z  at org.alfresco.repo.module.ModuleComponentHelper$1.doWork(ModuleComponentHelper.java:278)
2017-10-19T07:27:43.308034835Z  at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:548)
2017-10-19T07:27:43.308043621Z  at org.alfresco.repo.module.ModuleComponentHelper.startModules(ModuleComponentHelper.java:207)
2017-10-19T07:27:43.308052147Z  at org.alfresco.repo.module.ModuleServiceImpl.startModules(ModuleServiceImpl.java:142)
2017-10-19T07:27:43.308061667Z  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2017-10-19T07:27:43.308070082Z  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2017-10-19T07:27:43.308078580Z  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2017-10-19T07:27:43.308086761Z  at java.lang.reflect.Method.invoke(Unknown Source)
2017-10-19T07:27:43.308097195Z  at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
2017-10-19T07:27:43.308105817Z  at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
2017-10-19T07:27:43.308117532Z  at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
2017-10-19T07:27:43.308126154Z  at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
2017-10-19T07:27:43.308134624Z  at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
2017-10-19T07:27:43.308143186Z  at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
2017-10-19T07:27:43.308151662Z  at com.sun.proxy.$Proxy120.startModules(Unknown Source)
2017-10-19T07:27:43.308159892Z  at org.alfresco.repo.module.ModuleStarter$1.execute(ModuleStarter.java:66)
2017-10-19T07:27:43.308168315Z  at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:457)
2017-10-19T07:27:43.308335579Z  at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:345)
2017-10-19T07:27:43.308344875Z  at org.alfresco.repo.module.ModuleStarter$2.doWork(ModuleStarter.java:76)
2017-10-19T07:27:43.308353224Z  at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:548)
2017-10-19T07:27:43.308361484Z  at org.alfresco.repo.module.ModuleStarter.onBootstrap(ModuleStarter.java:71)
2017-10-19T07:27:43.308370913Z  at org.springframework.extensions.surf.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:56)
2017-10-19T07:27:43.308379789Z  at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEventInternal(SafeApplicationEventMulticaster.java:209)
2017-10-19T07:27:43.308388489Z  at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEvent(SafeApplicationEventMulticaster.java:180)
2017-10-19T07:27:43.308396946Z  at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303)
2017-10-19T07:27:43.308405464Z  at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911)
2017-10-19T07:27:43.308413849Z  at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:428)
2017-10-19T07:27:43.308422222Z  at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
2017-10-19T07:27:43.308430623Z  at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
2017-10-19T07:27:43.308439013Z  at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
2017-10-19T07:27:43.308451102Z  at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:63)
2017-10-19T07:27:43.308464667Z  at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5016)
2017-10-19T07:27:43.308472983Z  at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5524)
2017-10-19T07:27:43.308502884Z  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
2017-10-19T07:27:43.308513501Z  at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
2017-10-19T07:27:43.308522106Z  at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
2017-10-19T07:27:43.308530511Z  at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649)
2017-10-19T07:27:43.308538807Z  at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1081)
2017-10-19T07:27:43.308547305Z  at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1877)
2017-10-19T07:27:43.308556328Z  at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
2017-10-19T07:27:43.308564648Z  at java.util.concurrent.FutureTask.run(Unknown Source)
2017-10-19T07:27:43.308572829Z  at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
2017-10-19T07:27:43.308581030Z  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
2017-10-19T07:27:43.308589425Z  at java.lang.Thread.run(Unknown Source)
2017-10-19T07:27:43.308601445Z Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.github.dynamicextensionsalfresco.webscripts.MessageConverterRegistry]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/springframework/http/converter/json/MappingJackson2HttpMessageConverter
2017-10-19T07:27:43.308611021Z  at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:141)
2017-10-19T07:27:43.308619487Z  at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:74)
2017-10-19T07:27:43.308629394Z  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:958)
2017-10-19T07:27:43.308638320Z  ... 104 more
2017-10-19T07:27:43.308646670Z Caused by: java.lang.NoClassDefFoundError: org/springframework/http/converter/json/MappingJackson2HttpMessageConverter
2017-10-19T07:27:43.308655167Z  at com.github.dynamicextensionsalfresco.webscripts.MessageConverterRegistry.<init>(MessageConverterRegistry.java:20)
2017-10-19T07:27:43.308664173Z  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
2017-10-19T07:27:43.308672457Z  at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
2017-10-19T07:27:43.308680558Z  at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
2017-10-19T07:27:43.308688854Z  at java.lang.reflect.Constructor.newInstance(Unknown Source)
2017-10-19T07:27:43.308698537Z  at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126)
2017-10-19T07:27:43.308706913Z  ... 106 more
2017-10-19T07:27:43.308716295Z Caused by: java.lang.ClassNotFoundException: org.springframework.http.converter.json.MappingJackson2HttpMessageConverter
2017-10-19T07:27:43.308733446Z  at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720)
2017-10-19T07:27:43.308741903Z  at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)
2017-10-19T07:27:43.308750222Z  ... 112 more

@yregaieg
Copy link
Contributor

@VGkoen The newest features from Dynamic extensions (v1.7+) do rely on a rather newer spring dependencies than the ones shipped with alfresco 4.2.x.
You probably should use v1.6.0 with Alfresco 4.2.x code base.

@tgeens
Copy link
Contributor

tgeens commented Oct 19, 2017

DE 1.7+ depends on MappingJackson2HttpMessageConverter which was new in spring-web:3.1.2, while Alfresco 4.2 ships with spring-web:3.0.5

We could fix this by packaging these dependencies in DE itself with a fat-jar approach ?
Gradle plugin: http://imperceptiblethoughts.com/shadow/

@yregaieg
Copy link
Contributor

@tgeens I really do not think that to be the best approach. If we keep adding stuff like this into the addon we will eventually pollute it with stuff that might become deprecated/deleted in the future, and it would require a lot of effort to keep track of it, not to mention the potential conflict it could make.
If we are to support officially 4.2.x, then I think we should limit the new features depending on newer versions of alfresco libs to when the required classes do actually exist (we might, or not, on the other hand permit those dependencies to be embedded in an optional DE bundle / jar and rely on classpath isolation + the possibility to import a particular version of a library to solve the issue.)

@stanmine
Copy link
Contributor

Issue fixed in 1.7.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants