Re: Using Log4j in Java Client
Re: Using Log4j in Java Client
- Subject: Re: Using Log4j in Java Client
- From: David Griffith <email@hidden>
- Date: Tue, 6 Jun 2006 10:58:38 +0200
- Resent-date: Tue, 6 Jun 2006 10:59:15 +0200
- Resent-from: David Griffith <email@hidden>
- Resent-message-id: <email@hidden>
- Resent-to: WebObjects-Dev Apple <email@hidden>
Hi Ian,
All those problems sound like they might be a CLASSPATH issue. Check
the Classpath on whatever platform you are using and make sure it has
a reference to /opt/Apple or whatever directory contains the apple
frameworks, on Mac I think it's /Library/Frameworks/, on Linux I
think it's /opt/apple/. That might be the problem.
Kind regards,
David.
On 6 Jun 2006, at 04:50, Ian Joyner wrote:
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:
40infinityspain.com
This email sent to email@hidden
_______________________________________________
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