Re: T5: Acegi integration

2008-05-15 Thread Stephane Decleire
I use tapestry and tapestry-hibernate 5.0.12-SNAPSHOT (but tried and get 
the same error with 5.0.11 and 5.0.10) and tapestry5-acegi 1.1.0-SNAPSHOT.


Robin Helgelin a écrit :

On Thu, May 15, 2008 at 4:02 PM, Stephane Decleire
[EMAIL PROTECTED] wrote:
  

I have just made the integration of Acegi in my T5 application but after
each authentication attempt, i get the following error :

Error invoking service builder method
org.apache.tapestry.hibernate.HibernateModule.build(HibernateSessionSource,
ThreadCleanupHub) (at HibernateModule.java:74) (for service
'HibernateSessionManager'): No service implements the interface
org.apache.tapestry.ioc.services.ThreadCleanupHub.



What version of Tapestry and tapestry-hibernate?

  


Re: T5: Acegi integration

2008-05-15 Thread Robin Helgelin
On Thu, May 15, 2008 at 5:54 PM, Stephane Decleire
[EMAIL PROTECTED] wrote:
 I use tapestry and tapestry-hibernate 5.0.12-SNAPSHOT (but tried and get the
 same error with 5.0.11 and 5.0.10) and tapestry5-acegi 1.1.0-SNAPSHOT.

Hmm, seems more like some problem with how you integrate
tapestry-hibernate. Or as it seems, tapestry-hibernate itself. It
seems more likely you have a diff between tapestry and hibernate
versions, otherwise I'm out of ideas.

-- 
 regards,
 Robin

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: T5: Acegi integration

2008-05-15 Thread Stephane Decleire
You were right : i had different versions of hibernate and hibernate 
annotations.

Everything works fine now ...
Thanks.

Stephane

Robin Helgelin a écrit :

On Thu, May 15, 2008 at 5:54 PM, Stephane Decleire
[EMAIL PROTECTED] wrote:
  

I use tapestry and tapestry-hibernate 5.0.12-SNAPSHOT (but tried and get the
same error with 5.0.11 and 5.0.10) and tapestry5-acegi 1.1.0-SNAPSHOT.



Hmm, seems more like some problem with how you integrate
tapestry-hibernate. Or as it seems, tapestry-hibernate itself. It
seems more likely you have a diff between tapestry and hibernate
versions, otherwise I'm out of ideas.

  


Re: [T5] Acegi integration

2007-07-03 Thread #Cyrille37#

Sébastien,

Perhaps it would not help (Im' so beginer) : perhaps pages are loaded 
before a HttpRequest exists, just the time for Tapestry to add some code 
decoration.


cyrille

Deleuze Sébastien a écrit :

Hi again,

 


During our login process, in 
org.apache.tapestry.internal.services.InternalModule,buildCookieSource(), the 
first time we load our page, _requestGlobals.getHTTPServletRequest() return 
null, so _requestGlobals.getHTTPServletRequest().getCookies(); throw a NPE.

 


The second time everything is ok.

 


Our web.xml is :

 


filter-mapping

filter-nameAcegi Security Filter/filter-name

url-pattern/*/url-pattern

  /filter-mapping

  filter-mapping

filter-nameHibernate Session In View Filter/filter-name

url-pattern/*/url-pattern

  /filter-mapping

  filter-mapping

filter-nameapp/filter-name

url-pattern/*/url-pattern

  /filter-mapping

 


Someone can help us ?

Sébastien Deleuze

  _  

De : Deleuze Sébastien 
Envoyé : mardi 3 juillet 2007 18:04

À : users@tapestry.apache.org
Objet : [T5] Acegi integration

 


Hi,

 


We would like to use Acegi with tapestry 5, but we see a NPE (we put Acegi 
filter before Tapestry 5 filter (for security reason).

 


If someone has successfully integrated Aceji with T5, can he send us his 
web.xml ? We would like to see how filters are defined.

 


You will find bellow the stacktrace :

 


java.lang.NullPointerException
 at 
org.apache.tapestry.internal.services.InternalModule$2.getCookies(InternalModule.java:364)
 at $CookieSource_1138ccba180.getCookies($CookieSource_1138ccba180.java)
 at 
org.apache.tapestry.internal.services.CookiesImpl.readCookieValue(CookiesImpl.java:58)
 at $Cookies_1138ccba17f.readCookieValue($Cookies_1138ccba17f.java)
 at 
org.apache.tapestry.services.PersistentLocaleImpl.getCookieValue(PersistentLocaleImpl.java:50)
 at 
org.apache.tapestry.services.PersistentLocaleImpl.get(PersistentLocaleImpl.java:44)
 at $PersistentLocale_1138ccba17e.get($PersistentLocale_1138ccba17e.java)
 at 
org.apache.tapestry.internal.services.LocalizationSetterImpl.setThreadLocale(LocalizationSetterImpl.java:98)
 at 
$LocalizationSetter_1138ccba17b.setThreadLocale($LocalizationSetter_1138ccba17b.java)
 at 
org.apache.tapestry.internal.services.LocalizationFilter.service(LocalizationFilter.java:41)
 at $RequestHandler_1138ccba17d.service($RequestHandler_1138ccba17d.java)
 at 
org.apache.tapestry.services.TapestryModule$3.service(TapestryModule.java:628)
 at $RequestHandler_1138ccba17d.service($RequestHandler_1138ccba17d.java)
 at 
org.apache.tapestry.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:63)
 at $RequestHandler_1138ccba17d.service($RequestHandler_1138ccba17d.java)
 at 
org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:91)
 at 
org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:82)
 at 
org.apache.tapestry.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:77)
 at 
org.apache.tapestry.internal.services.CheckForUpdatesFilter.service(CheckForUpdatesFilter.java:104)
 at $RequestHandler_1138ccba17d.service($RequestHandler_1138ccba17d.java)
 at $RequestHandler_1138ccba175.service($RequestHandler_1138ccba175.java)
 at 
org.apache.tapestry.services.TapestryModule$11.service(TapestryModule.java:1022)
 at 
$HttpServletRequestHandler_1138ccba174.service($HttpServletRequestHandler_1138ccba174.java)
 at org.apache.tapestry.TapestryFilter.doFilter(TapestryFilter.java:115)
 at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1040)
 at 
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
 at 
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)
 at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1040)
 at 
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:265)
 at 
org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:286)
 at 
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
 at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:149)
 at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
 at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1040)
 at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:352)
 at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:230)
 at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:627)
 at 
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:149)
 at