Title: RE: JSSI and zone

I'm having the same problem.  I think we are trying to do the same thing.

I could only get my servlets to run on the /servlets directory.

I worked on this same problem for over three days and could not get JServ to redirect to a specific mount point.

Here is my situation:
I have two applications that are similar.  Both have similar *.class files and I don't want to just drop them all into one zone.

Example:

/client-dev/
/client-prod/

/reports-dev/
/reports-prod/

I tried almost everything in the *.jhtml files.

<servlet code=/development/CurrentTime></servlet>
<servlet code=development.CurrentTime></servlet>
<servlet code=/development/CurrentTime.class></servlet>
<servlet code=development.CurrentTime.class></servlet>

<form method=get action=/development/CurrentTime>
<form method=get action=/development.CurrentTime>
<form method=get action=/development/CurrentTime.class>
<form method=get action=development.CurrentTime.class>

I have to specify the servlet zone in the *.jhtml files or else my applications will conflict.

I think we are about at the same level, huh.  If you find anything out please send it to the list.  I will do the same as well.

Thanks,

Nick



-----Original Message-----
From: GAY Steven [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 15, 1999 5:14 AM
To: [EMAIL PROTECTED]
Subject: JSSI and zone


Hello,

A little help would be greatly appreciated.

I installed on a WinNT 4.0 station : Apache 1.3.9 ,
jsdk1.2.2, JSSI 1.1.2 and JServ 1.0.

The installation went well.

The status report returned by /jserv/ shows :
my three mount point /servlets/ /production/ /development/
and the extension .jhtml is treated by
/servlets/org.apache.servlet.ssi.SSI

When i call with Netscape a .jhtml page containing :
 <servlet code=CurrentTime></servlet>
it works: the page contains the current time
returned by the .class which is in the
C:/Apache JServ/servlets/
directory defined in my zone.properties file.

Also when in call a .html containing :
 <form method=get action=/development/CurrentTime>
 <input name=timeZone value=GMT></form>
It works. The jserv servlet finds the .class
in the directory D:/Users/gay/servlets/development/
defined for my development zone (development.properties).


BUT

my problem is when i try
<servlet code=/development/CurrentTime></servlet>
i got :

<!-- ERROR: ------------
java.lang.ClassNotFoundException: can't find servlet named
"/development/CurrentTime"
        at
org.apache.servlet.ssi.ServletInfoRequest.runServlet(ServletTagHandler.java,
Compiled Code)
        at java.lang.Exception.<init>(Exception.java, Compiled Code)
        at
java.lang.ClassNotFoundException.<init>(ClassNotFoundException.java,
Compiled Code)
        at
org.apache.servlet.ssi.ServletInfoRequest.runServlet(ServletTagHandler.java,
Compiled Code)
        at
org.apache.servlet.ssi.ServletTagHandler.executeTag(ServletTagHandler.java,
Compiled Code)
        at
org.apache.servlet.ssi.PageParser.interpretPage(PageParser.java,
Compiled Code)
        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:715)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
        at
org.apache.jserv.JServConnection.processRequest(JServConnection.java)
        at org.apache.jserv.JServConnection.run(JServConnection.java)
        at java.lang.Thread.run(Thread.java:479)
-->


Any clues what is happening?

I have the fealing that the jssi can't understand
the mount point /development/ .

I could put all my .class for the jssi in the /servlets
directory but i would prefer to put everything in
development in ... the /development directory.


Thanks,
S.


--
---------------------------------------------
Med. GAY Steven
SIB - Swiss Institute of BioInformatics
Switzerland - www.expasy.ch
Phone: ++41 (0) 22 7024842
mailto:[EMAIL PROTECTED]


------------------------------------------------------------
To subscribe:    [EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Problems?:       [EMAIL PROTECTED]

Reply via email to