Hi everybody,

I'm using HSQLDB database with Tomcal in my webapp.
In a development environment with JBuilder and built-in Tomcat 4.0
everything works fine.
But when I deploy my web appl. to local standalone Tomcat 5.0 (I tryed with Tomcat 4.0 too)
I fail to launch the db engine.


Implementation details:

1. I registered my servlet in web.xml.
2. In its init() I wrote:

Start of source
--------------------------------------------------------------------------------
        String urlPar = "jdbc:hsqldb:http://localhost:9002/dbcompact";;
        String serverClass = "org.hsqldb.WebServer";

Class[] argTypes = new Class[1];
argTypes[0] = String[].class;
Object[] argValues = new Object[1];
argValues[0] = new String[] { "-url", urlPar, "-user", "cl", "-password", "cldb" };


        try
        {
            Class klass = Class.forName(serverClass);
            systemLog.log("Obtained server class");
            Method mainMethod = klass.getDeclaredMethod("main", argTypes);
            systemLog.log("Obtained main method");
            mainMethod.invoke(null, argValues);
        }
        catch ( Exception ex ) // some message depending on exception
        {
            systemLog.log("Some message" + ex.getMessage());
        }
---------------------------------------------------------------------------------------------------------------------
End of source

I saw in my log file that serverClass and mainMethod are obtained and
mainMethod invoked without exception, but the db doesn't launch.
Once again, in the development environment everything is OK.

The database .jar file is under WEB-INF/lib dir.
db text files I tried to put in WEB-INF, WEB-INF/classes, and $WINNT/system32 dirs.
Nothing helps.


Thanks in advance

Zeev Lazarev

_________________________________________________________________
Best Restaurant Giveaway Ever! Vote for your favorites for a chance to win $1 million! http://local.msn.com/special/giveaway.asp



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to