tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark W. Webb" <>
Subject writing JNI Invokation app in C to launch tomcat
Date Wed, 25 Jun 2003 18:24:50 GMT
I am writing a C program in Solaris 9 that will use the JNI Invocation API to launch tomcat.
 I am doing this because I want to prompt the user for a startup password that will open a
PKCS12 file.  I do not want the password echoed to the screen.  

My C program will load a class that I have written, take in the password to open the PKCS12
file, and then call org.apache.catalina.startup.Bootstrap.main( String[] args).  I have looked
at the file and am passing the following parameters into the JVM :


I am running tomcat-4.1.24 binary distribution.

java version "1.4.1_03"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_03-b02)
Java HotSpot(TM) Client VM (build 1.4.1_03-b02, mixed mode)

I get the following error when I run my program.  Any ideas would be greatly appreciated.
 Thank you. 

org.apache.commons.logging.LogConfigurationException: java.lang.NullPointerException
        at org.apache.commons.logging.LogFactory.newFactory(
        at org.apache.commons.logging.LogFactory.getFactory(
        at org.apache.commons.logging.LogFactory.getLog(
        at org.apache.commons.digester.Digester.<init>(
        at org.apache.catalina.startup.Catalina.createStartDigester(
        at org.apache.catalina.startup.Catalina.start(
        at org.apache.catalina.startup.Catalina.execute(
        at org.apache.catalina.startup.Catalina.process(
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
        at java.lang.reflect.Method.invoke(
        at org.apache.catalina.startup.Bootstrap.main(
        at my.class.startup.Startup.startup(
Caused by: java.lang.NullPointerException
        at org.apache.commons.logging.LogFactory.newFactory(
        ... 13 more

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message