[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index] [Home]

problem with gnujsp running in zones


I'm running linux, jsdk2.0, jdk1.2, apache3.6 and jserv1.1b3.

I installed gnujsp 1.0. I can get hello.jsp, snoop.jsp and date.jsp to work 
if  put them in the right directories.

The problem is, I have defined 2 servlet zones in jserv.conf. One of these 
maps URI /test to zone /dev. And zone /dev maps to physical directory 
/home/bataras/zones/dev. So, if I request localhost/test/Servlet, the file 
/home/bataras/zones/dev/Servlet.class is used.

I added .jsp mapping in jserv.conf as: ApJServAction .jsp /test/gnujsp

I alias gnujsp to org.gjt.jsp.JspServlet. I have install GNUJSP JAR files to 
my /test repository. So /test/gnujsp class is being executed in the /test 
zone.

The problem is that gnujsp seems to require all .jsp files to be in some 
globally accessible directory that is not related to the servlet zones. And 
also, gnujsp is hardcoded to run in only one servlet zone.

If I put hello.jsp in /home/bataras/zones/dev and then try to access it via 
http://localhost/test/hello.jsp, then gnujsp tries to find /test/hello.jsp. 
But it is not mapping /test into the proper path defined for the /test zone.

is there anyway to fix this?

thanks

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com