• Subject: RE: Setting the servlet classpath
  • From: "Eyers, Daniel" <daniel.eyers@xxxxxxxxxxxxx>
  • Date: Thu, 4 Jan 2001 11:12:56 -0700

We have to add a directory under the servlets directory named the same as
the package... 

The call has to include the package i.e.
http://yourhost/servlet/yourpackage.yourclass

hth!!

dan
Dan Eyers
Honeywell International

-----Original Message-----
From: keith.mccully@hsbcam.com [mailto:keith.mccully@hsbcam.com]
Sent: Thursday, January 04, 2001 11:34 AM
To: JAVA400-L@midrange.com
Subject: Setting the servlet classpath





I have been testing some standalone (ie. non-package) servlets with WAS v2
on
the AS400 successfully. However, I am having a problem when I try to import
my
own package into the servlet class.  I can set the ENVVAR classpath to
include
my package directory and then the servlet class compiles OK using QSH.

However, when I attempt to view the servlet with my browser , I get an HTTP
file
not found error message. I assume that this means that the servlet class
can't
find my package class files?

Do I have to add my package directory as a sub directory under /servlets or
can
I use WAS to add the package directory to the classpath?

I checked the WAS admin classpath parameters but they seemed to be for the
JVM
and servlet class entries rather than for a separate package.

Any assistance very much appreciated.

Regards,

Keith




__________________________________________________________________
                                                           
This transmission has been issued by a member of the HSBC group ("HSBC")
for the information of the addressee only and should not be reproduced
and / or distributed to any other person. Each page attached hereto must
be read in conjunction with any disclaimer which forms part of it.
This transmission is neither an offer nor the solicitation of an offer
to sell or purchase any investment. Its contents are based on information
obtained from sources believed to be reliable but HSBC makes no
representation and accepts no responsibility or liability as to its
completeness or accuracy.
+---
| This is the JAVA/400 Mailing List!
| To submit a new message, send your mail to JAVA400-L@midrange.com.
| To subscribe to this list send email to JAVA400-L-SUB@midrange.com.
| To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner: joe@zappie.net
+---
+---
| This is the JAVA/400 Mailing List!
| To submit a new message, send your mail to JAVA400-L@midrange.com.
| To subscribe to this list send email to JAVA400-L-SUB@midrange.com.
| To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner: joe@zappie.net
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.