Pessoal agora estou com este erro:
log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment).
log4j:WARN Please initialize the log4j system properly.
GenericJDBCException: could not fetch initial value
Pessoal agora estou com este erro:
log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment).
log4j:WARN Please initialize the log4j system properly.
GenericJDBCException: could not fetch initial value
Adicione ao ClassPath de sua aplicação o arquivo de propriedades do Log4J (log4j.properties).
O conteúdo será algo como:
log4j.rootLogger=INFO, dest1
log4j.appender.dest1=org.apache.log4j.ConsoleAppender
log4j.appender.dest1.layout=org.apache.log4j.PatternLayout
log4j.appender.dest1.layout.ConversionPattern=%d %-5p %-5c{3} %x -> %m%n
Amigão ainda não ficou claro pra mim. O ClassPath é aonde eu coloco a biblioteca do mysql e do hibernate.