[jboss-user] [JBoss and NetBeans] - EJB Deploynment with JBoss and use of annotations fails

aneta do-not-reply at jboss.com
Fri Jun 22 09:38:49 EDT 2007


I followed the instuctions on the EJB3-Tutotial on the site http://www.laliluna.de/download/firs...utorial-en.pdf
but I can't deploy the application right, as the error down shows.
I use mysql-ds.xml in the deploy-directory in JBOSS and mysql Server 4.1 and in jboss and I placed the mysql Connector mysql-connector-java-5.0.6-bin.jar in the directory
$JBOSS_HOME/server/default/deploy/lib as said in this tutorial. I don't understand what the error-reason is. Has anybody an idea?Thanks.

My mysql-ds.xml -file looks like this:

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

<local-tx-datasource>
<jndi-name>ejb3ExampleDS</jndi-name>
<connection-url>jdbc:mysql://mysql-hostname:3306/examples</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>x</user-name>
y <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter</exception-sorter-class-name>

<type-mapping>mySQL</type-mapping>

</local-tx-datasource>



The JBoss Error Stack:
--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: persistence.units:jar=FirstEJB3Tutorial.jar,unitName=FirstEjb3Tutori
al
  State: FAILED
  Reason: javax.persistence.PersistenceException: org.hibernate.HibernateExcepti
on: Hibernate Dialect must be explicitly set
  I Depend On:
    jboss.jca:service=DataSourceBinding,name=ejb3ExampleDS
  Depends On Me:
    jboss.j2ee:jar=FirstEJB3Tutorial.jar,name=BookTestBean,service=EJB3



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056877#4056877

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4056877



More information about the jboss-user mailing list