[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-1337) Extraneous value showing up in generated persistence.xml making it invalid

Max Andersen (JIRA) jira-events at lists.jboss.org
Mon Nov 19 15:11:18 EST 2007


    [ http://jira.jboss.com/jira/browse/JBIDE-1337?page=comments#action_12388298 ] 
            
Max Andersen commented on JBIDE-1337:
-------------------------------------

which version of Seam are you using ?

This looks like you using a version of seam that has an old bug in the persistence.xml files.

> Extraneous value showing up in generated persistence.xml making it invalid
> --------------------------------------------------------------------------
>
>                 Key: JBIDE-1337
>                 URL: http://jira.jboss.com/jira/browse/JBIDE-1337
>             Project: JBoss Tools
>          Issue Type: Bug
>          Components: Seam
>    Affects Versions: 2.0.0.CR1
>         Environment: Red Hat Developer Studio, Windows XP, Seam 2.0
>            Reporter: Marcus Adair
>            Priority: Minor
>
> When I generate new Seam EAR projects with the CR1 release, the persistence.xml has an error in it. I've tried to find an error in my eclipse database configuration, but can't seem to see a fault. 
> Here is what I get, the final property setting has a trailing "dbname" value which is my database name:
> <?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="testproj">
>       <provider>org.hibernate.ejb.HibernatePersistence</provider>
>       <jta-data-source>java:/testprojDatasource</jta-data-source>
>       <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="jboss.entity.manager.factory.jndi.name" value="java:/testprojEntityManagerFactory"/>dbname
>       </properties>
>    </persistence-unit>
>     
> </persistence>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbosstools-issues mailing list