Here are my configuration and error files:

jserv.conf
ApJServManual off
ApJServProperties /usr/local/conf/jserv.properties
ApJServLogFile /usr/local/logs/jserv.log
ApJServDefaultProtocol ajpv11
ApJServDefaultPort 8007
ApJServSecretKey DISABLED
ApJServMount /search /search
ApJServMountCopy on
<Location /jserv/>
  SetHandler jserv-status
  order deny,allow
  deny from all
  allow from localhost 127.0.0.1
</Location>

jserv.properties
wrapper.bin=/usr/local/jdk1.1.7/bin/java
wrapper.class=org.apache.jserv.JServ
wrapper.classpath=/usr/local/jdk1.1.7/lib/classes.zip
wrapper.classpath=/usr/local/Apache-JServ-1.0b3/src/java/Apache-JServ.jar
wrapper.classpath=/usr/local/JSDK2.0/lib/jsdk.jar
port=8007
zones=search
search.properties=/usr/local/conf/search.properties
security.maxConnections=50
security.allowedAddresses=127.0.0.1
security.authentication=false
security.challengeSize=5
log=false
log.file=jserv.log
log.timestamp=true
log.dateFormat=[dd/MM/yyyy HH:mm:ss:SSS zz]
log.channel.init=true
log.channel.terminate=true
log.channel.serviceRequest=true
log.channel.authentication=true
log.channel.requestData=true
log.channel.responseHeaders=true
log.channel.signal=true
log.channel.exceptionTracing=true
log.channel.servletManager=true

search.properties
repositories=/usr/local/servlets
autoreload.classes=true
autoreload.file=true
init.timeout=10000
destroy.timeout=10000
session.timeout=1800000
session.checkFrequency=30000
singleThreadModelServlet.initialCapacity=5
singleThreadModelServlet.incrementCapacity=5
singleThreadModelServlet.maximumCapacity=10
servlets.startup=websearch
servlet.websearch.code=com.fujo.servlets.WebSearchServlet

access_log
209.150.184.126 - - [14/Apr/1999:20:11:47 -0700] "POST
/search/websearch?pn=1 HTTP/1.0" 404 280

jserv.log
[14/04/1999 20:11:39:914] (INFO) wrapper: watching processes
(PID=7821,PPID=5908,VM PID=7827)
[14/04/1999 20:11:39:914] (INFO) wrapper classpath:
/usr/local/jdk1.1.7/lib/classes.zip:/usr/local/Apache-JServ-1.0b3/src/java/A
pache-JServ.jar:/usr/local/JSDK2.0/lib/jsdk.jar
[14/04/1999 20:11:39:914] (INFO) wrapper: Java VM spawned
(PID=7827|PPID=7821)
[14/04/1999 20:11:47:411] (ERROR) ajp11: Servlet Error:
NoClassDefFoundError: com.fujo.servlets.WebSearchServlet

I've tried putting the class file in both
/usr/local/servlets/WebSearchServlet.class and
/usr/local/servlets/com/fujo/servlets/WebSearchServlet.class calling it by
using http://127.0.0.1/search/websearch?pn=1

Any help is greatly appreciated !  :)

Thanks,
Ching-Hwa Yu

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Damian
Fauth
Sent: Wednesday, April 14, 1999 7:28 PM
To: Java Apache Users
Subject: Re: Directories problem ...


Ching-Hwa Yu wrote:
>
> I think I didn't ask the right question.  In the zone properties file I
have
> an alias we'll call foo which is declared as
> servlet.foo.code=com.blah.servlets.MyServlet.  If I call the foo alias, am
I
> required to have the directory structure of
> /usr/local/apache/servlets/com/blah/servlets/MyServlet.class ?  The
> repository is declared as /usr/local/apache/servlets.  If I call foo right
> now, does it traverse the directories as specified by the alias ?

Think of the "repositories" directive as specifying a per-zone classpath
for the classloader. As long as you put your classes somewhere in this
'classpath' the classloader should be able to find them - thus you are
not REQUIRED to have the directory structure you describe above, however
given this configuration it should work. Can you send your
jserv.properties, zone.properties and log files?



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