users@jersey.java.net

Bookmark Jersey Example

From: Roan Brasil Monteiro <roanbrasil_at_gmail.com>
Date: Thu, 15 Oct 2009 14:20:29 -0300

When I am changing to usr Mysql the Bookmark Jersey Example I have my
persistence.xml

<?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="BookmarkPU" transaction-type="JTA">
    <provider>org.hibernate.ejb.HibernatePersistence</provider>
    <!-- <provider>oracle.toplink.essentials.PersistenceProvider</provider>
    <properties>
      <property name="toplink.jdbc.url"
value="jdbc:derby://localhost:1527/BookmarkDB;create=true"/>
      <property name="toplink.jdbc.user" value="REST"/>
      <property name="toplink.jdbc.driver"
value="org.apache.derby.jdbc.ClientDriver"/>
      <property name="toplink.jdbc.password" value="REST"/>
      <property name="toplink.ddl-generation" value="create-tables"/>
    </properties> -->
    <properties>
         <property name="hibernate.dialect"
value="org.hibernate.dialect.MySQL5InnoDBDialect"/>
         <property name="hibernate.hbm2ddl.auto" value="update"/>
         <property name="hibernate.show_sql" value="true"/>
         <property name="hibernate.format_sql" value="true"/>
         <property name="hibernate.connection.characterEncoding"
value="UTF-8"/>
         <property name="hibernate.connection.driver_class"
value="com.mysql.jdbc.Driver"/>
         <property name="hibernate.connection.url"
value="jdbc:mysql://localhost:3306/jpa;create=true"/>
         <property name="hibernate.connection.username" value="root"/>
         <property name="hibernate.connection.password" value="spacecite"/>
    </properties>
  </persistence-unit>
</persistence>



I keep the web.xml the same.

When I am deploying I am getting

Command deploy executed successfully with following warning messages: Error
occurred during application loading phase. The application will not run
properly. Please fix your application and redeploy.
WARNING: com.sun.enterprise.deployment.backend.IASDeploymentException:
org/dom4j/DocumentException


I dont know what happenned but I have this jar in my project. Can someone
help me plse?

-- 
Atenciosamente,
Roan Brasil Monteiro
http://roanbrasil.wordpress.com/