How to deploy a new jar file into Alfresco 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2009 09:54 AM
Hi,
I followed this link http://wiki.alfresco.com/wiki/LDAP-CIFS_on_Alfresco_Enterprise_v3.0.0 to customize LDAP authentication implementation to support CIFS but when i deployed the jar file in tomcat/webapps/alfresco/WEB-INF/lib/ the loader don't load it :
Error loading class [LDAPAuthenticationComponentImpl] for bean with name 'authenticationComponent' defined in file [/opt/Alfresco-3.1/l bs/tomcat/shared/classes/alfresco/extension/ldap-authentication-context.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: LDAPAuthenticationComponentImpl (wrong name: com/company/repo/security/authentication/ldap/LDAPAuthenticationComponentImpl)
Think you for any help
I followed this link http://wiki.alfresco.com/wiki/LDAP-CIFS_on_Alfresco_Enterprise_v3.0.0 to customize LDAP authentication implementation to support CIFS but when i deployed the jar file in tomcat/webapps/alfresco/WEB-INF/lib/ the loader don't load it :
Error loading class [LDAPAuthenticationComponentImpl] for bean with name 'authenticationComponent' defined in file [/opt/Alfresco-3.1/l bs/tomcat/shared/classes/alfresco/extension/ldap-authentication-context.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: LDAPAuthenticationComponentImpl (wrong name: com/company/repo/security/authentication/ldap/LDAPAuthenticationComponentImpl)
Think you for any help
Labels:
- Labels:
-
Archive
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2009 11:17 AM
If your problem is that you put a new .jar in Alfresco/web-inf/lib/ and Alfresco doesn´t read it, I´ll sugest a little solution:
1) Pick an existing jar file from alfresco and make a copy.
2) Use winrar and insert your clases into the copied jar.
3) Delete the original Alfresco´s files from the copied jar.
4) rename it and move the jar file to Alfresco/web-inf/lib/.
I know that its a bit extrange solution, but it worked for me when I had the same problem.
I hope this will help you.
1) Pick an existing jar file from alfresco and make a copy.
2) Use winrar and insert your clases into the copied jar.
3) Delete the original Alfresco´s files from the copied jar.
4) rename it and move the jar file to Alfresco/web-inf/lib/.
I know that its a bit extrange solution, but it worked for me when I had the same problem.
I hope this will help you.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2009 06:12 PM
Great tips, this solution work fine, thanks very much.

