thanks for your reply.
when I configured resin.conf as:
!--log name= path=stdout: timestamp=[%H:%M:%S.%s] /--
log name= level=fine path=/www/log/httpd/resin_msg.log
timestamp=[%Y-%m-%d %H:%M:%S] [%S.%s] /
!--
- 'info' for production
- 'fine' or 'finer' for development and troubleshooting
--
logger name=com.caucho level=info/
logger name=com.caucho.jsp level=fine/
logger name=com.caucho.java level=config/
logger name=com.caucho.loader level=config/
and then,vi a jsp as:
line 1: [EMAIL PROTECTED] session=false%[EMAIL PROTECTED]
contentType=text/html;charset=utf-8 language=java%%
line 2: %[EMAIL PROTECTED] import=java.util.Date,java.util.HashMap%%
%jsp:useBean id=cacheserv scope=application
class=com.ufqi.base.CacheServicejsp:setProperty name=cacheserv pro
perty=*/%
which contains an error: unclosed jsp:useBean in line 2.
when run the jsp under resin-2.1.17, it displayed the error as:
HTTP/1.1 500 Internal Server Error
Date: Fri, 10 Oct 2008 04:18:45 GMT
Server: Apache
Content-Length: 323
Connection: close
Content-Type: text/html
title500 Servlet Exception/title
h1500 Servlet Exception/h1
codepre
/www/webroot/wap/phone/loadtemplate1.0.jsp:2436: `lt;/jsp:useBean'
expected
at end of file. For XML, the top-level tag must have a matching closing
tag.
/pre/code
hr /small
Resin 2.1.17 (built Tue Jul 11 09:01:03 PDT 2006)
/small
but when run the same jsp under resin3.1.6 configured as above logging, it
echoed:
HTTP/1.1 200 OK
Date: Fri, 10 Oct 2008 04:21:17 GMT
Server: Apache
Content-Length: 0
Content-Type: text/html; charset=utf-8
Connection: close
(nothing to be displayed, for Content-Length=0 )
as the jsp run, nothing to be logged in /www/log/htttp/resin_msg.log
(configured above) .
that's the key point, so what's wrong? and how to?
thank you very much if there is any more reply.
[EMAIL PROTECTED]
--
From: Emil Ong [EMAIL PROTECTED]
Sent: Thursday, October 09, 2008 23:56
To: General Discussion for the Resin application server
resin-interest@caucho.com
Subject: Re: [Resin-interest] where is error-log tag?
On Thu, Oct 09, 2008 at 05:52:25PM +0800, Wade Lau wrote:
any reply?
am I describing cleanly?
I just wanna to know there is a error-log tag in resin3.1.6? or what if
not I
could to to trace the error e.g. jsp:useBean syntax misspelling?
any reply will be appreciated. thanks in advance.
Hi,
I believe error-log is now deprecated. Resin 3.0 and higher use
java.util.logging, so you can just configure your log and logger to
output any messages from the JSP engine:
log name= level=fine path=stdout:
timestamp=[%H:%M:%S.%s] {%{thread}} /
logger name=com.caucho.jsp level=fine/
Emil
Emil Ong
Chief Evangelist
Caucho Technology, Inc.
Tel. (858) 456-0300
mailto:[EMAIL PROTECTED]
http://blog.caucho.com/
Caucho: Reliable Open Source
-- Resin: application server
-- Quercus: PHP in Java
-- Hessian Web Services
___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest
___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest