• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Using log4j in glassfish

 
Greenhorn
Posts: 7
Hibernate Spring Redhat
  • Mark post as helpful
  • send pies
  • 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.
 
Bartender
Posts: 20828
125
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!