[arquillian-issues] [JBoss JIRA] (ARQ-1914) Arquillian embedded tests do not support @Convert/@Converter (JPA 2.1)
Constantin Weißer (JIRA)
issues at jboss.org
Thu Feb 12 07:31:49 EST 2015
[ https://issues.jboss.org/browse/ARQ-1914?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13039773#comment-13039773 ]
Constantin Weißer commented on ARQ-1914:
----------------------------------------
The error was this:
@Deployment
public static JavaArchive createTestArchive() {
return ShrinkWrap.create(JavaArchive.class, "test.jar").addPackage(Company.class.getPackage()).addPackage(
CompanyPersistenceServiceBean.class.getPackage()).addAsManifestResource(
new ByteArrayAsset("<beans>".getBytes()),
ArchivePaths.create("beans.xml")).addAsManifestResource(
"persistence.xml",
ArchivePaths.create("persistence.xml"));
}
It should be "<beans/>". It seems my issue is hereby solved.
Thanks very much, Aslak!
> Arquillian embedded tests do not support @Convert/@Converter (JPA 2.1)
> ----------------------------------------------------------------------
>
> Key: ARQ-1914
> URL: https://issues.jboss.org/browse/ARQ-1914
> Project: Arquillian
> Issue Type: Bug
> Components: GlassFish Containers
> Affects Versions: 1.1.6.Final
> Reporter: Constantin Weißer
>
> The arquillian glassfish embedded container (in the newest version 1.0.0.CR4) does simply ignore @Convert annotations (JPA 2.1) which leads to errors when running tests that use the persistence layer.
> The error output contains
> Internal Exception: Exception [EclipseLink-7155] (Eclipse Persistence Services - 2.2.0.v20110202-r8913)
> which would explain, why it does not work. JPA 2.1 features are not implemented in EclipseLink 2.2.0. Why does arquillian-glassfish-embedded use such an outdated version of the persistence service?
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
More information about the arquillian-issues
mailing list