posted 18 years ago
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: 'java.net.SocketException: java.net.ConnectException: Connection refused: connect'.
** BEGIN NESTED EXCEPTION **
java.net.SocketException
MESSAGE: java.net.ConnectException: Connection refused: connect
STACKTRACE:
java.net.SocketException: java.net.ConnectException: Connection refused: connect
at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:156)
at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:276)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:2769)
at com.mysql.jdbc.Connection.<init>(Connection.java:1531)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:193)
at net.jforum.SimpleConnection.getConnection(SimpleConnection.java:93)
at net.jforum.SimpleConnection.init(SimpleConnection.java:74)
at net.jforum.view.install.InstallAction.configureDatabase(InstallAction.java:590)
at net.jforum.view.install.InstallAction.doInstall(InstallAction.java:153)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at net.jforum.Command.process(Command.java:117)
at net.jforum.view.install.InstallAction.process(InstallAction.java:764)
at net.jforum.InstallServlet.service(InstallServlet.java:140)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:103)
at com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.java:96)
at net.jforum.util.legacy.clickstream.ClickstreamFilter.doFilter(ClickstreamFilter.java:59)
at com.caucho.server.http.FilterChainFilter.doFilter(FilterChainFilter.java:88)
at com.caucho.server.http.Invocation.service(Invocation.java:315)
at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)
at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:246)
at com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:164)
at com.caucho.server.TcpConnection.run(TcpConnection.java:139)
at java.lang.Thread.run(Thread.java:536)
** END NESTED EXCEPTION **
Attempted reconnect 3 times. Giving up.
[originally posted on jforum.net by itm]