Bug 724730 (JBWFK-96)

Summary: Play! 1.1.1 JPA2 is not compatible with ExP
Product: [JBoss] JBoss Enterprise WFK Platform 1 Reporter: Karel Piwko <kpiwko>
Component: unspecifiedAssignee: Jiri Pallich <jpallich>
Status: NEW --- QA Contact: Tomas Repel <trepel>
Severity: unspecified Docs Contact:
Priority: high    
Version: 1.2.0.ER03   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/JBWFK-96
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
EAP 5.1.1 EWP 5.1.1
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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.