----------------------------------------------------------------
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!!!
----------------------------------------------------------------

Hi:
I am new to Java Apache and encountered a problem concerning CLASSPATH
variable.

System features:
hardware: Intel 200 MHz, 128M RAM
OS : RedHat 6.0
JDK 1.2 (Blackdown dist)
JServ 1.1-b2 (rpm distribution)
Apache 1.3.4

What did I do?
o- install servlets in /home/httpd/servlets  (that works)
o- modify jserv.properties to
        wrapper.classpath=/usr/lib/apache/ApacheJServ...jar
        wrapper.classpath=/home/httpd/classes/servlet-2.0.jar
        wrapper.classpath=/opt/java/lib/tools.jar
        wrapper.classpath=/opt/java/lib/dt.jar
        wrapper.classpath=/home/peter/MedPack

the last directory "/home/peter/Medpack" contains several subdirectories,
which are organised in
Java's package structure. There is e.g. a subdirectory called "Network",
i.e.:
        /home/peter/MedPack/Network
all classes therein have as a first line:     package Network;

Obviously, any class that imports a file from that package must know which
directory to look into, hence the setting of the classpath variable in
jserv.properties.
However, the servlet, which is in /home/httpd/servlets and imports a class
from that package
doesn't pick it up, saying it cannot find class Network/DicomInfo (that's
the name of the imported class).

What else did I try:
 o - change the order in which wrapper.classpath is listed 
 o - set global CLASSPATH variable in user profile and make jserv.properties
override these values
        i.e. wrapper.env.copy=CLASSPATH first, then wrapper.env.copyall=true

still no success.

If I try the Java Servlet engine provided by Java Server Page/Servlet
development kit (JWSDK 1.0.1) it
works. There seems to be a problem in setting the right parameters in JServ
or is this feature
in general not supported (to import classes other than the system classes)?
Unfortunately, the FAQ pages are unaccessible at present - so I hope to get
some help through
this mail-list.

Many thanks in advance


Peter












--
--------------------------------------------------------------
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]

Reply via email to