Olá Pessoal,
segui um tutorial sobre Hibernate, eu compilei a classe teste desse tutorial e consigo inserir no banco de dados (tem apenas uma tabela)!
O problema é qd rodo o tomcat… que aparece este erro:
log4j:WARN No appenders could be found for logger (org.apache.catalina.startup.Bootstrap).
log4j:WARN Please initialize the log4j system properly.
Qd rodo com Ant, aparece o seguinte:
the source attachement does not contain the source for the LogFactoryImpl.class
Tenho na CLASSPATH estas bibliotecas:
C:\Programas\Eclipse\struts\lib\antlr.jar;
C:\Programas\Eclipse\struts\lib\struts.jar
C:\Programas\Eclipse\struts\lib\jakarta-oro.jar;
C:\Programas\Eclipse\struts\lib\commons-beanutils.jar;
C:\Programas\Eclipse\struts\lib\commons-digester.jar;
C:\Programas\Eclipse\struts\lib\commons-fileupload.jar;
C:\Programas\Eclipse\struts\lib\commons-logging.jar;
C:\Programas\Eclipse\struts\lib\commons-validator.jar;
C:\Programas\Java\jre1.5.0_06\lib\log4j-1.2.11.jar;
C:\Programas\Java\jre1.5.0_06\lib\ehcache-1.2.jar;
C:\Programas\Java\jre1.5.0_06\lib\jta.jar;
C:\Programas\Java\jre1.5.0_06\lib\xml-apis.jar;
C:\Programas\Java\jre1.5.0_06\lib\commons-logging-1.0.4.jar;
C:\Programas\Java\jre1.5.0_06\lib\c3p0-0.9.0.jar;
C:\Programas\Java\jre1.5.0_06\lib\asm-attrs.jar;
C:\Programas\Java\jre1.5.0_06\lib\dom4j-1.6.1.jar;
C:\Programas\Java\jre1.5.0_06\lib\antlr-2.7.6.jar;
C:\Programas\Java\jre1.5.0_06\lib\cglib-2.1.3;
C:\Programas\Java\jre1.5.0_06\lib\asm.jar;
C:\Programas\Java\jre1.5.0_06\lib\jdbc2_0-stdext.jar;
C:\Programas\Java\jre1.5.0_06\lib\xerces-2.6.2.jar;
C:\Programas\Java\jre1.5.0_06\lib\commons-collections-2.1.1.jar
No log4j.properties tenho o seguinte:
log4j.rootLogger=DEBUG, 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
Alguem me ajuda? Obrigado