cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco SHARE NTLM + SSO is not working for 3.2r2

iseyfi
Champ in-the-making
Champ in-the-making
I recently downloaded the most recent version of Alfresco. I set it up with passthru and ldap. I then enabled ntml sso. Alfresco browser is correctly working. It authenticates users with out a problem. However Alfresco share is throwing the following exception every time I visit it.

java.lang.NullPointerException
   org.alfresco.web.framework.RemoteStoreModelObjectPersister.getCache(RemoteStoreModelObjectPersister.java:107)
   org.alfresco.web.framework.StoreModelObjectPersister.cacheGet(StoreModelObjectPersister.java:532)
   org.alfresco.web.framework.StoreModelObjectPersister.getObjectByPath(StoreModelObjectPersister.java:127)
   org.alfresco.web.framework.StoreModelObjectPersister.getObject(StoreModelObjectPersister.java:108)
   org.alfresco.web.framework.MultiModelObjectPersister.getObject(MultiModelObjectPersister.java:106)
   org.alfresco.web.framework.ModelObjectManager.getObject(ModelObjectManager.java:136)
   org.alfresco.web.site.Model.getObject(Model.java:513)
   org.alfresco.web.site.Model.getPage(Model.java:165)
   org.alfresco.web.site.SlingshotPageMapper.executeMapper(SlingshotPageMapper.java:188)
   org.alfresco.web.site.AbstractPageMapper.execute(AbstractPageMapper.java:62)
   org.alfresco.web.site.DefaultRequestContextFactory.newInstance(DefaultRequestContextFactory.java:109)
   org.alfresco.web.site.FrameworkHelper.initRequestContext(FrameworkHelper.java:202)
   org.alfresco.web.site.servlet.NTLMAuthenticationFilter.doFilter(NTLMAuthenticationFilter.java:147)


I followed the wiki to set this up. All I did was to uncomment the filter in web.xml and edit the \tomcat\shared\classes\alfresco\web-extension\webscript-framework-config-custom.xml as stated in the wiki.

I do not see any error when the share application is deployed.

I have been searching the forums and found out that https://issues.alfresco.com/jira/browse/ALFCOM-2579. There was a similar issue opened while back which is now closed. I am trying to figure out if Share 3.2r2 is suffering from the same issue. I tried to locate the RemoteStoreModelObjectPersister.java file in the public SVN repo but I could not. I cannot find a project called web-framework under projects directory.

thanks in advance.
28 REPLIES 28

boutch55555
Champ in-the-making
Champ in-the-making
I have exactly the same problem. I've been looking around for a fix for the previous week, and still can't find anything. I did more than 3 times a fresh install of 3.2r2, on linux (debian lenny) , from both the "regular" installer and the tomcat bundle, and the share SSO still won't work. It still works with the login when I rollback the changes from the wiki.

ivan_plestina
Champ in-the-making
Champ in-the-making
Check endpoint url in webscript-framework-config-custom.xml. Make sure it includes port if you are using default 8080.

dward
Champ on-the-rise
Champ on-the-rise
This was 'refixed' in ETHREEOH-3274, merged to HEAD in revision 17464.

dangruhn
Champ in-the-making
Champ in-the-making
I am new to Alfresco, but I believe I am having the same problem in 3.2r2.

Dward, when you say "This was 'refixed' in ETHREEOH-3274, merged to HEAD in revision 17464", are you saying it should be in the 3.2r2 community download (I have release_community_build-2440_Alfresco-Community-3.2r2-Linux-x86-Install and Alfresco-Community-3.2r2-Linux-x86-Install, which are both the same)  or that I need to get it directly from a repository?

If from a repository, a link to instructions would be appreciated.  Also, I'd like to see more detailed debugging information but haven't yet found the file to change.  Would some one please help with that (plus which output file to look at)?

Thanks

I am using:
Java 1.6.0_18
tomcat 6.0.18
MySQL 5.1.42
CentOS 5.4

benswitzer
Champ in-the-making
Champ in-the-making
Dward, when you say "This was 'refixed' in ETHREEOH-3274, merged to HEAD in revision 17464", are you saying it should be in the 3.2r2 community download (I have release_community_build-2440_Alfresco-Community-3.2r2-Linux-x86-Install and Alfresco-Community-3.2r2-Linux-x86-Install, which are both the same) or that I need to get it directly from a repository?

Hi DanGruhn.

No, the fix is not in 3.2r2.  The build number for 3.2r2 is 17458.  The build numbers can be found in the release notes for each release.  You can get the fix a couple of different ways.  One would be to grab a nightly build from http://dev.alfresco.com/downloads/nightly/dist/ or grab the code from the svn repository and build yourself.  Or lastly, wait for 3.3.  All depends on your comfort and skill levels.

Ben

slagou
Champ in-the-making
Champ in-the-making
Hi I am desperately trying to get this to work and having no luck.

I have the main alfresco site working with SSO and AD, but the share site will not run with the exact error reported here.

I downloaded the latest build as suggested : http://dev.alfresco.com/downloads/nightly/dist/Alfresco-Community-3.3dev-Full-Setup.exe

Using Windows Server 2k3  this produces multiple exceptions without any configuration changes apart from the settings applied during the installer.

I then attempted to patch the share code using this Download:
http://wiki.alfresco.com/w/images/2/2c/WebFrameworkConnectorProvider_Share_NTLMfix_Labs3E.zip
As suggested in this thread http://forums.alfresco.com/en/viewtopic.php?f=47&t=16472&st=0&sk=t&sd=a&start=30

Still the same exception and error page on the share site.

I need to get this working for my client, and I recommended alfresco to him over sharepoint as the features list on your site listed AD integration.

Is there any possibility of getting a patched class posted here for 3.2r? or any other help or suggestion?

I am not trying todo anything crazy, I just need a vanilla install that will work with an AD servers existing users.

dangruhn
Champ in-the-making
Champ in-the-making
I downloaded the development 3.3 from Jan 14, 2010 and eventually got this working.  However, not unexpectedly I was getting problems with missing files in tomcat/webapps/share/WEB-INF/classes/alfresco:

    webscript-framework-application-context.xml
    web-framework-application-context.xml
    web-framework-model-context.xml
I copied over versions from my saved 3.2r2 and then got this:


11:22:24,869 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.alfresco.config.source.UrlConfigSource] for bean with name 'web.configsource' defined in class path resource [alfresco/webscript-framework-application-context.xml]; nested exception is java.lang.ClassNotFoundException: org.alfresco.config.source.UrlConfigSource
   at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1208)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:568)
   at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1277)
   at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:844)
   at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:539)
   at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:842)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:416)
   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.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
   at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
   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:525)
   at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:830)
   at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:719)
   at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
   at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
   at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
   at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
   at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
   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:516)
   at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
   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:288)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: java.lang.ClassNotFoundException: org.alfresco.config.source.UrlConfigSource
   at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
   at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
   at org.springframework.util.ClassUtils.forName(ClassUtils.java:258)
   at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:408)
   at org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1229)
   at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1200)
   … 33 more

I'm lost here.  Most things seem to be working but I don't know if there is something lurking to bite me at some point. A patched class for 3.2r2 sound like a great idea to me.

slagou
Champ in-the-making
Champ in-the-making
I agree, there was a Patched class posted in this thread: http://forums.alfresco.com/en/viewtopic.php?f=47&t=16472&st=0&sk=t&sd=a&start=30
With the download here : http://wiki.alfresco.com/w/images/2/2c/WebFrameworkConnectorProvider_Share_NTLMfix_Labs3E.zip

But the thread is a year old so I assume it was setup to work with an older build. 

I am sure I patched the correct Jar in the correct path but got the same error, could anybody confirm this?

Also maybe a developer could post a link to the correctly patched version of the one java source file from SVN, I could compile myself and just patch the 1 class file.

xana_cloete
Champ in-the-making
Champ in-the-making
I've installed 3.2r2 build 2440
I managed to get auth and sync working but ever since then I've been getting the same message as above.

Has there been any resolution to this problem.

Thanks.