geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sim085 <sim...@hotmail.com>
Subject Re: @PersistenceContext not working
Date Thu, 23 Dec 2010 01:42:37 GMT


> @PersistenceContext is for container-managed entity 
> managers only.

The only reason I used transaction-type="RESOURCE_LOCAL" is because 
transaction-type="JTA" does not seem to work when I deploy the EAR
application. As much as I know when  transaction-type="JTA" then you need to
define the jta-data-source and the non-jta-data-source. However when I try
to deploy the EAR file I get the following error;

-----
The application was not deployed.
Unable to resolve reference "NonJtaDataSourceWrapper"
    in gbean
default/MyEAR/1293337922310/car?EJBModule=MyJPA.jar,J2EEApplication=default/MyEAR/1293337922310/car,PersistenceUnitModule=MyJPA.jar,j2eeType=PersistenceUnit,name=TestPU
    to a gbean matching the pattern
[?name=MyNoJtaDS#org.apache.geronimo.naming.ResourceSource]
    due to: No matches for referencePatterns:
[?name=MyNoJtaDS#org.apache.geronimo.naming.ResourceSource]
Unable to resolve reference "JtaDataSourceWrapper"
    in gbean
default/MyEAR/1293337922310/car?EJBModule=MyJPA.jar,J2EEApplication=default/MyEAR/1293337922310/car,PersistenceUnitModule=MyJPA.jar,j2eeType=PersistenceUnit,name=TestPU
    to a gbean matching the pattern
[?name=MyJtaDS#org.apache.geronimo.naming.ResourceSource]
    due to: No matches for referencePatterns:
[?name=MyJtaDS#org.apache.geronimo.naming.ResourceSource]
org.apache.geronimo.common.DeploymentException: Unable to resolve reference
"NonJtaDataSourceWrapper"
    in gbean
default/MyEAR/1293337922310/car?EJBModule=MyJPA.jar,J2EEApplication=default/MyEAR/1293337922310/car,PersistenceUnitModule=MyJPA.jar,j2eeType=PersistenceUnit,name=TestPU
    to a gbean matching the pattern
[?name=MyNoJtaDS#org.apache.geronimo.naming.ResourceSource]
    due to: No matches for referencePatterns:
[?name=MyNoJtaDS#org.apache.geronimo.naming.ResourceSource]
Unable to resolve reference "JtaDataSourceWrapper"
    in gbean
default/MyEAR/1293337922310/car?EJBModule=MyJPA.jar,J2EEApplication=default/MyEAR/1293337922310/car,PersistenceUnitModule=MyJPA.jar,j2eeType=PersistenceUnit,name=TestPU
    to a gbean matching the pattern
[?name=MyJtaDS#org.apache.geronimo.naming.ResourceSource]
    due to: No matches for referencePatterns:
[?name=MyJtaDS#org.apache.geronimo.naming.ResourceSource]
-----

I had already made a post about this on the OpenJPA forum and this was
re-posted here;
http://apache-geronimo.328035.n3.nabble.com/Re-Problems-when-setting-jta-data-source-value-td2128499.html
-- 
View this message in context: http://apache-geronimo.328035.n3.nabble.com/Re-PersistenceContext-not-working-tp2131727p2134389.html
Sent from the Users mailing list archive at Nabble.com.

Mime
View raw message