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

RE: install problem - JspServlet doesn't initialize properly


Title: RE: install problem - JspServlet doesn't initialize properly
I ran into similar problems when I first started using gnujsp. I found that I had to put the servlets parameters in the default init arguments list. I have not tried to remove this lately since it was working in the past.
 
servlets.default.initArgs=checkclass=true,scratchdir=/jsptemp,compiler=builtin-javac -classpath %classpath%;%scratchdir% -d %scratchdir% -deprecation %source%,debug=true
 
Also, you might want to specify the servlet to be loaded at startup.
 
servlet.gnujsp.code=org.gjt.jsp.JspServlet
servlets.startup=gnujsp
 
Jim
-----Original Message-----
From: Ritu Sikka [mailto:rsikka@nortelnetworks.com]
Sent: Friday, November 12, 1999 9:16 AM
To: 'Noel J. Bergman'; gnujsp
Subject: RE: install problem - JspServlet doesn't initialize properly

Thanks for the suggestion.  Unfortunately, it still gives the same error.

This is what my jspzone.properties file now has:

servlet.gnujsp.code=org.gjt.jsp.JspServlet
servlet.gnujsp.initArgs=scratchdir=d:\jsptest,checkclass=true,debug=true,compiler=builtin-javac -classpath %classpath%;d:\jsptest;d:\program files\gnujsp-1.0.0\lib\servlet-2.0-plus.jar;d:\program files\gnujsp-1.0.0\lib\gnujsp10.jar -d d:\jsptest -deprecation %source%

And I have created a directory on my D drive called jsptest.

And the problem is still the same:

When I try to run the "hello.jsp" example, I get the following error in
the "mod_jserv.log" file:

[12/11/1999 13:40:01:250] (ERROR) ajp12: Servlet Error: Initialization error while loading the servlet: gnujsp: missing init parameter : "scratchdir", 1

Also, before posting my original message, I had combed this mailing list's archives looking for similar problems with installation.  I'm including (towards the end) a couple of messages that indicate that spaces are not the problem (I've also tried the suggestion of placing quotes around paths that contain spaces).

However, I have not seen any messages that mention this particular problem.  But, I have tried out most of the suggestions anyway.

Help! (anyone?)

As an aside, I have to bring up this thing I keep wondering about.  All this time that we spend "tinkering" - configuring software and/or hardware each and every time we want to install a new piece of software or hardware on our computers - I wonder if it isn't a bit excessive, and what can be done to lessen the time-drain factor.  I'm not talking about GNU JSP specifically - but a lot of things that we install require this tinkering, and I, for one, don't enjoy it - I almost always get things working after a few hours or days of tinkering, but at the end of it all, I've learnt nothing except for something trivial such as "well, I needed to add a reference to this file in here instead of this other one, or I needed this quote here..." - isn't life too short to be spending days to learn such a lesson?

Please don't reply to that last paragraph on this mailing list.  I'm not trying to start that discussion here, but just to vent.  If I think of a more appropriate group to post this dilemma too, then it can be discussed there:  such as comp.install.frustration :-)

Thanks.

-------------------------------
RE: Installing, configuring and running GNUJSP

     To: "'gnujsp@career.gjt.org'" <gnujsp@career.gjt.org>
     Subject: RE: Installing, configuring and running GNUJSP
     From: Richard Ollerenshaw <richardo@wrox.com>
     Date: Tue, 3 Aug 1999 13:59:40 +0100



NT cannot handle spaces in locations.  Solution: upgrade to Linux.

Or surround D:\Program Files\blah with "", making "D:\Program Files\blah".

That's one problem.

Apart from this, I can't say much more as mine isn't working either!!!

Thanks,

Richard

--------------------------------------
Re: Problem: JSP does not run under NT with Apache/Jserv

     To: gnujsp@gjt.org
     Subject: Re: Problem: JSP does not run under NT with Apache/Jserv
     From: Jeremy Conner <jconner@infoglide.com>
     Date: Tue, 24 Aug 1999 10:25:02 -0500
     In-Reply-To: <99A8DEF6341ED111840F00805F15DAF5FC853A@bn02.bn.comma-soft.com>



the spaces in the file names should not be a problem.
I have installed into: e:\program\apache group\Apache Jserv\gnujsp-1.0b
It doesn't hurt to remove them though.

The dot in the jar file names did make me wonder when I was trying to get
things up and running.
I would suggest adopting an underscore or similar method within file names.
the gnujsp1.0.jar would be gnujsp1_0.jar
it just eliminates one more thing that could cause confusion.

---------------------------------------------------

> -----Original Message-----
> From: Noel J. Bergman [mailto:noel@ibm.net]
> Sent: November 11, 1999 7:08 PM
> To: Sikka, Ritu [CAR:0R22:EXCH]; gnujsp
> Subject: RE: install problem - JspServlet doesn't initialize properly
>
>
> There is a problem using paths with spaces in them.
>
>       --- Noel
>
>