Thanks for the information. I really need to get this going, and it should
be simple(!).
I had originally installed the tomcat.deb package, and it required several
other packages, one was the ibm-jdk1.1-installer, which sent me to IBM, and
there I got the required packages for it. I think that is how I got Kaffe
installed. (are the dependencies in the Debian Tomcat package wrong?)
Anyway, I de-installed all IBM stuff, and kaffe, and got jdk1.1 and
jdk1.1-dev from Debian, and now when I run it I can't get servlets to run,
nor .jsp's.
If there is a more simple method, or if I am dong something wrong, just let
me know!!
I now get:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable
to complete your request.
Please contact the server administrator, [EMAIL PROTECTED] and
inform them of the time the error occurred, and anything you might have
done that may have caused the error.
More information about this error may be available in the server error log.
omega:/etc/apache# more /etc/apache/logs/mod_jserv.log
[07/11/2000 21:35:43:272] (EMERGENCY) ajp12: can not connect to host
127.0.0.1:8007
[07/11/2000 21:35:43:272] (EMERGENCY) ajp12: connection fail
[07/11/2000 21:35:43:272] (ERROR) an error returned handling request via
protocol "ajpv12"
and: /var/log/apache/error.log
[Tue Nov 7 21:35:35 2000] [notice] SIGHUP received. Attempting to restart
[Tue Nov 7 21:35:35 2000] [warn] Loaded DSO libexec/mod_jserv.so uses
plain Apache 1.3 API, this module might crash under EAPI! (please recompile
it with -DEAPI)
[Tue Nov 7 21:35:36 2000] [notice] Apache/1.3.12 (Unix) Debian/GNU
tomcat/1.0 configured -- resuming normal operations
[Tue Nov 7 21:35:36 2000] [notice] suEXEC mechanism enabled (wrapper:
/usr/lib/apache/suexec)
Suggestions?
Other questions or points:
Where should I get jsdk from? ibm had j2sdk, but I don't see anything from
(at) Debian.
At 11:48 PM 11/06/2000 +0100, Stefan Gybas wrote:
Gregory Guthrie wrote:
> 1) How do I test it with their examples? There is a webapps/examples.war;
> how do I invoke it?
Tomcat from the Debian package runs its HTTP listener on port 8081 (that's
because 8080 is used by some other packages like junkbuster), so you
have to access the pages as http://localhost:8081/.
-- I used it via Apache, and mod_jserv, so I assume that I do not have to
use this alternate port, that would be for standalone service.
> I (still) get an error that:
> [Mon Nov 6 11:14:02 2000] [warn] Loaded DSO libexec/mod_jserv.so
> uses plain Apache 1.3 API, this module might crash under EAPI! (please
> recompile it with -DEAPI)
Please use a never package version - this problem was fixed in 1.1-3 which
is also in the release Debian 2.1.
-- How would I get the new(er) mod_jserv; I got the latest from:
http://jakarta.apache.org/builds/tomcat/release/v3.1/bin/linux/i386/
The only one I find at Debian is in jserv, which is mutually exclusive with
tomcat. Where would I get the newer version?
The AJP12 listener is disabled in the Debian package, you have to enable
it in /etc/tomcat/server.xml. T
-- thanks, done.
-- I re-installed your tomcat again, thinking it may be happier now without
IBM, but I get lots of errors (below),
A few are surprising to me;
1) Error generating automatic IIS configuration
java.io.FileNotFoundException: /usr/share/tomcat/conf/iis
_redirect.reg-auto
[isn't IIS the NT web server connector?]
[ the file is there]
2) Unable to open log file: /usr/share/tomcat/logs/servlet.log!
[the file was there, but owned by root, bad permissions?]
3) the file /usr/share/tomcat/work does exist, but should it be owned by
www-data?
drwxr-xr-x 2 root root 4096 Nov 7 20:47
/usr/share/tomcat/work
Thanks for any help, or advice.
Gregory
------------------------------------------------------------------------------------
/var/log/tomcat/stder.out:
Unable to open log file: /usr/share/tomcat/logs/servlet.log! Using stderr
as the default.
Unable to open log file: /usr/share/tomcat/logs/jasper.log! Using stderr
as the default.
Starting tomcat. Check logs/tomcat.log for error messages
Error generating automatic apache configuration
java.io.FileNotFoundException: /usr/share/tomcat/conf/
tomcat-apache.conf
java.io.FileNotFoundException: /usr/share/tomcat/conf/tomcat-apache.conf
at java.io.FileOutputStream.<init>(FileOutputStream.java)
at java.io.FileWriter.<init>(FileWriter.java)
at org.apache.tomcat.task.ApacheConfig.execute(ApacheConfig.java:97)
at
org.apache.tomcat.startup.Tomcat.generateServerConfig(Tomcat.java:219)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:237)
Error generating automatic IIS configuration java.io.FileNotFoundException:
/usr/share/tomcat/conf/iis
_redirect.reg-auto
java.io.FileNotFoundException: /usr/share/tomcat/conf/iis_redirect.reg-auto
at java.io.FileOutputStream.<init>(FileOutputStream.java)
at java.io.FileWriter.<init>(FileWriter.java)
at org.apache.tomcat.task.IISConfig.execute(IISConfig.java:89)
at
org.apache.tomcat.startup.Tomcat.generateServerConfig(Tomcat.java:225)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:237)
Error generating automatic Netscape configuration
java.io.FileNotFoundException: /usr/share/tomcat/con
f/obj.conf-auto
java.io.FileNotFoundException: /usr/share/tomcat/conf/obj.conf-auto
at java.io.FileOutputStream.<init>(FileOutputStream.java)
at java.io.FileWriter.<init>(FileWriter.java)
at org.apache.tomcat.task.NSConfig.execute(NSConfig.java:88)
at
org.apache.tomcat.startup.Tomcat.generateServerConfig(Tomcat.java:231)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:237)
2000-11-07 09:55:23 - ContextManager: Adding context Ctx( /examples )
2000-11-07 09:55:23 - ContextManager: Adding context Ctx( /admin )
2000-11-07 09:55:23 - ContextManager: Adding context Ctx( )
2000-11-07 09:55:27 - path="/examples" :jsp: init
2000-11-07 09:55:27 - The scratchDir you specified:
/usr/share/tomcat/work/localhost_8080%2Fexamples i
s unusable.
2000-11-07 09:55:27 - Scratch dir for the JSP engine is:
/usr/share/tomcat/work/localhost_8080%2Fexamp
les
2000-11-07 09:55:27 - IMPORTANT: Do not modify the generated servlets
2000-11-07 09:55:28 - path="/admin" :jsp: init
2000-11-07 09:55:28 - The scratchDir you specified:
/usr/share/tomcat/work/localhost_8080%2Fadmin is u
nusable.
2000-11-07 09:55:29 - path="" :jsp: init
2000-11-07 09:55:29 - The scratchDir you specified:
/usr/share/tomcat/work/localhost_8080 is unusable.
2000-11-07 09:55:29 - PoolTcpConnector: Starting HttpConnectionHandler on 8081
2000-11-07 09:55:29 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007
2000-11-07 09:55:40 - JspEngine --> /jsp/examples/date.jsp
2000-11-07 09:55:40 - ServletPath: /jsp/examples/date.jsp
--------------------------------------------------------
Gregory Guthrie
[EMAIL PROTECTED] (641)472-1125 Fax: -1103
--------------------------------------------------------