ResourceNotFoundException and submissions

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

ResourceNotFoundException and submissions

f.ruef
Hi,
I have some problems processing data from an URL with default-submission mechanism. I get a ResourceNotFoundException (Cannot load "/sindbad/detail/detail-submisson.xml" with webapp loader) in my view.xsl file:

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
      xsl:version="2.0">
    <head>
        <title>Sindbad Detail</title>
    </head>
    <body>
                <p>Company ID <xsl:value-of select="doc('input:instance')/submission/resource-id"/>!</p>
                <a href="../index">main</a>
    </body>
</html>

page-flow file:
<config xmlns="http://www.orbeon.com/oxf/controller">
        <page path-info="*" default-submission="detail-submisson.xml" view="view.xsl">
                <setvalue ref="/submission/resource-id" parameter="resource-id"/>
        </page>
        <epilogue url="oxf:/config/epilogue.xpl"/>
</config>

All the files are under the default-configuration in a folder sindbad/detail

How do I have to configure my page-flow/pipeline files so that the resource /sindbad/detail/detail-submisson.xml can be found by the orbeon-system? What should the system return, if put this URL into the browser (http://ramona:8201/orbeon/sindbad/detail/detail-submisson.xml)?

by the way - the examples are running and the hello-world in my own directory too.

Thanks a lot for assistance



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: ResourceNotFoundException and submissions

Erik Bruchez
Administrator
[hidden email] wrote:
 > Hi,
 > I have some problems processing data from an URL with
 > default-submission mechanism. I get a ResourceNotFoundException
 > (Cannot load "/sindbad/detail/detail-submisson.xml" with webapp
 > loader) in my view.xsl file:
 >
 > <html xmlns="http://www.w3.org/1999/xhtml"
 >       xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
 >       xsl:version="2.0">
 >     <head>
 >         <title>Sindbad Detail</title>
 >     </head>
 >     <body>
 >                 <p>Company ID <xsl:value-of
select="doc('input:instance')/submission/resource-id"/>!</p>
 > <a href="../index">main</a>
 >     </body>
 > </html>
 >
 > page-flow file:
 > <config xmlns="http://www.orbeon.com/oxf/controller">
 > <page path-info="*" default-submission="detail-submisson.xml"
view="view.xsl">
 > <setvalue ref="/submission/resource-id" parameter="resource-id"/>
 > </page>
 > <epilogue url="oxf:/config/epilogue.xpl"/>
 > </config>
 >
 > All the files are under the default-configuration in a folder
 > sindbad/detail

What is "default-configuration"?

 > How do I have to configure my page-flow/pipeline files so that the
 > resource /sindbad/detail/detail-submisson.xml can be found by the
 > orbeon-system? What should the system return, if put this URL into
 > the browser
 > (http://ramona:8201/orbeon/sindbad/detail/detail-submisson.xml)?

If your:

   <page path-info="*" ...>

is the first page entry in your page flow, then the Page Flow
Controller will just run that page, unless you configured a:

   <files path-info="*.xml"/>

first, in which case the file with URL:

   oxf:/sindbad/detail/detail-submisson.xml

will be simply sent to the client, which is probably not what you want
to do.

The default place for resources is WEB-INF/resources. Where is your
page-flow.xml? Let's assume you just unzipped ops-war. This hierarchy
should work:

WEB-INF/resources
   page-flow.xml
   sindbad
     detail
       detail-submisson.xml

BTW you may want to fix "detail-submisson.xml" into
"detail-submission.xml" ;-)

-Erik




--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws