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

Introduction
------------
I am using the following builds:

Apache : 1.3.9
JServ : cvs build Apache-JServ-19991123, latest stream
Solaris : 2.7

Apache has been built with DSO, as I am wanting my servlets to be loaded
at run-time.

In my zone.properties, I set my repositories to the following :
"repositories=/Apache/apache_1.3.9/servlets"

I am editing/using the servlet "Hello" supplied with the JServ release.
When it comes to addressing the Hello servlet, it is addresses by the following :

   "http://lewis:8080/servlets/Hello"

where "lewis" is my host name.

The Hello.class file lives in the directory
/Apache/apache_1.3.9/servlets/Hello.class

All this works fine !!



The Problem
-----------
However, I have two problems, when I try and run the Hello servlet,
under the following circumstances :
1) when it is encapsulated as a package.
2) when I jar the class file.

1) when I encapsulate the Hello servlet into a package, by including the following :

   "package com.gtnet.Hello;"

and,
2) When I generate a jar file, and include that in my "/servlets/" directory.


I get the error message :

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>404 Not Found</TITLE>
</HEAD><BODY>
<H1>Not Found</H1>
The requested URL /servlets/Hello was not found on this server.<P>
<HR>
<ADDRESS>Apache/1.3.9 Server at lewis Port 8080</ADDRESS>
</BODY></HTML>


Questions
---------
When I generate a package, what do I have to do in order to be able to 
address/execute the servlet ?

and similarly for when I create a jar file ?


Assumptions
-----------
I assume that I do not change the "wrapper.classpath" in jserv.properties
because I am dynamically linking in my servlet.

thanks

pmi


and similarly for when I create a jar file ?


Assumptions
-----------
I assume that I do not change the "wrapper.classpath" in jserv.properties
because I am dynamically linking in my servlet.

thanks

pmi




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