You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Burt Alexander <bu...@linuxstart.com> on 1999/05/21 18:51:35 UTC

mod_jserv/4452: JServ will not work with InstantDB - Wrongful FileNotFound error thrown

>Number:         4452
>Category:       mod_jserv
>Synopsis:       JServ will not work with InstantDB - Wrongful FileNotFound error thrown
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    jserv
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Fri May 21 11:10:00 PDT 1999
>Last-Modified:
>Originator:     burt.alexander@linuxstart.com
>Organization:
apache
>Release:        Apache 1.3.6, JServ b5, b4, b3
>Environment:
Redhat Linux 6.0, Blackdown JDK 1.1.7v3, InstantDB 2.2
>Description:
InstantDB (www.instantdb.co.uk) is a Java database engine.  I've created my own
database and can access it via the tools included in the distribution.

The url for the driver looks like so: jdbc:idb:/path/to/properties.prp.  This
properties file contains (strangely enough!) properties that define the location
of various files and directories.  By default (and unchanged by myself) they
exist in the same directory as the properties file.  The properties look like:

traceFile=./trace.log

tablePath=./tables

indexPath=./index

tmpPath=./tmp

systemPath=./system


specifying a relative path to these files & directories - they are all in the
same directory as the properties file.  When I try to create a connection to 
the database via my servlets, the following occurs:

java.sql.SQLException: IO problem: java.io.FileNotFoundException: ./trace.log
	at db.Trace.setExport(Trace.java)
	at db.Database.initialise(Database.java)
	at db.Database.dbOpen(Database.java)
	at jdbc.idbConnection.<init>(idbConnection.java)
	at jdbc.idbDriver.connect(idbDriver.java)
	at java.sql.DriverManager.getConnection(DriverManager.java:83)
	at java.sql.DriverManager.getConnection(DriverManager.java:141)

I have explicity defined the path with the same results.  I'm certain that the
installation of InstantDB is correct as I can access my database using their 
tools.  I'm fairly certain that my JServ properties are correct as my servlets
are working.

Using JRun with Apache on NT with the same code, all works as expected.
>How-To-Repeat:
The only way to investigate this is to download & install InstantDB, write a 
quick servlet & test.  InstantDB comes with a sample database that is quickly
installed & would be good to test with.
>Fix:

>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, ]
[you need to include <ap...@Apache.Org> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]
[If you do not include this Cc, your reply may be ig-   ]
[nored unless you are responding to an explicit request ]
[from a developer.                                      ]
[Reply only with text; DO NOT SEND ATTACHMENTS!         ]