Hello,
I have been working on this one for a while, read as much documentation as
I could find, and am still stumped! I am running 1.3.6 on Solaris 2.6 with
JSDK 2.0, JDK 1.2, and JServ 1.0b3. I am getting a "ClassNotFoundException"
for my HelloWorld servlet which I have defined with:
package com.mycompany.jservTesters;
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
my jserv.servlets.properties file contains the following repositories:
repositories=/www/servlets/com/mycompany/
repositories=/www/servlets/com/mycompany/jservTesters
I set the zone in my httpd.conf with
ApJServMount /servlets ajpv11://myhost.mycompany.com:myport#/servlets
I have an Alias in my httpd.conf:
Alias /servlets /www/servlets
And I make a call to the servlet with the following URL:
www.mycompany.com/servlets/com.mycompany.jservTesters.Hello
I am able to compile this when I add -classpath parameter and then the same
classpath that I have set with wrapper.classpath in the jserv.properties file.
I am using virtual hosts and I have duplicated some of the JServ directives
in the Virtual Host definition in the httpd.conf file.
I am cetain that the answer is basic, "fundamentals 101", but I am
mystified and can not find it anywhere!!!
Thanks in Advance!!!
Alan
P.S. Here is the jserv.trace log:
[19/05/1999 06:23:47:428 CST] Initializing servlet request
[19/05/1999 06:23:47:428 CST] Reading request data
[19/05/1999 06:23:47:428 CST] Will read 36 bytes for this line
[19/05/1999 06:23:47:429 CST] Read: Cservlets
com.mycompany.jservTesters.Hello
[19/05/1999 06:23:47:429 CST] Servlet Zone: servlets Servlet:
com.mycompany.jservTesters.Hello
[19/05/1999 06:23:47:470 CST] Will read 16 bytes for this line
[19/05/1999 06:23:47:471 CST] Read: Swww.mycompany.com
[19/05/1999 06:23:47:471 CST] Hostname: www.mycompany.com
[19/05/1999 06:23:47:471 CST] Will read 47 bytes for this line
[19/05/1999 06:23:47:471 CST] Read: EDOCUMENT_ROOT
/myserver/www/mydir/html
[19/05/1999 06:23:47:471 CST] Env: DOCUMENT_ROOT=/myserver/www/mydir/html
[19/05/1999 06:23:47:471 CST] Will read 26 bytes for this line
[19/05/1999 06:23:47:471 CST] Read: EGATEWAY_INTERFACE CGI/1.1
[19/05/1999 06:23:47:471 CST] Env: GATEWAY_INTERFACE=CGI/1.1
[19/05/1999 06:23:47:471 CST] Will read 24 bytes for this line
[19/05/1999 06:23:47:471 CST] Read: EPATH /usr/sbin:/usr/bin
[19/05/1999 06:23:47:471 CST] Env: PATH=/usr/sbin:/usr/bin
[19/05/1999 06:23:47:471 CST] Will read 14 bytes for this line
[19/05/1999 06:23:47:471 CST] Read: EQUERY_STRING
[19/05/1999 06:23:47:471 CST] Env: QUERY_STRING=null
[19/05/1999 06:23:47:471 CST] Will read 27 bytes for this line
[19/05/1999 06:23:47:471 CST] Read: EREMOTE_ADDR <my ip address>
[19/05/1999 06:23:47:471 CST] Env: REMOTE_ADDR=<my ip address>
[19/05/1999 06:23:47:471 CST] Will read 17 bytes for this line
[19/05/1999 06:23:47:471 CST] Read: EREMOTE_PORT <my port####>
[19/05/1999 06:23:47:471 CST] Env: REMOTE_PORT=<my port####>
[19/05/1999 06:23:47:471 CST] Will read 19 bytes for this line
[19/05/1999 06:23:47:471 CST] Read: EREQUEST_METHOD GET
[19/05/1999 06:23:47:471 CST] Env: REQUEST_METHOD=GET
[19/05/1999 06:23:47:471 CST] Will read 49 bytes for this line
[19/05/1999 06:23:47:472 CST] Read: EREQUEST_URI
/servlets/com.mycompany.jservTesters.Hello
[19/05/1999 06:23:47:472 CST] Env:
REQUEST_URI=/servlets/com.mycompany.jservTesters.Hello
[19/05/1999 06:23:47:472 CST] Will read 53 bytes for this line
[19/05/1999 06:23:47:472 CST] Read: ESCRIPT_FILENAME
/servlets/com.mycompany.jservTesters.Hello
[19/05/1999 06:23:47:472 CST] Env:
SCRIPT_FILENAME=/servlets/com.mycompany.jservTesters.Hello
[19/05/1999 06:23:47:472 CST] Will read 49 bytes for this line
[19/05/1999 06:23:47:472 CST] Read: ESCRIPT_NAME
/servlets/com.mycompany.jservTesters.Hello
[19/05/1999 06:23:47:472 CST] Env:
SCRIPT_NAME=/servlets/com.mycompany.jservTesters.Hello
[19/05/1999 06:23:47:472 CST] Will read 31 bytes for this line
[19/05/1999 06:23:47:472 CST] Read: ESERVER_ADMIN
[EMAIL PROTECTED]
[19/05/1999 06:23:47:472 CST] Env: [EMAIL PROTECTED]
[19/05/1999 06:23:47:472 CST] Will read 28 bytes for this line
[19/05/1999 06:23:47:472 CST] Read: ESERVER_NAME www.mycompany.com
[19/05/1999 06:23:47:472 CST] Env: SERVER_NAME=www.mycompany.com
[19/05/1999 06:23:47:472 CST] Will read 15 bytes for this line
[19/05/1999 06:23:47:472 CST] Read: ESERVER_PORT 80
[19/05/1999 06:23:47:472 CST] Env: SERVER_PORT=80
[19/05/1999 06:23:47:472 CST] Will read 25 bytes for this line
[19/05/1999 06:23:47:472 CST] Read: ESERVER_PROTOCOL HTTP/1.0
[19/05/1999 06:23:47:472 CST] Env: SERVER_PROTOCOL=HTTP/1.0
[19/05/1999 06:23:47:472 CST] Will read 84 bytes for this line
[19/05/1999 06:23:47:472 CST] Read: ESERVER_SIGNATURE
<ADDRESS>Apache/1.3.6 Server at www.mycompany.com Port <my port##></ADDRESS>
[19/05/1999 06:23:47:472 CST] Env: SERVER_SIGNATURE=<ADDRESS>Apache/1.3.6
Server at www.mycompany.com Port <my port##></ADDRESS>
[19/05/1999 06:23:47:472 CST] Will read 54 bytes for this line
[19/05/1999 06:23:47:472 CST] Read: ESERVER_SOFTWARE Apache/1.3.6 (Unix)
ApacheJServ/1.0b3
[19/05/1999 06:23:47:473 CST] Env: SERVER_SOFTWARE=Apache/1.3.6 (Unix)
ApacheJServ/1.0b3
[19/05/1999 06:23:47:473 CST] Will read 75 bytes for this line
[19/05/1999 06:23:47:473 CST] Read: HAccept image/gif, image/x-xbitmap,
image/jpeg, image/pjpeg, image/png, */*
[19/05/1999 06:23:47:473 CST] Header: Accept=image/gif, image/x-xbitmap,
image/jpeg, image/pjpeg, image/png, */*
[19/05/1999 06:23:47:473 CST] Will read 34 bytes for this line
[19/05/1999 06:23:47:473 CST] Read: HAccept-Charset iso-8859-1,*,utf-8
[19/05/1999 06:23:47:473 CST] Header: Accept-Charset=iso-8859-1,*,utf-8
[19/05/1999 06:23:47:473 CST] Will read 21 bytes for this line
[19/05/1999 06:23:47:473 CST] Read: HAccept-Encoding gzip
[19/05/1999 06:23:47:473 CST] Header: Accept-Encoding=gzip
[19/05/1999 06:23:47:473 CST] Will read 19 bytes for this line
[19/05/1999 06:23:47:473 CST] Read: HAccept-Language en
[19/05/1999 06:23:47:473 CST] Header: Accept-Language=en
[19/05/1999 06:23:47:473 CST] Will read 22 bytes for this line
[19/05/1999 06:23:47:473 CST] Read: HConnection Keep-Alive
[19/05/1999 06:23:47:473 CST] Header: Connection=Keep-Alive
[19/05/1999 06:23:47:473 CST] Will read 26 bytes for this line
[19/05/1999 06:23:47:473 CST] Read: HCookie MYCOMPANYESDCOOKIE=49867
[19/05/1999 06:23:47:473 CST] Header: Cookie=MYCOMPANYESDCOOKIE=49867
[19/05/1999 06:23:47:473 CST] Will read 21 bytes for this line
[19/05/1999 06:23:47:473 CST] Read: HHost www.mycompany.com
[19/05/1999 06:23:47:473 CST] Header: Host=www.mycompany.com
[19/05/1999 06:23:47:473 CST] Will read 40 bytes for this line
[19/05/1999 06:23:47:474 CST] Read: HUser-Agent Mozilla/4.51 [en] (WinNT; I)
[19/05/1999 06:23:47:474 CST] Header: User-Agent=Mozilla/4.51 [en] (WinNT; I)
[19/05/1999 06:23:47:474 CST] All data read.
[19/05/1999 06:23:47:474 CST] Parsing cookies
[19/05/1999 06:23:47:476 CST] Sending response headers.
[19/05/1999 06:23:47:476 CST] Status: 404 Not Found
[19/05/1999 06:23:47:476 CST] Servlet-Error: ClassNotFoundException:
com.mycompany.jservTesters.Hello
-- --------------------------------------------------------------
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]