You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@roller.apache.org by "David Johnson (JIRA)" <ji...@apache.org> on 2010/11/25 04:32:13 UTC

[jira] Closed: (ROL-1894) Roller 5 will not run on JBoss AS 6

     [ https://issues.apache.org/jira/browse/ROL-1894?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Johnson closed ROL-1894.
------------------------------

    Resolution: Fixed

Author: snoopdave
Date: Thu Nov 25 03:27:57 2010
New Revision: 1038901

URL: http://svn.apache.org/viewvc?rev=1038901&view=rev
Log:
For for https://issues.apache.org/jira/browse/ROL-1894
Enable Roller 5 to run on JBoss AS 6

Changes needed to run Roller on JBoss 6 AS and to enable creating both a Tomcat release and a release designed to run on Java EE 6 application servers.

* Turned off OpenJPA bytecode enhancement to get Roller to run on Hibernate, so added -Djavaee=true flag to allow bytecode enhancement to be turned off.

* Added two assemblies to weblogger-assembly: 'for-javaee' to create a Java EE 6 release and 'for-tomcat' to create a Tomcat release.

* Had to set some Hibernate properties, so I enhanced JPAPersistenceStrategy classes to pass along JPA and Hibernate properties in addition to the Open JPA ones it already does.

* To run on JBoss's JPA, we need the following properties, so I added them to roller.properties:
  hibernate.transaction.factory_class=\
     org.hibernate.transaction.JTATransactionFactory
  hibernate.transaction.manager_lookup_class=\
     org.hibernate.transaction.JBossTransactionManagerLookup

* Also added non-JTA datasource java:/RollerDS to persistence.xml, a setting that is ignored when the JUnit tests are run and when Roller is run on Tomcat.

* JBoss 6 AS requires the 'mapped-name' element in web.xml so I upgraded Roller's web.xml to Servlets 2.5, and uncomment the datasource and mail session resource refs there.

* Added a jboss-web.xml to map from Roller's jdbc/rollerdb to java:/RollerDS, but need to check if this is really needed.

* Found some issues in Struts 2.1.8, so I upgraded to Struts 2.2.1. This also added a runtime dependency on Javassist.

* Needed to fix bug in String Taglib, which is a dead project, so removed dependency on String Taglib and added source for the five tags used by Roller.

> Roller 5 will not run on JBoss AS 6
> -----------------------------------
>
>                 Key: ROL-1894
>                 URL: https://issues.apache.org/jira/browse/ROL-1894
>             Project: Roller
>          Issue Type: Bug
>          Components: Build Process
>            Reporter: David Johnson
>            Assignee: David Johnson
>             Fix For: 5.0
>
>
> Roller 5 uses JPA 2.0 for persistence and is therefore a Java EE 6 web application, but for a variety of reasons, Roller 5 will not run on JBoss AS 6, which is a Java EE 6 compliant app server. 
> We should make it possible for Roller to run on JBoss AS 6 but without making it more difficult to install and run on Tomcat. As we discussed on the Roller mailing list ( http://s.apache.org/roller5javaee ), this may involve creating two releases of Roller: one that targets Tomcat and one that targets Java EE 6 application servers.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.