Orbeon can not read symlinks

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

Orbeon can not read symlinks

Ralf Jung
Hi list,

to be able to easily test my app with both the stable Orbeon and the nightly
build, I symlinked the subdirectories of WEB-INF/resources as well as the
page-flow.xml file from the one Orbeon instance to the other. However, the
Orbeon "Virtual file system" does not seem to be able to cope with symlinks. I
get this error:

Type class org.orbeon.oxf.resources.ResourceNotFoundException
Message Cannot load "/page-flow.xml" with webapp loader
Stack Trace

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:96)
        at
org.orbeon.oxf.resources.PriorityResourceManagerImpl$5.run(PriorityResourceManagerImpl.java:120)
        at
org.orbeon.oxf.resources.PriorityResourceManagerImpl.delegate(PriorityResourceManagerImpl.java:230)
        at
org.orbeon.oxf.resources.PriorityResourceManagerImpl.getContentAsSAX(PriorityResourceManagerImpl.java:118)
        at
org.orbeon.oxf.processor.generator.URLGenerator$OXFResourceHandler.readXML(URLGenerator.java:724)
        at
org.orbeon.oxf.processor.generator.URLGenerator$1.readImpl(URLGenerator.java:460)
        at
org.orbeon.oxf.processor.impl.ProcessorOutputImpl$TopLevelOutputFilter.read(ProcessorOutputImpl.java:263)
        at
org.orbeon.oxf.processor.impl.ProcessorOutputImpl.read(ProcessorOutputImpl.java:406)
        at
org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:257)
        at
org.orbeon.oxf.processor.validation.MSVValidationProcessor.access$600(MSVValidationProcessor.java:51)
        at
org.orbeon.oxf.processor.validation.MSVValidationProcessor$3.readImpl(MSVValidationProcessor.java:223)
        at
org.orbeon.oxf.processor.impl.ProcessorOutputImpl$TopLevelOutputFilter.read(ProcessorOutputImpl.java:263)
        at
org.orbeon.oxf.processor.impl.ProcessorOutputImpl.read(ProcessorOutputImpl.java:406)
...


Actually copying the file replaces this by other error messages, and the whole
app will only work after all files have been copied instead of symlinked.
So, is this a bug, a misconfiguration, or am I doing something else wrong?

Kind regards,
Ralf Jung


--
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: Orbeon can not read symlinks

Binesh Gummadi
If you are using tomcat it does't allow symlinks by default. You have to enable it in META-INF/context.xml
Something like that. (allowlinking="true"). Hope this helps.

<Context path="/orbeon" allowLinking="true">

Binesh Gummadi
Senior Software Engineer
rivetlogic
Voice +1.703.879.5740
Skype binesh.gummadi_rivetlogic
GTalk [hidden email]
Calendarbinesh gummadi's calendar



On Sun, Dec 19, 2010 at 11:41 AM, Ralf Jung <[hidden email]> wrote:
Hi list,

to be able to easily test my app with both the stable Orbeon and the nightly
build, I symlinked the subdirectories of WEB-INF/resources as well as the
page-flow.xml file from the one Orbeon instance to the other. However, the
Orbeon "Virtual file system" does not seem to be able to cope with symlinks. I
get this error:

Type    class org.orbeon.oxf.resources.ResourceNotFoundException
Message Cannot load "/page-flow.xml" with webapp loader
Stack Trace

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:96)
       at
org.orbeon.oxf.resources.PriorityResourceManagerImpl$5.run(PriorityResourceManagerImpl.java:120)
       at
org.orbeon.oxf.resources.PriorityResourceManagerImpl.delegate(PriorityResourceManagerImpl.java:230)
       at
org.orbeon.oxf.resources.PriorityResourceManagerImpl.getContentAsSAX(PriorityResourceManagerImpl.java:118)
       at
org.orbeon.oxf.processor.generator.URLGenerator$OXFResourceHandler.readXML(URLGenerator.java:724)
       at
org.orbeon.oxf.processor.generator.URLGenerator$1.readImpl(URLGenerator.java:460)
       at
org.orbeon.oxf.processor.impl.ProcessorOutputImpl$TopLevelOutputFilter.read(ProcessorOutputImpl.java:263)
       at
org.orbeon.oxf.processor.impl.ProcessorOutputImpl.read(ProcessorOutputImpl.java:406)
       at
org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:257)
       at
org.orbeon.oxf.processor.validation.MSVValidationProcessor.access$600(MSVValidationProcessor.java:51)
       at
org.orbeon.oxf.processor.validation.MSVValidationProcessor$3.readImpl(MSVValidationProcessor.java:223)
       at
org.orbeon.oxf.processor.impl.ProcessorOutputImpl$TopLevelOutputFilter.read(ProcessorOutputImpl.java:263)
       at
org.orbeon.oxf.processor.impl.ProcessorOutputImpl.read(ProcessorOutputImpl.java:406)
...


Actually copying the file replaces this by other error messages, and the whole
app will only work after all files have been copied instead of symlinked.
So, is this a bug, a misconfiguration, or am I doing something else wrong?

Kind regards,
Ralf Jung


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

Re: Re: Orbeon can not read symlinks

Ralf Jung
Hi,

> If you are using tomcat it does't allow symlinks by default. You have to
> enable it in META-INF/context.xml
> Something like that. (allowlinking="true"). Hope this helps.
>
> <Context path="/orbeon" allowLinking="true">
Thanks for the quick reply! However, I can not get tomcat to accept the
context configuration. I created a directory
/var/lib/tomcat6/webapps/orbeon/META-INF with a context.xml file with the text
<Context path="/orbeon" allowLinking="true"/>
but this only results in tomcat not finding that prefix at all anymore:

HTTP Status 404 - /orbeon/
type Status report
message /orbeon/
description The requested resource (/orbeon/) is not available.

The same happens if I put that content into
/var/lib/tomcat6/conf/Catalina/localhost/orbeon.xml.
The tomcat logfiles do not show any error - it does not log any request either,
though.

Kind regards,
Ralf Jung


--
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: Orbeon can not read symlinks

Ralf Jung
In reply to this post by Binesh Gummadi
Hi again,

I re-did the whole configuration from scratch, and now it's working. I don't
know what I did wrong before.
Thanks again for your help!

Kind regards,
Ralf Jung

Am Montag 20 Dezember 2010, um 04:28:10 schrieb Binesh Gummadi:

> If you are using tomcat it does't allow symlinks by default. You have to
> enable it in META-INF/context.xml
> Something like that. (allowlinking="true"). Hope this helps.
>
>
> <Context path="/orbeon" allowLinking="true">
>
> ------------------------------
>  Binesh Gummadi
> Senior Software Engineer
> rivetlogic <http://www.rivetlogic.com/> Voice
> +1.703.879.5740Skypebinesh.gummadi_rivetlogic
> GTalk [hidden email] <bgummadi%40rivetlogic.com> Calendarbinesh
> gummadi's
> calendar<http://www.google.com/calendar/hosted/rivetlogic.com/embed?src=bg
> ummadi%40rivetlogic.com&ctz=America/New_York>
>
> On Sun, Dec 19, 2010 at 11:41 AM, Ralf Jung <[hidden email]> wrote:
> > Hi list,
> >
> > to be able to easily test my app with both the stable Orbeon and the
> > nightly
> > build, I symlinked the subdirectories of WEB-INF/resources as well as the
> > page-flow.xml file from the one Orbeon instance to the other. However,
> > the Orbeon "Virtual file system" does not seem to be able to cope with
> > symlinks. I
> > get this error:
> >
> > Type    class org.orbeon.oxf.resources.ResourceNotFoundException
> > Message Cannot load "/page-flow.xml" with webapp loader
> > Stack Trace
> >
> > org.orbeon.oxf.resources.ResourceNotFoundException: Cannot load "/page-
> > flow.xml" with webapp loader
> > at
> >
> > org.orbeon.oxf.resources.WebAppResourceManagerImpl.getContentAsStream(Web
> > AppResourceManagerImpl.java:74)
> >
> >        at
> >
> > org.orbeon.oxf.resources.ResourceManagerBase.getContentAsSAX(ResourceMana
> > gerBase.java:96)
> >
> >        at
> >
> > org.orbeon.oxf.resources.PriorityResourceManagerImpl$5.run(PriorityResour
> > ceManagerImpl.java:120)
> >
> >        at
> >
> > org.orbeon.oxf.resources.PriorityResourceManagerImpl.delegate(PriorityRes
> > ourceManagerImpl.java:230)
> >
> >        at
> >
> > org.orbeon.oxf.resources.PriorityResourceManagerImpl.getContentAsSAX(Prio
> > rityResourceManagerImpl.java:118)
> >
> >        at
> >
> > org.orbeon.oxf.processor.generator.URLGenerator$OXFResourceHandler.readXM
> > L(URLGenerator.java:724)
> >
> >        at
> >
> > org.orbeon.oxf.processor.generator.URLGenerator$1.readImpl(URLGenerator.j
> > ava:460)
> >
> >        at
> >
> > org.orbeon.oxf.processor.impl.ProcessorOutputImpl$TopLevelOutputFilter.re
> > ad(ProcessorOutputImpl.java:263)
> >
> >        at
> >
> > org.orbeon.oxf.processor.impl.ProcessorOutputImpl.read(ProcessorOutputImp
> > l.java:406)
> >
> >        at
> >
> > org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:
> > 257)
> >
> >        at
> >
> > org.orbeon.oxf.processor.validation.MSVValidationProcessor.access$600(MSV
> > ValidationProcessor.java:51)
> >
> >        at
> >
> > org.orbeon.oxf.processor.validation.MSVValidationProcessor$3.readImpl(MSV
> > ValidationProcessor.java:223)
> >
> >        at
> >
> > org.orbeon.oxf.processor.impl.ProcessorOutputImpl$TopLevelOutputFilter.re
> > ad(ProcessorOutputImpl.java:263)
> >
> >        at
> >
> > org.orbeon.oxf.processor.impl.ProcessorOutputImpl.read(ProcessorOutputImp
> > l.java:406) ...
> >
> >
> > Actually copying the file replaces this by other error messages, and the
> > whole
> > app will only work after all files have been copied instead of symlinked.
> > So, is this a bug, a misconfiguration, or am I doing something else
> > wrong?
> >
> > Kind regards,
> > Ralf Jung
> >
> >
> > --
> > 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