File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JForum and the fly likes Write permission to index.htm? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Groovy Fundamentals video training course this week in the Groovy forum!
JavaRanch » Java Forums » Products » JForum
Bookmark "Write permission to index.htm?" Watch "Write permission to index.htm?" New topic

Write permission to index.htm?

Migrated From
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
I've just installed Jforum 2.17 on a Windows XP SP2 machine, running a Resin app server (also v2.1.9).

I kicked off the jforum installation wizard, but after I clicked the "Begin Installation" button I got an error:

"Please give write access for the user who is running the webserver to the file 'index.htm' and for the directory 'WEB-INF/config' and its subdirectories before continuing. "

All files in the Jforum installation are fully writable by the logged-in user (which is an administrator user). I have verified this by opening index.htm in a text editor and saving a change to it.

Could anyone suggest why I might be getting this error?

Edit: I've just found another post on this, which suggests using a .redirect file from the 2.1.6 version. I've done this, but now I get the error below when trying to configure the database. I'm using the built-in database, and have left all settings to default apart from supplying database user/pw and admin passwords:

com.mysql.jdbc.exceptions.MySQLNonTransientConnectionException: Server connection failure during transaction. Due to underlying exception: ' Connection refused: connect'.

MESSAGE: Connection refused: connect

STACKTRACE: Connection refused: connect
at com.mysql.jdbc.StandardSocketFactory.connect(
at com.mysql.jdbc.MysqlIO.<init>(
at com.mysql.jdbc.Connection.createNewIO(
at com.mysql.jdbc.Connection.<init>(
at com.mysql.jdbc.NonRegisteringDriver.connect(
at java.sql.DriverManager.getConnection(
at java.sql.DriverManager.getConnection(
at net.jforum.SimpleConnection.getConnection(
at net.jforum.SimpleConnection.init(
at net.jforum.view.install.InstallAction.configureDatabase(
at net.jforum.view.install.InstallAction.doInstall(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at net.jforum.Command.process(
at net.jforum.view.install.InstallAction.process(
at net.jforum.InstallServlet.service(
at javax.servlet.http.HttpServlet.service(
at com.caucho.server.http.FilterChainServlet.doFilter(
at net.jforum.util.legacy.clickstream.ClickstreamFilter.doFilter(
at com.caucho.server.http.FilterChainFilter.doFilter(
at com.caucho.server.http.Invocation.service(
at com.caucho.server.http.CacheInvocation.service(
at com.caucho.server.http.HttpRequest.handleRequest(
at com.caucho.server.http.HttpRequest.handleConnection(


Attempted reconnect 3 times. Giving up.
[originally posted on by itm]
Migrated From
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
A search with various combinations of this error should have led you to this post:
[originally posted on by monroe]
Migrated From
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Thanks - I had already found the other post, and edited my original post accordingly. I now have database/JDBC setup problems - which I started a different thread for.
[originally posted on by itm]
wood burning stoves
subject: Write permission to index.htm?