cancel
Showing results for 
Search instead for 
Did you mean: 

How to deploy a new jar file into Alfresco 3

chaibi
Champ in-the-making
Champ in-the-making
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
2 REPLIES 2

ditmgl
Champ in-the-making
Champ in-the-making
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.

mavericks
Champ in-the-making
Champ in-the-making
Great tips, this solution work fine, thanks very much.  Smiley Very Happy
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.