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

jforde
Champ in-the-making
Champ in-the-making
Okay so I'm confused I've downloade both files, the .patch and the .zip and I uncompressed the zip and put it in the following location tomcat\shared\classes\org\alfresco\web\framework. I've restarted the server and still no luck. Do I need to define where this file is in some web.xml or something?

dangruhn
Champ in-the-making
Champ in-the-making
I am also confused.  I have a 3.2r2 on CentOS 5.4, installed from Alfresco-Community-3.2r2-Linux-x86-Install and I would have thought I would already have

…/org/alfresco/web/framework/RemoteStoreModelObjectPersister.class

but with the current bug.  However, I don't see the class file anywhere in the alfresco installation.  Is this class new?

dangruhn
Champ in-the-making
Champ in-the-making
Okay, I've found the class inside of two jar files:

tomcat/webapps/mobile/WEB-INF/lib/alfresco-web-framework-3.2r2.jar
     2975  11-12-09 16:50   org/alfresco/web/framework/RemoteStoreModelObjectPersister.class

and

tomcat/webapps/share/WEB-INF/lib/alfresco-web-framework-3.2r2.jar
     2975  11-12-09 16:50   org/alfresco/web/framework/RemoteStoreModelObjectPersister.class

Since kevinr mentioned Share, it looks like it should at least go in that jar.  Should it be replaced in the mobile one as well?

mikeh
Star Contributor
Star Contributor
Should it be replaced in the mobile one as well?
If you can get NTLM running on the iPhone 😉

Mike

warlockvix
Champ in-the-making
Champ in-the-making
Running into the same problem as above users. I'm using 3.2r2 on W2k3 Standard Server w/SP2. I'm fairly new to Alfresco so I haven't played with it much except to configure it with passthru and ldap. While the Alfresco explorer works great, accessing the Alfresco Share generates the following -

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)

So I downloaded the patch, unzipped the file, retained the directory structure and threw it under "$TOMCAT_HOME$/shared/classes". I also added it to the alfresco-web-framework-3.2r2.jar file. However I am still getting the above error. Should I be doing something with the sharesso.patch file as well?

dward
Champ on-the-rise
Champ on-the-rise
Can you try unzipping the patch to $TOMCAT_HOME/webapps/share/WEB-INF/classes

?

I think that the 'child first' classloading behaviour of Tomcat 6 may mean that the shared/classes idea may not work.

warlockvix
Champ in-the-making
Champ in-the-making
Nice. The Alfresco Share is back. Thank you.

iseyfi
Champ in-the-making
Champ in-the-making
thanks for all of the posts. I am now able to use NTLM + SSO on port 8080. Whenever I switch to using Apache with mod_jk or mod_proxy, it stops working in IE and Safari. It works fine in firefox. When I tail the apache logs I see that at least i safari it is throwing bunch of 401s. It feels it is recursive and it eventually ends up with an error of too many files being open. With IE It does not even get this far, IE almost immediately display a this page cannot be displayed message.

I have looked around and the apache configuration. I am not really sure why this is not working on IE and Safari but working fine in FireFox. I am guessing it has to do how these broswers handling certain protocols. Does anyone have any guidance on this subject?

thanks

kevinr
Star Contributor
Star Contributor
I can confirm that NTLM SSO is working for Alfresco 3.3 + Share in 3.3 community.
Here is the updated config: http://wiki.alfresco.com/wiki/Alfresco_Authentication_Subsystems#Alfresco_Share_SSO_using_NTLM

Cheers,

Kev