Dificuldade com Hibernate - Erro HTTP 500

1 resposta
A
HTTP Status 500 - Unable to show problem report: freemarker.template.TemplateModelException: Method public java.lang.String org.hibernate.exception.NestableRuntimeException.getMessage(int) threw an exception when invoked on org.hibernate.HibernateException: Could not parse configuration: /hibernate.cfg.xml

type Status report

message Unable to show problem report: freemarker.template.TemplateModelException: Method public java.lang.String org.hibernate.exception.NestableRuntimeException.getMessage(int) threw an exception when invoked on org.hibernate.HibernateException: Could not parse configuration: /hibernate.cfg.xml

description The server encountered an internal error (Unable to show problem report: freemarker.template.TemplateModelException: Method public java.lang.String org.hibernate.exception.NestableRuntimeException.getMessage(int) threw an exception when invoked on org.hibernate.HibernateException: Could not parse configuration: /hibernate.cfg.xml) that prevented it from fulfilling this request.
Apache Tomcat/5.5.17

o q será?

1 - tou verificando os .jars e nada ainda
2 - será a configuração do xml? veja:

<?xml version="1.0" encoding="UTF-8"?>

<persistence version="1.0"
	xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
	
	<persistence-unit name="RDJPA" transaction-type="RESOURCE_LOCAL">
		<provider>org.hibernate.ejb.HibernatePersistence</provider>
		
		<class>br.com.javamagazine.bookshelf.dominio.Livro</class>
		<class>br.com.javamagazine.bookshelf.dominio.Membro</class>

		<exclude-unlisted-classes>false</exclude-unlisted-classes>
		<properties>
			<property name="dialect" value="org.hibernate.dialect.MySQLDialect" />
			<!-- <property name="dialect" value="org.hibernate.dialect.MySQLInnoDBDialect"/> -->
			<property name="hibernate.hbm2ddl.auto"  value="create" />
			<property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver" />
			<property name="hibernate.connection.username" value="root" />
			<property name="hibernate.connection.password" value="root" />
			<property name="hibernate.connection.url" value="jdbc:mysql://localhost/struts2" />
			<property name="hibernate.cache.provider_class" value="org.hibernate.cache.NoCacheProvider" />
			<property name="hibernate.show_sql" value="false" />
			<property name="hibernate.format_sql" value="true" />

			<!-- Configuração pool de conexões via c3p0 -->
			<property name="c3p0.acquire_increment" value="1" />
			<property name="c3p0.idle_test_period" value="100" /> <!-- segundos -->
			<property name="c3p0.max_size" value="100" />
			<property name="c3p0.max_statements" value="0" />
			<property name="c3p0.min_size" value="10" />
			<property name="c3p0.timeout" value="1800" /> <!-- segundos -->
		</properties>
	</persistence-unit>
</persistence>

1 Resposta

A

Alguma sugestão?

Criado 8 de outubro de 2010
Ultima resposta 8 de out. de 2010
Respostas 1
Participantes 1