[jboss-jira] [JBoss JIRA] (WFLY-3425) missing persistence unit error unclear

Caleb Cushing (JIRA) issues at jboss.org
Sat May 31 09:25:15 EDT 2014


    [ https://issues.jboss.org/browse/WFLY-3425?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12972165#comment-12972165 ] 

Caleb Cushing commented on WFLY-3425:
-------------------------------------

in my case this is the result of being unable to find persistence.xml at all, the error should reflect that. I did not have it located properly on the classpath (because shrinkwrap is confusing)

> missing persistence unit error unclear
> --------------------------------------
>
>                 Key: WFLY-3425
>                 URL: https://issues.jboss.org/browse/WFLY-3425
>             Project: WildFly
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>            Reporter: Caleb Cushing
>            Assignee: Jason Greene
>
> Caused by: java.lang.IllegalArgumentException: JBAS016069: Error injecting persistence unit into CDI managed bean. Can't find a persistence unit named  in deployment c11651d6-a1da-4f69-8b09-07224801d593.war                                                                                                                                                
> so does this error mean, it can't find my persistence.xml? does it mean that it can't find the persistence unit named in my xml on the server? I notice that there are 2 spaces between named and in, I'm guessing this means it would put a name there, perhaps ensuring the log entry has quotes '' whether there should be something there. If this means it can't find my persistence.xml it should say so.



--
This message was sent by Atlassian JIRA
(v6.2.3#6260)


More information about the jboss-jira mailing list