Resource management

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

Resource management

Mike Ahlers
Hi,

I have a problem grasping concept of resource management within Orbeon, or rather the publishing of it.

I understand that 'basic' files are served autmatically, but when needed you can override or specify this at controller level, using directives, inside the page-flow.xml, like:

<files path-info="*.gif"/>
<files path-info="*.swf" mime-type="application/x-shockwave-flash"/>

Now, suppose I have an application called x, using the standard Orbeon setup, images could be located in:

/apps/x/images/add.gif

When trying to fetch the files straight: http://localhost/apps/x/images/add.gif it works.

Now, when I have a different static resource, such a flash file, it becomes different. Using the same setup:

/apps/x/flash/banner.swf

It fails, because for some reason Orbeon expects a page controller at flash level (and apps/apps?):

Cannot load "/apps/apps/page-flow.xml" with webapp loader

So, what do I do wrong? What is the correct solution?

Thanks in advance,
Mike Ahlers
Reply | Threaded
Open this post in threaded view
|

Re: Re source management

Alessandro Vernet
Administrator
Hi Mike,

On Wed, Jun 4, 2008 at 8:39 AM, Mike Ahlers
<[hidden email]> wrote:
> <files path-info="*.gif"/>
> <files path-info="*.swf" mime-type="application/x-shockwave-flash"/>

If you have the above line for the *.swf files in the main page flow
(the one directly under resources), then you should be able to load:

> /apps/x/flash/banner.swf
>
> It fails, because for some reason Orbeon expects a page controller at flash
> level (and apps/apps?):

If this fails, you might want to attach to an email a subset of the
files we need to reproduce this.

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/
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
Reply | Threaded
Open this post in threaded view
|

Re: Re source management

Mike Ahlers
Hi,

I wrote an email to you with the attachments as requested.

Regards,
Mike Ahlers
Reply | Threaded
Open this post in threaded view
|

Re: Re source management

Erik Bruchez
Administrator
In reply to this post by Mike Ahlers
Mike,

In the top-level page-flow.xml, you find something like this:

     <files path-info="(?!/([^/]+)/service/).+\.(gif|css|pdf|json|js|
png|jpg|xsd|htc|ico)" matcher="oxf:perl5-matcher"/>
     <files path-info="(?!/([^/]+)/service/).+\.xml"  
matcher="oxf:perl5-matcher" mime-type="application/xml"/>
     <files path-info="(?!/([^/]+)/service/).+\.html?"  
matcher="oxf:perl5-matcher" mime-type="text/html"/>
     <files path-info="(?!/([^/]+)/service/).+\.(java|txt|xq)"  
matcher="oxf:perl5-matcher" mime-type="text/plain"/>
     <files path-info="(?!/([^/]+)/service/).+\.jar"  
matcher="oxf:perl5-matcher" mime-type="application/zip"/>

There is currently no match for .swf files, which explains why your  
file is not matched. You can add swf extension to the first line and  
that should do the trick.

-Erik

On Jun 4, 2008, at 5:39 PM, Mike Ahlers wrote:

>
> Hi,
>
> I have a problem grasping concept of resource management within  
> Orbeon, or
> rather the publishing of it.
>
> I understand that 'basic' files are served autmatically, but when  
> needed you
> can override or specify this at controller level, using directives,  
> inside
> the page-flow.xml, like:
>
> <files path-info="*.gif"/>
> <files path-info="*.swf" mime-type="application/x-shockwave-flash"/>
>
> Now, suppose I have an application called x, using the standard Orbeon
> setup, images could be located in:
>
> /apps/x/images/add.gif
>
> When trying to fetch the files straight:
> http://localhost/apps/x/images/add.gif it works.
>
> Now, when I have a different static resource, such a flash file, it  
> becomes
> different. Using the same setup:
>
> /apps/x/flash/banner.swf
>
> It fails, because for some reason Orbeon expects a page controller  
> at flash
> level (and apps/apps?):
>
> Cannot load "/apps/apps/page-flow.xml" with webapp loader
>
> So, what do I do wrong? What is the correct solution?
>
> Thanks in advance,
> Mike Ahlers
> --
> View this message in context: http://www.nabble.com/Resource-management-tp17649734p17649734.html
> Sent from the ObjectWeb OPS - Users mailing list archive at  
> Nabble.com.
>
>
> --
> 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 for the Enterprise Done the Right Way
http://www.orbeon.com/



--
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
Reply | Threaded
Open this post in threaded view
|

Re: Re source management

Mike Ahlers
In reply to this post by Mike Ahlers
Hi Erik,

Thanks for the solution, it worked. I assumed swf, like images would be served by default for it is accepted static content, that assumption turns out to be wrong. Perhaps it would be convenient to add it standard in the top-level page-flow.xml?

I also learned that it cascades, meaning defining such entry at current level of page-flow.xml does not solve it.

Regards,
Mike
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re source management

Erik Bruchez
Administrator
> Thanks for the solution, it worked. I assumed swf, like images would  
> be
> served by default for it is accepted static content, that assumption  
> turns
> out to be wrong. Perhaps it would be convenient to add it standard  
> in the
> top-level page-flow.xml?

Done already ;-)

> I also learned that it cascades, meaning defining such entry at  
> current
> level of page-flow.xml does not solve it.


You should put this in the top-level page flow I think, since this is  
generic enough.

-Erik

--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
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