> Tomcat is a java web server. 'nuff said I
> would say. The only way to invoke C++ code is by
> putting it in a java JNI compatible library and
> invoking it from java.
Not quite this simple. Tomcat can be configured to run CGI and, depending on what the c++ is doing, it may be possible to run it as CGI.