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

ApJServAction v/s AddAction & ghost classes


APJservAction v/s AddAction:

Which is the prefered method of calling .jsp's?  Using the ApJServAction
of ApacheJServ, or using the AddAction of Apache?

I just upgraded from .9.11 Apache JServ to 1.01b2 Apache JServ and I kept
the old method of AddAction. 

------------
Ghost Classes
(NOTE: This situation occues w/ GNUJSP .96 & ApacheJServ .9.11 AND w/
GNUJSP .97 & APacheJServ 1.01b2)

We have a lot of custom classes/packages stored in 
/var/lib/classes/package/name/ and we keep the compiled .jsp pages in
/tmp/jsp/

At some undetermined time while the webserver is running, 'ghost' copies
of our custom classes are created in their proper package directories
under /tmp/jsp/. And when this happens STRANGE things occur . . .
sometimes.  Usually, but not always, the same class gets copied.  
Sometimes the filesize of the ghost class(es) is/are the same as the real
class, sometimes not.

I hope I'm not being vague, but this situation is really hard to explain
as we have no idea why it's happening.

Any thoughts on why ghost classes would be created under the compiled JSP
directory tree?

thanks in advance!

eric ridge


On Sun, 7 Feb 1999, Vincent Partington wrote:

> Hi Vincent,
> 
> Vincent Schonau wrote:
> > 
> > I've been having a weird problem installing GNUJSP on my system. Relevant
> > clues: Linux 2.2.0, Blackdown JDK1.1.7; Server: Apache/1.3.3 (Unix)
> > ApacheJServ/1.0b1 mod_ssl/2.0.14 SSLeay/0.9.0b; latest GNUJSP.
> > 
> > jserv.properties has the correct classpaths. The zone properties file has:
> > 
> > servlet.jsp.code=JSPServlet
> > 
> > and
> > 
> > servlet.jsp.initArgs=classfiles=/home/httpd/jsp
> > 
> > However, when I attempt to access a .jsp page, the mod_jserv log sais:
> > 
> >  (ERROR) ajp11: Servlet Error: Initialization error while loading the
> > servlet: no compiler.classpath init parameter specified
> > 
> > I've tried lots of things so far, but the only thing that works is setting
> > 
> > servlets.default.initArgs=classfiles=/home/httpd/jsp
> > 
> > - and it'll work. In other words: for some reason,  JSPServlet won't get
> > it's own initArgs.
> > 
> > Where should I start looking for a solution to this?
> 
> I think the httpd.conf example that comes with Apache JServ has a line
> saying something like:
> ApJServAction .jsp /servlets/org.gjt.jsp.JSPServlet
> 
> If you change this to something like the following, the servlet is
> called by its correct alias and the parameters are passed on correctly:
> ApJServAction .jsp /servlets/jsp
> 
> Regards, Vincent.
> 
> > ps;  Hi, neighbour!
> 
> And namesake. :)
>