Hi
With the stable OPS WAR, there was a page-flow.xpl under ops/resources/ (the "main page flow"). So I added there my main entry points to sub page flow files. But I installed the latest CVS snapshot, and this main page flow has disapeared. How can I say to OPS where it can find my pipelines? Regards, --drkm p5.vert.ukl.yahoo.com uncompressed/chunked Fri Aug 18 14:13:40 GMT 2006 ___________________________________________________________________________ Découvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet ! Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos expériences. http://fr.answers.yahoo.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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Florent,
There never was a page-flow.xpl under WEB-INF/resources, but a page-flow.xml. I downloaded a nightly build to check and that file is still there. Are we talking about the same thing? -Erik Florent Georges wrote: > Hi > > With the stable OPS WAR, there was a page-flow.xpl under > ops/resources/ (the "main page flow"). So I added there my > main entry points to sub page flow files. But I installed > the latest CVS snapshot, and this main page flow has > disapeared. > > How can I say to OPS where it can find my pipelines? > > Regards, > > --drkm Orbeon - XForms Everywhere: http://www.orbeon.com/blog/ -- 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 |
Erik Bruchez wrote:
> There never was a page-flow.xpl under WEB-INF/resources, > but a page-flow.xml. I downloaded a nightly build to check > and that file is still there. Are we talking about the > same thing? Yes. So I checked again (I did check a lot of time already). And of course, it was there! I guess I was confused by my several trying to build OPS in the previous days, with several repository check-outs. I did make noise once again, sorry about that :-( Thanks. Regards, --drkm p4.vert.ukl.yahoo.com uncompressed/chunked Fri Aug 18 18:13:39 GMT 2006 ___________________________________________________________________________ Découvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet ! Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos expériences. http://fr.answers.yahoo.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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Florent Georges wrote:
> Erik Bruchez wrote: > > There never was a page-flow.xpl under WEB-INF/resources, > > but a page-flow.xml. I downloaded a nightly build to check > > and that file is still there. Are we talking about the > > same thing? > Yes. So I checked again (I did check a lot of time already). > And of course, it was there! Oops! Forget that. It was a file I created because there was none. I precise it is not a nightly build but a CVS snapshot, so I look in build/ops-war/WEB-INF/resources/. I build with "ant orbeon-war". The version is 3.0.1.200608181853. I did try to use the page-flow.xml that comes with the latest stable distribution. It doesn't work. I really don't know where ivestigating. Regards, --drkm p4.vert.ukl.yahoo.com uncompressed/chunked Fri Aug 18 18:13:38 GMT 2006 ___________________________________________________________________________ Découvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet ! Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos expériences. http://fr.answers.yahoo.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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Florent Georges wrote:
> Florent Georges wrote: > >> Erik Bruchez wrote: > >>> There never was a page-flow.xpl under WEB-INF/resources, >>> but a page-flow.xml. I downloaded a nightly build to check >>> and that file is still there. Are we talking about the >>> same thing? > >> Yes. So I checked again (I did check a lot of time already). >> And of course, it was there! > > Oops! Forget that. It was a file I created because there was none. > I precise it is not a nightly build but a CVS snapshot, so I look in > build/ops-war/WEB-INF/resources/. I build with "ant orbeon-war". The > version is 3.0.1.200608181853. build/ops-war/WEB-INF/resources: they stay in place under src/resources. This is more convenient for development. If you want to build a distribution WAR that looks like a nightly build, run the orbeon-distrib-war target. -Erik -- Orbeon - XForms Everywhere: http://www.orbeon.com/blog/ -- 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 |
Erik Bruchez wrote:
Hi > When you build with orbeon-war, the resources are not > copied under build/ops-war/WEB-INF/resources: they stay in > place under src/resources. This is more convenient for > development. Yes, sounds logical. > If you want to build a distribution WAR that looks like a > nightly build, run the orbeon-distrib-war target. Ok, I finally got it working! I thought the difference between the two targets was only that the result is put either in a WAR or in a directory. So while developing in the org.orbeon.oxf.processor package, for example, the first build we are required to use orbeon-distrib-war, then on next builds, orbeon-war is enough. Is it right? Many thanks Erik, --drkm p4.vert.ukl.yahoo.com uncompressed/chunked Sat Aug 19 18:13:38 GMT 2006 ___________________________________________________________________________ Découvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet ! Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos expériences. http://fr.answers.yahoo.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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Florent,
>> If you want to build a distribution WAR that looks like a >> nightly build, run the orbeon-distrib-war target. > > Ok, I finally got it working! I thought the difference between the > two targets was only that the result is put either in a WAR or in a > directory. > > So while developing in the org.orbeon.oxf.processor package, for > example, the first build we are required to use orbeon-distrib-war, > then on next builds, orbeon-war is enough. Is it right? Not quite. You never need orbeon-distrib-war unless you want to build a distribution of OPS will all the resources under WEB-INF/resources. -Erik -- Orbeon - XForms Everywhere: http://www.orbeon.com/blog/ -- 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 |
Erik Bruchez wrote:
> > So while developing in the org.orbeon.oxf.processor > > package, for example, the first build we are required to > > use orbeon-distrib-war, then on next builds, orbeon-war > > is enough. Is it right? > Not quite. You never need orbeon-distrib-war unless you > want to build a distribution of OPS will all the resources > under WEB-INF/resources. Mmh, yes. It is what I meant. To have page-flow.xml. Actually, I wasn't able to run my examples after an orbeon-war, but after orbeon-dist-war all was fine (after unpacking the WAR each time). I did a "diff -r" and find the only file with differences: web.xml. Here is one of the first differences: 24,31c24,32 < <context-param> < <param-name>oxf.resources.filesystem.sandbox-directory</param-name> < <param-value>Y:\ops-cvs-latest\ops-cvs-2006-08-18\orbeon/src/examples/web</param-value> < </context-param> < <context-param> < <param-name>oxf.resources.priority.1</param-name> < <param-value>org.orbeon.oxf.resources.FilesystemResourceManagerFactory</param-value> < </context-param> --- > <!-- > <context-param> > <param-name>oxf.resources.filesystem.sandbox-directory</param-name> > <param-value>C:/path/to/my/resources</param-value> > </context-param> > <context-param> > <param-name>oxf.resources.priority.1</param-name> > <param-value>org.orbeon.oxf.resources.FilesystemResourceManagerFactory</param-value> > </context-param>--> All the diff is at: http://www.fgeorges.org/tmp/web.xml.diff The "good version" (the one that works) is the one with the parameters commented, above. If I copy the good file each time, I can use just orbeon-war. I don't know if it is expected. Regards, --drkm p4.vert.ukl.yahoo.com uncompressed/chunked Mon Aug 21 21:13:40 GMT 2006 ___________________________________________________________________________ Découvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet ! Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos expériences. http://fr.answers.yahoo.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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Florent Georges wrote:
>> Not quite. You never need orbeon-distrib-war unless you want to >> build a distribution of OPS will all the resources under >> WEB-INF/resources. > > Mmh, yes. It is what I meant. To have page-flow.xml. Actually, I > wasn't able to run my examples after an orbeon-war, but after > orbeon-dist-war all was fine (after unpacking the WAR each time). I > did a "diff -r" and find the only file with differences: web.xml. > Here is one of the first differences: > All the diff is at: http://www.fgeorges.org/tmp/web.xml.diff > > The "good version" (the one that works) is the one with the > parameters commented, above. > > If I copy the good file each time, I can use just orbeon-war. I > don't know if it is expected. You shouldn't need to copy anything. Let me explain briefly the two setups: 1. WAR-with-embedded-resources setup: this is the WAR that you get when you download nighly build, and the one you build with orbeon-dist-war. In this scenario, all the OPS resources are available under WEB-INF/resources. The P1 resource manager used is the Webapp Resource Manager specified with WebAppResourceManagerFactory in web.xml. If you point your Tomcat or other servlet container to that WAR "exploded" or "expanded" (i.e. unzipped), you can modify the resources and develop with OPS without restarting your VM or servlet container (except if you compile new Java files - but note that the Java processor, on the other hand will dynamically compile and load classes without a need for restart). 2. WAR-with-external-resources setup: you can work with this by running orbeon-war. In this case, as you have noticed, you must modify the web.xml to point to the location of your resources. In this scenario, the P1 resource manager used is the Filesystem Resource Manager specified with FilesystemResourceManagerFactory. The main benefit of this setup is for people who build OPS from the sources: this allows you to update the sources from CVS in place, and to develop without having to modify resources embedded in the exploded WAR file. In both cases, Java class files and JAR files are in the same place, under WEB-INF/lib. Most people should use setup #1, and people who really want or need to see the guts of OPS can use setup #2. I hope this helps! -Erik -- Orbeon - XForms Everywhere: http://www.orbeon.com/blog/ -- 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 |
Erik Bruchez wrote:
> 2. WAR-with-external-resources setup: you can work with > this by running orbeon-war. In this case, as you have > noticed, you must modify the web.xml to point to the > location of your resources. Thanks for this detailed explanation. It is what I figured out. But I don't understand why web.xml is over written each time I build orbeon-war. Is it really expected? Or does I have to change something in the source tree or the build process? Thanks again. Regards, --drkm p4.vert.ukl.yahoo.com uncompressed/chunked Tue Aug 22 08:13:39 GMT 2006 ___________________________________________________________________________ Découvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet ! Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos expériences. http://fr.answers.yahoo.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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Florent Georges wrote:
> Erik Bruchez wrote: > >> 2. WAR-with-external-resources setup: you can work with >> this by running orbeon-war. In this case, as you have >> noticed, you must modify the web.xml to point to the >> location of your resources. > > Thanks for this detailed explanation. It is what I > figured out. But I don't understand why web.xml is over > written each time I build orbeon-war. Is it really > expected? Or does I have to change something in the source > tree or the build process? -Erik -- Orbeon - XForms Everywhere: http://www.orbeon.com/blog/ -- 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 |
Erik Bruchez wrote:
> Yes, web.xml in the build directory is built from a source web.xsl. Thanks Erik. I actually modified the build.xml Ant script to produce the same file in both cases, so it works. I don't know if it is the right way (I guess it is not). That saves a lot of time in developing, thanks. Regards, --drkm p4.vert.ukl.yahoo.com uncompressed/chunked Wed Aug 23 21:13:39 GMT 2006 ___________________________________________________________________________ Découvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet ! Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos expériences. http://fr.answers.yahoo.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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Free forum by Nabble | Edit this page |