[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] HttpSession.invalidate() doesn't

2008-10-09 Thread Richard Grantham
Hi Eric

When I hit a my logout servlet I forward the request to a page which
will redirect to a protected page - forcing a login screen to be shown.
Occasionally, when I logout I will go through this process and find
myself still authenticated when I hit the protected resource, thus being
logged in still.

I upgraded from Resin 3.0.26.

I find it happens even with a low number of sessions. I'm experimenting
with using the cluster session config instead. Before, I was forced to
use JDBC sessions due to issues with scaling. I also see a difference in
the number of sessions reported by each Resin node and the number in the
database.

Incidentally, as recommended I was using MySQL for the session database
before moving it over to SQL Server 2005 (as with our application
database). Before the upgrade to Resin 3.1 I experienced issues with
sessions not invalidating properly far more frequently with MySQL than
SQL Server.

rgds,

Richard

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Eric Kreiser
Sent: 07 October 2008 16:33
To: General Discussion for the Resin application server
Subject: Re: [Resin-interest] HttpSession.invalidate() doesn't

what are you seeing happen?  

what resin version did you upgrade from?

I am looking at an issue currently where I have thousands of SessionImpl
instances that seem like they should be GCed but are not.  I am running
resin pro 3.1.6 and just moved to resin pro 3.1.7a to see if I still
have the same problem.  I am using db persisted sessions, so I am see
the number of sessions in the db verses the number of sessions reported
by resin using jmx.



Richard Grantham wrote: 

Hi list,

I recently upgraded to Resin Professional 3.1.7a in the hope
that the
issues I had would be solved. For the most part they are,
however, there
are occasions when session.invalidate() still doesn't quite work
and you
have to logout twice.

My resin-web.xml session configuration looks like this:

session-config use-persistent-store=true
reuse-session-id=false
invalidate-after-listener=true cookie-secure=true
enable-url-rewriting=false /

Is there anything else, configuration wise, that I may have
missed that
could be causing this issue?

rgds,

Richard

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Richard
Grantham
Sent: 23 June 2008 14:48
To: General Discussion for the Resin application server
Subject: Re: [Resin-interest] HttpSession.invalidate() doesn't

I've found that this could well be the cause of another related
issue
which has been causing me misery for the last few months.

My 403.jsp has an element on it which is the result of a Web
service
call called via a tag. The call is made only if a person of the
correct
type is logged in as the call is protected by J2EE security. If
nobody
is logged in then a login box is displayed. When the Web service
is
called it is always done to the same server as displaying the
403 page.
There have been several occasions when the JSP will display the
403 page
and make the Web service call which will return a 403 which will
make
the call which will return a 403, etc. etc. etc. until Resin
maxes out
its thread, hangs and needs to be restarted.

To my mind this would only happen if the wrong session was being
pulled
up with the call to request.getSession() in my tag.

Any pointers as how to debug and solve this would be very much
appreciated. For now I have removed the page element.

rgds,

Richard

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Richard
Grantham
Sent: 18 June 2008 12:47
To: General Discussion for the Resin application server
Subject: Re: [Resin-interest] HttpSession.invalidate() doesn't

I upgraded to Resin 3.0.26 and while the problem has certainly
eased in
frequency it has not disappeared. I have taken out the
always-save /
element. This wouldn't effect things would it?

rgds,

Richard




Richard Grantham
Development

---
[EMAIL PROTECTED]
Limehouse Software Ltd
DDI: (020) 7566 3336
Main: (020) 7566 3320
Fax: (020) 7566 3321
Limehouse Software Ltd
4th Floor
1 London Bridge
London
SE1 9BG
Manchester Office:
3rd Floor, The Triangle, Exchange Square, Manchester M4 3TR
Tel: (0161) 240 2440, Fax: (0161) 240 2441, ISDN: 

Re: [Resin-interest] Obtaining a PGConnection object

2008-10-09 Thread Claire McLister
Thanks, Scott.

AFAIK conn.unwrap is only available in JDK 1.6, and we are still on 1.5.

I re-tried casting the UserConnection into a PGConnection and get a  
ClassCastException:

java.lang.ClassCastException: org.postgresql.jdbc3g.Jdbc3gConnection


On Oct 2, 2008, at 4:13 PM, Scott Ferguson wrote:

 You can either use Resin's getConnection() method or the unwrap  
 method,

 Connection conn = _database.getConnection();

 PGConnection pgConn = conn.unwrap(PGConnection.class);

 or

 PGConnection pgConn = (PGConnection) ((com.caucho.sql.UserConnection)
 conn).getConnection();

 -- Scott

 --

Claire McLister[EMAIL PROTECTED]
21060 Homestead Road Suite 150
Cupertino, CA 95014408-733-2737(fax)

 http://www.zeemaps.com





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


[Resin-interest] Postgis driver wrapper?

2008-10-09 Thread Claire McLister
Has anyone successfully used a Postgis driver wrapper for a Resin Data  
Source?

We tried the following configuration but are getting a class  
org.postgresql.Connection not found error. Both postgresql.jar and  
postgis.jar are in the ext-lib directory.

database
 jndi-namejdbc/db/jndi-name
 driver
 typeorg.postgis.DriverWrapper/type
 urljdbc:postgresql_postGIS://pgdb:5432/db/url
 userxxx/user
 passwordyyy/password
 /driver
 /database

Thanks,

Claire





___
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