Re: [Acegisecurity-developer] Problems when trying to deploy contacts.war on JRun

2004-08-31 Thread Ben Alex
Shishir K. Singh wrote:
Hi, 

I am running into issues when deploying the contacts.war on Jrun. It
works fine when deployed on tomcat. Here's starting the stack trace from
the Jrun console. 

 

This is a Spring-specific issue. I think you'll need to use 
ContextLoaderServlet rather than ContextLoaderListener in web.xml.

Ben
---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
___
Acegisecurity-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer


RE: [Acegisecurity-developer] Problems when trying to deploy contacts.war on JRun

2004-08-31 Thread Shishir K. Singh
Ben, 

Even if I use ContextLoaderServlet, won't the filters get created before
ContextLoaderListener. In that case, the "init" of the filters will be
called even before the Spring context is available and thus, the
WebApplicationContextUtils.getRequiredWebApplicationContext will fail in
the filters. 

I changed the  ContextLoaderListener to ContextLoaderServlet in
contacts's web.xml and got the same error when deploying in tomcat now.


Shishir



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of Ben Alex
Sent: Tuesday, August 31, 2004 7:37 PM
To: [EMAIL PROTECTED]
Subject: Re: [Acegisecurity-developer] Problems when trying to deploy
contacts.war on JRun

Shishir K. Singh wrote:

>Hi,
>
>I am running into issues when deploying the contacts.war on Jrun. It 
>works fine when deployed on tomcat. Here's starting the stack trace 
>from the Jrun console.
>
>
>  
>
This is a Spring-specific issue. I think you'll need to use
ContextLoaderServlet rather than ContextLoaderListener in web.xml.

Ben


---
This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java
Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
___
Acegisecurity-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer


---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idP47&alloc_id808&op=click
___
Acegisecurity-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer


Re: [Acegisecurity-developer] Problems when trying to deploy contacts.war on JRun

2004-08-31 Thread Ben Alex
Shishir K. Singh wrote:
Ben, 

Even if I use ContextLoaderServlet, won't the filters get created before
ContextLoaderListener. In that case, the "init" of the filters will be
called even before the Spring context is available and thus, the
WebApplicationContextUtils.getRequiredWebApplicationContext will fail in
the filters. 

I changed the  ContextLoaderListener to ContextLoaderServlet in
contacts's web.xml and got the same error when deploying in tomcat now.
 

 

Yes, you're right. I've just committed to CVS HEAD an enhancement to 
FilterToBeanProxy which enables it to lazily initialize the proxied 
Filter (ie on the first HTTP request, not at filter initialization 
time). Just set initialization property "init" to "lazy". Please let me 
know if this works OK.

Ben

---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
___
Acegisecurity-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer


RE: [Acegisecurity-developer] Problems when trying to deploy contacts.war on JRun

2004-09-01 Thread Shishir K. Singh
Ben, 

Thanks. It works fine.

Shishir 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of Ben Alex
Sent: Tuesday, August 31, 2004 10:39 PM
To: [EMAIL PROTECTED]
Subject: Re: [Acegisecurity-developer] Problems when trying to deploy
contacts.war on JRun

Shishir K. Singh wrote:

>Ben,
>
>Even if I use ContextLoaderServlet, won't the filters get created 
>before ContextLoaderListener. In that case, the "init" of the filters 
>will be called even before the Spring context is available and thus, 
>the WebApplicationContextUtils.getRequiredWebApplicationContext will 
>fail in the filters.
>
>I changed the  ContextLoaderListener to ContextLoaderServlet in 
>contacts's web.xml and got the same error when deploying in tomcat now.
>  
>
>  
>
Yes, you're right. I've just committed to CVS HEAD an enhancement to
FilterToBeanProxy which enables it to lazily initialize the proxied
Filter (ie on the first HTTP request, not at filter initialization
time). Just set initialization property "init" to "lazy". Please let me
know if this works OK.

Ben



---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
___
Acegisecurity-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer


---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idP47&alloc_id808&op=click
___
Acegisecurity-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer


RE: [Acegisecurity-developer] Problems when trying to deploy contacts.war on JRun

2004-09-01 Thread Shishir K. Singh
Ben, 

One small thingy...on line 94 of FilterToBeanProxy, you may want to
check if the delegate is not null before destroying. 

Thanks
Shishir 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of Shishir K. Singh
Sent: Wednesday, September 01, 2004 1:38 PM
To: [EMAIL PROTECTED]
Subject: RE: [Acegisecurity-developer] Problems when trying to deploy
contacts.war on JRun

Ben, 

Thanks. It works fine.

Shishir 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of Ben Alex
Sent: Tuesday, August 31, 2004 10:39 PM
To: [EMAIL PROTECTED]
Subject: Re: [Acegisecurity-developer] Problems when trying to deploy
contacts.war on JRun

Shishir K. Singh wrote:

>Ben,
>
>Even if I use ContextLoaderServlet, won't the filters get created 
>before ContextLoaderListener. In that case, the "init" of the filters 
>will be called even before the Spring context is available and thus, 
>the WebApplicationContextUtils.getRequiredWebApplicationContext will 
>fail in the filters.
>
>I changed the  ContextLoaderListener to ContextLoaderServlet in 
>contacts's web.xml and got the same error when deploying in tomcat now.
>  
>
>  
>
Yes, you're right. I've just committed to CVS HEAD an enhancement to
FilterToBeanProxy which enables it to lazily initialize the proxied
Filter (ie on the first HTTP request, not at filter initialization
time). Just set initialization property "init" to "lazy". Please let me
know if this works OK.

Ben



---
This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java
Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
___
Acegisecurity-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer


---
This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java
Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idP47&alloc_id808&op=ick
___
Acegisecurity-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer


---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idP47&alloc_id808&op=click
___
Acegisecurity-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer


Re: [Acegisecurity-developer] Problems when trying to deploy contacts.war on JRun

2004-09-01 Thread Patrick Burleson
Yeah, just saw a NPE when I quickly redeployed my app without
accessing it first.


On Wed, 1 Sep 2004 14:16:24 -0400, Shishir K. Singh
<[EMAIL PROTECTED]> wrote:
> Ben,
> 
> One small thingy...on line 94 of FilterToBeanProxy, you may want to
> check if the delegate is not null before destroying.
> 
> Thanks
> Shishir 
> 
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf
> Of Shishir K. Singh
> Sent: Wednesday, September 01, 2004 1:38 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [Acegisecurity-developer] Problems when trying to deploy
> contacts.war on JRun
> 
> Ben,
> 
> Thanks. It works fine.
> 
> Shishir
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf
> Of Ben Alex
> Sent: Tuesday, August 31, 2004 10:39 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [Acegisecurity-developer] Problems when trying to deploy
> contacts.war on JRun
> 
> Shishir K. Singh wrote:
> 
> >Ben,
> >
> >Even if I use ContextLoaderServlet, won't the filters get created
> >before ContextLoaderListener. In that case, the "init" of the filters
> >will be called even before the Spring context is available and thus,
> >the WebApplicationContextUtils.getRequiredWebApplicationContext will
> >fail in the filters.
> >
> >I changed the  ContextLoaderListener to ContextLoaderServlet in
> >contacts's web.xml and got the same error when deploying in tomcat now.
> >
> >
> >
> >
> Yes, you're right. I've just committed to CVS HEAD an enhancement to
> FilterToBeanProxy which enables it to lazily initialize the proxied
> Filter (ie on the first HTTP request, not at filter initialization
> time). Just set initialization property "init" to "lazy". Please let me
> know if this works OK.
> 
> Ben
> 
> ---
> This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java
> Enterprise J2EE developer tools!
> Get your free copy of BEA WebLogic Workshop 8.1 today.
> http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
> ___
> Acegisecurity-developer mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer
> 
> ---
> This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java
> Enterprise J2EE developer tools!
> Get your free copy of BEA WebLogic Workshop 8.1 today.
> http://ads.osdn.com/?ad_idP47&alloc_id808&op=ick
> ___
> Acegisecurity-developer mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer
> 
> ---
> This SF.Net email is sponsored by BEA Weblogic Workshop
> FREE Java Enterprise J2EE developer tools!
> Get your free copy of BEA WebLogic Workshop 8.1 today.
> http://ads.osdn.com/?ad_idP47&alloc_id808&op=click
> ___
> Acegisecurity-developer mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer
>


---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idP47&alloc_id808&op=click
___
Acegisecurity-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer


Re: [Acegisecurity-developer] Problems when trying to deploy contacts.war on JRun

2004-09-01 Thread Ben Alex
Patrick Burleson wrote:
Yeah, just saw a NPE when I quickly redeployed my app without
accessing it first.
On Wed, 1 Sep 2004 14:16:24 -0400, Shishir K. Singh
<[EMAIL PROTECTED]> wrote:
 

Ben,
One small thingy...on line 94 of FilterToBeanProxy, you may want to
check if the delegate is not null before destroying.
   

 

Hi Patrick and Shishir
Thanks for that. I've just added the check to CVS.
Ben

---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
___
Acegisecurity-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer