AnsweredAssumed Answered

Accessing Alfresco from another Tomcat container

Question asked by hbf on Nov 19, 2007
Latest reply on Nov 26, 2007 by hbf

Does anyboy know how to set up a second webapp in Alfresco's Tomcat installation that accesses Alfresco?

My goal is to run Alfresco and Tapestry on the same Tomcat installation.

For this, I followed the instructions to tie Alfresco's Spring application context into my Tapestry webapp.

I think the approach would work but unfortunately, in order to access Alfresco (via the Spring framework) I need to have the Alfresco-jars (including Spring) from webapps/alfresco/WEB-INF/lib/ in tomcat/shared/lib. Otherwise I get an ClassNotFoundException:

java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener

However, if I just move the jars, it does not work either (I guess that some duplication takes place)!

What is the best way to share Alfresco's jars with another webapp?

I have not enough experience with tomcat, but could it be that changing "shared.loader" in tomcat/conf/ to include webapps/alfresco/WEB-INF/lib helps?

Am completely lost here and would be very glad to receive some help!

Many thanks,