Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Milan Kostoláni
Alfresco Integration
October 23, 2012 6:23 AM
Answer

Milan Kostoláni

Rank: Junior Member

Posts: 92

Join Date: July 26, 2012

Recent Posts

I am trying to integrate Alfresco 4.2a Community version to Liferay 6.1.1 GA2

1. Want to make Alfresco = Liferay Home

I have followed the blog
I have error when I start the server. It seems that there is a problem while deploying

  12012-10-23 12:59:55,263  WARN  [management.subsystems.LegacyConfigPostProcessor] [pool-2-thread-1] Legacy configuration detected: adding classpath*:alfresco/enterprise/cache/hibernate-cfg.properties to global-properties definition
  2 2012-10-23 13:00:00,699  INFO  [management.subsystems.ChildApplicationContextFactory] [pool-2-thread-1] Starting 'sysAdmin' subsystem, ID: [sysAdmin, default]
  3 2012-10-23 13:00:00,741  INFO  [management.subsystems.ChildApplicationContextFactory] [pool-2-thread-1] Startup of 'sysAdmin' subsystem, ID: [sysAdmin, default] complete
  4 Oct 23, 2012 1:00:09 PM org.activiti.engine.impl.ProcessEngineImpl <init>
  5INFO: ProcessEngine default created
  62012-10-23 13:00:13,611  INFO  [management.subsystems.ChildApplicationContextFactory] [pool-2-thread-1] Stopping 'sysAdmin' subsystem, ID: [sysAdmin, default]
  7 2012-10-23 13:00:13,612  INFO  [management.subsystems.ChildApplicationContextFactory] [pool-2-thread-1] Stopped 'sysAdmin' subsystem, ID: [sysAdmin, default]
  8 2012-10-23 13:00:13,618  ERROR [web.context.ContextLoader] [pool-2-thread-1] Context initialization failed
  9 org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [org.alfresco.repo.thumbnail.RegisteringThumbnailDefinition] for bean with name 'thumbnailDefinitionImgPreview' defined in class path resource [alfresco/mm-thumbnail-service-context.xml]: problem with class file or dependent class; nested exception is java.lang.UnsupportedClassVersionError: org/alfresco/repo/thumbnail/RegisteringThumbnailDefinition : Unsupported major.minor version 51.0 (unable to load class org.alfresco.repo.thumbnail.RegisteringThumbnailDefinition)
 10    at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1253)
 11    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:576)
 12    at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1319)
 13    at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:885)
 14    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:562)
 15    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
 16    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
 17    at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
 18    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
 19    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
 20    at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:63)
 21    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4779)
 22    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273)
 23    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
 24    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895)
 25    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871)
 26    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)
 27    at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:962)
 28    at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1603)
 29    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
 30    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
 31    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
 32    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 33    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 34    at java.lang.Thread.run(Thread.java:619)
 35Caused by: java.lang.UnsupportedClassVersionError: org/alfresco/repo/thumbnail/RegisteringThumbnailDefinition : Unsupported major.minor version 51.0 (unable to load class org.alfresco.repo.thumbnail.RegisteringThumbnailDefinition)
 36    at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2893)
 37    at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1170)
 38    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1678)
 39    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1556)
 40    at org.springframework.util.ClassUtils.forName(ClassUtils.java:257)
 41    at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:408)
 42    at org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1271)
 43    at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1242)
 44    ... 24 more
 45Oct 23, 2012 1:00:13 PM org.apache.catalina.core.StandardContext listenerStart
 46SEVERE: Exception sending context initialized event to listener instance of class org.alfresco.web.app.ContextLoaderListener
 47org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [org.alfresco.repo.thumbnail.RegisteringThumbnailDefinition] for bean with name 'thumbnailDefinitionImgPreview' defined in class path resource [alfresco/mm-thumbnail-service-context.xml]: problem with class file or dependent class; nested exception is java.lang.UnsupportedClassVersionError: org/alfresco/repo/thumbnail/RegisteringThumbnailDefinition : Unsupported major.minor version 51.0 (unable to load class org.alfresco.repo.thumbnail.RegisteringThumbnailDefinition)
 48    at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1253)
 49    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:576)
 50    at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1319)
 51    at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:885)
 52    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:562)
 53    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
 54    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
 55    at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
 56    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
 57    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
 58    at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:63)
 59    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4779)
 60    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273)
 61    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
 62    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895)
 63    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871)
 64    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)
 65    at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:962)
 66    at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1603)
 67    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
 68    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
 69    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
 70    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 71    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 72    at java.lang.Thread.run(Thread.java:619)
 73Caused by: java.lang.UnsupportedClassVersionError: org/alfresco/repo/thumbnail/RegisteringThumbnailDefinition : Unsupported major.minor version 51.0 (unable to load class org.alfresco.repo.thumbnail.RegisteringThumbnailDefinition)
 74    at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2893)
 75    at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1170)
 76    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1678)
 77    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1556)
 78    at org.springframework.util.ClassUtils.forName(ClassUtils.java:257)
 79    at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:408)
 80    at org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1271)
 81    at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1242)
 82    ... 24 more
 83Oct 23, 2012 1:00:13 PM org.apache.catalina.core.StandardContext listenerStart
 84SEVERE: Exception sending context initialized event to listener instance of class org.alfresco.web.app.ContextListener
 85org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [org.alfresco.repo.thumbnail.RegisteringThumbnailDefinition] for bean with name 'thumbnailDefinitionImgPreview' defined in class path resource [alfresco/mm-thumbnail-service-context.xml]: problem with class file or dependent class; nested exception is java.lang.UnsupportedClassVersionError: org/alfresco/repo/thumbnail/RegisteringThumbnailDefinition : Unsupported major.minor version 51.0 (unable to load class org.alfresco.repo.thumbnail.RegisteringThumbnailDefinition)
 86    at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1253)
 87    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:576)
 88    at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1319)
 89    at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:885)
 90    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:562)
 91    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
 92    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
 93    at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
 94    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
 95    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
 96    at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:63)
 97    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4779)
 98    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273)
 99    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
100    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895)
101    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871)
102    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)
103    at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:962)
104    at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1603)
105    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
106    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
107    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
108    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
109    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
110    at java.lang.Thread.run(Thread.java:619)
111Caused by: java.lang.UnsupportedClassVersionError: org/alfresco/repo/thumbnail/RegisteringThumbnailDefinition : Unsupported major.minor version 51.0 (unable to load class org.alfresco.repo.thumbnail.RegisteringThumbnailDefinition)
112    at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2893)
113    at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1170)
114    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1678)
115    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1556)
116    at org.springframework.util.ClassUtils.forName(ClassUtils.java:257)
117    at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:408)
118    at org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1271)
119    at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1242)
120    ... 24 more
121Oct 23, 2012 1:00:13 PM org.apache.catalina.core.StandardContext listenerStart
122SEVERE: Exception sending context initialized event to listener instance of class org.alfresco.repo.webdav.WebDAVSessionListener
123org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [org.alfresco.repo.thumbnail.RegisteringThumbnailDefinition] for bean with name 'thumbnailDefinitionImgPreview' defined in class path resource [alfresco/mm-thumbnail-service-context.xml]: problem with class file or dependent class; nested exception is java.lang.UnsupportedClassVersionError: org/alfresco/repo/thumbnail/RegisteringThumbnailDefinition : Unsupported major.minor version 51.0 (unable to load class org.alfresco.repo.thumbnail.RegisteringThumbnailDefinition)
124    at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1253)
125    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:576)
126    at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1319)
127    at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:885)
128    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:562)
129    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
130    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
131    at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
132    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
133    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
134    at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:63)
135    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4779)
136    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273)
137    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
138    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895)
139    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871)
140    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)
141    at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:962)
142    at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1603)
143    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
144    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
145    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
146    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
147    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
148    at java.lang.Thread.run(Thread.java:619)
149Caused by: java.lang.UnsupportedClassVersionError: org/alfresco/repo/thumbnail/RegisteringThumbnailDefinition : Unsupported major.minor version 51.0 (unable to load class org.alfresco.repo.thumbnail.RegisteringThumbnailDefinition)
150    at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2893)
151    at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1170)
152    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1678)
153    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1556)
154    at org.springframework.util.ClassUtils.forName(ClassUtils.java:257)
155    at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:408)
156    at org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1271)
157    at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1242)
158    ... 24 more


Is there any solution for this?

2. Adding Alfresco as new repository

I was trying to add new repository following this blog

How ever there is an error when adding repository
1Please verify your repository configuration parameters.


Can you tell me whats new in 6.1.1GA2 that I need to change
Alexander Chow
RE: Alfresco Integration
October 24, 2012 5:35 AM
Answer

Alexander Chow

Community Moderator

Rank: Liferay Master

Posts: 518

Join Date: July 19, 2005

Recent Posts

Hi Milan,

Sorry, but it seems like there is a problem on the Alfresco side of your configuration. So I'm not sure exactly how much help you can find on the Liferay forums.

I did a quick search and somebody on Alfresco's forums had a similar problem a few years back that they "fixed" by clearing the browser cache. Not sure if this is helpful for you.

But I think you should try to get Alfresco to work independently first, before trying to interconnect Liferay with it.

Cheers,
Alex
Milan Kostoláni
RE: Alfresco Integration
October 24, 2012 6:41 AM
Answer

Milan Kostoláni

Rank: Junior Member

Posts: 92

Join Date: July 26, 2012

Recent Posts

Hi Alex,

well I managed to do this: 1. setting up Alfresco
2. adding repository Alfresco and tested connection

I just had to change alfresco Tomcat from using 1.7 java to 1.6 according to this report

So I managed to do one thing at least.(anyway after I changed back to 1.7 and tested again, It was magically working now)


However it did not help the first problem, the same error appeared. As far as I know Alfresco is compiled on java 7, but Liferay on 6. So that might be problem, any idea how to make it work?
The error is occuring when it is deploying alfresco.war and share.war, maybe I have to open them and change smth to use java 6.. not sure.


Regards.
Alexander Chow
RE: Alfresco Integration
October 24, 2012 7:08 AM
Answer

Alexander Chow

Community Moderator

Rank: Liferay Master

Posts: 518

Join Date: July 19, 2005

Recent Posts

Liferay being compiled on 6 and Alfresco on 7 should not matter since we are communicating via AtomPub or WebServices. Moreover, the Alfresco ticket you have shown says that Alfresco 4.2+ needs to run on 7… so I don't know if you can actually successfully switch it to 6.
Milan Kostoláni
RE: Alfresco Integration
October 25, 2012 1:34 AM
Answer

Milan Kostoláni

Rank: Junior Member

Posts: 92

Join Date: July 26, 2012

Recent Posts

Im not totally sure if it even started to use AtomPub. I think that the error occurs when Liferay try to deploy the alfresco.war.
Did anyone try Alfresco 4.2.a Community version on Liferay 6.1.1 GA2 to confirm that the deployment was successful?

Thanks for responding Alex.