[
http://jira.jboss.com/jira/browse/JBIDE-1409?page=comments#action_12390849 ]
Alexey Kazakov commented on JBIDE-1409:
---------------------------------------
Our seam tools model has this structure:
EJB project seam model (information of this project only)
WAR project seam model (this project depends on EJB project and seam model has
inforamtion of WAR and related EJB project)
componets.xml contains the information about "entityManager" component:
<persistence:managed-persistence-context name="entityManager"
auto-create="true"
persistence-unit-jndi-name="java:/seam2testEntityManagerFactory"/>
So only seam model of WAR project aware of entityManager.
And when user try to use it in EJB project then we get that warning.
It works for WAR configuration because in that case we have the only project with common
seam model.
It seems we need to have the joint seam model for all related projects.
Unknown context variable name: entityManager
--------------------------------------------
Key: JBIDE-1409
URL:
http://jira.jboss.com/jira/browse/JBIDE-1409
Project: JBoss Tools
Issue Type: Bug
Components: JBoss Tools Core
Affects Versions: 2.0.0.CR1
Environment: latest nightlybuild (dec 3)
seam2.0.0
ecliple 3.3.1.1
Reporter: Menashe
Assigned To: Alexey Kazakov
Attachments: components.xml, test.java
when em injection is used as in:
@In private EntityManager entityManager;
then validator fails with
Unknown context variable name: entityManager
although works fine with seam2
--
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