AnsweredAssumed Answered

Alfresco 3.4b + Liferay 6.0.6 Integration Problem

Question asked by heiner33 on Nov 3, 2011
Latest reply on Nov 9, 2011 by bwerner
Hallo Forum,

ich habe ein ähnliches bzw. identisches Problem wie hier bereits besprochen wurde:
https://forums.alfresco.com/de/viewtopic.php?f=7&t=702

leider komm ich trotzdem nicht zu einer Lösung, daher hoffe ich hier noch den entscheidenden Hinweis zu bekommen.

Ich will auf einem Windows XP Rechner Liferay laufen lassen und Alfresco integrieren.

Alfresco 3.4b (ich habe auch schon Alfresco 4.0b probiert, aber mit dem selben Ergebnis)
Liferay 6.0.6


Nach der Grundinstallation mit dem Alfresco 3.4.b Installer habe ich noch folgende Änderungen in Alfresco vorgenommen:

Die Datei     shared/classes/alfresco/alfresco-global.properties um folgenden Eintrag ergänzt:


authentication.chain=alfrescoNtlm1:alfrescoNtlm,external1:external
external.authentication.proxyUserName=

:?: Wie kann ich in der Windows version auf die entsprechende SQL DB zugreifen um hier zu überprüfen, ob alles korrekt angelegt wurde?  :?:

Danach starte ich Alfresco über die C:\Alfresco\tomcat\bin\startup.bat

Leider bekomme ich hier bereits folgende Fehlermeldungen im Tomcat Log


17:47:50,247  ERROR [management.subsystems.ChildApplicationContextFactory$ChildApplicationContext] Exception thrown from ApplicationListener handling
ContextClosedEvent
org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name 'permissionServiceImpl': Singleton bean creation not
allowed while the singletons of this factory are in destruction (Do not request a bean from a BeanFactory in a destroy method implementation!)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:209)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
        at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1008)
        at org.springframework.context.event.AbstractApplicationEventMulticaster.getApplicationListeners(AbstractApplicationEventMulticaster.java:132)

        at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:86)
        at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEvent(SafeApplicationEventMulticaster.java:87)
        at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:294)
        at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:296)
        at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:943)
        at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:917)
        at org.alfresco.repo.management.subsystems.ChildApplicationContextFactory$ApplicationContextState.stop(ChildApplicationContextFactory.java:642
)
        at org.alfresco.repo.management.subsystems.AbstractPropertyBackedBean.stop(AbstractPropertyBackedBean.java:485)
        at org.alfresco.repo.management.subsystems.AbstractPropertyBackedBean.destroy(AbstractPropertyBackedBean.java:357)
        at org.alfresco.repo.management.subsystems.ChildApplicationContextFactory.destroy(ChildApplicationContextFactory.java:327)
        at org.alfresco.repo.management.subsystems.AbstractPropertyBackedBean.destroy(AbstractPropertyBackedBean.java:342)
        at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:184)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:486)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:462)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:430)
        at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:977)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:424)
        at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:261)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:192)
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
        at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:63)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
        at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
        at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
        at org.apache.catalina.core.StandardService.start(StandardService.java:519)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
17:47:50,388  INFO  [management.subsystems.ChildApplicationContextFactory] Stopped 'thirdparty' subsystem, ID: [thirdparty, default]
17:47:50,419  INFO  [management.subsystems.ChildApplicationContextFactory] Stopping 'sysAdmin' subsystem, ID: [sysAdmin, default]
17:47:50,419  ERROR [management.subsystems.ChildApplicationContextFactory$ChildApplicationContext] Exception thrown from ApplicationListener handling
ContextClosedEvent
org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name 'indexerComponent': Singleton bean creation not allow
ed while the singletons of this factory are in destruction (Do not request a bean from a BeanFactory in a destroy method implementation!)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:209)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
        at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1008)
        at org.springframework.context.event.AbstractApplicationEventMulticaster.getApplicationListeners(AbstractApplicationEventMulticaster.java:132)

        at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:86)
        at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEvent(SafeApplicationEventMulticaster.java:87)
        at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:294)
        at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:296)
        at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:943)
        at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:917)
        at org.alfresco.repo.management.subsystems.ChildApplicationContextFactory$ApplicationContextState.stop(ChildApplicationContextFactory.java:642
)
        at org.alfresco.repo.management.subsystems.AbstractPropertyBackedBean.stop(AbstractPropertyBackedBean.java:485)
        at org.alfresco.repo.management.subsystems.AbstractPropertyBackedBean.destroy(AbstractPropertyBackedBean.java:357)
        at org.alfresco.repo.management.subsystems.ChildApplicationContextFactory.destroy(ChildApplicationContextFactory.java:327)
        at org.alfresco.repo.management.subsystems.AbstractPropertyBackedBean.destroy(AbstractPropertyBackedBean.java:342)
        at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:184)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:486)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:462)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:430)
        at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:977)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:424)
        at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:261)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:192)
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
        at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:63)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
        at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
        at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
        at org.apache.catalina.core.StandardService.start(StandardService.java:519)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
17:47:50,451  INFO  [management.subsystems.ChildApplicationContextFactory] Stopped 'sysAdmin' subsystem, ID: [sysAdmin, default]
17:47:50,482  ERROR [web.context.ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transformer.worker.OpenOffice' defined in file [C:\Alfresco\to
mcat\webapps\alfresco\WEB-INF\classes\alfresco\subsystems\OOoDirect\default\openoffice-transform-context.xml]: Invocation of init method failed; neste
d exception is java.lang.OutOfMemoryError: PermGen space
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1401)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:512)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:557)
        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:842)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:416)
        at org.alfresco.repo.management.subsystems.ChildApplicationContextFactory$ApplicationContextState.start(ChildApplicationContextFactory.java:62
4)
        at org.alfresco.repo.management.subsystems.AbstractPropertyBackedBean.start(AbstractPropertyBackedBean.java:458)
        at org.alfresco.repo.management.subsystems.AbstractPropertyBackedBean.onApplicationEvent(AbstractPropertyBackedBean.java:386)
        at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97)
        at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEvent(SafeApplicationEventMulticaster.java:78)
        at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:294)
        at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:858)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:419)
        at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:261)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:192)
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
        at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:63)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
        at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
        at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
        at org.apache.catalina.core.StandardService.start(StandardService.java:519)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: java.lang.OutOfMemoryError: PermGen space
        at java.lang.Class.getDeclaredConstructors0(Native Method)
        at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
        at java.lang.Class.getConstructor0(Class.java:2699)
        at java.lang.Class.getConstructor(Class.java:1657)
        at com.thoughtworks.xstream.XStream.dynamicallyRegisterConverter(XStream.java:660)
        at com.thoughtworks.xstream.XStream.setupConverters(XStream.java:543)
        at com.thoughtworks.xstream.XStream.<init>(XStream.java:375)
        at com.thoughtworks.xstream.XStream.<init>(XStream.java:320)
        at net.sf.jooreports.converter.XmlDocumentFormatRegistry.createXStream(XmlDocumentFormatRegistry.java:65)
        at net.sf.jooreports.converter.XmlDocumentFormatRegistry.load(XmlDocumentFormatRegistry.java:47)
        at net.sf.jooreports.converter.XmlDocumentFormatRegistry.<init>(XmlDocumentFormatRegistry.java:40)
        at org.alfresco.repo.content.transform.OpenOfficeContentTransformerWorker.afterPropertiesSet(OpenOfficeContentTransformerWorker.java:110)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1460
)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1398)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:512)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:557)
        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:842)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:416)
        at org.alfresco.repo.management.subsystems.ChildApplicationContextFactory$ApplicationContextState.start(ChildApplicationContextFactory.java:62
4)
        at org.alfresco.repo.management.subsystems.AbstractPropertyBackedBean.start(AbstractPropertyBackedBean.java:458)
        at org.alfresco.repo.management.subsystems.AbstractPropertyBackedBean.onApplicationEvent(AbstractPropertyBackedBean.java:386)
        at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97)
        at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEvent(SafeApplicationEventMulticaster.java:78)
        at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:294)
        at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:858)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:419)
        at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:261)
03.11.2011 17:47:50 org.apache.catalina.core.StandardContext start
SCHWERWIEGEND: Error listenerStart
03.11.2011 17:47:50 org.apache.catalina.core.StandardContext start
SCHWERWIEGEND: Context [/alfresco] startup failed due to previous errors
03.11.2011 17:47:51 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
SCHWERWIEGEND: A web application registered the JBDC driver [org.postgresql.Driver] but failed to unregister it when the web application was stopped.
To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
03.11.2011 17:47:51 org.apache.catalina.loader.WebappClassLoader clearReferencesStopTimerThread
SCHWERWIEGEND: A web application appears to have started a TimerThread named [Timer-1] via the java.util.Timer API but has failed to stop it. To preve
nt a memory leak, the timer (and hence the associated thread) has been forcibly cancelled.
03.11.2011 17:47:51 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SCHWERWIEGEND: A web application appears to have started a thread named [indexThread1] but has failed to stop it. This is very likely to create a memo
ry leak.
03.11.2011 17:47:51 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SCHWERWIEGEND: A web application appears to have started a thread named [indexThread2] but has failed to stop it. This is very likely to create a memo
ry leak.
03.11.2011 17:47:51 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SCHWERWIEGEND: A web application appears to have started a thread named [indexThread3] but has failed to stop it. This is very likely to create a memo
ry leak.
03.11.2011 17:47:51 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SCHWERWIEGEND: A web application created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@7f348f]) and a value of
type [org.apache.cxf.bus.CXFBusImpl] (value [org.apache.cxf.bus.CXFBusImpl@153d71d]) but failed to remove it when the web application was stopped. To
prevent a memory leak, the ThreadLocal has been forcibly removed.
03.11.2011 17:47:51 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SCHWERWIEGEND: A web application created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@14fcc45]) and a value of
type [org.alfresco.util.CachingDateFormat] (value [yyyy-MM-dd]) but failed to remove it when the web application was stopped. To prevent a memory lea
k, the ThreadLocal has been forcibly removed.
03.11.2011 17:47:51 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SCHWERWIEGEND: A web application created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@1ebcfea]) and a value of
type [com.ibatis.sqlmap.engine.mapping.result.ResultObjectFactoryUtil.FactorySettings] (value [com.ibatis.sqlmap.engine.mapping.result.ResultObjectFa
ctoryUtil$FactorySettings@1cd11da]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been f
orcibly removed.
03.11.2011 17:47:52 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SCHWERWIEGEND: A web application created a ThreadLocal with key of type [null] (value [com.sun.xml.bind.v2.ClassFactory$1@4f388e]) and a value of type
[java.util.WeakHashMap] (value [{class org.alfresco.repo.audit.model._3.RecordValue=java.lang.ref.WeakReference@3044f9, class org.alfresco.repo.audit
.model._3.PathMap=java.lang.ref.WeakReference@1006eec, class org.alfresco.repo.audit.model._3.DataExtractor=java.lang.ref.WeakReference@172738d, class
org.alfresco.repo.audit.model._3.PathMappings=java.lang.ref.WeakReference@10035e7, class org.alfresco.repo.audit.model._3.DataGenerator=java.lang.ref
.WeakReference@d2e2a4, class org.alfresco.repo.audit.model._3.Audit=java.lang.ref.WeakReference@11dafac, class org.alfresco.repo.audit.model._3.AuditP
ath=java.lang.ref.WeakReference@1f846cd, class org.alfresco.repo.audit.model._3.DataExtractors=java.lang.ref.WeakReference@f045f2, class javax.xml.bin
d.annotation.W3CDomHandler=java.lang.ref.WeakReference@803533, class org.alfresco.repo.audit.model._3.Application=java.lang.ref.WeakReference@124be18,
class org.alfresco.repo.audit.model._3.GenerateValue=java.lang.ref.WeakReference@13c2480, class org.alfresco.repo.audit.model._3.DataGenerators=java.
lang.ref.WeakReference@1805f85, class java.util.ArrayList=java.lang.ref.WeakReference@ff27ff}]) but failed to remove it when the web application was s
topped. To prevent a memory leak, the ThreadLocal has been forcibly removed.
03.11.2011 17:47:52 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SCHWERWIEGEND: A web application created a ThreadLocal with key of type [null] (value [com.sun.xml.bind.v2.runtime.Coordinator$1@1c61e31]) and a value
of type [com.sun.xml.bind.v2.runtime.Coordinator[]] (value [[Lcom.sun.xml.bind.v2.runtime.Coordinator;@1e85830]) but failed to remove it when the web
application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.


Nachdem ich Alfresco trotzdem starten und neue User usw anlegen kann, bin ich mir nicht sicher, wie wichtig diese Meldungen wirklich sind.

Die Liferay Installation verlief eigenltich auch unkompliziert wie hier beschrieben:
- http://www.youtube.com/watch?v=ypw7oCjUPKo
- http://wiki.alfresco.com/wiki/Install_Tomcat6 (Vorbereitung wegen Tomcat6)
- http://wiki.alfresco.com/wiki/Doclib_Portlet (Hier sind alle Einstellungen korrekt gesetzt!!)


Wenn ich Liferay starte und mich anmelde, sehe ich die neuen Portlets unter dem Reiter "Alfresco" und kann diese in eine neue Seite einfügen:
Sobald ich dies tue sieht man einen
"Portlet ist temporär nicht erreicbar" Hinweis

[attachment=0]Alfresco - Liferay - portlet nicht erreichbar.png[/attachment]

Im Logfile sind folgende Einträge zu sehen:



17:20:27,640 ERROR [PortletRequestDispatcherImpl:137] org.springframework.web.util.NestedServletException: Request processing failed; nested exception
is org.springframework.extensions.surf.exception.UserFactoryException: Unable to retrieve user from repository
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.extensions.surf.exception.User
FactoryException: Unable to retrieve user from repository
        at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:659)
        at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:552)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        ….
Caused by: org.springframework.extensions.surf.exception.UserFactoryException: Unable to create user - failed to retrieve user metadata:
        at org.springframework.extensions.surf.support.AlfrescoUserFactory.loadUser(AlfrescoUserFactory.java:177)
        … 215 more
17:20:27,765 ERROR [PortletServlet:96] javax.portlet.PortletException: org.springframework.web.util.NestedServletException: Request processing failed;
nested exception is org.springframework.extensions.surf.exception.UserFactoryException: Unable to retrieve user from repository
javax.portlet.PortletException: org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframewor
k.extensions.surf.exception.UserFactoryException: Unable to retrieve user from repository
        at com.liferay.portlet.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:139)
        at org.alfresco.web.portlet.ProxyPortlet.renderRequest(ProxyPortlet.java:292)
        at org.alfresco.web.portlet.ProxyPortlet.doView(ProxyPortlet.java:225)
        at org.alfresco.web.portlet.ProxyPortlet.render(ProxyPortlet.java:135)
        at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:101)
        …
Caused by: org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.extensions.surf.exc
eption.UserFactoryException: Unable to retrieve user from repository
        at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:659)
        at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:552)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
   

Ich habe also exakt das identische Verhalten wie im Thread https://forums.alfresco.com/de/viewtopic.php?f=7&t=702
beschrieben:
So das Problem ist jetzt, dass die Lösungsvorschläge, die im anderen Thread zu einer Lösung geführt haben bei mir nicht zur Lösung führen.

Also ich habe share-config-custom.xml
sowohl in Alfresco als auch in Liferay im Verzeichnis
C:\Alfresco\tomcat\shared\classes\alfresco\web-extension\share-config-custom.xml abgelegt

hier auch die entsprechenden Änderungen gemacht. Bei einigen ANleitungen sollte man, die Datei share-config-custom.xml.sample als Vorlage nehmen und nur die entsprechenden Bereiche auskommentieren und teilweise sagen die Anleitungen man soll eine neue Datei mit den Alfresco configs anlegen

ich hab beides probiert


….

   <!–
        Overriding endpoints to reference an Alfresco server with external SSO enabled
        NOTE: If utilising a load balancer between web-tier and repository cluster, the "sticky
              sessions" feature of your load balancer must be used.
        NOTE: If alfresco server location is not localhost:8080 then also combine changes from the
              "example port config" section below.
        *Optional* keystore contains SSL client certificate + trusted CAs.
        Used to authenticate share to an external SSO system such as CAS
        Remove the keystore section if not required i.e. for NTLM.
   –>
  
   <config evaluator="string-compare" condition="Remote">
      <remote>
         <keystore>
             <path>alfresco/web-extension/alfresco-system.p12</path>
             <type>pkcs12</type>
             <password>alfresco-system</password>
         </keystore>
        
         <connector>
            <id>alfrescoCookie</id>
            <name>Alfresco Connector</name>
            <description>Connects to an Alfresco instance using cookie-based authentication</description>
            <class>org.springframework.extensions.webscripts.connector.AlfrescoConnector</class>
         </connector>
        
         <endpoint>
            <id>alfresco</id>
            <name>Alfresco - user access</name>
            <description>Access to Alfresco Repository WebScripts that require user authentication</description>
            <connector-id>alfrescoCookie</connector-id>
            <endpoint-url>http://localhost:8080/alfresco/wcs/</endpoint-url>
            <identity>user</identity>
            <external-auth>true</external-auth>
         </endpoint>
      </remote>
   </config>
  
  
   <!– example port config used to access remote Alfresco server (default is 8080) –>
  
   <config evaluator="string-compare" condition="Remote">
      <remote>
         <endpoint>
            <id>alfresco-noauth</id>
            <name>Alfresco - unauthenticated access</name>
            <description>Access to Alfresco Repository WebScripts that do not require authentication</description>
            <connector-id>alfresco</connector-id>
            <endpoint-url>http://localhost:8080/alfresco/s/</endpoint-url>
            <identity>none</identity>
         </endpoint>

         <endpoint>
            <id>alfresco</id>
            <name>Alfresco - user access</name>
            <description>Access to Alfresco Repository WebScripts that require user authentication</description>
            <connector-id>alfresco</connector-id>
            <endpoint-url>http://localhost:8080/alfresco/s/</endpoint-url>
            <identity>user</identity>
            <external-auth>true</externa
         </endpoint>

         <endpoint>
            <id>alfresco-feed</id>
            <name>Alfresco Feed</name>
            <description>Alfresco Feed - supports basic HTTP authentication via the EndPointProxyServlet</description>
            <connector-id>http</connector-id>
            <endpoint-url>http://localhost:8080/alfresco/s/</endpoint-url>
            <basic-auth>true</basic-auth>
            <identity>user</identity>
         </endpoint>
      </remote>
   </config>
   

</alfresco-config>

Wichtig war hier der "/" hinter der URL, also "http://localhost:8080/alfresco/s/" anstatt "http://localhost:8080/alfresco/s" wie in den gefundenen Beschreibungen. Sonst bekomme ich beim aufrufen der URL im Browser bereits eine Fehlermeldung.

Hat jmd. noch eine weitere Idee?? Ich suche seit mehreren Tagen bereits nach einer Lösung.
Bin für jeden Tipp sehr dankbar.

P.S. folgendes habe ich auch probiert:
http://docs.liferay.com/portal/4.2/official/liferay-customization-guide-4.2.pdf S6ff
Im Verzeichnis  \liferay-portal-6.0.6\tomcat-6.0.29\shared\classes habe ich die Datei portal-ext.properties mit folgendem Inhalt angelegt:



##
## Alfresco Content Portlet
##
##
# Set this TO true to simulate single sign on for those who do not have a true SSO engine installed.
# This should never be set in production because of its inherent security hole.

#alfresco.content.one.step.edit.sso.simulate=false
alfresco.content.one.step.edit.sso.simulate=true

#Set this to the location of the Alfresco server URL.

alfresco.content.server.url=http://localhost:8080

Outcomes