Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » lo4j properties with RCP and Spring
lo4j properties with RCP and Spring [message #461619] Sat, 13 January 2007 16:24 Go to next message
Eclipse User
Originally posted by: jelgolfnut.gmail.com

Please help....I've done the searches and haven't really come up with an
answer that works. I have the Spring framework in a separate plugin and
everything works except for Log4j. I have a properties file and an xml
file and neither are being located. I get the following message whenever
the app starts up.
log4j:WARN No appenders could be found for logger
(org.springframework.beans.factory.access.SingletonBeanFacto ryLocator).
log4j:WARN Please initialize the log4j system properly.

Which tells me it can't see the properties files....any suggestions?
Thanks
Re: lo4j properties with RCP and Spring [message #461629 is a reply to message #461619] Sun, 14 January 2007 20:50 Go to previous messageGo to next message
Ali Naddaf is currently offline Ali Naddaf
Messages: 85
Registered: July 2009
Member
See if something BuddyPolicy helps you:

http://www.hibernate.org/311.html


Ali.



JimL wrote:
> Please help....I've done the searches and haven't really come up with an
> answer that works. I have the Spring framework in a separate plugin and
> everything works except for Log4j. I have a properties file and an xml
> file and neither are being located. I get the following message
> whenever the app starts up.
> log4j:WARN No appenders could be found for logger
> (org.springframework.beans.factory.access.SingletonBeanFacto ryLocator).
> log4j:WARN Please initialize the log4j system properly.
>
> Which tells me it can't see the properties files....any suggestions?
> Thanks
>
Re: lo4j properties with RCP and Spring [message #461658 is a reply to message #461629] Mon, 15 January 2007 19:14 Go to previous messageGo to next message
Eclipse User
Originally posted by: jelgolfnut.gmail.com

Unless I'm missing something else, I seem to have the buddy policy setup.
My RCP app shows this in the manifest file:
Eclipse-RegisterBuddy: org.spring.springframework, my.support.database,
my.com.itext, Log4j

The plugin for spring shows:
Eclipse-BuddyPolicy: registered
Require-Bundle: org.apache.commons_logging,
org.apache.jakarta_log4j,
my.support.database, Log4j

and the plugin for Log4j shows:
Eclipse-BuddyPolicy: registered

There must be something else....any other suggestions?
Thanks!
Re: lo4j properties with RCP and Spring [message #461913 is a reply to message #461658] Thu, 18 January 2007 05:11 Go to previous messageGo to next message
Marko Topolnik is currently offline Marko Topolnik
Messages: 42
Registered: July 2009
Member
I've got almost the same scenario and it works for me. One thing I learned
the hard way: my log4j.properties file is located in the root directory of
the source code, meaning effectively that it is in the "default" package. So
I need to export this package. This cannot be done through the IDE's
manifest editor (it offers only the packages that contain classes), but
directly in the file MANIFEST.MF:

Export-Package: .,
other.packages

Maybe this helps?


"JimL" <jelgolfnut@gmail.com> wrote in message
news:6945af29a502299f01f3b397c72d97a8$1@www.eclipse.org...
> Unless I'm missing something else, I seem to have the buddy policy setup.
> My RCP app shows this in the manifest file:
> Eclipse-RegisterBuddy: org.spring.springframework, my.support.database,
> my.com.itext, Log4j
>
> The plugin for spring shows:
> Eclipse-BuddyPolicy: registered
> Require-Bundle: org.apache.commons_logging,
> org.apache.jakarta_log4j,
> my.support.database, Log4j
>
> and the plugin for Log4j shows:
> Eclipse-BuddyPolicy: registered
>
> There must be something else....any other suggestions?
> Thanks!
>
Re: lo4j properties with RCP and Spring [message #461996 is a reply to message #461913] Sat, 20 January 2007 14:36 Go to previous message
Eclipse User
Originally posted by: jelgolfnut.gmail.com

Unfortunately, that made no difference...I tried moving the log4j
properties file to the various packages and exporting the default path,
but no avail.

Obviously, I must have something subtle wrong, if someone that uses Spring
and Log4j could provide details about how they have it set up, maybe I can
work it out.
Previous Topic:Help on Eclipse Forms
Next Topic:WorkbenchAdvisor.preShutdown
Goto Forum:
  


Current Time: Thu Aug 21 02:29:40 EDT 2014

Powered by FUDForum. Page generated in 0.01896 seconds