[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-7726) Persistence unit not found: 'null' thrown when using Hibernate Console on a project generated with SeamGen

Dmitry Geraskov (JIRA) jira-events at lists.jboss.org
Wed Nov 24 10:22:59 EST 2010


    [ https://jira.jboss.org/browse/JBIDE-7726?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12565136#comment-12565136 ] 

Dmitry Geraskov commented on JBIDE-7726:
----------------------------------------

Hm... I did the following:
1. New->Seam web project (go through all the steps, only added Potgresql connection profile)
2. Copied all your src folder there
and console configuration builds successfully.

This means that the structure of your project is broken, for example I didn't find persistence.xml file there (there are -dev, prod and test versions).
Make sure META-INF\persistence.xml is in class path at the time of building console configuration.

> Persistence unit not found: 'null' thrown when using Hibernate Console on a project generated with SeamGen
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-7726
>                 URL: https://jira.jboss.org/browse/JBIDE-7726
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: Hibernate
>    Affects Versions: 3.2.0.Beta2
>         Environment: JBoss Tools 3.2.0.v20101122-2055-H270-Beta2, Seam 2.2.1-SNAPSHOT from 2010-11-23
>            Reporter: Martin Gencur
>            Assignee: Max Andersen
>             Fix For: 3.2.0.Final
>
>         Attachments: Configuration.png, JPA.png, PersistenceUnitNotFound.png, warproject.zip
>
>
> Steps to reproduce the bug:
> 1) import a Seam project generated by SeamGen, enable Seam support on the project
> 2) open Window -> Show View -> Hibernate Configurations, click the project in the view
> 3) now you get the exception shown in the attached screenshot

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list