Message |
|
1.Check if you have a log4j.xml in your jforum/WEB-INF/classes directory. If no, copy from jforum/WEB-INF/log4j_template.xml.
2.Restart JForum and check if /tmp has jforum.log there.
|
|
|
Admin should be able to delete others posts.
Just click the [x] button at the top-right corner.
|
|
|
You can try to run it and check the log for error message.
If nothing went wrong, then you have succeeded.
|
|
|
I don't know what "merging users table" really means for you.
If you remain keeping two users tables, one for your application, the other for JForum, then SSO would do the trick.
You can use your application user's username to login JForum by implementing JForum SSO.
See this post http://jforum.andowson.com/posts/list/35.page as a reference.
If you just want to keep one users table for both your application and JForum, then you can keep jforum_users table
and add new columns into jforum_users for your applications.
|
|
|
Caused by: net.jforum.exceptions.DatabaseException: java.sql.SQLException: An attempt by a client to checkout a Connection has timed out.
... 34 more
Did you start MySQL server before you launched JForum?
|
|
|
The jforum-custom.conf file is generated after you have finished JForum web-based installation.
You can find it under <jforum_installed_dir>/WEB-INF/config directory.
The content looks like the following:
#Installation specific configuration options
#Thu Jul 09 02:39:41 CST 2015
announcement=
avatar.maxHeight=130
avatar.maxWidth=130
avatarMaxKbSize=25
captcha.registration=true
container.app=Apache Tomcat
container.version=8
context.path=/jforum
dao.driver=net.jforum.dao.mysql.MysqlDataAccessDriver
database.connection.dbname=jforum
database.connection.driver=com.mysql.jdbc.Driver
database.connection.host=localhost
database.connection.implementation=net.jforum.PooledConnection
database.connection.password=root
database.connection.pool.max=50
database.connection.pool.min=5
database.connection.pool.timeout=5000
database.connection.port=3306
database.connection.string=jdbc\:mysql\://${database.connection.host}\:${database.connection.port}/${database.connection.dbname}?user\=${database.connection.username}&password\=${database.connection.password}&autoReconnect\=true${mysql.unicode}${mysql.encoding}&useNewIO\=false&zeroDateTimeBehavior\=convertToNull&useServerPrepStmts\=false&dumpQueriesOnException\=true&jdbcCompliantTruncation\=false
database.connection.username=root
database.driver.name=mysql
database.support.autokeys=true
database.support.subqueries=true
dateTime.format=yyyy/MM/dd HH\:mm\:ss
dateTime.local=true
dbencoding=utf-8
encoding=UTF-8
forum.link=http\://localhost\:8080/jforum/
forum.name=My Forum
forum.page.metatag.description=here goes the board description
forum.page.metatag.keywords=some keywords for your board
forum.page.title=My Forum - your board description
homepage.link=http\://localhost\:8080
hot.topic.begin=20
html.tags.welcome=a, img, font, b, i, u, li, ul, br, hr, p
i18n.board.default=zh_TW
installed=true
mail.activationKey.messageFile=mail/zh_TW/activateAccount.txt
mail.activationKey.subject=[My Forum] Activate forum account
mail.charset=UTF-8
mail.lostPassword.messageFile=mail/zh_TW/lostPassword.txt
mail.lostPassword.subject=[My Forum] Password recovery
mail.messageFormat=html
mail.newAnswer.messageFile=mail/zh_TW/mailNewReply.txt
mail.newAnswer.subject=[My Forum] Message posted\: {0}
mail.newPm.messageFile=mail/zh_TW/newPrivateMessage.txt
mail.newPm.subject=[My Forum] Private Message
mail.notify.answers=false
mail.sender=email@sender.address
mail.smtp.auth=true
mail.smtp.host=localhost
mail.smtp.password=smtppassword
mail.smtp.port=25
mail.smtp.ssl=false
mail.smtp.username=your@smtp.username
mail.user.email.auth=false
mysql.encoding=
mysql.unicode=
org.quartz.context.mailintegration.cron.expression=0 0/30 * ? * *
org.quartz.context.summary.cron.expression=0 30 12 ? * MON
org.quartz.scheduler.instanceId=AUTO
org.quartz.scheduler.instanceName=JForumScheduler
org.quartz.scheduler.threadName=JForumSchedulerThread
org.quartz.threadPool.class=org.quartz.simpl.SimpleThreadPool
org.quartz.threadPool.threadCount=2
org.quartz.threadPool.threadPriority=3
posts.cache.enabled=true
posts.cache.size=100
posts.edit.after.reply=true
posts.new.delay=15000
postsPerPage=15
registration.enabled=true
rss.enabled=true
server.info=Apache Tomcat/8.0.23
servlet.version=3.1
show.ip=true
show.online.status=true
social.enabled=true
topic.hottest=50
topic.recent=50
topicsPerPage=15
user.hash.sequence=82b17028644414f05588f471455ad51b
usersPerPage=30
You can also re-package jforum.war with your jforum-custom.conf containing the correct database connection and other system settings.
|
|
|
In short, currently JForum does not support war deployment method.
You have to explode the jforum.war file into jforum directory.
JForum will check for installed=true existing in jforum-custom.conf properties file or not when you access the /index.jsp. If JForum cannot find installed=true, it will redirect URL to /install.jsp.
If you don't want this feature, you can modify the index.jsp by removing or commenting out the following lines:
[code=java;first-line:7] if (cfg == null || !(new File(cfg).exists()) || !SystemGlobals.getBoolValue(ConfigKeys.INSTALLED)) {
redirect = "install.jsp";
}[/code]
Re-package the jforum.war and deploy it again, then manually access the /install.jsp URL at the first time.
|
|
|
Hi, since you are upgrading from v2.3.5 to v2.4.1, you'll need to run both the 2.3.5 to 2.4.0 SQL script and 2.4.0 to 2.4.1 SQL script.
And you'll need to copy back the images/avatar too.
For my way, I used to do the following steps:
1. unpack the jforum-2.4.1.war into a directory on the server, say /tmp/jforum-2.4.1
2. delete all the jar file in the old jforum's WEB-INF/lib
3. copy all the files from /tmp/jforum-2.4.1/ to overwrite the old jforum's directory
4. delete the old versoin jQuery javascript
5. edit the modulesMapping.properties, remove the last line of install
6. run the upgrade SQL script from all the version between 2.3.5 to 2.4.1, first 2.3.5 to 2.4.0, then 2.4.0 to 2.4.1
7. customize the template files
8. change file or directory permission if needed
|
|
|
The JForum2 Project is proud to announce the release of version 2.4.1 of JForum. This release includes bug fixes and new features compared to version 2.4.0.
You can download the latest war file from the following URL, then deploy it to your Tomcat's webapps directory:
http://sourceforge.net/projects/jforum2/files/jforum-2.4.1.war/download
If your Tomcat doesn't unpack the war file automatically, you'll need to unpack it manually, then restart your Tomcat.
Known Issue:
If you want JForum to display datetime according to the user's local time, you have to change the dateTime.format as yyyy/MM/dd HH\:mm\:ss, or in some mobile phone like iPhone will display the date time incorrectly.
|
|
|
Thank you for reporting this bug, I've fixed it by specify the img tag's height and width attributes.
|
|
|
For the java.lang.IllegalStateException: Cannot create a session after the response has been committed issue,
Try to change the order of filters in web.xml as follows (Make CSRFGuard filter the latest filter):
<!-- Clickstream -->
<filter>
<filter-name>clickstream-jforum</filter-name>
<filter-class>net.jforum.util.legacy.clickstream.ClickstreamFilter</filter-class>
</filter>
<!-- CSRF Protection -->
<filter>
<filter-name>CSRFGuard</filter-name>
<filter-class>net.jforum.csrf.CsrfFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>clickstream-jforum</filter-name>
<url-pattern>*.page</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>CSRFGuard</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
And for the unknown module for /MapBake/MB1 issue,
Try to add them as unprotected page, like this:
org.owasp.csrfguard.unprotected.MB1=/MapBake/MB1
|
|
|
Hi Spencer,
Last time you said you set the web.xml to map the filtering of csrfguard to *.page.
Maybe you need to change back to /* .
|
|
|
I think there is no need to modify csrf.properties, change it back to
list=NoCsrfWorriesHere
and try again
|
|
|
You can check the csrf related config files:
WEB-INF/config/csrf.properties
Change
list=NoCsrfWorriesHere
to
list=AddToken
WEB-INF/config/csrfguard.properties
Maybe you need to change the org.owasp.csrfguard.NewTokenLandingPage parameter
I don't know if it works, you can try it and report the result.
|
|
|
You can create a file setenv.sh under tomcat/bin directory
The content of my setenv.sh is as follows:
JAVA_HOME="/usr/java/latest"
JAVA_OPTS="-server -XX:NewSize=123m -XX:MaxNewSize=123m -XX:SurvivorRatio=8 -Xss256k -Xms495m -Xmx495m -Djava.net.preferIPv4Stack=true -Djava.awt.headless=true"
You can modify the other memory size options according to your server's capacity.
Reference:
http://www.andowson.com/posts/list/556.page
|
|
|