This week's book giveaways are in the AI and JavaScript forums.
We're giving away four copies each of GANs in Action and WebAssembly in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of GANs in ActionE this week in the AI forum
or WebAssembly in Action in the JavaScript forum!
  • 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 ...
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Joe Ess
  • salvin francis
  • fred rosenberger

log4j on server not logging

Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,

I created a sample client call in eclipse with a wsdl service entry that points to my development jboss instance. This is not my localhost, it's the actual jboss running on a unix server. I added log4j logging and all works well. I get log entries in my log folder (not the same location as the server.log folder) when I make the call using my test client.

The issue is when a user makes a call. There is no log file created. Also, there are no errors in any of the JBoss logs.

If I'm hitting the same exact war file on my development (unix) server, how come I get logs and nobody else can? They are using soapUI to generate the call and I'm using a pojo client call.

Could it be some type of permissions issue? The folder where the log file is being written to has full permissions, so I'm stumped.

Please help.

Posts: 5856
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you absolutely, positively, certain that you are using the same URL that the other user is using?

The only two reasons I can think of:
a) the web service you are calling has logging turned on while the web server the other user is calling doesn't (check the logger settings in the log4j config file)
b) you are invoking a completely different application that the other user is, and each application is configured differently

My vote is with B. I've done that often enough...

By the way, which version of JBoss AS.
C Weaver
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Turns out it was a user (me) issue. I renamed the log file and added the current date to the end of the file. I wanted a fresh log to watch when the user hit our system. Turns out, JBoss does not like that very much. It found the log file and continues to log in the old file.

I thought it would just create a new log file when the old one was gone. Silly me.
Get off me! Here, read this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!