Hide Forgot
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}
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>
Is this still current for WFK 2.0.0?
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.