• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

Using log4j in glassfish

 
Greenhorn
Posts: 7
Hibernate Spring Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys,

I have a rest application in java, previously it deploy in tomcat but currently in glassfish.
The application implement log4j before and its work in tomcat,

Here is the config xml log4j



But in glassfish didn't work, it didn't produce any log file. How to work with log4j in glassfish env?

Many thanks.
 
Saloon Keeper
Posts: 23689
161
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My best guess is that the userid that Glassfish runs under lacks the necessary filesystem privileges to write that logfile.

That's something that I think should be reported in the Glassfish server log, though.
 
Arif Rakhman
Greenhorn
Posts: 7
Hibernate Spring Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Tim Holloway wrote:My best guess is that the userid that Glassfish runs under lacks the necessary filesystem privileges to write that logfile.

That's something that I think should be reported in the Glassfish server log, though.



Hi Tim, thanks for respond, i didn't find any error related filesystem, such as permission denied or something like that in server.log file and I had already granted the user "payara" (operating system user) to work with a directory that i mention in the xml file.
reply
    Bookmark Topic Watch Topic
  • New Topic