File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JForum and the fly likes exception at first startup 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 "exception at first startup" Watch "exception at first startup" New topic
Author

exception at first startup

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
i unzipped it and created a context in tomcat. i did nothing else.

i am running tomcat 5.5 in win xp, on port 81

the first thing i get is:

exception

javax.servlet.ServletException: "Servlet.init()" pour la servlet jforum a g�n�r� une exception
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
org.apache.catalina.valves.FastCommonAccessLogValve.invoke(FastCommonAccessLogValve.java:495)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:833)
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:639)
org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1285)
java.lang.Thread.run(Unknown Source)

caused by

net.jforum.exceptions.DatabaseException: Error while trying to start the database: net.jforum.exceptions.DatabaseException: java.sql.SQLException: An attempt by a client to checkout a Connection has timed out.
com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:106)
com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:65)
com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:468)
com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(AbstractPoolBackedDataSource.java:125)
net.jforum.C3P0PooledConnection.getConnection(C3P0PooledConnection.java:137)
net.jforum.ForumStartup.startDatabase(ForumStartup.java:78)
net.jforum.JForum.init(JForum.java:98)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
org.apache.catalina.valves.FastCommonAccessLogValve.invoke(FastCommonAccessLogValve.java:495)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:833)
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:639)
org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1285)
java.lang.Thread.run(Unknown Source)


help ?
[originally posted on jforum.net by peacekeeper]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
and it takes the server a lot of time to come up with that, so there seems to be some timeout
[originally posted on jforum.net by peacekeeper]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
It may be a problem to database configuration. If you are using MySQL, take a look at WEB-INF/config/database/mysql/mysql.properties

Rafael
[originally posted on jforum.net by Rafael Steil]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
I'm getting this same exception when installing the current download version. Are you suggesting that we need to modify/configure the database file before we actually install JForum?
[originally posted on jforum.net by Fairbo]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Was wondering the same thing. I get the same exception, is there something we need to do with a database in order to get to the jforum admin page the first time you run? Actually, it looks like it tries to go directly to the boards the first time I run, not the setup page like shown in the instructions.

Thanks,
Jeff
[originally posted on jforum.net by netbracketsJeff]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
First, are you upgrading an existing install or installing new?

If upgrading, there are DB update scripts that need to be run, and some manual config file changes that you will have to do. These are clearly spelled out in the install/upgrade instructions.

If you are installing new, make sure your jforum DB has the correct username & password (and permissions). Check the DB properties file to make sure the DB settings are correct.

The error you are getting is pointing to a DB connection error.
[originally posted on jforum.net by GatorBait3]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
If you are installing new, make sure your jforum DB has the correct username & password (and permissions). Check the DB properties file to make sure the DB settings are correct.


I'm installing new. So what you are telling me is that I have to configure JForum before I even get to the installation screen to install JForum where that exact configuration is to take place? That seems a little backwords.
[originally posted on jforum.net by Fairbo]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
No, I am saying to check those settings after running the installer just to make sure they took.


[originally posted on jforum.net by GatorBait3]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
But that's the problem. I'm not even getting to the installation screen to set those settings when I'm getting this error and I'm using the downloaded version from this website to do this.
[originally posted on jforum.net by Fairbo]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Yes, it seems we have a chicken and egg situation here. We can't get to the database configuration screen without the database being configured.

"No, I am saying to check those settings after running the installer just to make sure they took. "

Just what are these settings we are supposed to be checking? i.e. what is the correct username & password we are supposed to have things set at? What is the name of the database supposed to be? Can it be a mysql database? Is this documented somewhere?

Thanks,
jeff
[originally posted on jforum.net by netbracketsJeff]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
I just performed an upgrade over the week-end and it was successful.

I am now trying a fresh install to see if I get the problems you are seeing, and will post my results.

AND .. did you create the JForum database as the instructions say to do? The JForum installer does NOT create the JForum database, user, or permissions on the DB. You have to do that before installing.

UPDATE --- MY NEW INSTALL RESULTS:

I had to use the link: http://localhost:8080/jforum/install.jsp to get the installer to kick off (not just http://localhost:8080/jforum/ as the instructions say).

After chmod'ing the files as requested by the installer, I then get this:

HTTP Status 404 - /jforum/install/install.page
--------------------------------------------------------------------------------
type Status report
message /jforum/install/install.page
description The requested resource (/jforum/install/install.page) is not available.


So there seems to be a problem with the current zip package missing files.

[originally posted on jforum.net by GatorBait3]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: exception at first startup
 
Similar Threads
UnsatisfiedLinkError
jsp servlet sql server
Problems with Tomcat 5.12 and 5.14
Tomcat connector with IIS 6.0
NoClassDefFound Error