In your jserv.properties file, make sure that you have this line:
# Apache JServ entry point class (should not be changed)
# Syntax: wrapper.class=[classname]
# Default: "org.apache.jserv.JServ"
wrapper.class=org.apache.jserv.JServ
If you have overridden the above line with something else, you must have
at least one more line with the above in it. In other words if you have this:
wrapper.class=foo.bar.ack
you MUST also have another line like this:
wrapper.class=org.apache.jserv.JServ
They will be appended together internally.
Also, make sure that your wrapper.classpath= has the correct path to your ApacheJServ.jar file.
ie:
wrapper.classpath=/usr/local/jserv/ApacheJServ.jar
|
----------
From: Tim Trentham tim@furnitureshow.com
To: Java Apache Users java-apache-users@list.working-dogs.com
Subject: Re: Can't find class org.apache.jserv.JServ
Date: Wed, Jul 14, 1999, 3:08 PM
as an addendum to jon's explanation, here is what the relevant lines in
my jserv.conf look like....
# Apache JServ entry point class
# Syntax: wrapper.class=[classname]
# Default: "org.apache.jserv.JServ"
wrapper.class=org.apache.jserv.JServ
# CLASSPATH environment value passed to the JVM
# Syntax: wrapper.classpath=[path]
# Default: NONE (Sun's JDK/JRE already have a default classpath)
# Notes: if more than one line is supplied these will be concatenated using
# ":" or ";" (depending wether Unix or Win32) characters.
# JVM must be able to find JSDK and JServ classes and any
# utility classes used by your servlets.
# Apache JServ Servlet Classes
wrapper.classpath=/usr/local/ApacheJServ-1.0/src/java/ApacheJServ.jar
check that
1) both of these lines are in your jserv.conf
2) the jar file exists and the path to it is correct for your install
3) "jar tvf ApacheJServ.jar" produces this....
5735 Wed Jun 30 15:46:48 EDT 1999 META-INF/MANIFEST.MF
681 Wed Jun 30 15:46:18 EDT 1999 org/apache/java/io/LogRecord.class
909 Wed Jun 30 15:46:24 EDT 1999 org/apache/java/io/LogWriter$1.class
2853 Wed Jun 30 15:46:24 EDT 1999 org/apache/java/io/LogWriter$Agent.class
6384 Wed Jun 30 15:46:24 EDT 1999 org/apache/java/io/LogWriter.class
847 Wed Jun 30 15:46:24 EDT 1999 org/apache/java/io/ReadFullyInputStream.class
701 Wed Jun 30 15:46:26 EDT 1999 org/apache/java/lang/AdaptiveClassLoader$ClassCacheEntry.class
8517 Wed Jun 30 15:46:26 EDT 1999 org/apache/java/lang/AdaptiveClassLoader.class
3281 Wed Jun 30 15:46:26 EDT 1999 org/apache/java/lang/Bytes.class
1948 Wed Jun 30 15:46:28 EDT 1999 org/apache/java/lang/Lock.class
509 Wed Jun 30 15:46:28 EDT 1999 org/apache/java/lang/TimeoutException.class
3600 Wed Jun 30 15:46:32 EDT 1999 org/apache/java/net/AuthenticatedServerSocket.class
1844 Wed Jun 30 15:46:32 EDT 1999 org/apache/java/net/AuthenticatedSocket.class
525 Wed Jun 30 15:46:30 EDT 1999 org/apache/java/net/AuthenticationException.class
7194 Wed Jun 30 15:46:34 EDT 1999 org/apache/java/security/MD5.class
880 Wed Jun 30 15:46:30 EDT 1999 org/apache/java/security/MessageDigest.class
9675 Wed Jun 30 15:46:22 EDT 1999 org/apache/java/util/Configurations.class
1028 Wed Jun 30 15:46:20 EDT 1999 org/apache/java/util/ConfigurationsRepository.class
1549 Wed Jun 30 15:46:34 EDT 1999 org/apache/java/util/ExtendedProperties$PropertiesReader.class
1524 Wed Jun 30 15:46:34 EDT 1999 org/apache/java/util/ExtendedProperties$PropertiesTokenizer.class
2634 Wed Jun 30 15:46:34 EDT 1999 org/apache/java/util/ExtendedProperties.class
1321 Wed Jun 30 15:46:22 EDT 1999 org/apache/java/util/SimpleQueue.class
18002 Wed Jun 30 15:46:46 EDT 1999 org/apache/jserv/JServ.class
729 Wed Jun 30 15:46:42 EDT 1999 org/apache/jserv/JServConnection$AllDataRead.class
1688 Wed Jun 30 15:46:42 EDT 1999 org/apache/jserv/JServConnection$JServInputStream.class
1430 Wed Jun 30 15:46:42 EDT 1999 org/apache/jserv/JServConnection$JServOutputStream.class
23904 Wed Jun 30 15:46:42 EDT 1999 org/apache/jserv/JServConnection.class
7358 Wed Jun 30 15:46:46 EDT 1999 org/apache/jserv/JServContext.class
366 Wed Jun 30 15:46:46 EDT 1999 org/apache/jserv/JServDefs.class
1299 Wed Jun 30 15:46:40 EDT 1999 org/apache/jserv/JServLog.class
787 Wed Jun 30 15:46:36 EDT 1999 org/apache/jserv/JServLogChannels.class
5946 Wed Jun 30 15:46:46 EDT 1999 org/apache/jserv/JServSTMStore.class
406 Wed Jun 30 15:46:36 EDT 1999 org/apache/jserv/JServSendError.class
16511 Wed Jun 30 15:46:44 EDT 1999 org/apache/jserv/JServServletManager.class
4910 Wed Jun 30 15:46:46 EDT 1999 org/apache/jserv/JServSession.class
4534 Wed Jun 30 15:46:38 EDT 1999 org/apache/jserv/JServUtils.class
here are the permissions on my jar file
-rw-r--r-- 1 root bin 157757 Jun 30 14:46 ApacheJServ.jar
hope that helps..... |
----------
From: "Alan R Williamson" alan@n-ary.com
To: "Java Apache Users" java-apache-users@list.working-dogs.com
Subject: Can't find class org.apache.jserv.JServ
Date: Wed, Jul 14, 1999
[..skipped..]
I have read http://java.apache.org/faq/index.cgi?file=85 which is no help.
I can run the system manually with no problems what so ever. Now I have
everything setup as stated in all the documentation. But still i get this.
Now what is the definite answer here? What is the file permissions of
these files? What is the permissions of the directories? What is the
weather suppose to be?
+++ my error_log file+++
Can't find class org.apache.jserv.JServ
Can't find class org.apache.jserv.JServ
Can't find class org.apache.jserv.JServ
Can't find class org.apache.jserv.JServ
Can't find class org.apache.jserv.JServ
----------
From: "jon *" jon@clearink.com
To: Java Apache Users java-apache-users@list.working-dogs.com
Subject: Re: Can't find class org.apache.jserv.JServ
Date: Wed, 14 Jul 1999 14:48:41 -0700
> I have read http://java.apache.org/faq/index.cgi?file=85 which is no help.
really alan, that is the answer. for some reason, the jdk cannot access the
class. either your .jar file is in the wrong location, is corrupt, doesn't
exist or you have your wrapper.class and wrapper.classpath set wrong.
-jon
----------
From: Pierpaolo Fumagalli pier@apache.org
To: Java Apache Users java-apache-users@list.working-dogs.com
Subject: Re: Can't find class org.apache.jserv.JServ
Date: Wed, 14 Jul 1999 14:48:23 -0700
Alan R Williamson wrote:
>
> Now what is the definite answer here? What is the file permissions of
> these files? What is the permissions of the directories? What is the
> weather suppose to be?
>
"SU" to your httpd user and try to run JServ manually...
Pier
----------
From: "Alan R Williamson" alan@n-ary.com
To: "Java Apache Users" java-apache-users@list.working-dogs.com
Subject: RE: Can't find class org.apache.jserv.JServ
Date: Wed, 14 Jul 1999 23:05:06 +0100
> really alan, that is the answer. for some reason, the jdk cannot access the
> class. either your .jar file is in the wrong location, is corrupt, doesn't
> exist or you have your wrapper.class and wrapper.classpath set wrong.
In the words of General Hague.... BUGGER. Checked all that Jon, still nothing.
However, Pier said something that made the whole thing work wonderfully
well. Your right it was file permissions on the directory where the .JAR
file lives. It needed the 'x' set on it. Bloody marvellous . . . many
thanks chaps.
May one suggest updating the FAQ with this *nugget* of information.
Bloody good show . . . problem broadcasted, solved and off to bed, all
within 12 minutes . . . a record me thinks.
|