hibernate - websphere system error logging doesn't contain stacktrace -
have system error log doesn't contain stacktrace.
[19.06.15 18:21:11:887 msk] 00000381 injectionbind e cwnen0030e: В фабрике @persistenceunit возникла ошибка при получении объекта привязки primary для экземпляра объекта. Сообщение об исключительной ситуации: [persistenceunit: primary] unable build entitymanagerfactory [19.06.15 18:21:11:887 msk] 00000381 resourceinjec e cwowb0102e: Ошибка jcdi: unable obtain instance primary: javax.persistence.persistenceexception: [persistenceunit: primary] unable build entitymanagerfactory [19.06.15 18:21:11:887 msk] 00000381 resourceinjec e cwowb0102e: Ошибка jcdi: unable obtain instance primary: javax.persistence.persistenceexception: [persistenceunit: primary] unable build entitymanagerfactory
non-system errors logging fine. how can fix it?
using 8.5.5, jdk1.7, jpa 2.0, hibernate 4.2.5.
watch logs eclipse console.
log4j.properties:
#default log level error. other levels info , debug. log4j.rootlogger=info, file, console #console log4j.appender.console=org.apache.log4j.consoleappender log4j.appender.console.layout=org.apache.log4j.patternlayout log4j.appender.console.layout.conversionpattern=%d{hh:mm:ss,sss} %5p [%t.%f] - %m%n #file log4j.appender.file=org.apache.log4j.rollingfileappender log4j.appender.file.file=logs/moch.log log4j.appender.file.maxfilesize=1000kb #keep 5 old files around. log4j.appender.file.maxbackupindex=5 log4j.appender.file.layout=org.apache.log4j.patternlayout #format same websphere's common log format. log4j.appender.file.layout.conversionpattern=[%d] %t %c %-5p - %m%n #optionally override log level of individual packages or classes log4j.logger.ru.my=trace log4j.logger.ru.my.snuil.moch=info log4j.logger.org.hibernate=info
this error printed websphere application server itself, log4j settings not relevant. error message seems usability issue, should problem open pmr ibm, try using trace settings must gather cdi problems see if gives hints. if not, you'll need ibm.
Comments
Post a Comment