Bug 724730 (JBWFK-96) - Play! 1.1.1 JPA2 is not compatible with ExP
Summary: Play! 1.1.1 JPA2 is not compatible with ExP
Keywords:
Status: NEW
Alias: JBWFK-96
Product: JBoss Enterprise WFK Platform 1
Classification: JBoss
Component: unspecified
Version: 1.2.0.ER03
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: ---
: ---
Assignee: Jiri Pallich
QA Contact: Tomas Repel
URL: http://jira.jboss.org/jira/browse/JBW...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-12 13:30 UTC by Karel Piwko
Modified: 2015-08-03 07:40 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
EAP 5.1.1 EWP 5.1.1
Last Closed:
Type: Bug


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker JBWFK-96 0 Major Closed Play! 1.1.1 JPA2 is not compatible with ExP 2015-08-03 08:24:53 UTC

Description Karel Piwko 2011-05-12 13:30:47 UTC
Affects: Release Notes
Workaround: Workaround Exists
Workaround Description: This workaround reflect changes needed to make booking sample work on ExP:

0/ Install Play! 1.0.3.2, append play binary to your $PATH
1/ Go to samples-and-tests/booking
2/ play war -o /tmp/booking.war
3/ add jboss-web.xml to WEB-INF directory for classpath isolation

{code}
<jboss-web>
   <class-loading>
      <loader-repository>
         org.jboss.wfk.example:archive=play-booking.war
         <loader-repository-config>java2ParentDelegation=false</loader-repository-config>
      </loader-repository>
   </class-loading>
</jboss-web>
{code}

4/ Remove following jars from WEB-INF/lib: slf4j-log4j12-1.5.10.jar
5/ Deploy exploded war to $JBOSS_HOME/server/$JBOSS_DOMAIN/deploy
securitylevel_name: Public

Applications generated with Play! framework can be deployed in exploded form on JBoss ExP after a war archive is created.

However, if user want to use persistence (I tried booking sample from the distribution), the Play! has hard dependency to JPA2, which is incompatible with EAP, EWP.

Workaround is to downgrade to Play! 1.0.3.2, however this version does not support injection of DataSource via JNDI.
Following code is working for 1.1.1, but not for 1.0.3.2, which is the latest JPA1 compatible release.
{code}
db=java:DefaultDS
{code}

Comment 1 Rebecca Newton 2011-05-23 06:02:49 UTC
Release Notes Docs Status: Added: Documented as Known Issue
Release Notes Text: Added: Applications generated with the Play! framework can be deployed in exploded form on the JBoss Enterprise Platforms after a war archive is created. However, for persistence, Play! has a hard dependency on JPA 2, which is incompatible with the Enterprise Platforms. The workaround for this issue is to downgrade to Play! 1.0.3.2, but this version does not support DataSource injection via JNDI. Follow these instructions to downgrade Play!: <see workaround text>


Comment 2 Rebecca Newton 2012-03-09 05:52:10 UTC
Is this still current for WFK 2.0.0?

Comment 3 Karel Piwko 2012-03-09 06:45:49 UTC
This is not valid for WFK 2.0.0. JPA2 is supported out of the box in EAP6. This was verified in https://docspace.corp.redhat.com/docs/DOC-88882 process.


Note You need to log in before you can comment on or make changes to this bug.