You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by Yousef Herzallah <yo...@infocamere.it> on 2012/11/07 14:55:34 UTC
enhance tomEE lib folder structure!
Hi,
it's will be great to be ready in the official version of *TomEE*. in
that way i don't have to update every time the file *catalina.properties
&* *catalina.policy*.
in that way i don't mix my lib as MySql driver, oracle driver, hibernate
or what ever with *TomEE* library.
in the file *tomee-webprofile-1.5.0/conf/catalina.policy *i just add
these permission
*// These permissions apply to the extensions API classes **
**grant codeBase "file:${catalina.home}/lib/ext/-" {**
** permission java.security.AllPermission;**
**};*
under
/// These permissions apply to the servlet API classes//
//// and those that are shared across all class loaders//
//// located in the "lib" directory//
//grant codeBase "file:${catalina.home}/lib/-" {//
// permission java.security.AllPermission;//
//};//
/
and in the file *tomee-webprofile-1.5.0/conf/catalina.properties*
i just add *${catalina.home}/lib/ext/*.jar* in common.loader
# 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,*${catalina.home}/lib/ext/*.jar*
Ciao
Yousef
--
Yousef Herzallah
Tel: 8735