Tomcat and common loader

I spent twenty minutes last night trying to understand why the Tomcat delivered with the Livecycle Data Services installation works fine when the libraries for jotm are located in a subfolder of the common/lib. When I’ve installed a clean version of Tomcat and I copied the folder jotm into common/lib the classloader was not able to find them, and I did not had any explanation.

Finally I discovered that there is a parameter in catalina.properties denoted common.loader. By default the value is ${catalina.home}/lib,${catalina.home}/lib/*.jar, however in the first case it is  ${catalina.home}/lib,${catalina.home}/lib/*.jar,${catalina.home}/lib/activemq4.1.1/*.jar,${catalina.home}/lib/jotm2.0.10/*.jar,${catalina.home}/lib/lcds/*.jar . This parameter specifies all the paths for the common class loader.

2 Responses to “Tomcat and common loader”

  1. Dan Nelson Says:

    I had the same problem. In the release notes http://help.adobe.com/en_US/livecycle/8.2/lcds_installation.html#Tomcat, they do mention how to setup ActiveMQ in a similar way, but not really for jotm.

    Are you able to run the lcds-samples application from within eclipse? I can run it fine when I don’t start the server through eclipse, but when starting it from eclipse, I always get problems with the JOTM stuff.

  2. cornel Says:

    Yes, I’m able to do that. What is the error message in your case?

Leave a Reply