[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:48:18 EST 2007


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

The only way that something can be put "extra" in persistence.xml is if the original files we copied from had those artififacts - that was the case for Seam 1.2.0/1.2.1 and I fixed that in the seamgen in seam 1.2.1.EAP and for the Seam 2 CR and GA - so if your seam is one of these older versions then that explains it ,)

> 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