[Logo] JForum - Powering Communities
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Top Downloads] Top Downloads   [Groups] Back to home page 
[Register] Register /  [Login] Login 


New: JForum 2.6.0 has been released with many improvements, download it from here
JForum on JBoss RSS feed
Forum Index » User Forum
Author Message
aitorch


Joined: 2011/11/17
Messages: 1
Offline
Hi!

I'm trying to deploy JForum on JBoss AS 5 without success, I've receive some exceptions. There is any experience about deploying in JBoss?

Regards!
andowson


Joined: 2011/6/30
Messages: 213
Offline
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
seetharaml


Joined: 2012/9/18
Messages: 6
Offline
Hi,

Getting deployment error if i tried to install jforum-2.3.2 in jboss 6.0.0 final but its working fine if i tried to install jforum-2.3.2 in jboss AS 5.0, Can you pls look attachment for the error log and guide me to resolve this issue.


Thanks
 Filename server.log [Disk] Download
 Description No description given
 Filesize 15 Kbytes
 Downloaded:  15344 time(s)

andowson


Joined: 2011/6/30
Messages: 213
Offline
There are some version conflicts of the jboss-xxx.jar which JForum used between different JBoss AS versions.
Solution: Just remove the three jboss-xxx.jar jar files under jforum.war/WEB-INF/lib:
For JForum 2.3.4:
jboss-common-core-2.2.19.GA.jar
jboss-logging-spi-2.1.2.GA.jar
jboss-transaction-api-1.0.1.GA.jar

And restart JBoss, everything will be fine.
seetharaml


Joined: 2012/9/18
Messages: 6
Offline
Hi andowson,

Thanks for your reply, Still i am getting the error if i removed the jar as you mentioned. Please check the attachement and let me know.

Thanks
 Filename boot.log [Disk] Download
 Description No description given
 Filesize 426 Kbytes
 Downloaded:  15801 time(s)

andowson


Joined: 2011/6/30
Messages: 213
Offline
Please make sure that you can start JBoss normally before deploy JForum 2.3.4.
I see some error message about JBoss itself:
Caused by: java.io.FileNotFoundException: E:\Software_path\jboss\server\default\deploy\jbossweb.sar\server.xml (The system cannot find the path specified)

Caused by: java.io.FileNotFoundException: E:\Software_path\jboss\server\default\deploy\jbossweb.sar\web.xml (The system cannot find the path specified)

seetharaml


Joined: 2012/9/18
Messages: 6
Offline
Hi andowson,

Yes i can start jboss with out jforum.

Thanks for your reply.
andowson


Joined: 2011/6/30
Messages: 213
Offline
OK, please follow my steps:
1. Download jforum-2.3.4.war
2. Unpack jforum-2.3.4.war into jforum.war directory under D:\jboss-6.0.0.Final\server\default\deploy
3. Go to D:\jboss-6.0.0.Final\server\default\deploy\jforum.war\WEB-INF\lib, and delete the three jboss-*.jar
4. Open a cmd prompt
5. Change directory to D:\jboss-6.0.0.Final\bin
6. Execute run.bat
7. Wait for JBoss to load each war and show the message:
21:16:02,167 INFO [org.jboss.bootstrap.impl.base.server.AbstractServer] JBossAS
[6.0.0.Final "Neo"] Started in 3m:40s:877ms

8. Open a browser, and visit http://localhost:8080/jforum/

PS. I'm using JDK 6.0 Update 35 on Windows 7 32-bit.
 
Forum Index » User Forum
Go to:   
Mobile view
Powered by JForum 2.6.0 © 2019 JForum Team • Maintained by Andowson Chang and Ulf Dittmer
Website Security Test