2006-07-19 17:16:48,640 INFO hibernate.cfg.Environment -> Hibernate 3.0.5
2006-07-19 17:16:48,656 INFO hibernate.cfg.Environment -> hibernate.properties not found
2006-07-19 17:16:48,656 INFO hibernate.cfg.Environment -> using CGLIB reflection optimizer
2006-07-19 17:16:48,656 INFO hibernate.cfg.Environment -> using JDK 1.4 java.sql.Timestamp handling
2006-07-19 17:16:48,906 INFO hibernate.cfg.Configuration -> configuring from resource: /hibernate.cfg.xml
2006-07-19 17:16:48,906 INFO hibernate.cfg.Configuration -> Configuration resource: /hibernate.cfg.xml
2006-07-19 17:16:49,125 INFO hibernate.cfg.Configuration -> Mapping resource: demo/TbEventos.hbm.xml
2006-07-19 17:16:49,343 INFO hibernate.cfg.HbmBinder -> Mapping class: hibernate.TbEventos -> TB_EVENTOS
2006-07-19 17:16:49,406 INFO hibernate.cfg.Configuration -> Configured SessionFactory: null
2006-07-19 17:16:49,406 INFO hibernate.cfg.Configuration -> processing extends queue
2006-07-19 17:16:49,406 INFO hibernate.cfg.Configuration -> processing collection mappings
2006-07-19 17:16:49,406 INFO hibernate.cfg.Configuration -> processing association property references
2006-07-19 17:16:49,406 INFO hibernate.cfg.Configuration -> processing foreign key constraints
2006-07-19 17:16:49,625 INFO hibernate.connection.DriverManagerConnectionProvider -> Using Hibernate built-in connection pool (not for production use!)
2006-07-19 17:16:49,625 INFO hibernate.connection.DriverManagerConnectionProvider -> Hibernate connection pool size: 20
2006-07-19 17:16:49,625 INFO hibernate.connection.DriverManagerConnectionProvider -> autocommit mode: false
2006-07-19 17:16:49,656 FATAL hibernate.connection.DriverManagerConnectionProvider -> JDBC Driver class not found: oracle.jdbc.driver.OracleDriver
java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
o arquivo no lib eh ojdbc14.zip
brigado
mudou o erro… agora é esse aqui.
2006-07-19 17:39:15,750 INFO hibernate.cfg.Environment -> Hibernate 3.0.5
2006-07-19 17:39:15,765 INFO hibernate.cfg.Environment -> loaded properties from resource hibernate.properties: {hibernate.connection.username=ibict_fs, hibernate.default_schema=IBICT_FS, hibernate.connection.password=****, hibernate.cglib.use_reflection_optimizer=true, hibernate.dialect=org.hibernate.dialect.OracleDialect, hibernate.connection.url=jdbc:oracle:thin:@192.168.0.254:1521:sigmab, hibernate.connection.driver_class=oracle.jdbc.driver.OracleDriver}
2006-07-19 17:39:15,765 INFO hibernate.cfg.Environment -> using CGLIB reflection optimizer
2006-07-19 17:39:15,765 INFO hibernate.cfg.Environment -> using JDK 1.4 java.sql.Timestamp handling
2006-07-19 17:39:15,984 INFO hibernate.cfg.Configuration -> configuring from resource: /hibernate.cfg.xml
2006-07-19 17:39:15,984 INFO hibernate.cfg.Configuration -> Configuration resource: /hibernate.cfg.xml
2006-07-19 17:39:16,203 INFO hibernate.cfg.Configuration -> Mapping resource: hibernate.properties
2006-07-19 17:39:16,203 ERROR hibernate.util.XMLHelper -> Error parsing XML: XML InputStream(1) Content is not allowed in prolog.
2006-07-19 17:39:16,218 ERROR hibernate.cfg.Configuration -> Could not configure datastore from input stream
org.dom4j.DocumentException: Error on line 1 of document : Content is not allowed in prolog. Nested exception: Content is not allowed in prolog.
at org.dom4j.io.SAXReader.read(SAXReader.java:482)
at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:398)
at org.hibernate.cfg.Configuration.addResource(Configuration.java:449)
at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1263)
at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1235)
Passe seu arquivo de configuração…
Parece que é la o erro…
o hibernate.properties…
hibernate.connection.driver_class=oracle.jdbc.driver.OracleDriver
hibernate.connection.password=ibict_fs
hibernate.connection.url=jdbc:oracle:thin:@192.168.0.254:1521:sigmab
hibernate.connection.username=ibict_fs
hibernate.dialect=org.hibernate.dialect.OracleDialect
hibernate.default_schema=IBICT_FS
tb acho…da mais esses erros ai
at java.lang.Thread.run(Thread.java:595)
org.hibernate.MappingException: Error reading resource: hibernate.properties
at org.hibernate.cfg.Configuration.addResource(Configuration.java:452)
at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1263)
at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1235)
at java.lang.Thread.run(Thread.java:595)
Caused by: org.hibernate.MappingException: org.dom4j.DocumentException: Error on line 1 of document : Content is not allowed in prolog. Nested exception: Content is not allowed in prolog.
at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:408)
at org.hibernate.cfg.Configuration.addResource(Configuration.java:449)
... 39 more
Caused by: org.dom4j.DocumentException: Error on line 1 of document : Content is not allowed in prolog. Nested exception: Content is not allowed in prolog.
at org.dom4j.io.SAXReader.read(SAXReader.java:482)
at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:398)
... 40 more
ahhhh. o xml tb…
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
<property name="hibernate.connection.password">ibict_fs</property>
<property name="hibernate.connection.url">jdbc:oracle:thin:@192.168.0.254:1521:sigmab</property>
<property name="hibernate.connection.username">ibict_fs</property>
<property name="hibernate.default_schema">IBICT_FS</property>
<property name="hibernate.dialect">org.hibernate.dialect.Oracle9Dialect</property>
<!-- Condiguração do c3p0 -->
<property name="hibernate.c3p0.max_size">10</property>
<property name="hibernate.c3p0.min_size">2</property>
<property name="hibernate.c3p0.timeout">5000</property>
<property name="hibernate.c3p0.max_statements">10</property>
<property name="hibernate.c3p0.idle_test_period">3000</property>
<property name="hibernate.c3p0.acquire_increment">2</property>
<!-- Configurações de debug -->
<property name="show_sql">true</property>
<property name="hibernate.generate_statistics">true</property>
<property name="hibernate.use_sql_comments">true</property>
<mapping resource="hibernate.properties" />
<mapping resource="demo/TbEventos.hbm.xml" />
</session-factory>
</hibernate-configuration>