Using Log4j in Java Client
Using Log4j in Java Client
- Subject: Using Log4j in Java Client
- From: Ian Joyner <email@hidden>
- Date: Tue, 6 Jun 2006 12:50:43 +1000
Problem: The client side of an app is not finding class Logger:
Exception in thread "AWT-EventQueue-0"
java.lang.NoClassDefFoundError: org/apache/log4j/Logger
at MyApp.client.Main_interface_controller.<clinit>
(Main_interface_controller.java:58)
Offending line 58 is:
protected static final Logger log = Logger.getLogger
(Main_interface_controller.class);
I have included both ERJars.framework (from Wonder) and
log4j-1.2.8.jar in my frameworks group and they are included in both
Application Server and WebServer targets.
One solution:
Putting the line:
LOCALROOT/Library/Frameworks/ERJars.framework/Resources/Java/
log4j-1.2.8.jar
into ClasspathClient.txt in the .woa package fixes the problem, but
the question is, how do I make Xcode include the line automatically?
Thanks
Ian
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden