Re: [appfuse-user] Failure in decorators

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

Re: [appfuse-user] Failure in decorators

Matt Raible-3
It sounds like this is more of a SiteMesh and/or Acegi issue that
occurs when you start Tomcat under a security policy.  You have a
couple of options at this point:

1.  Enter it as an issue in JIRA (http://issues.appfuse.org) and
provide enough details so we can reproduce the problem.
Unfortunately, it might sit there awhile before any of us are able to
look at the problem and try to solve it.

2.  Create a simple app and contract the Acegi or SiteMesh forums to
see if they can help you.  Provide the simple app for download so the
authors of those frameworks can see the error occur.

#2 would also be helpful in helping us solve #1, but we should be able
to use AppFuse, so it's not a big deal.

Thanks,

Matt

P.S.  There might be other options, these are the only ones I could
think of off the top of my head. ;-)

On 7/6/05, Brett Knights <[hidden email]> wrote:

> The problem with this goes away when I don't run Tomcat under a security
> policy. My policy granted AllPermission to the WEB-INF/lib codebase but
> even so the errors occured.
> When I run Tomcat with no security policy the errors go away.
>
> This is an appfuse 1.8.1 project using the Spring web framework ,
> hibernate and mysql.
>
> TC 5.028 and Apache 2.0.53, Jdk 1.4.2_07
>
>
> Brett Knights wrote:
>
> > I am still trying to deploy my first Appfuse application.
> >
> > Everything was running swimmingly on port 8080 on my development machine.
> >
> > The basic functions of the app seem to be working now but the sitemesh
> > decorators are hosed. I have the same decorators.xml and sitemesh.xml
> > files as I had on my development machine.
> >
> > When I exclude everything I get the bare pages.
> > When I strip down my default.jsp I get almost the same errors.
> >
> > When I try to process the pages I get the following error returned in
> > my browser:
> >
> > javax.servlet.ServletException
> >     at
> > net.sf.acegisecurity.intercept.web.SecurityEnforcementFilter.doFilter(SecurityEnforcementFilter.java:214)
> >
> >     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 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >     at
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >
> >     at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >
> >     at java.lang.reflect.Method.invoke(Method.java:324)
> >     at
> > org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:239)
> >     at java.security.AccessController.doPrivileged(Native Method)
> >     at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
> >     at
> > org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268)
> >     at
> > org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:213)
> >
> >     at
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:183)
> >
> >     at
> > org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
> >
> >     at
> > org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:140)
> >
> >     at java.security.AccessController.doPrivileged(Native Method)
> >     at
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:136)
> >
> >     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.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300)
> >     at
> > org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374)
> >     at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
> >     at
> > org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)
> >
> >     at
> > org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
> >     at
> > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
> >
> >     at java.lang.Thread.run(Thread.java:534)
> >
> > But I get the following in my context log:
> >
> >
> > 2005-07-05 16:02:04 StandardWrapperValve[jsp]: Servlet.service() for
> > servlet jsp threw exception
> > java.lang.NullPointerException
> >        at
> > com.opensymphony.module.sitemesh.filter.PageResponseWrapper.getPage(PageResponseWrapper.java:169)
> >
> >        at
> > com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:123)
> >
> >        at
> > com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
> >
> >        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >        at
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >
> >        at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >
> >        at java.lang.reflect.Method.invoke(Method.java:324)
> >        at
> > org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:239)
> >        at java.security.AccessController.doPrivileged(Native Method)
> >        at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
> >        at
> > org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268)
> >        at
> > org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:213)
> >
> >        at
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:183)
> >
> >        at
> > org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
> >
> >        at
> > org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:140)
> >
> >        at java.security.AccessController.doPrivileged(Native Method)
> >        at
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:136)
> >
> >        at
> > org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:75)
> >
> >        at
> > org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
> >
> >        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >        at
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >
> >        at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >
> >        at java.lang.reflect.Method.invoke(Method.java:324)
> >        at
> > org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:239)
> >        at java.security.AccessController.doPrivileged(Native Method)
> >        at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
> >        at
> > org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268)
> >        at
> > org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:213)
> >
> >        at
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:183)
> >
> >        at
> > org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
> >
> >        at
> > org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:140)
> >
> >        at java.security.AccessController.doPrivileged(Native Method)
> >        at
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:136)
> >
> >        at
> > com.ledgerdemain.definiti.webapp.filter.LoginFilter.doFilter(LoginFilter.java:113)
> >
> >        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >        at
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >
> >        at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >
> >        at java.lang.reflect.Method.invoke(Method.java:324)
> >        at
> > org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:239)
> >        at java.security.AccessController.doPrivileged(Native Method)
> >        at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
> >        at
> > org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268)
> >        at
> > org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:213)
> >
> >        at
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:183)
> >
> >        at
> > org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
> >
> >        at
> > org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:140)
> >
> >        at java.security.AccessController.doPrivileged(Native Method)
> >        at
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:136)
> >
> >        at
> > net.sf.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:292)
> >
> >        at
> > net.sf.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:84)
> >
> >        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.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 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >        at
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >
> >        at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >
> >        at java.lang.reflect.Method.invoke(Method.java:324)
> >        at
> > org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:239)
> >        at java.security.AccessController.doPrivileged(Native Method)
> >        at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
> >        at
> > org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268)
> >        at
> > org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:213)
> >
> >        at
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:183)
> >
> >        at
> > org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
> >
> >        at
> > org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:140)
> >
> >        at java.security.AccessController.doPrivileged(Native Method)
> >        at
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:136)
> >
> >        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.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300)
> >        at
> > org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374)
> >        at
> > org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
> >        at
> > org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)
> >
> >        at
> > org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
> >        at
> > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
> >
> >        at java.lang.Thread.run(Thread.java:534)
> >
> >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > 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]