Re: [appfuse-user] Fw: Re: CP: A quick appfuse-springmvc-1.8 question

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [appfuse-user] Fw: Re: CP: A quick appfuse-springmvc-1.8 question

Fadil
Good news :

On Windows Server 2003, jdk 1.4.2_08, tomcat 5.0.28, with the sitemesh enable like this :

<filter-mapping>
    <filter-name>sitemesh</filter-name>
    <url-pattern>/*</url-pattern>
    <!-- These are needed by Tomcat 5 for forwards -->
    <dispatcher>REQUEST</dispatcher>
    <dispatcher>FORWARD</dispatcher>
</filter-mapping>

All work fine !!!
But on windows xp pro/tomcat 5.0.28/jdk 1.4.2_08 it doesn't... I don't know why, but it works on production server it's the main thing ;)

Thanks matt for help.

On 7/25/05, Fadil <[hidden email]> wrote:
hum, it changed nothing...

I have to work without decorator until I found a solution...

On 7/25/05, Fadil <[hidden email]> wrote:

> yes on this computer, I installed it with space...
>
> I'll reinstall...
>
> I keep you in touch.
>
> Thx
>
> On 7/25/05, Matt Raible <[hidden email]> wrote:
> > You can leave the DTD the same ( 2.3) - just remove those comment.  I
> > don't know why this happens - your same setup works fine for me.  Do
> > you have tomcat installed in a directory with spaces in it?  I know it
> > seems like that won't cause issues - but sometimes it does (usually on
> > startup).
> >
> > Matt
> >
> > On 7/24/05, Fadil <[hidden email]> wrote:
> > > I'm using :
> > > Tomcat 5.0.28 / jdk 1.4.08
> > > Windows XP Pro 2002
> > >
> > > So I remove comments and change the validation webdoclet to 2.2,
> > > And I get
> > > javax.servlet.ServletException : Servlet.init() for servlet faces
> > > threw Exception
> > >     at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1071)
> > > ...
> > >
> > > thx for help
> > >
> > > On 7/24/05, Matt Raible <[hidden email]> wrote:
> > > > Are using Tomcat?  If so, which version and which operating system are
> > > > you using?
> > > >
> > > > Have you tried removing the comments around the <dispatcher> element
> > > > like Gavin suggests?
> > > >
> > > > Matt
> > > >
> > > > On 7/24/05, Fadil <[hidden email]> wrote:
> > > > > Google lead me to this blog :
> > > > > http://fishdujour.typepad.com/blog/2004/12/sitemesh_appfus.html
> > > > >
> > > > > End as Gavin Terrill's said test I remove the sitemesh filter, and it works...
> > > > >
> > > > > But without decorator :(
> > > > >
> > > > > Some one have a solution ?
> > > > >
> > > > > On 7/24/05, Fadil < [hidden email]> wrote:
> > > > > > Hi all,
> > > > > >
> > > > > > I got exactly the same problem, even with hibernate/spring/jsf...
> > > > > > Can someone help me ?
> > > > > >
> > > > > > Thx
> > > > > >
> > > > > > Fadil
> > > > > >
> > > > > > On 5/27/05, Carvel Hall <[hidden email]> wrote:
> > > > > > >
> > > > > > > ---------- Forwarded Message -----------
> > > > > > > From: Matt Raible <[hidden email]>
> > > > > > > To: "[hidden email]" <[hidden email]>
> > > > > > > Sent: Fri, 27 May 2005 08:24:33 +0200
> > > > > > > Subject: Re: CP: A quick appfuse-springmvc-1.8 question
> > > > > > >
> > > > > > > I'm stepping out and don't have time to answer this question, but if
> > > > > > > you send an e-mail to the AppFuse mailing list
> > > > > > > ([hidden email]) - others should be able to help you out.
> > > > > > > You can subscribe to this list by sending a blank e-mail to
> > > > > > > [hidden email].
> > > > > > >
> > > > > > > Matt
> > > > > > >
> > > > > > > On 5/27/05, [hidden email]
> > > > > > > <[hidden email]> wrote:
> > > > > > > > Matt,
> > > > > > > > First of all, you are doing some good work!
> > > > > > > >
> > > > > > > > Our development team came across appfuse-springmvc-1.8 and we are attempting to use it as a starting point for our webapp. However, we are experiencing a very weird problem. For some odd reason when we bring up our webapp ,[http://localhost:8080/tebo], we get back a blank page instead of the login.jsp page. Have you heard of anyone else running into this type of problem?
> > > > > > > >
> > > > > > > >
> > > > > > > > I copied a portion of our catalina.out below:
> > > > > > > >
> > > > > > > > [tebo] INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] HttpServletBean.init(114) | Servlet 'action' configured successfully
> > > > > > > > [tebo] DEBUG [http-8080-Processor25] PathBasedFilterInvocationDefinitionMap.lookupAttributes(110) | Converted URL to lowercase, from: '/index.jsp'; to: '/index.jsp'
> > > > > > > > [tebo] DEBUG [http-8080-Processor25] PathBasedFilterInvocationDefinitionMap.lookupAttributes (121) | Candidate is: '/index.jsp'; pattern is /j_security_check*; matched=false
> > > > > > > > [tebo] DEBUG [http-8080-Processor25] PathBasedFilterInvocationDefinitionMap.lookupAttributes(121) | Candidate is: '/index.jsp'; pattern is /*.html*; matched=false
> > > > > > > > [tebo] DEBUG [http-8080-Processor25] PathBasedFilterInvocationDefinitionMap.lookupAttributes(121) | Candidate is: '/index.jsp'; pattern is /*.jsp; matched=true
> > > > > > > > [tebo] DEBUG [http-8080-Processor25] AbstractBeanFactory.getBean(185) | Returning cached instance of singleton bean 'httpSessionContextIntegrationFilter'
> > > > > > > > [tebo] DEBUG [http-8080-Processor25] AbstractBeanFactory.getBean(185) | Returning cached instance of singleton bean 'remoteUserFilter'
> > > > > > > > [tebo] DEBUG [http-8080-Processor25] FilterChainProxy$VirtualFilterChain.doFilter(297) | /index.jsp at position 1 of 2 in additional filter chain; firing Filter: ' net.sf.acegisecurity.context.HttpSessionContextIntegrationFilter@80669d'
> > > > > > > > [tebo] DEBUG [http-8080-Processor25] HttpSessionContextIntegrationFilter.doFilter(205) | No HttpSession currently exists
> > > > > > > > [tebo] DEBUG [http-8080-Processor25] HttpSessionContextIntegrationFilter.doFilter(213) | As ContextHolder null, setup ContextHolder with a fresh new instance: 'net.sf.acegisecurity.context.security.SecureContextImpl@ee3dee : Null authentication'
> > > > > > > > [tebo] DEBUG [http-8080-Processor25] FilterChainProxy$VirtualFilterChain.doFilter(297) | /index.jsp at position 2 of 2 in additional filter chain; firing Filter: ' net.sf.acegisecurity.wrapper.ContextHolderAwareRequestFilter@123defe'
> > > > > > > > [tebo] DEBUG [http-8080-Processor25] FilterChainProxy$VirtualFilterChain.doFilter(288) | /index.jsp reached end of additional filter chain; proceeding with original chain
> > > > > > > > [tebo] DEBUG [http-8080-Processor25] HttpSessionContextIntegrationFilter.doFilter(271) | Context stored to HttpSession: 'net.sf.acegisecurity.context.security.SecureContextImpl@ee3dee : Null authentication'
> > > > > > > > [tebo] DEBUG [http-8080-Processor25] HttpSessionContextIntegrationFilter.doFilter(280) | ContextHolder set to null as request processing completed
> > > > > > > > [tebo] DEBUG [http-8080-Processor25] PathBasedFilterInvocationDefinitionMap.lookupAttributes(110) | Converted URL to lowercase, from: '/mainmenu.html'; to: '/mainmenu.html'
> > > > > > > > [tebo] DEBUG [http-8080-Processor25] PathBasedFilterInvocationDefinitionMap.lookupAttributes (121) | Candidate is: '/mainmenu.html'; pattern is /j_security_check*; matched=false
> > > > > > > > [tebo] DEBUG [http-8080-Processor25] PathBasedFilterInvocationDefinitionMap.lookupAttributes(121) | Candidate is: '/mainmenu.html'; pattern is /*.html*; matched=true
> > > > > > > > [tebo] DEBUG [http-8080-Processor25] AbstractBeanFactory.getBean(185) | Returning cached instance of singleton bean 'httpSessionContextIntegrationFilter'
> > > > > > > > [tebo] DEBUG [http-8080-Processor25] AbstractBeanFactory.getBean(185) | Returning cached instance of singleton bean 'remoteUserFilter'
> > > > > > > > [tebo] DEBUG [http-8080-Processor25] AbstractBeanFactory.getBean(185) | Returning cached instance of singleton bean 'anonymousProcessingFilter'
> > > > > > > > [tebo] DEBUG [http-8080-Processor25] AbstractBeanFactory.getBean(185) | Returning cached instance of singleton bean 'securityEnforcementFilter'
> > > > > > > > [tebo] DEBUG [http-8080-Processor25] FilterChainProxy$VirtualFilterChain.doFilter(297) | /mainMenu.html at position 1 of 4 in additional filter chain; firing Filter: ' net.sf.acegisecurity.context.HttpSessionContextIntegrationFilter@80669d'
> > > > > > > > [tebo] DEBUG [http-8080-Processor25] HttpSessionContextIntegrationFilter.doFilter(183) | Obtained from ACEGI_SECURITY_CONTEXT a valid Context and set to ContextHolder: 'net.sf.acegisecurity.context.security.SecureContextImpl@ee3dee: Null authentication'
> > > > > > > > [tebo] DEBUG [http-8080-Processor25] FilterChainProxy$VirtualFilterChain.doFilter(297) | /mainMenu.html at position 2 of 4 in additional filter chain; firing Filter: ' net.sf.acegisecurity.wrapper.ContextHolderAwareRequestFilter@123defe'
> > > > > > > > [tebo] DEBUG [http-8080-Processor25] FilterChainProxy$VirtualFilterChain.doFilter(297) | /mainMenu.html at position 3 of 4 in additional filter chain; firing Filter: 'net.sf.acegisecurity.providers.anonymous.AnonymousProcessingFilter@4f2ec'
> > > > > > > > [tebo] DEBUG [http-8080-Processor25] AnonymousProcessingFilter.doFilter(142) | Replaced ContextHolder with anonymous token: ' net.sf.acegisecurity.providers.anonymous.AnonymousAuthenticationToken@3dc13d: Username: anonymous; Password: [PROTECTED]; Authenticated: true; Details: null; Granted Authorities: ROLE_ANONYMOUS'
> > > > > > > > [tebo] DEBUG [http-8080-Processor25] FilterChainProxy$VirtualFilterChain.doFilter(297) | /mainMenu.html at position 4 of 4 in additional filter chain; firing Filter: 'net.sf.acegisecurity.intercept.web.SecurityEnforcementFilter@599d5b'
> > > > > > > > [tebo] DEBUG [http-8080-Processor25] PathBasedFilterInvocationDefinitionMap.lookupAttributes(110) | Converted URL to lowercase, from: '/mainmenu.html'; to: '/mainmenu.html'
> > > > > > > > [tebo] DEBUG [http-8080-Processor25] PathBasedFilterInvocationDefinitionMap.lookupAttributes(121) | Candidate is: '/mainmenu.html'; pattern is /signup.html; matched=false
> > > > > > > > [tebo] DEBUG [http-8080-Processor25] PathBasedFilterInvocationDefinitionMap.lookupAttributes(121) | Candidate is: '/mainmenu.html'; pattern is /passwordhint.html*; matched=false
> > > > > > > > [tebo] DEBUG [http-8080-Processor25] PathBasedFilterInvocationDefinitionMap.lookupAttributes(121) | Candidate is: '/mainmenu.html'; pattern is /*.html; matched=true
> > > > > > > > [tebo] DEBUG [http-8080-Processor25] AbstractSecurityInterceptor.beforeInvocation (348) | Secure object: FilterInvocation: URL: /mainMenu.html; ConfigAttributes: [admin, tomcat]
> > > > > > > > [tebo] DEBUG [http-8080-Processor25] ProviderManager.doAuthentication(156) | Authentication attempt using net.sf.acegisecurity.providers.anonymous.AnonymousAuthenticationProvider
> > > > > > > > [tebo] DEBUG [http-8080-Processor25] AbstractSecurityInterceptor.beforeInvocation(386) | Authenticated: net.sf.acegisecurity.providers.anonymous.AnonymousAuthenticationToken@3dc13d : Username: anonymous; Password: [PROTECTED]; Authenticated: true; Details: null; Granted Authorities: ROLE_ANONYMOUS
> > > > > > > > [tebo] DEBUG [http-8080-Processor25] AbstractApplicationContext.publishEvent(218) | Publishing event in context [org.springframework.web.context.support.XmlWebApplicationContext ;hashCode=14738709]: net.sf.acegisecurity.intercept.event.AuthorizationFailureEvent[source=FilterInvocation: URL: /mainMenu.html]
> > > > > > > > [tebo] DEBUG [http-8080-Processor25] SecurityEnforcementFilter.doFilter (198) | Access is denied (user is anonymous); redirecting to authentication entry point
> > > > > > > > net.sf.acegisecurity.AccessDeniedException: Access is denied.
> > > > > > > >         at net.sf.acegisecurity.vote.AffirmativeBased.decide(AffirmativeBased.java:86)
> > > > > > > >         at net.sf.acegisecurity.intercept.AbstractSecurityInterceptor.beforeInvocation(AbstractSecurityInterceptor.java :394)
> > > > > > > >         at net.sf.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:81)
> > > > > > > >         at net.sf.acegisecurity.intercept.web.SecurityEnforcementFilter.doFilter (SecurityEnforcementFilter.java:182)
> > > > > > > >         at net.sf.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303)
> > > > > > > >         at net.sf.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:153)
> > > > > > > >         at net.sf.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter (FilterChainProxy.java:303)
> > > > > > > >         at net.sf.acegisecurity.wrapper.ContextHolderAwareRequestFilter.doFilter(ContextHolderAwareRequestFilter.java:50)
> > > > > > > >         at net.sf.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303)
> > > > > > > >         at net.sf.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter (HttpSessionContextIntegrationFilter.java:225)
> > > > > > > >         at net.sf.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303)
> > > > > > > >         at net.sf.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:173)
> > > > > > > >         at net.sf.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:125)
> > > > > > > >         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
> > > > > > > >         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java :157)
> > > > > > > >         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
> > > > > > > >         at org.apache.catalina.core.StandardValveContext.invokeNext (StandardValveContext.java:104)
> > > > > > > >         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> > > > > > > >         at org.apache.catalina.core.StandardContextValve.invokeInternal (StandardContextValve.java:198)
> > > > > > > >         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
> > > > > > > >         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> > > > > > > >         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> > > > > > > >         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)

> > > > > > > >         at org.apache.catalina.core.StandardValveContext.invokeNext (StandardValveContext.java:104)
> > > > > > > >         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
> > > > > > > >         at org.apache.catalina.core.StandardValveContext.invokeNext (StandardValveContext.java:102)
> > > > > > > >         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> > > > > > > >         at org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineValve.java:109)
> > > > > > > >         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> > > > > > > >         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> > > > > > > >         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
> > > > > > > >         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
> > > > > > > >         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
> > > > > > > >         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
> > > > > > > >         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java :577)
> > > > > > > >         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
> > > > > > > >         at java.lang.Thread.run(Thread.java :595)
> > > > > > > > [tebo] DEBUG [http-8080-Processor25] SecurityEnforcementFilter.sendStartAuthentication(249) | Authentication entry point being called; target URL added to Session: http://localhost:8080/tebo/mainMenu.html
> > > > > > > > [tebo] DEBUG [http-8080-Processor25] AuthenticationProcessingFilterEntryPoint.commence(171) | Redirecting to: http://localhost:8080/tebo/login.jsp
> > > > > > > > [tebo] DEBUG [http-8080-Processor25] HttpSessionContextIntegrationFilter.doFilter(271) | Context stored to HttpSession: 'net.sf.acegisecurity.context.security.SecureContextImpl@ee3dee : Authentication: net.sf.acegisecurity.providers.anonymous.AnonymousAuthenticationToken@3dc13d: Username: anonymous; Password: [PROTECTED]; Authenticated: true; Details: null; Granted Authorities: ROLE_ANONYMOUS'
> > > > > > > > [tebo] DEBUG [http-8080-Processor25] HttpSessionContextIntegrationFilter.doFilter(280) | ContextHolder set to null as request processing completed
> > > > > > > > [tebo] DEBUG [http-8080-Processor24] PathBasedFilterInvocationDefinitionMap.lookupAttributes(110) | Converted URL to lowercase, from: '/login.jsp'; to: '/login.jsp'
> > > > > > > > [tebo] DEBUG [http-8080-Processor24] PathBasedFilterInvocationDefinitionMap.lookupAttributes(121) | Candidate is: '/login.jsp'; pattern is /j_security_check*; matched=false
> > > > > > > > [tebo] DEBUG [http-8080-Processor24] PathBasedFilterInvocationDefinitionMap.lookupAttributes (121) | Candidate is: '/login.jsp'; pattern is /*.html*; matched=false
> > > > > > > > [tebo] DEBUG [http-8080-Processor24] PathBasedFilterInvocationDefinitionMap.lookupAttributes(121) | Candidate is: '/login.jsp'; pattern is /*.jsp; matched=true
> > > > > > > > [tebo] DEBUG [http-8080-Processor24] AbstractBeanFactory.getBean(185) | Returning cached instance of singleton bean 'httpSessionContextIntegrationFilter'
> > > > > > > > [tebo] DEBUG [http-8080-Processor24] AbstractBeanFactory.getBean(185) | Returning cached instance of singleton bean 'remoteUserFilter'
> > > > > > > > [tebo] DEBUG [http-8080-Processor24] FilterChainProxy$VirtualFilterChain.doFilter(297) | /login.jsp at position 1 of 2 in additional filter chain; firing Filter: ' net.sf.acegisecurity.context.HttpSessionContextIntegrationFilter@80669d'
> > > > > > > > [tebo] DEBUG [http-8080-Processor24] HttpSessionContextIntegrationFilter.doFilter(183) | Obtained from ACEGI_SECURITY_CONTEXT a valid Context and set to ContextHolder: 'net.sf.acegisecurity.context.security.SecureContextImpl@ee3dee: Authentication: net.sf.acegisecurity.providers.anonymous.AnonymousAuthenticationToken@3dc13d: Username: anonymous; Password: [PROTECTED]; Authenticated: true; Details: null; Granted Authorities: ROLE_ANONYMOUS'
> > > > > > > > [tebo] DEBUG [http-8080-Processor24] FilterChainProxy$VirtualFilterChain.doFilter(297) | /login.jsp at position 2 of 2 in additional filter chain; firing Filter: ' net.sf.acegisecurity.wrapper.ContextHolderAwareRequestFilter@123defe'
> > > > > > > > [tebo] DEBUG [http-8080-Processor24] FilterChainProxy$VirtualFilterChain.doFilter(288) | /login.jsp reached end of additional filter chain; proceeding with original chain
> > > > > > > > [tebo] DEBUG [http-8080-Processor24] AbstractBeanFactory.getBean(185) | Returning cached instance of singleton bean 'userManager'
> > > > > > > > [tebo] DEBUG [http-8080-Processor24] AbstractBeanFactory.getObjectForSharedInstance(755) | Bean with name 'userManager' is a factory bean
> > > > > > > > [tebo] DEBUG [http-8080-Processor24] HttpSessionContextIntegrationFilter.doFilter(271) | Context stored to HttpSession: 'net.sf.acegisecurity.context.security.SecureContextImpl@ee3dee: Authentication: net.sf.acegisecurity.providers.anonymous.AnonymousAuthenticationToken@3dc13d : Username: anonymous; Password: [PROTECTED]; Authenticated: true; Details: null; Granted Authorities: ROLE_ANONYMOUS'
> > > > > > > > [tebo] DEBUG [http-8080-Processor24] HttpSessionContextIntegrationFilter.doFilter(280) | ContextHolder set to null as request processing completed
> > > > > > > >
> > > > > > > >
> > > > > > > ------- End of Forwarded Message -------
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > > Carvel Q. Hall
> > > > > > > Sr. Software Developer
> > > > > > > American Software Development, Inc
> > > > > > > 571-243-0567
> > > > > > >
> > > > > > >
> > > > > > > ---------------------------------------------------------------------
> > > > > > > To unsubscribe, e-mail: [hidden email]
> > > > > > > For additional commands, e-mail: [hidden email]
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > > > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: [hidden email]
> > > > > For additional commands, e-mail: [hidden email]
> > > > >
> > > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: [hidden email]
> > > > For additional commands, e-mail: [hidden email]
> > > >
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [hidden email]
> > > For additional commands, e-mail: [hidden email]
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [hidden email]
> > For additional commands, e-mail: [hidden email]
> >
> >
>

Loading...