lo4j properties with RCP and Spring [message #461619] |
Sat, 13 January 2007 21:24 |
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 #461658 is a reply to message #461629] |
Tue, 16 January 2007 00:14 |
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 10:11 |
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 19:36 |
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.
|
|
|
Powered by
FUDForum. Page generated in 0.03935 seconds