Installation on 16.10.2010
Eclipse Helios SR1, Version 3.6.1.r361_v20100909
http://download.jboss.org/jbosstools/builds/nightly/trunk/2011-02-05_09-01-37-H1489/all/repo/Install
<?xml version="1.0" encoding="UTF-8"?> <persistence version="2.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_2_0.xsd"> <persistence-unit name="DatePlanner201_JPA" transaction-type="JTA"> <jta-data-source>java:/DatePlanner201_JPA</jta-data-source> <class>ebel.dp201.jpa.Profile</class> <properties> <property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5InnoDBDialect"/> <property name="hibernate.connection.driver_class" value="org.gjt.mm.mysql.Driver"/> <property name="hibernate.connection.url" value="jdbc:mysql://<hostname>/<database>"/> <property name="hibernate.default_schema" value="dp"/> <property name="hibernate.connection.username" value="user"/> <property name="hibernate.connection.password" value="xxx"/> </properties> </persistence-unit> </persistence>I had this in place already, but I guess you need to add a "Data Source Explorer" > "Database Connection" > dp.
2. In the http://localhost:8080/admin-console create a Datasources > Local Tx Datasources >
JNDI Name * = persistence-unit name = DatePlanner201_JPA (from above) Username = user Password = xxx JDBC Driver Class * = com.mysql.jdbc.Driver Connection URL * = jdbc:mysql://localhost/dp (<hostname>/<database>)Note: You cannot edit (change) the configuration in the admin-console. Somehow the settings are not taken into the respective declaration file (!?).
...\WebAppServer\jboss-6.0.0.Final\server\default\deploy\DatePlanner201_JPA-ds.xml
3. Put the driver to the server lib
...\WebAppServer\jboss-6.0.0.Final\server\default\lib\mysql-connector-java-5.1.7-bin.jar
4. Test
Use address to JSF project, e.g.
http://localhost:8080/DatePlanner201_JSF