Install On Jboss 4.2.0
From AlfrescoWiki
Because Jboss 4.2.0GA includes the new JSF 1.2, you need to either disable the JSF version included in JBoss or configure the alfresco.war to ensure it uses the version included in alfresco.war only.
Contents |
[edit] Option 1 - Disable the JSF bundled with JBoss
Comment out or remove the following entries from jboss-4.2.0.GA\server\<config-name>\deploy\jboss-web.deployer\conf\web.xml
<!-- Comment/Remove this -->
<!-- Configures JSF for a web application if the javax.faces.webapp.FacesServlet is declared -->
<!-- in web.xml. -->
<!--
<listener>
<listener-class>org.jboss.web.jsf.integration.config.JBossJSFConfigureListener</listener-class>
</listener>
-->
<!-- Comment/Remove this -->
<!-- Listens to all web app lifecycle events so that @PreDestroy can be called on -->
<!-- JSF managed beans that go out of scope. You can comment this out if you -->
<!-- don't use JSF or you don't use annotations on your managed beans. -->
<!--
<listener>
<listener-class>com.sun.faces.application.WebappLifecycleListener</listener-class>
</listener>
-->
<!--
<init-param>
<description>JSF standard tlds</description>
<param-name>tagLibJar0</param-name>
<param-value>jsf-libs/jsf-impl.jar</param-value>
</init-param>
-->
OR
[edit] Option 2 - Configure the alfresco.war to use it's bundled JSF version
add the following to the web.xml in the alfresco.war file just after the <web-app> entry at the beginning of the file:
<context-param> <param-name>org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL</param-name> <param-value>true</param-value> </context-param>
[edit] Change the Hibernate Bytecode
In addition to Option 1 or 2 above, when deploying Alfresco 2.1 WAR you will need to edit the following file: \jboss\server\default\deploy\ejb3.deployer\META-INF\persistence.properties and change the line:
hibernate.bytecode.provider=javassist
to:
hibernate.bytecode.provider=cglib
[edit] Bind to something other than localhost
By default Jboss 4.2.x binds to the localhost address only.
To change this, start Jboss with the -b addr option.
E.g.
run.sh -b 192.168.0.100
Note, if you specify -b 0.0.0.0 Jboss will bind to all addresses.
Don't forget to edit the log settings as per the instructions here Deploying_WAR_JBoss
Back to Server Installation

