Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

log4j Websphere

Status
Not open for further replies.

sqoti

Programmer
Dec 1, 2000
50
US
I can run a java application without a server using eclipse ide and log4j will send emails as setup in a log4j.properties file. When I try to run the application on a Server however the emails are not sent. I have googled this problem all day and can't seem to find a reason behind this. Thanks for any help.
 
I don't understand. A Java application (J2SE) has a main method and is executed standalone. When you talk about a server, is it an application server or a bigger machine? What errors are you getting?

Cheers,
Dian
 
In the RAD(Rational Application Development) ide run on eclipse I have a web application project. Yes, there are some classes that have a main method with log.error, log.debug, etc. I can run these java classes standalone in the IDE with out running them on a server and the emails get sent out...no problem...Once I run the entire project on a server(WebSphere Application Server) and also have log statements, the emails do not get sent out. I don't understand the differences...There are no errors being outputted to indicate a problem....Howver the difference in the console output is this...

standalone....(email gets sent to me)

DEBUG 2011-03-10 09:11:33,865 LogClass - Debug is enabled
INFO 2011-03-10 09:11:33,880 LogClass - Info is enabled
WARN 2011-03-10 09:11:33,880 LogClass - Warn
ERROR 2011-03-10 09:11:33,880 LogClass - Error
FATAL 2011-03-10 09:11:34,787 LogClass - Fatal

server.....(No emails are sent)
[3/10/11 9:12:05:369 CST] 00000024 SystemOut O DEBUG 2011-03-10 09:12:05,369 LogTester - Debug is enabled
[3/10/11 9:12:05:369 CST] 00000024 SystemOut O INFO 2011-03-10 09:12:05,369 LogTester - Info is enabled
[3/10/11 9:12:05:369 CST] 00000024 SystemOut O WARN 2011-03-10 09:12:05,369 LogTester - Warn
[3/10/11 9:12:05:369 CST] 00000024 SystemOut O ERROR 2011-03-10 09:12:05,369 LogTester - Error
[3/10/11 9:12:05:369 CST] 00000024 SystemOut O FATAL 2011-03-10 09:12:05,369 LogTester - Fatal
 
I get you have in your RAD a test application server like WebSphere Test Environment, JBoss or something like that.

I'd take look at the configuration files, specially the SMTP parameters and the log4j configuration.

Cheers,
Dian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top