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

Re: Help for gnujsp


On Mon, 08 May 2000 12:41:11 +0200, Andreas Piesk wrote:

>On Sun, 7 May 2000 15:15:38 +0800 (CST), question@163.net wrote:
>
>>Hi:
>>    I am a user of gnujsp.When I use "<@ include file="test.jsp" >" to include a file,I get some error as following:
>>
>>
>>######################################################################
>>Error compiling source file /webmail/test1.jsp:
>>/webmail/test1.jsp:2: GNUJSP internal error: You must set pagebase to use translation-time includes with this servlet engine
>>######################################################################
>>
>>
>>I don't know why it is occured.Please tell me,Thank you.
>>Here is my software environment:   REDHAT 6.1+APACHE 1.13+JSERVER1.1+GNUJSP1.0.0
>>Here is my initial environment in alph.properties:
>>
>>servlet.gnujsp.code=org.gjt.jsp.JspServlet
>>servlet.gnujsp.initArgs=scratchdir=/www/work,compiler=builtin-javac -classpath <lasspath:/www/gnujsp-1.0.0/lib/gnujsp10.jar:/www/gnujsp-1.0.0/lib/servlet-2.1.jar:/www/packages:/www/jdbc/jdbc6.5-1.2.jar:/www/packages/mail/activation.jar:/www/packages/mail/mail.jar:/www/packages/mail/pop3.jar -d 8¨ÐÎcratchdir 134510804eprecation wource
>>
>>
>>Waiting for your reply.Thank you very much!
>>                                                        Shujiang Huang
>>
>>
>hiho,
>
>the syntax of the include directive is "<%@ include file="relativeURL" %>". note the "relativeURL". you must set the
>pagebase argument for gnujsp to find your include file. simply add "pagebase=<ENTER YOUR INCLUDE DIR>" to
>"servlet.gnujsp.initArgs". this should solve your problem. if not, ask again :)
>
>ciao -ap
>
>btw: your "initArgs"-line looks a little bit, uhm, strange. perhaps you check the original in your config.
>
hiho,

some additions and corrections.

you should set the pagebase argument to your webserver's docroot.
look at "INSTALL.apache" chapter "Step 1 - Install a new servlet zone" paragraph "c)". 

i'm using apache-1.3.12 / Jserv-1.1 / gnujsp-1.0.1pre1. i've tried to reproduce the error with no luck. version 1.0.1pre1
uses "org.apache.jserv.DOCUMENT_ROOT" as default value for pagebase. therefor i needn't set the pagebase.
perhaps you consider an upgrade, it's free :)

ciao -ap


_____________________________________________________
 
 Andreas Piesk   a.piesk@gmx.net
_____________________________________________________

PGP Public Key Fingerprint: 23CB A7E2 2E53 373C  DBCD 8EFC 7777 61C1