AnsweredAssumed Answered

Custom classes not loaded

Question asked by kamielvdz on Jun 1, 2011
Latest reply on Jun 10, 2011 by loftux
I have created a few custom classes which I want alfresco to load from /shared/classes/{customClassesPath} and not from /alfresco/WEB-INF/classes/{customClassesPath}. The main reason being alfresco explorer, share and other custom webapps should load the same custom class file(s) from one location.

The tomcat webapp does not seem to pick up these shared classes even though I have set
shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/lib/*.jar
in catalina.properties.

Am I wrong to assume that alfresco should pick up these classes and load them as if they were in /alfresco/WEB-INF/classes/ ? For my share webapp it does work and it is the same tomcat installation so it is puzzling me.

I tried wrapping them in jar files and putting them in /shared/lib, but got the same result. Does work for share does not work for alfresco explorer.

Outcomes