This week's book giveaway is in the Server-Side JavaScript and NodeJS forum.
We're giving away four copies of Modern JavaScript for the Impatient and have Cay Horstmann on-line!
See this thread for details.
Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Write permission to index.htm?

Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A search with various combinations of this error should have led you to this post:
[originally posted on by monroe]
Migrated From
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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]
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic