[jboss-user] [JBoss Seam] - Re: I cannot get this test through, please help

saeediqbal1 do-not-reply at jboss.com
Mon Sep 24 18:11:59 EDT 2007


seam-gen for me has been buggy so i use this now http://chiralsoftware.com/master-sauce/ Master Sauce

for mysql connection in the resources folder in the **ds.xml i have this

<?xml version="1.0" encoding="UTF-8"?>
  | 
  | <!DOCTYPE datasources
  |     PUBLIC "-//JBoss//DTD JBOSS JCA Config 1.5//EN"
  |     "http://www.jboss.org/j2ee/dtd/jboss-ds_1_5.dtd">
  |     
  | <datasources>
  |    
  |    <local-tx-datasource>
  |       <jndi-name>sdeskoneDatasource</jndi-name>
  |       <connection-url>jdbc:mysql://localhost:3306/test</connection-url>
  |       <driver-class>com.mysql.jdbc.Driver</driver-class>
  |       <user-name>root</user-name>
  |       <password></password>
  | <!-- 
  |       <exception-sorter-class-name>
  |          org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter
  |       </exception-sorter-class-name>
  |       <metadata>
  |          <type-mapping>mySQL</type-mapping>
  |       </metadata>
  | -->
  |    </local-tx-datasource>
  |     
  | </datasources>
  | 
  | 

and in META-INF/persistence*.xml i have this

<?xml version="1.0" encoding="UTF-8"?>
  | <!-- Persistence deployment descriptor for dev profile -->
  | <persistence 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" 
  |              version="1.0">
  |              
  |    <persistence-unit name="sdeskone">
  |       <provider>org.hibernate.ejb.HibernatePersistence</provider>
  |       <jta-data-source>java:/sdeskoneDatasource</jta-data-source>
  |       <properties>
  |          <property name="hibernate.hbm2ddl.auto" value="validate"/>
  |          <property name="hibernate.cache.use_query_cache" value="true"/>
  |          <property name="hibernate.show_sql" value="true"/>
  |          <property name="jboss.entity.manager.factory.jndi.name" value="java:/sdeskoneEntityManagerFactory"/>
  |       </properties>
  |    </persistence-unit>
  |     
  | </persistence>
  | 

seems to do the work but really seam-gen wasted "days/weeks" of my time.

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

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



More information about the jboss-user mailing list