You need to do the following for JForum-2.3.2.war to be successfully deployed on JBoss AS 5.0
Here I use jboss-5.0.1.GA as an example.
1.Create a new directory jforum.war under C:\jboss-5.0.1.GA\server\default\deploy
2.Unpack the jforum-2.3.2.war into C:\jboss-5.0.1.GA\server\default\deploy\jforum.war(You can use
7-Zip or other unzip tool)
3.Modify jforum.war\WEB-INF\web.xml
3.1 Remove <distributable/>
3.2 Remove DataSource jdbc/JForumDB
<resource-ref>
<description>DB Connection</description>
<res-ref-name>jdbc/JForumDB</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
The rest of web.xml should look like this:
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="JForum" version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>JForum - Powering Communities</display-name>
<description>Open Source Java Forum Software</description>
<!-- Clickstream -->
<filter>
<filter-name>clickstream-jforum</filter-name>
<filter-class>net.jforum.util.legacy.clickstream.ClickstreamFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>clickstream-jforum</filter-name>
<url-pattern>*.page</url-pattern>
</filter-mapping>
<listener>
<listener-class>net.jforum.ForumSessionListener</listener-class>
</listener>
<listener>
<listener-class>net.jforum.ContextListener</listener-class>
</listener>
<!-- JForum Controller -->
<servlet>
<servlet-name>jforum</servlet-name>
<servlet-class>net.jforum.JForum</servlet-class>
<init-param>
<param-name>development</param-name>
<param-value>true</param-value>
</init-param>
</servlet>
<!-- Installer -->
<servlet>
<servlet-name>install</servlet-name>
<servlet-class>net.jforum.InstallServlet</servlet-class>
<init-param>
<param-name>development</param-name>
<param-value>true</param-value>
</init-param>
</servlet>
<!-- Mapping -->
<servlet-mapping>
<servlet-name>install</servlet-name>
<url-pattern>/install/install.page</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>jforum</servlet-name>
<url-pattern>*.page</url-pattern>
</servlet-mapping>
<!-- SESSION -->
<session-config>
<session-timeout>5</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<!--
<error-page>
<error-code>404</error-code>
<location>/missing.jsp</location>
</error-page>
-->
<!-- SSO -->
<!-- Example of SSO configuration -->
<!--
<security-role>
<role-name>user</role-name>
</security-role>
<security-constraint>
<web-resource-collection>
<web-resource-name>Restricted Area</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>user</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>REALM NAME HERE</realm-name>
</login-config>
-->
</web-app>
4.Open a command window and go to C:\jboss-5.0.1.GA\bin directory
5.Execute run.bat to fire up JBoss
6.Open a browser and visit
http://localhost:8080/jforum/
7.Follows the installation wizard to complete JForum installation