Hi Freeman,  ClassNotFoundException is not there in the stack trace. 

I am trying to setup application logs as suggested in
http://fusenotes.blogspot.ca/2011/02/logging-per-application-in-servicemix-4.html.

Application log file is getting created but none of the normal (INFO/DEBUG
level) log statements present in the app are coming up in the log file. 
Only logs from servicemix libraries and all exceptions are logged to the log
file. 

Also tried below configurations in the org.ops4j.pax.logging.cfg:

log4j.logger.mypackage.subpackage=DEBUG, x
log4j.appender.x=org.apache.log4j.RollingFileAppender
log4j.appender.x.layout=org.apache.log4j.PatternLayout
log4j.appender.x.layout.ConversionPattern=%d{ABSOLUTE} | %-5.5p | %-16.16t |
%-32.32c{1} | %X{bundle.id} - %X{bundle.name} - %X{bundle.version} | %m%n
log4j.appender.x.file=${karaf.data}/log/yyy.log
log4j.appender.x.append=true
log4j.appender.x.maxFileSize=10MB
log4j.appender.x.maxBackupIndex=10

I have tried both Spring and java code approach mentioned in above link.

I am not sure if it is class loader issue as the code is proceeding to query
the db after getting db connection (from below stack trace). I have added
logger statements in the code but unable to setup proper logging.
java.lang.Error: SQLWarning chain holds value that is not a SQLWarning
        at java.sql.SQLWarning.getNextWarning(SQLWarning.java:184)[:1.6.0_34]
        at
org.springframework.jdbc.core.JdbcTemplate.handleWarnings(JdbcTemplate.java:1260)
        at
org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:587)
        at 
org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:636)
        at 
org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:665)
        at 
org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:673)
        at
org.springframework.jdbc.core.JdbcTemplate.queryForObject(JdbcTemplate.java:728)
        at
org.springframework.jdbc.core.JdbcTemplate.queryForObject(JdbcTemplate.java:744)
        at
org.springframework.jdbc.core.JdbcTemplate.queryForInt(JdbcTemplate.java:775)





--
View this message in context: 
http://servicemix.396122.n5.nabble.com/Failed-to-convert-property-value-to-required-type-org-aopalliance-aop-Advice-for-property-advice-tp5714672p5714694.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to