[Resin-interest] where is error-log tag?

2008-10-09 Thread Wade Lau
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.


[EMAIL PROTECTED]

___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] where is error-log tag?

2008-10-09 Thread Wade Lau

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


[Resin-interest] where is error-log tag?

2008-10-01 Thread Wade Lau
hi, all.

I am now encountering a problem related to error-log tag in resin3.1.6,
 described below:

the page code:
!--code begin--
[EMAIL PROTECTED] session=false%[EMAIL PROTECTED] 
contentType=text/html;charset=UTF-8
language=java%%



%
[EMAIL PROTECTED] import=%
jsp:useBean id=lang scope=application class=com.ufqi.base.ManXML
It works!
br/a href=/tmp/test100.jsp test page /a
!--code end--

saved the code as a.jsp

when run is in resin3.1.6

the response:


HTTP/1.1 200 OK
Date: Wed, 01 Oct 2008 16:19:51 GMT
Server: Apache
Content-Type: text/html; charset=UTF-8
Content-Length: 2
Connection: close




when run it in resin-2.1.7

the response:

HTTP/1.1 500 Internal Server Error
Date: Wed, 01 Oct 2008 16:22:19 GMT
Server: Apache
Content-Length: 299
Connection: close
Content-Type: text/html

title500 Servlet Exception/title
h1500 Servlet Exception/h1
codepre
/phone/tmp/a.jsp:10: `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


that is the question, when an error like unclosed jsp:useBean, resin2.1.7
could throw an exception, but resin3.1.6 could not, why? it has nothing to
tell the developer what happened or how it's going about the script
a.jsp.

I read their resin.xml which two versions has different xml format, the key
point is  the resin2.1.7 has a tag errot-tag to handle this? but
resin3.1.6 has not, isn't?

I want to know how the error-tag would be added in resin3.1.6? or how
could I handled the error in resin3.1.6's log file by configuring its
resin.xml ?


thanks in advance, and looking forward to all of you!


[EMAIL PROTECTED]
___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest