Login  Register

Re: "Orbeon Forms - Page Not Found" when publishing custom xform

Posted by ajls77 on Apr 27, 2007; 9:45am
URL: https://discuss.orbeon.com/Orbeon-Forms-Page-Not-Found-when-publishing-custom-xform-tp33667p33669.html

Hi

Thanks for the quick response.  I still haven't quite figured why this is happening, even as my understanding of OPS is improving.  I got the same error when creating an upstream filter setting request.setAttribute("oxf.xforms.renderer.document", formStr) and when renaming the xhtml to jsp and added a "application/xml" content-type.

Yes, the xforms-renderer seems to be being invoked:

(abridged log4j DEBUG output)
2007-04-27 09:29:29,795 DEBUG [org.exist.storage.journal.Journal] Checkpoint reached
2007-04-27 09:29:29,795 DEBUG [org.exist.storage.NotificationService] Registered UpdateListeners:
2007-04-27 09:30:05,810 INFO  [org.orbeon.oxf.webapp.ProcessorService] /xforms-renderer - Received request
2007-04-27 09:30:05,810 DEBUG [org.orbeon.oxf.processor.generator.URLGenerator] OXF Protocol: Using ResourceManager for key /page-flow.xml
2007-04-27 09:30:05,810 DEBUG [org.orbeon.oxf.processor.generator.URLGenerator] OXF Protocol: Using ResourceManager for key /org/orbeon/oxf/xml/schemas/page-flow-controller-runtime.xsd

// Some Cache dumps

2007-04-27 09:30:05,826 DEBUG [org.orbeon.oxf.processor.generator.URLGenerator] OXF Protocol: Using ResourceManager for key /org/orbeon/oxf/xml/schemas/request-config.rng
2007-04-27 09:30:05,826 DEBUG [org.orbeon.oxf.processor.ProcessorImpl] Cache [data, class org.orbeon.oxf.processor.pipeline.TeeProcessor, $data, class org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor]: source cacheable and found for key 'InputCacheKey [class: org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor, inputName: $data, DocKey [ SimpleOutputCacheKey [class: org.orbeon.oxf.processor.generator.DOMGenerator, outputName: data, key: inline config] ]]'. FOUND object: org.dom4j.tree.DefaultDocument@170a4d0 [Document: name null]
2007-04-27 09:30:05,826 DEBUG [org.orbeon.oxf.processor.generator.URLGenerator] OXF Protocol: Using ResourceManager for key /org/orbeon/oxf/xml/schemas/url-generator-config.rng
2007-04-27 09:30:05,826 DEBUG [org.orbeon.oxf.processor.generator.URLGenerator] Config found: org.orbeon.oxf.processor.generator.URLGenerator$ConfigURIReferences@8e0e1
2007-04-27 09:30:05,826 DEBUG [org.orbeon.oxf.processor.generator.URLGenerator] Config found: org.orbeon.oxf.processor.generator.URLGenerator$ConfigURIReferences@8e0e1
2007-04-27 09:30:05,826 DEBUG [org.orbeon.oxf.processor.generator.URLGenerator] OXF Protocol: Using ResourceManager for key /config/not-found.xml
2007-04-27 09:30:05,826 DEBUG [org.orbeon.oxf.processor.ProcessorImpl] Config (URIReferences) found: org.orbeon.oxf.processor.URIProcessorOutputImpl$URIReferences@e3f8b9
2007-04-27 09:30:05,826 DEBUG [org.orbeon.oxf.processor.generator.URLGenerator] Config found: org.orbeon.oxf.processor.generator.URLGenerator$ConfigURIReferences@8e0e1
2007-04-27 09:30:05,841 DEBUG [org.orbeon.oxf.processor.generator.URLGenerator] Config found: org.orbeon.oxf.processor.generator.URLGenerator$ConfigURIReferences@8e0e1
2007-04-27 09:30:05,841 DEBUG [org.orbeon.oxf.processor.generator.URLGenerator] Config found: org.orbeon.oxf.processor.generator.URLGenerator$ConfigURIReferences@8e0e1
2007-04-27 09:30:05,841 DEBUG [org.orbeon.oxf.processor.generator.URLGenerator] Config found: org.orbeon.oxf.processor.generator.URLGenerator$ConfigURIReferences@8e0e1
2007-04-27 09:30:05,841 DEBUG [org.orbeon.oxf.processor.ProcessorImpl] Config (URIReferences) found: org.orbeon.oxf.processor.URIProcessorOutputImpl$URIReferences@e3f8b9
2007-04-27 09:30:05,841 DEBUG [org.orbeon.oxf.processor.generator.URLGenerator] Config found: org.orbeon.oxf.processor.generator.URLGenerator$ConfigURIReferences@8e0e1
2007-04-27 09:30:05,841 DEBUG [org.orbeon.oxf.processor.generator.URLGenerator] Config found: org.orbeon.oxf.processor.generator.URLGenerator$ConfigURIReferences@8e0e1
2007-04-27 09:30:05,841 DEBUG [org.orbeon.oxf.processor.generator.URLGenerator] OXF Protocol: Using ResourceManager for key /config/epilogue-servlet.xpl
2007-04-27 09:30:05,841 DEBUG [org.orbeon.oxf.processor.generator.URLGenerator] OXF Protocol: Using ResourceManager for key /org/orbeon/oxf/xml/schemas/pipeline.rng
2007-04-27 09:30:05,841 DEBUG [org.orbeon.oxf.processor.generator.URLGenerator] OXF Protocol: Using ResourceManager for key /ops/pfc/xforms-epilogue.xpl
2007-04-27 09:30:05,857 DEBUG [org.orbeon.oxf.processor.generator.URLGenerator] OXF Protocol: Using ResourceManager for key /org/orbeon/oxf/xml/schemas/pipeline.rng
2007-04-27 09:30:05,857 DEBUG [org.orbeon.oxf.processor.generator.URLGenerator] OXF Protocol: Using ResourceManager for key /org/orbeon/oxf/processor/serializer/http-serializer-config.rng


// Some more Cache dumps ...
2007-04-27 09:30:05,857 DEBUG [org.orbeon.oxf.processor.generator.URLGenerator] OXF Protocol: Using ResourceManager for key /org/orbeon/oxf/xml/schemas/request-config.rng
2007-04-27 09:30:05,873 DEBUG [org.orbeon.oxf.processor.generator.URLGenerator] OXF Protocol: Using ResourceManager for key /config/theme-portal.xsl
2007-04-27 09:30:05,873 DEBUG [org.orbeon.oxf.processor.generator.URLGenerator] OXF Protocol: Using ResourceManager for key /org/orbeon/oxf/processor/converter/standard-text-converter-config.rng
2007-04-27 09:30:05,873 DEBUG [org.orbeon.oxf.processor.generator.URLGenerator] OXF Protocol: Using ResourceManager for key /org/orbeon/oxf/processor/converter/qname-converter-config.rng
2007-04-27 09:30:05,873 DEBUG [org.orbeon.oxf.processor.generator.URLGenerator] OXF Protocol: Using ResourceManager for key /org/orbeon/oxf/xml/schemas/xslt-preferences-config.rng
2007-04-27 09:30:05,873 DEBUG [org.orbeon.oxf.processor.generator.URLGenerator] OXF Protocol: Using ResourceManager for key /org/orbeon/oxf/xml/schemas/xslt-transformer-config.rng
2007-04-27 09:30:05,873 DEBUG [org.orbeon.oxf.processor.generator.URLGenerator] OXF Protocol: Using ResourceManager for key /config/theme-plain.xsl
2007-04-27 09:30:05,873 DEBUG [org.orbeon.oxf.processor.generator.URLGenerator] OXF Protocol: Using ResourceManager for key /apps-list.xml
2007-04-27 09:30:05,873 DEBUG [org.orbeon.oxf.processor.serializer.HttpSerializerBase] Last modified: 1177661963767
2007-04-27 09:30:05,888 DEBUG [org.orbeon.oxf.util.NetUtils] Found If-Modified-Since header
2007-04-27 09:30:05,888 DEBUG [org.orbeon.oxf.util.NetUtils] Sending SC_NOT_MODIFIED response
2007-04-27 09:30:05,888 DEBUG [org.orbeon.oxf.processor.serializer.HttpSerializerBase] Sending SC_NOT_MODIFIED
2007-04-27 09:30:05,888 INFO  [org.orbeon.oxf.webapp.ProcessorService] /xforms-renderer - Timing: 78 - Cache hits: 133, fault: 0, adds: 0, success rate: 100%



It is my understanding that:

1. request an xform via JSP in my war
2. map the url of the xform onto the OPSXFormsFilter
3. OPSXFormsFilter delgates the call cross-context to the OPS engine after the page is prodcued.
4. The usual xforms processing happens in OPS
5. The ouput of the OPS processing is returned in the response.

I have had success deploying my person.xhtml into xforms-jsp in  ops.war/



Additionally, can you deploy custom pageflows in the seperate war and have them delegated to OPS? It seems possible, would just be a matter of where the page flow definition would go.

 

 

Alessandro Vernet wrote
Are you getting the "Orbeon Forms - Page Not Found" message when going
to http://localhost:8380/xforms-war-0.0.1/xforms-jsp/person.xhtml? If
you look at the ops.log (which might be in your Tomcat's log
directory, do you see there a line with "/some-path - Received
request"? If you do, what is the path there?

Alex

On 4/26/07, navigator77 <ajlstuart@gmail.com> wrote:
>
> Hi All
>
> I'm an OPS newbie, so please bear with me.
>
> Trying to get the separate deployment working.  I have configured my
> web.xml, have OPS deployed and working, have created and successfully
> deployed an xforms xhtml in the OPS XForms sandbox.  Now if I deploy this
> xform in my "separate" application (with cross context enabled) - I get a
> "Orbeon Forms - Page Not Found" message.
>
> my URL:
> http://localhost:8380/xforms-war-0.0.1/xforms-jsp/person.xhtml
>
> my web.xml:
> [code]
> <filter>
>                 <filter-name>ops-xforms-filter</filter-name>
>                 <filter-class>
>                         org.orbeon.oxf.servlet.OPSXFormsFilter
>                 </filter-class>
>                 <init-param>
>                         <param-name>oxf.xforms.renderer.context</param-name>
>                         <param-value>/ops</param-value>
>                 </init-param>
>         </filter>
>         <filter-mapping>
>                 <filter-name>ops-xforms-filter</filter-name>
>                 <url-pattern>/xforms-jsp/*</url-pattern>
>         </filter-mapping>
>         <filter-mapping>
>                 <filter-name>ops-xforms-filter</filter-name>
>                 <url-pattern>/ops/*</url-pattern>
>         </filter-mapping>
> [/code]
>
> my war layout:
> /WEB-INF/**.**
> /xforms-jsp/person.xhtml
>
>
> It seems that my filters are correctly configured as /xforms-renderer is
> being hit and the OPS error page is being displayed. I am probably missing
> something trivial.
>
>  Please advise. Thanks in advance.
> --
> View this message in context: http://www.nabble.com/%22Orbeon-Forms---Page-Not-Found%22--when-publishing-custom-xform-tf3650666.html#a10197453
> Sent from the ObjectWeb OPS - Users mailing list archive at Nabble.com.
>
>
>
>
> --
> You receive this message as a subscriber of the ops-users@objectweb.org mailing list.
> To unsubscribe: mailto:ops-users-unsubscribe@objectweb.org
> For general help: mailto:sympa@objectweb.org?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>


--
Orbeon Forms - Web 2.0 Forms for the Enterprise
http://www.orbeon.com/



--
You receive this message as a subscriber of the ops-users@objectweb.org mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@objectweb.org
For general help: mailto:sympa@objectweb.org?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws