• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Using Log4j in Java Client
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: ERExtensions in Java-Client controller?
  • Next by Date: Re: Using Log4j in Java Client
  • Previous by thread: ERExtensions in Java-Client controller?
  • Next by thread: Re: Using Log4j in Java Client
  • Index(es):
    • Date
    • Thread