Re: JDBC appender not working

2017-08-09 Thread Michael Carman
;t when running a build) That said, I thought I had everything configured in a way that would work. I can't very well inject an import into the log4j *.jar, so how does one define a connection factory in a way that log4j can find it? On Wed, Aug 9, 2017 at 3:56 PM Michael Carman wrote: &

Re: JDBC appender not working

2017-08-09 Thread Michael Carman
" and > also on the command line with "-Dlog4j.debug=true" (but I think this last > one might only work in 2.9-SNAPSHOT) > > Gary > > On Wed, Aug 9, 2017 at 12:16 PM, Michael Carman < > michael.j.car...@gmail.com> > wrote: > > > I'm having a

JDBC appender not working

2017-08-09 Thread Michael Carman
I'm having an odd problem and don't know where to look for troubleshooting purposes. I have an Eclipse RCP application. I'm attempting to transition logging from a file to a database (Oracle). When running my application via Eclipse events are logged to the database as expected. When running my ap

Re: ClassNotFoundException trying to use JDBC appender

2016-11-30 Thread Michael Carman
java-lang-classnotfoundexception-a-runtime > in particular: > Bundle-ClassPath: .,lib/library.jar > > > On Tue, Nov 29, 2016 at 4:48 PM, Gary Gregory > wrote: > > > OSGi and class loaders make for complications and tricky debugging > sessions > > :-( > > > > Gar

Re: ClassNotFoundException trying to use JDBC appender

2016-11-29 Thread Michael Carman
gt; LogManager.getLogger(); // throws ClassNotFoundException > } > > It seems like some sort of class path configuration problem, but I can't > figure out what to set. > > -Mike > > On Tue, Nov 29, 2016 at 2:43 PM Gary Gregory > wrote: > > Is your getConnectio

Re: ClassNotFoundException trying to use JDBC appender

2016-11-29 Thread Michael Carman
lem, but I can't figure out what to set. -Mike On Tue, Nov 29, 2016 at 2:43 PM Gary Gregory wrote: Is your getConnection() method static? Gary On Tue, Nov 29, 2016 at 9:04 AM, Michael Carman wrote: > I'm using Log4j2 in an Eclipse RCP application. I've been using a > Rolli

ClassNotFoundException trying to use JDBC appender

2016-11-29 Thread Michael Carman
I'm using Log4j2 in an Eclipse RCP application. I've been using a RollingFileAppender and am trying to switch to a JDBC appender backed by a ConnectionFactory. I've implemented this using the examples at https://logging.apache.org/log4j/2.x/manual/appenders.html#JDBCAppender as a guide but get a Cl