----------------------------------------------------------------
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!!!
----------------------------------------------------------------
I am trying to set up JSSI so I can use the output of servlets in the
<SERVLET></SERVLET> tags. The servlet is already written, works great, and
there are no problems there. The servlet just outputs a single number (hit
count). I have a zone (cimba) that I am trying to use this servlet with,
and running the servlet directly from the browser using the URL
http://localhost/servlets/TestServlet?url=test.html works just as designed
and coded. The servlets's class file resides in "C:\Java\Apache
Group\Apache\htdocs\servlets\cimba." When I try to run the servlet from
within a JHTML file (URL http://localhost/cimba/test.jhtml), I get the
following page source code:
(SNIP)
Count test #1 for the page <B>index.shtml</B> is [
<!-- ERROR: ------------
java.lang.ClassNotFoundException: can't find servlet named
"/servlets/TestServlet"
at
org.apache.servlet.ssi.ServletInfoRequest.runServlet(ServletTagHandler.java)
at
org.apache.servlet.ssi.ServletTagHandler.executeTag(ServletTagHandler.java)
at org.apache.servlet.ssi.PageParser.interpretPage(PageParser.java)
at org.apache.servlet.ssi.PageParser.process(PageParser.java)
at
org.apache.servlet.ssi.PageParserServlet.doGet(PageParserServlet.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:499)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at
org.apache.jserv.JServConnection.processRequest(JServConnection.java:317)
at org.apache.jserv.JServConnection.run(JServConnection.java:188)
at java.lang.Thread.run(Thread.java:484)
-->
].
(SNIP)
As near as I can tell, because the servet DOES WORK calling it directly from
the browser that the zone is set up correctly. I have placed the directory
of the servlet's .class file into both my CLASSPATH and into the zone's
repositories variables, but it still does not work:
Anyone have any ideas - am I missing an entry somewhere? I would appreciate
any pointers in the right direction.
I am using:
Apache 1.3.14
JServ 1.1.2
Windows 2000
Thanks,
Bob
JServ configuration (everything else is defaulted):
---------------------------------------------------
ApJServManual off
ApJServProperties "Apache JServ 1.1.2\conf\jserv.properties"
ApJServLogFile "Apache JServ 1.1.2\logs\mod_jserv.log"
ApJServLogLevel debug
ApJServDefaultProtocol ajpv12
ApJServDefaultPort 8007
ApJServSecretKey DISABLED
ApJServMount /servlet /root
ApJServMount /servlets /cimba
ApJServMountCopy on
ApJServAction .jhtml /servlets/org.apache.servlet.ssi.SSI
jserv.properties:
-----------------
zones=root,cimba
root.properties=c:\java\apache group\Apache\Apache JServ
1.1.2\servlets\zone.properties
cimba.properties=c:\java\apache group\Apache\Apache JServ
1.1.2\servlets\cimba.properties
cimba.properties:
-----------------
repositories=C:\Java\Apache Group\Apache JSSI\src\java\ApacheJSSI.jar
repositories=C:\Java\Apache Group\Apache\htdocs\servlets\cimba
autoreload.classes=true
autoreload.file=true
init.timeout=10000
destroy.timeout=10000
session.useCookies=true
session.timeout=1800000
session.checkFrequency=30000
singleThreadModelServlet.initialCapacity=5
singleThreadModelServlet.incrementCapacity=5
singleThreadModelServlet.maximumCapacity=10
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search Archives:
<http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]