[Logo] JForum - Powering Communities
  [Search] 搜尋   [Recent Topics] 最新主題   [Hottest Topics] 熱門主題   [Top Downloads] 熱門下載   [Groups] 回首頁 
[Register] 會員註冊 /  [Login] 登入 


JForum 2.8.3 is out with various fixes and improvements. Read all about it here

JForum on JBoss RSS feed
討論區首頁 » User Forum
發表人 內容
aitorch


註冊時間: 2011/11/17
文章: 1
離線
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


註冊時間: 2011/6/30
文章: 252
離線
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


註冊時間: 2012/9/18
文章: 6
離線
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
 檔案名稱 server.log [Disk] 下載
 描述 沒有檔案註解存在
 檔案大小 15 Kbytes
 下載次數:  61604 次

andowson


註冊時間: 2011/6/30
文章: 252
離線
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


註冊時間: 2012/9/18
文章: 6
離線
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
 檔案名稱 boot.log [Disk] 下載
 描述 沒有檔案註解存在
 檔案大小 426 Kbytes
 下載次數:  62226 次

andowson


註冊時間: 2011/6/30
文章: 252
離線
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


註冊時間: 2012/9/18
文章: 6
離線
Hi andowson,

Yes i can start jboss with out jforum.

Thanks for your reply.
andowson


註冊時間: 2011/6/30
文章: 252
離線
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.
 
討論區首頁 » User Forum
前往:   
行動版
Powered by JForum 2.8.3 © 2023 JForum Team • Maintained by Andowson Chang and Ulf Dittmer