----------------------------------------------------------------
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!!!
----------------------------------------------------------------
When you say:
> The .jar file has also been exploded into its various .class files
> with all its various subdirectories in the servlets directory, and we
> also tried it with them in the classes directory.
What do you mean by the "classes" directory? The system class path?
I don't recognize your problem specifically, but I would throw in the following 2
cents about where to put library files:
I share your distaste for endlessly adding jar files to wrapper.classpath, and I think
it's a mistake to put library classes in the servlets/ directory (if you
know you're never going to modify a class, I think having the system class loader
loading it once and never throwing it away is just a good idea).
I've set things up here with a /usr/local/lib/site-java directory, specifically for
libraries which I've downloaded from elsewhere and don't intend to modify.
I can then place all the exploded .jar files into this dir (merging directories as
necessary). Then wrapper.classpath can just point at:
/usr/local/lib/site-java
for the rest of time. If you need to build a release for another machine, you'll need
to make sure the various library files get moved over, but I think that's
easier when they're in their own world (outside of a version control system, say).
Hope that's helpful,
-Dan
Rusty Wright wrote:
>
> ----------------------------------------------------------------
> 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!!!
> ----------------------------------------------------------------
>
> I'm on Solaris 7 (aka SunOS 5.7), using apache_1.3.6, jserv-1.1b2,
> Solaris_JDK_1.2.1_03.
>
> I'm having a problem where a programmer's java code is getting the
> following error in the jserv.log file:
>
> [02/11/1999 13:05:57:063 PST] java.lang.NoClassDefFoundError:
>com/sun/mail/pop3/POP3Store
> at org.apache.jserv.JServConnection.processRequest(Compiled Code)
> at org.apache.jserv.JServConnection.run(Compiled Code)
> at java.lang.Thread.run(Compiled Code)
>
> We can make this error go away by adding the .jar file to the
> wrapper.classpath in the jserv.properties config file:
>
> wrapper.classpath=/www/jserv/servlets/JavaExtensions.jar
>
> The .jar file has also been exploded into its various .class files
> with all its various subdirectories in the servlets directory, and we
> also tried it with them in the classes directory.
>
> I feel that there's either something wrong with my jserv setup, or
> with the programmer's setup or code because I'm guessing that
> continually adding .jar files to the wrapper.classpath isn't the right
> thing to do.
>
> You'll have to pardon my ignorance but I'm not a java programmer, just
> a lowly C and systems programmer, but can anyone offer advice as to
> where the problem is or where to look for a solution to this problem?
>
> --
> --------------------------------------------------------------
> 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]
--
Dan Milstein // [EMAIL PROTECTED]
Member of Technical Staff // Capital Knowledge Partners
--
--------------------------------------------------------------
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]