Hi all, I posted this on the glassfish user mailing list and they suggested adding a jar file that contains the log4j.properties to the ear.
This solution works, although the log file is created in the config directory for the domain. Im awating an answer on this problem. Thanks for your help. Ben On 6/8/06, Wayne Fay <[EMAIL PROTECTED]> wrote:
I have a src/main/resources/META-INF directory which includes application.xml, jazn-data.xml, and orion-application.xml. Those files are included in my EAR in the my.ear!META-INF/ directory. My app server (Oracle OAS / OC4J) uses those files to configure security and other j2ee parameters which apply to all artifacts contained within the EAR. Really you need to find out how Glassfish likes to find the log4j file and include the file in that particular location -- app servers are all generally the same but very different in some ways. Wayne On 6/8/06, Stephane Nicoll <[EMAIL PROTECTED]> wrote: > Hi, > > If you want to bootsrap log4j, you'll need to put it in the root of a > JAR file included in your EAR. > > EAR is just an "artifacts container", i.e. it just contains librarries > (ejb, jar, etc). Adding single resources file is not forseen (even if > app server have custom solutions such as the APP-INF/classes with WLS) > > HTH, > Stéphane > > On 6/7/06, ben short <[EMAIL PROTECTED]> wrote: > > Hi, > > > > Where do I have to put my log4j.properties file in a ear file for it to be used? > > > > I have tried adding it to /src/main/resources but it dosent get picked > > up on the app server. > > > > Ben > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > .::You're welcome ::. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]