[jbosstools-issues] [JBoss JIRA] Commented: (JBDS-699) Persistence unit not found in seam-gen application

Dan Allen (JIRA) jira-events at lists.jboss.org
Tue Apr 14 13:49:36 EDT 2009


    [ https://jira.jboss.org/jira/browse/JBDS-699?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12462161#action_12462161 ] 

Dan Allen commented on JBDS-699:
--------------------------------

That's not the reason it isn't picked up. You have to right click the project and select "Refresh Project". This will execute the test-build ant target and persistence-dev.xml will be "compiled" to persistence.xml on the Eclipse classpath. Then JBDS will work. I know it is a hack, but for right now we are leaving it that way.

I am considering moving the persistence-dev.xml to persistence.xml in a folder that is on the Eclipse build path (handling this profile as a special case) but we need to do that in Seam 2.2 I think just because it is a significant change to the structure of the project.

> Persistence unit not found in seam-gen application
> --------------------------------------------------
>
>                 Key: JBDS-699
>                 URL: https://jira.jboss.org/jira/browse/JBDS-699
>             Project: Developer Studio
>          Issue Type: Bug
>          Components: seam
>    Affects Versions: 2.0.0.GA
>         Environment: JBoss Seam 2.1.2.CR1
> JDK 5 update 16
>            Reporter: Jozef Hartinger
>             Fix For: 2.0.1
>
>         Attachments: jbds-persistenceunit.jpg
>
>
> To reproduce, create an application with seam-gen and import it into JBDS. Open the hibernate configuration and expand the configuration node. After that, you should see an error window similar to the attached one.
> Persistence unit is not picked up, as it is stored in persistence-dev.xml file.

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

        



More information about the jbosstools-issues mailing list