Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
New Tomcat init script does not respect catalina.properties
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
jrevi
Tux's lil' helper
Tux's lil' helper


Joined: 08 Sep 2005
Posts: 78

PostPosted: Tue Dec 11, 2012 11:13 am    Post subject: New Tomcat init script does not respect catalina.properties Reply with quote

Hi,

According to http://wiki.gentoo.org/wiki/Apache_Tomcat , a lot of work has been done in the Tomcat installation. Providing a way to have many instances is really good but the new init script does not respect anymore the catalina.properties file variables. In the later, by default, for tomcat-6 we have:

Code:
#
#
# List of comma-separated paths defining the contents of the "common"
# classloader. Prefixes should be used to define what is the repository type.
# Path may be relative to the CATALINA_HOME or CATALINA_BASE path or absolute.
# If left as blank,the JVM system loader will be used as Catalina's "common"
# loader.
# Examples:
#     "foo": Add this folder as a class repository
#     "foo/*.jar": Add all the JARs of the specified folder as class
#                  repositories
#     "foo/bar.jar": Add bar.jar as a class repository
common.loader=${catalina.base}/lib,${catalina.base}/lib/*.jar,${catalina.home}/lib,${catalina.home}/lib/*.jar


But in fact, with the new init script, the common classpath is generated from the output of:

Code:
CLASSPATH=`java-config --classpath tomcat-6${TOMCAT_EXTRA_JARS:+,${TOMCAT_EXTRA_JARS}}`


I think this is not good. We need to add many jars and configuration files in the '${catalina.base}/lib' in order to make our application working and the only way I found to do that is to add the following line in the /etc/conf.d/tomat-6 file:

Code:
TOMCAT_EXTRA_CLASSPATH="$(ls -d -1 /usr/share/tomcat-6/lib/*.jar |tr '\n' ':')/usr/share/tomcat-6/lib"


Wouldn't it be good to respect the Tomcat configuration files ?

Best
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum