[jboss-user] [JBoss Seam] - Re: Could not instantiate Seam component caused by: javax.na

birwin do-not-reply at jboss.com
Wed Oct 17 14:11:36 EDT 2007


Okay, this solution is elementary, however, it was not obvious to me.

By annotating my POJOs with the @In annotation instead of the @PersistenceContext annotation, and renaming the managed-persistence-context in my components.xml file to entityManager, I was able to fix this problem. 

I believe the name in the components.xml file can be something else, but then you have to specify the name next to the @In annotation in your POJOs.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096231#4096231

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096231



More information about the jboss-user mailing list