----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
Hello,
I'm trying to install ApacheJServ-1.0 under LinuxPPC and have no luck. I've
tried everything I can imagine in the config files, but I just never see
the JServ server engine started. There's no message or error in the apache
logs except 'handler "jserv-status" not found for "/home/httpd/html/jserv"'
if I try to access my.server/jserv. I've compiled mod_jserv into httpd now,
since the first attempt as module didn't work because of EAPI (mod_ssl!).
Compile and install went fine.
The reason I try to install version 1.0 is that I want to use OpenCMS, and
this requires version 1.0 (at least the readme tells me that).
If I try to start JServ from the command line, I always get a 'Can't find
class "org.apache.jserv.JServ"' error:
[root@rkt-015 java]# export
CLASSPATH=/software/base/apache_module/ApacheJServ-1.0/src/java
[root@rkt-015 java]# java -v org.apache.jserv.JServ
...
[Loaded java/lang/IndexOutOfBoundsException.class from
/usr/local/jdk118-v2/bin/../lib/classes.zip]
[Loaded
/software/base/apache_module/ApacheJServ-1.0/src/java/org/apache/jserv/JServ.cla
ss]
[Loaded
/software/base/apache_module/ApacheJServ-1.0/src/java/org/apache/jserv/JServLogC
hannels.class]
[Loaded
/software/base/apache_module/ApacheJServ-1.0/src/java/org/apache/jserv/JServDefs
.class]
Can't find class org.apache.jserv.JServ
[root@rkt-015 lib]#
[root@rkt-015 java]# export CLASSPATH=/usr/local/jserv/lib/ApacheJServ.jar
[root@rkt-015 java]# java -v org.apache.jserv.JServ
....
[Loaded java/lang/IndexOutOfBoundsException.class from
/usr/local/jdk118-v2/bin/../lib/classes.zip]
[Loaded org/apache/jserv/JServ.class from /usr/local/jserv/lib/ApacheJServ.jar]
[Loaded org/apache/jserv/JServLogChannels.class from
/usr/local/jserv/lib/ApacheJServ.jar]
[Loaded org/apache/jserv/JServDefs.class from
/usr/local/jserv/lib/ApacheJServ.jar]
Can't find class org.apache.jserv.JServ
[root@rkt-015 lib]#
>From the verbose output I would conclude that JServ should be loaded?! But
also the following will not work:
[root@rkt-015 lib]# java org.apache.jserv.JServ -v
Can't find class org.apache.jserv.JServ
in spite of the fact that org.apache.jserv.JServ's main function should
immediately exit in this case (shouldn't it?):
public static void main(String[] argument) {
// Parse command line arguments
for (int i = 0; i < argument.length; i++) {
String arg = argument[i];
if (arg.charAt(0) == '-') {
switch (arg.charAt(1)) {
case 'v': System.out.println("Server version: " +
version()); break;
...
I've found and read the entries in the FAQ'o'matic about this same class
not found error, but they didn't help me so far. The jserv.conf and
jserv.properties files (as generated by make install) seem correct. If I
try to run JServ from the command line, they don't matter anyway, do they?
How would I have to define where it should find the config files? Is it
possible to start Jserv from the command line?
I'm using
ApacheJServ-1.0
JSDK2.0 (in /usr/local/JSDK2.0)
jdk118-v2 (Java tools are in /usr/local/jdk118-v2/bin (jdk118-v2 is a
symlink),
and 'java' is also in /usr/bin/java (symlink).)
Thanks!
Christian.
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]