My app deployed at
http://localhost:8080/iris/ orbeon http://localhost:8080/orbeon/ The xform shows up fine, but when you do a submit, orbeon throw a ResourceNotFoundException, Cannot load "/page-flow.xml" with webapp loader... but, why does it need a page-flow.xml? Here is the <xforms:submission>, <xforms:submission id="next-submission" resource="/protocol/post" method="post" replace="all" ref="instance('protocol')" /> /protocol/post is at http://localhost:8080/iris/protocol/post... Here is the exception... 2010-04-22 09:51:19,295 INFO ProcessorService - /xforms-server-submit - Received request 2010-04-22 09:51:19,295 ERROR ProcessorService - Exception with no location data org.orbeon.oxf.resources.ResourceNotFoundException: Cannot load "/page-flow.xml" with webapp loader at org.orbeon.oxf.resources.WebAppResourceManagerImpl.getContentAsStream(WebAppResourceManagerImpl.java:74) at org.orbeon.oxf.resources.ResourceManagerBase.getContentAsSAX(ResourceManagerBase.java:124) at org.orbeon.oxf.resources.PriorityResourceManagerImpl$4.run(PriorityResourceManagerImpl.java:114) at org.orbeon.oxf.resources.PriorityResourceManagerImpl.delegate(PriorityResourceManagerImpl.java:243) at org.orbeon.oxf.resources.PriorityResourceManagerImpl.getContentAsSAX(PriorityResourceManagerImpl.java:112) at org.orbeon.oxf.processor.generator.URLGenerator$OXFResourceHandler.readXML(URLGenerator.java:714) at org.orbeon.oxf.processor.generator.URLGenerator$1.readImpl(URLGenerator.java:457) at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:1092) at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1238) at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:445) at org.orbeon.oxf.processor.validation.MSVValidationProcessor.access$600(MSVValidationProcessor.java:45) at org.orbeon.oxf.processor.validation.MSVValidationProcessor$3.readImpl(MSVValidationProcessor.java:215) at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:1092) at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1238) at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:445) at org.orbeon.oxf.processor.ProcessorImpl.readInputAsDOM4J(ProcessorImpl.java:463) at org.orbeon.oxf.processor.ProcessorImpl.readInputAsDOM4J(ProcessorImpl.java:482) at org.orbeon.oxf.processor.PageFlowControllerProcessor$1.read(PageFlowControllerProcessor.java:95) at org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsObject(ProcessorImpl.java:551) at org.orbeon.oxf.processor.PageFlowControllerProcessor.start(PageFlowControllerProcessor.java:93) at org.orbeon.oxf.pipeline.InitUtils.runProcessor(InitUtils.java:90) at org.orbeon.oxf.webapp.ProcessorService.service(ProcessorService.java:100) at org.orbeon.oxf.servlet.OrbeonServletDelegate.service(OrbeonServletDelegate.java:138) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302) at org.orbeon.oxf.servlet.OrbeonXFormsFilter.doFilter(OrbeonXFormsFilter.java:64) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302) at org.tuckey.web.filters.urlrewrite.NormalRewrittenUrl.doRewrite(NormalRewrittenUrl.java:195) at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:159) at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:141) at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:90) at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:417) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:77) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:343) at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109) at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:100) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:78) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) at org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:119) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:35) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:188) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) at org.springframework.security.web.session.ConcurrentSessionFilter.doFilter(ConcurrentSessionFilter.java:109) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:149) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:113) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at com.springsource.insight.collection.tcserver.request.HttpRequestOperationCollectionValve.invoke(HttpRequestOperationCollectionValve.java:80) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:379) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) 2010-04-22 09:51:19,295 INFO ProcessorService - /xforms-server-submit - Timing: 0 - Cache hits for cache.main: 2, fault: 2, adds: 0, expirations: 0, success rate: 50% 2010-04-22 09:51:19,295 INFO ProcessorService - /xforms-server-submit - Received request 2010-04-22 09:51:19,420 INFO ProcessorService - /xforms-server-submit - Timing: 125 - Cache hits for cache.main: 56, fault: 29, adds: 30, expirations: 0, success rate: 65% Thanks, Jiang -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
Hi Jiang,
I just tried a similar situation in separate deployment and it works as expected. And as you say, in your example the submission with resource="/protocol/post" should hit http://localhost:8080/iris/protocol/post. What happens if you hit that path by putting directly in the browser; does it load the page? If it does, I'll have to recommend you create a simple example with 2 minimal pages that reproduces the problem, and share that with us so we can reproduce this here. Alex On Thu, Apr 22, 2010 at 7:58 AM, Jiang Bian <[hidden email]> wrote: > My app deployed at > http://localhost:8080/iris/ > orbeon > http://localhost:8080/orbeon/ > > The xform shows up fine, but when you do a submit, orbeon throw a > ResourceNotFoundException, Cannot load "/page-flow.xml" with webapp > loader... > but, why does it need a page-flow.xml? > > Here is the <xforms:submission>, > <xforms:submission id="next-submission" > resource="/protocol/post" method="post" replace="all" > ref="instance('protocol')" /> > > /protocol/post is at http://localhost:8080/iris/protocol/post... > > Here is the exception... > > 2010-04-22 09:51:19,295 INFO ProcessorService - > /xforms-server-submit - Received request > 2010-04-22 09:51:19,295 ERROR ProcessorService - Exception with no > location data > org.orbeon.oxf.resources.ResourceNotFoundException: Cannot load > "/page-flow.xml" with webapp loader > at org.orbeon.oxf.resources.WebAppResourceManagerImpl.getContentAsStream(WebAppResourceManagerImpl.java:74) > at org.orbeon.oxf.resources.ResourceManagerBase.getContentAsSAX(ResourceManagerBase.java:124) > at org.orbeon.oxf.resources.PriorityResourceManagerImpl$4.run(PriorityResourceManagerImpl.java:114) > at org.orbeon.oxf.resources.PriorityResourceManagerImpl.delegate(PriorityResourceManagerImpl.java:243) > at org.orbeon.oxf.resources.PriorityResourceManagerImpl.getContentAsSAX(PriorityResourceManagerImpl.java:112) > at org.orbeon.oxf.processor.generator.URLGenerator$OXFResourceHandler.readXML(URLGenerator.java:714) > at org.orbeon.oxf.processor.generator.URLGenerator$1.readImpl(URLGenerator.java:457) > at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:1092) > at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1238) > at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:445) > at org.orbeon.oxf.processor.validation.MSVValidationProcessor.access$600(MSVValidationProcessor.java:45) > at org.orbeon.oxf.processor.validation.MSVValidationProcessor$3.readImpl(MSVValidationProcessor.java:215) > at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:1092) > at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1238) > at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:445) > at org.orbeon.oxf.processor.ProcessorImpl.readInputAsDOM4J(ProcessorImpl.java:463) > at org.orbeon.oxf.processor.ProcessorImpl.readInputAsDOM4J(ProcessorImpl.java:482) > at org.orbeon.oxf.processor.PageFlowControllerProcessor$1.read(PageFlowControllerProcessor.java:95) > at org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsObject(ProcessorImpl.java:551) > at org.orbeon.oxf.processor.PageFlowControllerProcessor.start(PageFlowControllerProcessor.java:93) > at org.orbeon.oxf.pipeline.InitUtils.runProcessor(InitUtils.java:90) > at org.orbeon.oxf.webapp.ProcessorService.service(ProcessorService.java:100) > at org.orbeon.oxf.servlet.OrbeonServletDelegate.service(OrbeonServletDelegate.java:138) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646) > at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436) > at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374) > at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302) > at org.orbeon.oxf.servlet.OrbeonXFormsFilter.doFilter(OrbeonXFormsFilter.java:64) > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646) > at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436) > at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374) > at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302) > at org.tuckey.web.filters.urlrewrite.NormalRewrittenUrl.doRewrite(NormalRewrittenUrl.java:195) > at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:159) > at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:141) > at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:90) > at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:417) > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:77) > at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88) > at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:343) > at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109) > at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83) > at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) > at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97) > at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) > at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:100) > at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) > at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:78) > at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) > at org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:119) > at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) > at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54) > at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) > at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:35) > at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) > at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:188) > at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) > at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105) > at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) > at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79) > at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) > at org.springframework.security.web.session.ConcurrentSessionFilter.doFilter(ConcurrentSessionFilter.java:109) > at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) > at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:149) > at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237) > at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167) > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:113) > at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) > at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) > at com.springsource.insight.collection.tcserver.request.HttpRequestOperationCollectionValve.invoke(HttpRequestOperationCollectionValve.java:80) > at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) > at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) > at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) > at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) > at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849) > at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) > at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:379) > at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) > at java.lang.Thread.run(Thread.java:619) > 2010-04-22 09:51:19,295 INFO ProcessorService - > /xforms-server-submit - Timing: 0 - Cache hits for cache.main: 2, > fault: 2, adds: 0, expirations: 0, success rate: 50% > 2010-04-22 09:51:19,295 INFO ProcessorService - > /xforms-server-submit - Received request > 2010-04-22 09:51:19,420 INFO ProcessorService - > /xforms-server-submit - Timing: 125 - Cache hits for cache.main: 56, > fault: 29, adds: 30, expirations: 0, success rate: 65% > > Thanks, > > Jiang > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > > -- Orbeon Forms - Web forms, open-source, for the Enterprise - http://www.orbeon.com/ My Twitter: http://twitter.com/avernet -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Alex,
If I use the full address (https://localhost:8080/iris/protocol/post), it works just fine. Is it a issue with relative path? I have created a very simple webapp that can reproduce the problem... Thanks, Jiang On Apr 22, 2010, at 7:08 PM, Alessandro Vernet wrote: > Hi Jiang, > > I just tried a similar situation in separate deployment and it works > as expected. And as you say, in your example the submission with > resource="/protocol/post" should hit > http://localhost:8080/iris/protocol/post. What happens if you hit that > path by putting directly in the browser; does it load the page? If it > does, I'll have to recommend you create a simple example with 2 > minimal pages that reproduces the problem, and share that with us so > we can reproduce this here. > > Alex > > On Thu, Apr 22, 2010 at 7:58 AM, Jiang Bian <[hidden email]> wrote: >> My app deployed at >> http://localhost:8080/iris/ >> orbeon >> http://localhost:8080/orbeon/ >> >> The xform shows up fine, but when you do a submit, orbeon throw a >> ResourceNotFoundException, Cannot load "/page-flow.xml" with webapp >> loader... >> but, why does it need a page-flow.xml? >> >> Here is the <xforms:submission>, >> <xforms:submission id="next-submission" >> resource="/protocol/post" method="post" replace="all" >> ref="instance('protocol')" /> >> >> /protocol/post is at http://localhost:8080/iris/protocol/post... >> >> Here is the exception... >> >> 2010-04-22 09:51:19,295 INFO ProcessorService - >> /xforms-server-submit - Received request >> 2010-04-22 09:51:19,295 ERROR ProcessorService - Exception with no >> location data >> org.orbeon.oxf.resources.ResourceNotFoundException: Cannot load >> "/page-flow.xml" with webapp loader >> at org.orbeon.oxf.resources.WebAppResourceManagerImpl.getContentAsStream(WebAppResourceManagerImpl.java:74) >> at org.orbeon.oxf.resources.ResourceManagerBase.getContentAsSAX(ResourceManagerBase.java:124) >> at org.orbeon.oxf.resources.PriorityResourceManagerImpl$4.run(PriorityResourceManagerImpl.java:114) >> at org.orbeon.oxf.resources.PriorityResourceManagerImpl.delegate(PriorityResourceManagerImpl.java:243) >> at org.orbeon.oxf.resources.PriorityResourceManagerImpl.getContentAsSAX(PriorityResourceManagerImpl.java:112) >> at org.orbeon.oxf.processor.generator.URLGenerator$OXFResourceHandler.readXML(URLGenerator.java:714) >> at org.orbeon.oxf.processor.generator.URLGenerator$1.readImpl(URLGenerator.java:457) >> at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:1092) >> at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1238) >> at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:445) >> at org.orbeon.oxf.processor.validation.MSVValidationProcessor.access$600(MSVValidationProcessor.java:45) >> at org.orbeon.oxf.processor.validation.MSVValidationProcessor$3.readImpl(MSVValidationProcessor.java:215) >> at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:1092) >> at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1238) >> at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:445) >> at org.orbeon.oxf.processor.ProcessorImpl.readInputAsDOM4J(ProcessorImpl.java:463) >> at org.orbeon.oxf.processor.ProcessorImpl.readInputAsDOM4J(ProcessorImpl.java:482) >> at org.orbeon.oxf.processor.PageFlowControllerProcessor$1.read(PageFlowControllerProcessor.java:95) >> at org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsObject(ProcessorImpl.java:551) >> at org.orbeon.oxf.processor.PageFlowControllerProcessor.start(PageFlowControllerProcessor.java:93) >> at org.orbeon.oxf.pipeline.InitUtils.runProcessor(InitUtils.java:90) >> at org.orbeon.oxf.webapp.ProcessorService.service(ProcessorService.java:100) >> at org.orbeon.oxf.servlet.OrbeonServletDelegate.service(OrbeonServletDelegate.java:138) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) >> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) >> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >> at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646) >> at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436) >> at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374) >> at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302) >> at org.orbeon.oxf.servlet.OrbeonXFormsFilter.doFilter(OrbeonXFormsFilter.java:64) >> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >> at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646) >> at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436) >> at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374) >> at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302) >> at org.tuckey.web.filters.urlrewrite.NormalRewrittenUrl.doRewrite(NormalRewrittenUrl.java:195) >> at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:159) >> at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:141) >> at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:90) >> at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:417) >> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >> at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:77) >> at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) >> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >> at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88) >> at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) >> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >> at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:343) >> at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109) >> at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83) >> at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) >> at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97) >> at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) >> at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:100) >> at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) >> at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:78) >> at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) >> at org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:119) >> at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) >> at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54) >> at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) >> at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:35) >> at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) >> at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:188) >> at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) >> at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105) >> at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) >> at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79) >> at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) >> at org.springframework.security.web.session.ConcurrentSessionFilter.doFilter(ConcurrentSessionFilter.java:109) >> at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) >> at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:149) >> at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237) >> at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167) >> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >> at org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:113) >> at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) >> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) >> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) >> at com.springsource.insight.collection.tcserver.request.HttpRequestOperationCollectionValve.invoke(HttpRequestOperationCollectionValve.java:80) >> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) >> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) >> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) >> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) >> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849) >> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) >> at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:379) >> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) >> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) >> at java.lang.Thread.run(Thread.java:619) >> 2010-04-22 09:51:19,295 INFO ProcessorService - >> /xforms-server-submit - Timing: 0 - Cache hits for cache.main: 2, >> fault: 2, adds: 0, expirations: 0, success rate: 50% >> 2010-04-22 09:51:19,295 INFO ProcessorService - >> /xforms-server-submit - Received request >> 2010-04-22 09:51:19,420 INFO ProcessorService - >> /xforms-server-submit - Timing: 125 - Cache hits for cache.main: 56, >> fault: 29, adds: 30, expirations: 0, success rate: 65% >> >> Thanks, >> >> Jiang >> >> >> -- >> You receive this message as a subscriber of the [hidden email] mailing list. >> To unsubscribe: mailto:[hidden email] >> For general help: mailto:[hidden email]?subject=help >> OW2 mailing lists service home page: http://www.ow2.org/wws >> >> > > > > -- > Orbeon Forms - Web forms, open-source, for the Enterprise - > http://www.orbeon.com/ > My Twitter: http://twitter.com/avernet > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws mvc-basic.zip (46K) Download Attachment |
Administrator
|
Jiang,
In your example, I removed the f:url-norewrite="false" on the xforms:submission, and write it as: <xforms:submission id="next-submission" resource="/xforms-jsp/step_2.jsp" method="post" replace="all" ref="instance('protocol')" /> I create a step_2.jsp in the same directory, and when hitting next, I am transferred to that step 2, as expected. I attached the two files for reference. Alex On Thu, Apr 22, 2010 at 9:08 PM, Jiang Bian <[hidden email]> wrote: > Alex, > > If I use the full address (https://localhost:8080/iris/protocol/post), it works just fine. > Is it a issue with relative path? > > I have created a very simple webapp that can reproduce the problem... > > > > > Thanks, > > Jiang > > > > On Apr 22, 2010, at 7:08 PM, Alessandro Vernet wrote: > >> Hi Jiang, >> >> I just tried a similar situation in separate deployment and it works >> as expected. And as you say, in your example the submission with >> resource="/protocol/post" should hit >> http://localhost:8080/iris/protocol/post. What happens if you hit that >> path by putting directly in the browser; does it load the page? If it >> does, I'll have to recommend you create a simple example with 2 >> minimal pages that reproduces the problem, and share that with us so >> we can reproduce this here. >> >> Alex >> >> On Thu, Apr 22, 2010 at 7:58 AM, Jiang Bian <[hidden email]> wrote: >>> My app deployed at >>> http://localhost:8080/iris/ >>> orbeon >>> http://localhost:8080/orbeon/ >>> >>> The xform shows up fine, but when you do a submit, orbeon throw a >>> ResourceNotFoundException, Cannot load "/page-flow.xml" with webapp >>> loader... >>> but, why does it need a page-flow.xml? >>> >>> Here is the <xforms:submission>, >>> <xforms:submission id="next-submission" >>> resource="/protocol/post" method="post" replace="all" >>> ref="instance('protocol')" /> >>> >>> /protocol/post is at http://localhost:8080/iris/protocol/post... >>> >>> Here is the exception... >>> >>> 2010-04-22 09:51:19,295 INFO ProcessorService - >>> /xforms-server-submit - Received request >>> 2010-04-22 09:51:19,295 ERROR ProcessorService - Exception with no >>> location data >>> org.orbeon.oxf.resources.ResourceNotFoundException: Cannot load >>> "/page-flow.xml" with webapp loader >>> at org.orbeon.oxf.resources.WebAppResourceManagerImpl.getContentAsStream(WebAppResourceManagerImpl.java:74) >>> at org.orbeon.oxf.resources.ResourceManagerBase.getContentAsSAX(ResourceManagerBase.java:124) >>> at org.orbeon.oxf.resources.PriorityResourceManagerImpl$4.run(PriorityResourceManagerImpl.java:114) >>> at org.orbeon.oxf.resources.PriorityResourceManagerImpl.delegate(PriorityResourceManagerImpl.java:243) >>> at org.orbeon.oxf.resources.PriorityResourceManagerImpl.getContentAsSAX(PriorityResourceManagerImpl.java:112) >>> at org.orbeon.oxf.processor.generator.URLGenerator$OXFResourceHandler.readXML(URLGenerator.java:714) >>> at org.orbeon.oxf.processor.generator.URLGenerator$1.readImpl(URLGenerator.java:457) >>> at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:1092) >>> at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1238) >>> at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:445) >>> at org.orbeon.oxf.processor.validation.MSVValidationProcessor.access$600(MSVValidationProcessor.java:45) >>> at org.orbeon.oxf.processor.validation.MSVValidationProcessor$3.readImpl(MSVValidationProcessor.java:215) >>> at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:1092) >>> at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1238) >>> at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:445) >>> at org.orbeon.oxf.processor.ProcessorImpl.readInputAsDOM4J(ProcessorImpl.java:463) >>> at org.orbeon.oxf.processor.ProcessorImpl.readInputAsDOM4J(ProcessorImpl.java:482) >>> at org.orbeon.oxf.processor.PageFlowControllerProcessor$1.read(PageFlowControllerProcessor.java:95) >>> at org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsObject(ProcessorImpl.java:551) >>> at org.orbeon.oxf.processor.PageFlowControllerProcessor.start(PageFlowControllerProcessor.java:93) >>> at org.orbeon.oxf.pipeline.InitUtils.runProcessor(InitUtils.java:90) >>> at org.orbeon.oxf.webapp.ProcessorService.service(ProcessorService.java:100) >>> at org.orbeon.oxf.servlet.OrbeonServletDelegate.service(OrbeonServletDelegate.java:138) >>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) >>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) >>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >>> at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646) >>> at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436) >>> at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374) >>> at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302) >>> at org.orbeon.oxf.servlet.OrbeonXFormsFilter.doFilter(OrbeonXFormsFilter.java:64) >>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >>> at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646) >>> at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436) >>> at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374) >>> at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302) >>> at org.tuckey.web.filters.urlrewrite.NormalRewrittenUrl.doRewrite(NormalRewrittenUrl.java:195) >>> at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:159) >>> at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:141) >>> at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:90) >>> at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:417) >>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >>> at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:77) >>> at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) >>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >>> at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88) >>> at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) >>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >>> at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:343) >>> at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109) >>> at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83) >>> at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) >>> at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97) >>> at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) >>> at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:100) >>> at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) >>> at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:78) >>> at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) >>> at org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:119) >>> at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) >>> at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54) >>> at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) >>> at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:35) >>> at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) >>> at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:188) >>> at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) >>> at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105) >>> at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) >>> at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79) >>> at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) >>> at org.springframework.security.web.session.ConcurrentSessionFilter.doFilter(ConcurrentSessionFilter.java:109) >>> at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) >>> at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:149) >>> at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237) >>> at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167) >>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >>> at org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:113) >>> at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) >>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >>> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) >>> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) >>> at com.springsource.insight.collection.tcserver.request.HttpRequestOperationCollectionValve.invoke(HttpRequestOperationCollectionValve.java:80) >>> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) >>> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) >>> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) >>> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) >>> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849) >>> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) >>> at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:379) >>> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) >>> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) >>> at java.lang.Thread.run(Thread.java:619) >>> 2010-04-22 09:51:19,295 INFO ProcessorService - >>> /xforms-server-submit - Timing: 0 - Cache hits for cache.main: 2, >>> fault: 2, adds: 0, expirations: 0, success rate: 50% >>> 2010-04-22 09:51:19,295 INFO ProcessorService - >>> /xforms-server-submit - Received request >>> 2010-04-22 09:51:19,420 INFO ProcessorService - >>> /xforms-server-submit - Timing: 125 - Cache hits for cache.main: 56, >>> fault: 29, adds: 30, expirations: 0, success rate: 65% >>> >>> Thanks, >>> >>> Jiang >>> >>> >>> -- >>> You receive this message as a subscriber of the [hidden email] mailing list. >>> To unsubscribe: mailto:[hidden email] >>> For general help: mailto:[hidden email]?subject=help >>> OW2 mailing lists service home page: http://www.ow2.org/wws >>> >>> >> >> >> >> -- >> Orbeon Forms - Web forms, open-source, for the Enterprise - >> http://www.orbeon.com/ >> My Twitter: http://twitter.com/avernet >> >> -- >> You receive this message as a subscriber of the [hidden email] mailing list. >> To unsubscribe: mailto:[hidden email] >> For general help: mailto:[hidden email]?subject=help >> OW2 mailing lists service home page: http://www.ow2.org/wws > > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > > -- Orbeon Forms - Web forms, open-source, for the Enterprise - http://www.orbeon.com/ My Twitter: http://twitter.com/avernet -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Alex,
Thank you for the help. Could you shine some light on why it has to forward the request to a jsp (view) but not a controller? I need to do some processing in the controller, such as decide which view it needs to show. So, step-2, is not neccessary my next step... I removed url-norewrite, but it won't go to a controller. Isn't the xforms-sever-submit just forward the whole XML instance to the URL I specified? Thanks again! Jiang Sent from my iPhone On Apr 23, 2010, at 20:12, Alessandro Vernet <[hidden email]> wrote: > Jiang, > > In your example, I removed the f:url-norewrite="false" on the > xforms:submission, and write it as: > > <xforms:submission id="next-submission" > resource="/xforms-jsp/step_2.jsp" method="post" replace="all" > ref="instance('protocol')" /> > > I create a step_2.jsp in the same directory, and when hitting next, I > am transferred to that step 2, as expected. I attached the two files > for reference. > > Alex > > On Thu, Apr 22, 2010 at 9:08 PM, Jiang Bian <[hidden email]> wrote: >> Alex, >> >> If I use the full address (https://localhost:8080/iris/protocol/ >> post), it works just fine. >> Is it a issue with relative path? >> >> I have created a very simple webapp that can reproduce the problem... >> >> >> >> >> Thanks, >> >> Jiang >> >> >> >> On Apr 22, 2010, at 7:08 PM, Alessandro Vernet wrote: >> >>> Hi Jiang, >>> >>> I just tried a similar situation in separate deployment and it works >>> as expected. And as you say, in your example the submission with >>> resource="/protocol/post" should hit >>> http://localhost:8080/iris/protocol/post. What happens if you hit >>> that >>> path by putting directly in the browser; does it load the page? If >>> it >>> does, I'll have to recommend you create a simple example with 2 >>> minimal pages that reproduces the problem, and share that with us so >>> we can reproduce this here. >>> >>> Alex >>> >>> On Thu, Apr 22, 2010 at 7:58 AM, Jiang Bian <[hidden email]> >>> wrote: >>>> My app deployed at >>>> http://localhost:8080/iris/ >>>> orbeon >>>> http://localhost:8080/orbeon/ >>>> >>>> The xform shows up fine, but when you do a submit, orbeon throw a >>>> ResourceNotFoundException, Cannot load "/page-flow.xml" with webapp >>>> loader... >>>> but, why does it need a page-flow.xml? >>>> >>>> Here is the <xforms:submission>, >>>> <xforms:submission id="next-submission" >>>> resource="/protocol/post" method="post" >>>> replace="all" >>>> ref="instance('protocol')" /> >>>> >>>> /protocol/post is at http://localhost:8080/iris/protocol/post... >>>> >>>> Here is the exception... >>>> >>>> 2010-04-22 09:51:19,295 INFO ProcessorService - >>>> /xforms-server-submit - Received request >>>> 2010-04-22 09:51:19,295 ERROR ProcessorService - Exception with no >>>> location data >>>> org.orbeon.oxf.resources.ResourceNotFoundException: Cannot load >>>> "/page-flow.xml" with webapp loader >>>> at >>>> org.orbeon.oxf.resources.WebAppResourceManagerImpl.getContentAsStream( >>>> WebAppResourceManagerImpl.java:74) >>>> at >>>> org.orbeon.oxf.resources.ResourceManagerBase.getContentAsSAX >>>> (ResourceManagerBase.java:124) >>>> at org.orbeon.oxf.resources.PriorityResourceManagerImpl >>>> $4.run(PriorityResourceManagerImpl.java:114) >>>> at >>>> org.orbeon.oxf.resources.PriorityResourceManagerImpl.delegate >>>> (PriorityResourceManagerImpl.java:243) >>>> at >>>> org.orbeon.oxf.resources.PriorityResourceManagerImpl.getContentAsSAX( >>>> PriorityResourceManagerImpl.java:112) >>>> at org.orbeon.oxf.processor.generator.URLGenerator >>>> $OXFResourceHandler.readXML(URLGenerator.java:714) >>>> at org.orbeon.oxf.processor.generator.URLGenerator >>>> $1.readImpl(URLGenerator.java:457) >>>> at org.orbeon.oxf.processor.ProcessorImpl >>>> $ProcessorOutputImpl$1.read(ProcessorImpl.java:1092) >>>> at org.orbeon.oxf.processor.ProcessorImpl >>>> $ProcessorOutputImpl.read(ProcessorImpl.java:1238) >>>> at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX >>>> (ProcessorImpl.java:445) >>>> at >>>> org.orbeon.oxf.processor.validation.MSVValidationProcessor.access >>>> $600(MSVValidationProcessor.java:45) >>>> at >>>> org.orbeon.oxf.processor.validation.MSVValidationProcessor >>>> $3.readImpl(MSVValidationProcessor.java:215) >>>> at org.orbeon.oxf.processor.ProcessorImpl >>>> $ProcessorOutputImpl$1.read(ProcessorImpl.java:1092) >>>> at org.orbeon.oxf.processor.ProcessorImpl >>>> $ProcessorOutputImpl.read(ProcessorImpl.java:1238) >>>> at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX >>>> (ProcessorImpl.java:445) >>>> at org.orbeon.oxf.processor.ProcessorImpl.readInputAsDOM4J >>>> (ProcessorImpl.java:463) >>>> at org.orbeon.oxf.processor.ProcessorImpl.readInputAsDOM4J >>>> (ProcessorImpl.java:482) >>>> at org.orbeon.oxf.processor.PageFlowControllerProcessor >>>> $1.read(PageFlowControllerProcessor.java:95) >>>> at >>>> org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsObject >>>> (ProcessorImpl.java:551) >>>> at >>>> org.orbeon.oxf.processor.PageFlowControllerProcessor.start >>>> (PageFlowControllerProcessor.java:93) >>>> at org.orbeon.oxf.pipeline.InitUtils.runProcessor >>>> (InitUtils.java:90) >>>> at org.orbeon.oxf.webapp.ProcessorService.service >>>> (ProcessorService.java:100) >>>> at org.orbeon.oxf.servlet.OrbeonServletDelegate.service >>>> (OrbeonServletDelegate.java:138) >>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java: >>>> 717) >>>> at >>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter >>>> (ApplicationFilterChain.java:290) >>>> at org.apache.catalina.core.ApplicationFilterChain.doFilter >>>> (ApplicationFilterChain.java:206) >>>> at org.apache.catalina.core.ApplicationDispatcher.invoke >>>> (ApplicationDispatcher.java:646) >>>> at >>>> org.apache.catalina.core.ApplicationDispatcher.processRequest >>>> (ApplicationDispatcher.java:436) >>>> at org.apache.catalina.core.ApplicationDispatcher.doForward >>>> (ApplicationDispatcher.java:374) >>>> at org.apache.catalina.core.ApplicationDispatcher.forward >>>> (ApplicationDispatcher.java:302) >>>> at org.orbeon.oxf.servlet.OrbeonXFormsFilter.doFilter >>>> (OrbeonXFormsFilter.java:64) >>>> at >>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter >>>> (ApplicationFilterChain.java:235) >>>> at org.apache.catalina.core.ApplicationFilterChain.doFilter >>>> (ApplicationFilterChain.java:206) >>>> at org.apache.catalina.core.ApplicationDispatcher.invoke >>>> (ApplicationDispatcher.java:646) >>>> at >>>> org.apache.catalina.core.ApplicationDispatcher.processRequest >>>> (ApplicationDispatcher.java:436) >>>> at org.apache.catalina.core.ApplicationDispatcher.doForward >>>> (ApplicationDispatcher.java:374) >>>> at org.apache.catalina.core.ApplicationDispatcher.forward >>>> (ApplicationDispatcher.java:302) >>>> at >>>> org.tuckey.web.filters.urlrewrite.NormalRewrittenUrl.doRewrite >>>> (NormalRewrittenUrl.java:195) >>>> at >>>> org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite >>>> (RuleChain.java:159) >>>> at org.tuckey.web.filters.urlrewrite.RuleChain.doRules >>>> (RuleChain.java:141) >>>> at >>>> org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest >>>> (UrlRewriter.java:90) >>>> at >>>> org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter >>>> (UrlRewriteFilter.java:417) >>>> at >>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter >>>> (ApplicationFilterChain.java:235) >>>> at org.apache.catalina.core.ApplicationFilterChain.doFilter >>>> (ApplicationFilterChain.java:206) >>>> at >>>> org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal( >>>> HiddenHttpMethodFilter.java:77) >>>> at >>>> org.springframework.web.filter.OncePerRequestFilter.doFilter >>>> (OncePerRequestFilter.java:76) >>>> at >>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter >>>> (ApplicationFilterChain.java:235) >>>> at org.apache.catalina.core.ApplicationFilterChain.doFilter >>>> (ApplicationFilterChain.java:206) >>>> at >>>> org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal( >>>> CharacterEncodingFilter.java:88) >>>> at >>>> org.springframework.web.filter.OncePerRequestFilter.doFilter >>>> (OncePerRequestFilter.java:76) >>>> at >>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter >>>> (ApplicationFilterChain.java:235) >>>> at org.apache.catalina.core.ApplicationFilterChain.doFilter >>>> (ApplicationFilterChain.java:206) >>>> at org.springframework.security.web.FilterChainProxy >>>> $VirtualFilterChain.doFilter(FilterChainProxy.java:343) >>>> at >>>> org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke( >>>> FilterSecurityInterceptor.java:109) >>>> at >>>> org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter( >>>> FilterSecurityInterceptor.java:83) >>>> at org.springframework.security.web.FilterChainProxy >>>> $VirtualFilterChain.doFilter(FilterChainProxy.java:355) >>>> at >>>> org.springframework.security.web.access.ExceptionTranslationFilter.doFilter( >>>> ExceptionTranslationFilter.java:97) >>>> at org.springframework.security.web.FilterChainProxy >>>> $VirtualFilterChain.doFilter(FilterChainProxy.java:355) >>>> at >>>> org.springframework.security.web.session.SessionManagementFilter.doFilter( >>>> SessionManagementFilter.java:100) >>>> at org.springframework.security.web.FilterChainProxy >>>> $VirtualFilterChain.doFilter(FilterChainProxy.java:355) >>>> at >>>> org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter( >>>> AnonymousAuthenticationFilter.java:78) >>>> at org.springframework.security.web.FilterChainProxy >>>> $VirtualFilterChain.doFilter(FilterChainProxy.java:355) >>>> at >>>> org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter( >>>> RememberMeAuthenticationFilter.java:119) >>>> at org.springframework.security.web.FilterChainProxy >>>> $VirtualFilterChain.doFilter(FilterChainProxy.java:355) >>>> at >>>> org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter( >>>> SecurityContextHolderAwareRequestFilter.java:54) >>>> at org.springframework.security.web.FilterChainProxy >>>> $VirtualFilterChain.doFilter(FilterChainProxy.java:355) >>>> at >>>> org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter( >>>> RequestCacheAwareFilter.java:35) >>>> at org.springframework.security.web.FilterChainProxy >>>> $VirtualFilterChain.doFilter(FilterChainProxy.java:355) >>>> at >>>> org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter( >>>> AbstractAuthenticationProcessingFilter.java:188) >>>> at org.springframework.security.web.FilterChainProxy >>>> $VirtualFilterChain.doFilter(FilterChainProxy.java:355) >>>> at >>>> org.springframework.security.web.authentication.logout.LogoutFilter.doFilter( >>>> LogoutFilter.java:105) >>>> at org.springframework.security.web.FilterChainProxy >>>> $VirtualFilterChain.doFilter(FilterChainProxy.java:355) >>>> at >>>> org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter( >>>> SecurityContextPersistenceFilter.java:79) >>>> at org.springframework.security.web.FilterChainProxy >>>> $VirtualFilterChain.doFilter(FilterChainProxy.java:355) >>>> at >>>> org.springframework.security.web.session.ConcurrentSessionFilter.doFilter( >>>> ConcurrentSessionFilter.java:109) >>>> at org.springframework.security.web.FilterChainProxy >>>> $VirtualFilterChain.doFilter(FilterChainProxy.java:355) >>>> at >>>> org.springframework.security.web.FilterChainProxy.doFilter >>>> (FilterChainProxy.java:149) >>>> at >>>> org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate( >>>> DelegatingFilterProxy.java:237) >>>> at >>>> org.springframework.web.filter.DelegatingFilterProxy.doFilter >>>> (DelegatingFilterProxy.java:167) >>>> at >>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter >>>> (ApplicationFilterChain.java:235) >>>> at org.apache.catalina.core.ApplicationFilterChain.doFilter >>>> (ApplicationFilterChain.java:206) >>>> at >>>> org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal( >>>> OpenEntityManagerInViewFilter.java:113) >>>> at >>>> org.springframework.web.filter.OncePerRequestFilter.doFilter >>>> (OncePerRequestFilter.java:76) >>>> at >>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter >>>> (ApplicationFilterChain.java:235) >>>> at org.apache.catalina.core.ApplicationFilterChain.doFilter >>>> (ApplicationFilterChain.java:206) >>>> at org.apache.catalina.core.StandardWrapperValve.invoke >>>> (StandardWrapperValve.java:233) >>>> at org.apache.catalina.core.StandardContextValve.invoke >>>> (StandardContextValve.java:191) >>>> at >>>> com.springsource.insight.collection.tcserver.request.HttpRequestOperationCollectionValve.invoke( >>>> HttpRequestOperationCollectionValve.java:80) >>>> at org.apache.catalina.core.StandardHostValve.invoke >>>> (StandardHostValve.java:128) >>>> at org.apache.catalina.valves.ErrorReportValve.invoke >>>> (ErrorReportValve.java:102) >>>> at org.apache.catalina.core.StandardEngineValve.invoke >>>> (StandardEngineValve.java:109) >>>> at org.apache.catalina.connector.CoyoteAdapter.service >>>> (CoyoteAdapter.java:293) >>>> at org.apache.coyote.http11.Http11Processor.process >>>> (Http11Processor.java:849) >>>> at org.apache.coyote.http11.Http11Protocol >>>> $Http11ConnectionHandler.process(Http11Protocol.java:583) >>>> at org.apache.tomcat.util.net.JIoEndpoint >>>> $SocketProcessor.run(JIoEndpoint.java:379) >>>> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask >>>> (ThreadPoolExecutor.java:886) >>>> at java.util.concurrent.ThreadPoolExecutor$Worker.run >>>> (ThreadPoolExecutor.java:908) >>>> at java.lang.Thread.run(Thread.java:619) >>>> 2010-04-22 09:51:19,295 INFO ProcessorService - >>>> /xforms-server-submit - Timing: 0 - Cache hits for cache.main: 2, >>>> fault: 2, adds: 0, expirations: 0, success rate: 50% >>>> 2010-04-22 09:51:19,295 INFO ProcessorService - >>>> /xforms-server-submit - Received request >>>> 2010-04-22 09:51:19,420 INFO ProcessorService - >>>> /xforms-server-submit - Timing: 125 - Cache hits for cache.main: >>>> 56, >>>> fault: 29, adds: 30, expirations: 0, success rate: 65% >>>> >>>> Thanks, >>>> >>>> Jiang >>>> >>>> >>>> -- >>>> You receive this message as a subscriber of the [hidden email] >>>> mailing list. >>>> To unsubscribe: mailto:[hidden email] >>>> For general help: mailto:[hidden email]?subject=help >>>> OW2 mailing lists service home page: http://www.ow2.org/wws >>>> >>>> >>> >>> >>> >>> -- >>> Orbeon Forms - Web forms, open-source, for the Enterprise - >>> http://www.orbeon.com/ >>> My Twitter: http://twitter.com/avernet >>> >>> -- >>> You receive this message as a subscriber of the [hidden email] >>> mailing list. >>> To unsubscribe: mailto:[hidden email] >>> For general help: mailto:[hidden email]?subject=help >>> OW2 mailing lists service home page: http://www.ow2.org/wws >> >> >> >> -- >> You receive this message as a subscriber of the [hidden email] >> mailing list. >> To unsubscribe: mailto:[hidden email] >> For general help: mailto:[hidden email]?subject=help >> OW2 mailing lists service home page: http://www.ow2.org/wws >> >> > > > > -- > Orbeon Forms - Web forms, open-source, for the Enterprise - > http://www.orbeon.com/ > My Twitter: http://twitter.com/avernet > <step_1.jsp> > <step_2.jsp> > > -- > You receive this message as a subscriber of the [hidden email] > mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
Jiang,
Yes, the XForms engine will submit the whole XML to the URL you specify (which again won't show on the browser URL bar). So you can specify whatever URL you want there, and your server should get a POST at that URL with the XML in the body of the POST. Alex On Sat, Apr 24, 2010 at 6:06 AM, Jiang Bian <[hidden email]> wrote: > Alex, > > Thank you for the help. > Could you shine some light on why it has to forward the request to a jsp > (view) but not a controller? > > I need to do some processing in the controller, such as decide which view it > needs to show. So, step-2, is not neccessary my next step... > > I removed url-norewrite, but it won't go to a controller. > > Isn't the xforms-sever-submit just forward the whole XML instance to the URL > I specified? > > Thanks again! > > Jiang > Sent from my iPhone > > On Apr 23, 2010, at 20:12, Alessandro Vernet <[hidden email]> wrote: > >> Jiang, >> >> In your example, I removed the f:url-norewrite="false" on the >> xforms:submission, and write it as: >> >> <xforms:submission id="next-submission" >> resource="/xforms-jsp/step_2.jsp" method="post" replace="all" >> ref="instance('protocol')" /> >> >> I create a step_2.jsp in the same directory, and when hitting next, I >> am transferred to that step 2, as expected. I attached the two files >> for reference. >> >> Alex >> >> On Thu, Apr 22, 2010 at 9:08 PM, Jiang Bian <[hidden email]> wrote: >>> >>> Alex, >>> >>> If I use the full address (https://localhost:8080/iris/protocol/post), it >>> works just fine. >>> Is it a issue with relative path? >>> >>> I have created a very simple webapp that can reproduce the problem... >>> >>> >>> >>> >>> Thanks, >>> >>> Jiang >>> >>> >>> >>> On Apr 22, 2010, at 7:08 PM, Alessandro Vernet wrote: >>> >>>> Hi Jiang, >>>> >>>> I just tried a similar situation in separate deployment and it works >>>> as expected. And as you say, in your example the submission with >>>> resource="/protocol/post" should hit >>>> http://localhost:8080/iris/protocol/post. What happens if you hit that >>>> path by putting directly in the browser; does it load the page? If it >>>> does, I'll have to recommend you create a simple example with 2 >>>> minimal pages that reproduces the problem, and share that with us so >>>> we can reproduce this here. >>>> >>>> Alex >>>> >>>> On Thu, Apr 22, 2010 at 7:58 AM, Jiang Bian <[hidden email]> wrote: >>>>> >>>>> My app deployed at >>>>> http://localhost:8080/iris/ >>>>> orbeon >>>>> http://localhost:8080/orbeon/ >>>>> >>>>> The xform shows up fine, but when you do a submit, orbeon throw a >>>>> ResourceNotFoundException, Cannot load "/page-flow.xml" with webapp >>>>> loader... >>>>> but, why does it need a page-flow.xml? >>>>> >>>>> Here is the <xforms:submission>, >>>>> <xforms:submission id="next-submission" >>>>> resource="/protocol/post" method="post" >>>>> replace="all" >>>>> ref="instance('protocol')" /> >>>>> >>>>> /protocol/post is at http://localhost:8080/iris/protocol/post... >>>>> >>>>> Here is the exception... >>>>> >>>>> 2010-04-22 09:51:19,295 INFO ProcessorService - >>>>> /xforms-server-submit - Received request >>>>> 2010-04-22 09:51:19,295 ERROR ProcessorService - Exception with no >>>>> location data >>>>> org.orbeon.oxf.resources.ResourceNotFoundException: Cannot load >>>>> "/page-flow.xml" with webapp loader >>>>> at >>>>> org.orbeon.oxf.resources.WebAppResourceManagerImpl.getContentAsStream(WebAppResourceManagerImpl.java:74) >>>>> at >>>>> org.orbeon.oxf.resources.ResourceManagerBase.getContentAsSAX(ResourceManagerBase.java:124) >>>>> at >>>>> org.orbeon.oxf.resources.PriorityResourceManagerImpl$4.run(PriorityResourceManagerImpl.java:114) >>>>> at >>>>> org.orbeon.oxf.resources.PriorityResourceManagerImpl.delegate(PriorityResourceManagerImpl.java:243) >>>>> at >>>>> org.orbeon.oxf.resources.PriorityResourceManagerImpl.getContentAsSAX(PriorityResourceManagerImpl.java:112) >>>>> at >>>>> org.orbeon.oxf.processor.generator.URLGenerator$OXFResourceHandler.readXML(URLGenerator.java:714) >>>>> at >>>>> org.orbeon.oxf.processor.generator.URLGenerator$1.readImpl(URLGenerator.java:457) >>>>> at >>>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:1092) >>>>> at >>>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1238) >>>>> at >>>>> org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:445) >>>>> at >>>>> org.orbeon.oxf.processor.validation.MSVValidationProcessor.access$600(MSVValidationProcessor.java:45) >>>>> at >>>>> org.orbeon.oxf.processor.validation.MSVValidationProcessor$3.readImpl(MSVValidationProcessor.java:215) >>>>> at >>>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:1092) >>>>> at >>>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1238) >>>>> at >>>>> org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:445) >>>>> at >>>>> org.orbeon.oxf.processor.ProcessorImpl.readInputAsDOM4J(ProcessorImpl.java:463) >>>>> at >>>>> org.orbeon.oxf.processor.ProcessorImpl.readInputAsDOM4J(ProcessorImpl.java:482) >>>>> at >>>>> org.orbeon.oxf.processor.PageFlowControllerProcessor$1.read(PageFlowControllerProcessor.java:95) >>>>> at >>>>> org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsObject(ProcessorImpl.java:551) >>>>> at >>>>> org.orbeon.oxf.processor.PageFlowControllerProcessor.start(PageFlowControllerProcessor.java:93) >>>>> at >>>>> org.orbeon.oxf.pipeline.InitUtils.runProcessor(InitUtils.java:90) >>>>> at >>>>> org.orbeon.oxf.webapp.ProcessorService.service(ProcessorService.java:100) >>>>> at >>>>> org.orbeon.oxf.servlet.OrbeonServletDelegate.service(OrbeonServletDelegate.java:138) >>>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) >>>>> at >>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) >>>>> at >>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >>>>> at >>>>> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646) >>>>> at >>>>> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436) >>>>> at >>>>> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374) >>>>> at >>>>> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302) >>>>> at >>>>> org.orbeon.oxf.servlet.OrbeonXFormsFilter.doFilter(OrbeonXFormsFilter.java:64) >>>>> at >>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >>>>> at >>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >>>>> at >>>>> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646) >>>>> at >>>>> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436) >>>>> at >>>>> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374) >>>>> at >>>>> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302) >>>>> at >>>>> org.tuckey.web.filters.urlrewrite.NormalRewrittenUrl.doRewrite(NormalRewrittenUrl.java:195) >>>>> at >>>>> org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:159) >>>>> at >>>>> org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:141) >>>>> at >>>>> org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:90) >>>>> at >>>>> org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:417) >>>>> at >>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >>>>> at >>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >>>>> at >>>>> org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:77) >>>>> at >>>>> org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) >>>>> at >>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >>>>> at >>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >>>>> at >>>>> org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88) >>>>> at >>>>> org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) >>>>> at >>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >>>>> at >>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >>>>> at >>>>> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:343) >>>>> at >>>>> org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109) >>>>> at >>>>> org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83) >>>>> at >>>>> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) >>>>> at >>>>> org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97) >>>>> at >>>>> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) >>>>> at >>>>> org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:100) >>>>> at >>>>> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) >>>>> at >>>>> org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:78) >>>>> at >>>>> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) >>>>> at >>>>> org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:119) >>>>> at >>>>> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) >>>>> at >>>>> org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54) >>>>> at >>>>> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) >>>>> at >>>>> org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:35) >>>>> at >>>>> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) >>>>> at >>>>> org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:188) >>>>> at >>>>> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) >>>>> at >>>>> org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105) >>>>> at >>>>> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) >>>>> at >>>>> org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79) >>>>> at >>>>> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) >>>>> at >>>>> org.springframework.security.web.session.ConcurrentSessionFilter.doFilter(ConcurrentSessionFilter.java:109) >>>>> at >>>>> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) >>>>> at >>>>> org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:149) >>>>> at >>>>> org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237) >>>>> at >>>>> org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167) >>>>> at >>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >>>>> at >>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >>>>> at >>>>> org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:113) >>>>> at >>>>> org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) >>>>> at >>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >>>>> at >>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >>>>> at >>>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) >>>>> at >>>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) >>>>> at >>>>> com.springsource.insight.collection.tcserver.request.HttpRequestOperationCollectionValve.invoke(HttpRequestOperationCollectionValve.java:80) >>>>> at >>>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) >>>>> at >>>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) >>>>> at >>>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) >>>>> at >>>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) >>>>> at >>>>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849) >>>>> at >>>>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) >>>>> at >>>>> org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:379) >>>>> at >>>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) >>>>> at >>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) >>>>> at java.lang.Thread.run(Thread.java:619) >>>>> 2010-04-22 09:51:19,295 INFO ProcessorService - >>>>> /xforms-server-submit - Timing: 0 - Cache hits for cache.main: 2, >>>>> fault: 2, adds: 0, expirations: 0, success rate: 50% >>>>> 2010-04-22 09:51:19,295 INFO ProcessorService - >>>>> /xforms-server-submit - Received request >>>>> 2010-04-22 09:51:19,420 INFO ProcessorService - >>>>> /xforms-server-submit - Timing: 125 - Cache hits for cache.main: 56, >>>>> fault: 29, adds: 30, expirations: 0, success rate: 65% >>>>> >>>>> Thanks, >>>>> >>>>> Jiang >>>>> >>>>> >>>>> -- >>>>> You receive this message as a subscriber of the [hidden email] >>>>> mailing list. >>>>> To unsubscribe: mailto:[hidden email] >>>>> For general help: mailto:[hidden email]?subject=help >>>>> OW2 mailing lists service home page: http://www.ow2.org/wws >>>>> >>>>> >>>> >>>> >>>> >>>> -- >>>> Orbeon Forms - Web forms, open-source, for the Enterprise - >>>> http://www.orbeon.com/ >>>> My Twitter: http://twitter.com/avernet >>>> >>>> -- >>>> You receive this message as a subscriber of the [hidden email] >>>> mailing list. >>>> To unsubscribe: mailto:[hidden email] >>>> For general help: mailto:[hidden email]?subject=help >>>> OW2 mailing lists service home page: http://www.ow2.org/wws >>> >>> >>> >>> -- >>> You receive this message as a subscriber of the [hidden email] mailing >>> list. >>> To unsubscribe: mailto:[hidden email] >>> For general help: mailto:[hidden email]?subject=help >>> OW2 mailing lists service home page: http://www.ow2.org/wws >>> >>> >> >> >> >> -- >> Orbeon Forms - Web forms, open-source, for the Enterprise - >> http://www.orbeon.com/ >> My Twitter: http://twitter.com/avernet >> <step_1.jsp> >> <step_2.jsp> >> >> -- >> You receive this message as a subscriber of the [hidden email] mailing >> list. >> To unsubscribe: mailto:[hidden email] >> For general help: mailto:[hidden email]?subject=help >> OW2 mailing lists service home page: http://www.ow2.org/wws > > > -- > You receive this message as a subscriber of the [hidden email] mailing > list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > > -- Orbeon Forms - Web forms, open-source, for the Enterprise - http://www.orbeon.com/ My Twitter: http://twitter.com/avernet -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Free forum by Nabble | Edit this page |