I have been having problems calling the example servlet, Hello.class or a
similar servlet HelloWorld.class.

I noted the following in the jserv.log:

SNIP FROM jserv.log===========================
 Read: EREQUEST_METHOD  GET
 Env: REQUEST_METHOD=GET
 Will read 28 bytes for this line
 Read: EREQUEST_URI     /servlet/Hello/  <==========NOTE
 Env: REQUEST_URI=/servlet/Hello/
 Will read 31 bytes for this line
 Read: ESCRIPT_FILENAME /servlet/hello  <============AND
 Env: SCRIPT_FILENAME=/servlet/hello
 Will read 27 bytes for this line
 Read: ESCRIPT_NAME     /servlet/hello
 Env: SCRIPT_NAME=/servlet/hello

I then set-up a simple java server to log ajpv11 requests.  Here is a sample
<http://myMachine/servlet/HelloWorld/>  (note the character case of the
servlet)

0013Cservlet    helloworld0009Sclient01001aEDOCUMENT_ROOT       f:/web_root
001aEGATEWAY_INTERFACE  CGI/1.1
010fEPATH       h:\emx\bin;C:\MPTN\BIN;C:\IBMCOM;C:\NETSCAPE\PROGRAM;C:\NETSCAPE;
C:\OS2;C:\VT\SPCH_BIN;C:\opendoc\BIN;C:\OS2\SYSTEM;C:\OS2\MDOS\WINOS2;C:\OS2\IN
STALL;
C:\;C:\OS2\MDOS;C:\OS2\APPS;C:\BonusPak\ibmworks;c:\tcpip\bin;C:\SIO;C:\JAVA11\
BIN;
C:\JAVA11\ICATJAVA\BIN;C:\MMOS2;000cEPATH_INFO  /001cEPATH_TRANSLATED   f:/web_roo
t
000eEQUERY_STRING       0016EREMOTE_ADDR        10.0.0.100011EREMOTE_PORT       1027
0013EREQUEST_METHOD     GET
0021EREQUEST_URI        /servlet/HelloWorld/
0024ESCRIPT_FILENAME    /servlet/helloworld
0020ESCRIPT_NAME        /servlet/helloworld
001cESERVER_ADMIN       [EMAIL PROTECTED]
0015ESERVER_NAME        client01000fESERVER_PORT        800019ESERVER_PROTOCOL  
HTTP/1.0
004dESERVER_SIGNATURE   <ADDRESS>Apache/1.3.4 Server at client01 Port 80</A

As I under stand the structure of the request protocol:

C is the servlet request <zone><tab><servletname>  In the my log the servlet
name is not that requested. The character case is wrong.  Also,  later in the
request the environment variables are passed:

REQUEST_URI     /servlet/HelloWorld/    ¦ <===  Note the case.
SCRIPT_FILENAME /servlet/helloworld     ¦
SCRIPT_NAME             /servlet/helloworld     ¦

The problem appears to be on the Apache side (not necessarily Apache of JServ,
it could be the EMX runtime stuff)

Does any one have leads on what is going on here?  Thoughts most welcome?


System info =================
OS is OS/2 ver 4 with fixpack 9
EMX 09.d
Apache 1.3.4
JServ 1.3b






Regards
Phil Vincent
Ext. 7751
-------------------------------------------
Simoco Europe Limited
Tel:    (INT+44) (0)1223 876000
Direct: (INT+44) (0)1223 877751
Fax:    (INT+44) (0)1223 879000


----------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
READ THE FAQ!!!!     <http://java.apache.org/faq/>
Archives and Other:  <http://java.apache.org/main/mail.html/>
Problems?:           [EMAIL PROTECTED]

Reply via email to