This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » JForum
Bookmark "Write permission to index.htm?" Watch "Write permission to index.htm?" New topic
Author

Write permission to index.htm?

Migrated From Jforum.net
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: '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]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
A search with various combinations of this error should have led you to this post:

http://www.coderanch.com/t/576958
[originally posted on jforum.net by monroe]
Migrated From Jforum.net
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 jforum.net by itm]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Write permission to index.htm?
 
Similar Threads
java.sql.SQLException: Access denied
upgrading from 2.1.6 to cvs head
Connecting with MySql
installation problem
another JDBC driver question