Re: Dynamic Resources

2016-06-06 Thread Daniel Cunha
Romain +1 Hi Rafael, We go to some observations: 1) The example you are using is to Tomee 7.0.1-SNAPSHOT, ie the APIs used in this example are for Java EE 7 and not 6, it may cause some errors if you are using API 7 and trying deploy the war in Tomee 1.7.4. 2) I've seen that you are not setting

Re: Need help on setting up log4j.xml

2016-06-06 Thread Romain Manni-Bucau
it just loads it as a log4j.properties file so using log4j properties syntax it works. Romain Manni-Bucau @rmannibucau | Blog | Old Wordpress Blog | Github

Re: Need help on setting up log4j.xml

2016-06-06 Thread Dignesh
so you mean I can use the logging.properties for log4j configuration. -I assume that we need to add log4j.xml content in to logging.properties to achieve this ? Or Can you please provide me example of logging.properties which uses log4j.xml. -- View this message in context: http://tomee-o

Re: Dynamic Resources

2016-06-06 Thread Romain Manni-Bucau
Hi this error means you didn't set up the provider, ie this file: https://github.com/apache/tomee/blob/042d4d9fc647c32ee31c4c7455a4769817564340/examples/dynamic-datasource-routing/src/main/resources/META-INF/org.router/service-jar.xml Note that it is no more required and can be replaced in resour

Re: Need help on setting up log4j.xml

2016-06-06 Thread Romain Manni-Bucau
2016-06-06 10:35 GMT+02:00 Dignesh : > Thank you very much..It is working now. > > Is there any way we can eliminate adding the log4j.jar and log4j.xml in > tomee lib directory and generate logging.Because the way now it is working > is, we need them to be added in tomee lib directory. > Is there

Re: Need help on setting up log4j.xml

2016-06-06 Thread Dignesh
Thank you very much..It is working now. Is there any way we can eliminate adding the log4j.jar and log4j.xml in tomee lib directory and generate logging.Because the way now it is working is, we need them to be added in tomee lib directory. Is there any other way we can do by modifying the logging.