Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forumslo4j properties with RCP and Spring
https://www.eclipse.org/forums/index.php/mv/msg/146657/461619/#msg_461619
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]]>2007-01-13T21:24:24-00:00Re: lo4j properties with RCP and Spring
https://www.eclipse.org/forums/index.php/mv/msg/146657/461629/#msg_461629
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
>]]>Ali Naddaf2007-01-15T01:50:06-00:00Re: lo4j properties with RCP and Spring
https://www.eclipse.org/forums/index.php/mv/msg/146657/461658/#msg_461658
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!]]>2007-01-16T00:14:58-00:00Re: lo4j properties with RCP and Spring
https://www.eclipse.org/forums/index.php/mv/msg/146657/461913/#msg_461913
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!
>]]>Marko Topolnik2007-01-18T10:11:38-00:00Re: lo4j properties with RCP and Spring
https://www.eclipse.org/forums/index.php/mv/msg/146657/461996/#msg_461996
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.]]>2007-01-20T19:36:20-00:00