I am experimenting with quercus (java php interpreter) integrated into orbeon. If I create a *.php application folder at root level i.e. within /orbeon/ and at same level as /web-inf/ although *.php is interpreted by quercus servlet other file types are not recognised .. *.css, *.png, etc. Is there a file mapping somewhere for other file types? I know of this configuration file for source-viewer ... orbeon-forms / src / resources / apps / source-viewer / get-files.xpl http://orbeon-forms-ops-users.24843.n4.nabble.com/Adding-new-file-types-for-quot-view-source-quot-in-Form-Runner-td3064178.html but my *.php apps are at /root/ level (above /web-inf/ ) and other resources (*.css, *.png etc.) are not being rendered in the browser when interpreting *.php. |
Administrator
|
In web.xml, the Orbeon servlet maps to "/", which means that it will
handle any path not specifically handled by other servlets (filters notwithstanding). What happens when Orbeon sees e.g. "/orbeon/foo.css" is that it looks the resource through the Orbeon resource manager. By default it will look under WEB-INF/resources and within JAR files. Try adding this to your web.xml, after similar <context-param> elements: <context-param> <param-name>oxf.resources.priority.3</param-name> <param-value>org.orbeon.oxf.resources.WebAppResourceManagerFactory</param-value> </context-param> <context-param> <param-name>oxf.resources.priority.3.oxf.resources.webapp.rootdir</param-name> <param-value></param-value> </context-param> -Erik On Wed, Dec 22, 2010 at 2:50 AM, DL <[hidden email]> wrote: > > > I am experimenting with quercus (java php interpreter) integrated into > orbeon. > > If I create a *.php application folder at root level > > i.e. within /orbeon/ and at same level as /web-inf/ > > although *.php is interpreted by quercus servlet other file types are not > recognised .. > > *.css, *.png, etc. > > Is there a file mapping somewhere for other file types? > > I know of this configuration file for source-viewer ... > > orbeon-forms / src / resources / apps / source-viewer / get-files.xpl > > http://orbeon-forms-ops-users.24843.n4.nabble.com/Adding-new-file-types-for-quot-view-source-quot-in-Form-Runner-td3064178.html > http://orbeon-forms-ops-users.24843.n4.nabble.com/Adding-new-file-types-for-quot-view-source-quot-in-Form-Runner-td3064178.html > > but my *.php apps are at /root/ level (above /web-inf/ ) and other resources > (*.css, *.png etc.) are not being rendered in the browser when interpreting > *.php. > -- > View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/mapping-file-types-css-png-at-root-level-tp3160446p3160446.html > Sent from the Orbeon Forms (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 > > -- 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 |
I applied your suggested changes .. thanks .. and so far I can process at <rootdir> level *.php and *.html and *.png and *.js and *.svg and *psvg. e.g. I can place drupal-6.20 at <rootdir> and start to install it .. http://localhost:8080/orbeon/drupal-6.20/ this suggests that drupal and orbeon can now be tightly integrated. I can also place swfobject at <rootdir> and render flash objects .. But for some reason other file types still go through the orbeon mill .. e.g. I have created an experimental svg folder at <rootdir> level with two files .. *.shtml (server side include) *.psvg (svg contant dynamically created by php) For some reason not yet figured out .. *.shtml file extensions still goes through orbeon .. Orbeon error page .. "Cannot load "/apps/svg/page-flow.xml" with webapp loader" If I change the *.shtml extension to *.html .. it works at <rootdir> level without orbeon error. Puzzling. But I can now dynamically create svg content. So question .. when does the page-flow filter kick in? The bonus is to be able to tightly integrate drupal (as in LifeRay). Same principle would apply to running other PHP CMS packages such as WordPress inside orbeon <rootdir> Or they can run in separate quercus directory avoiding need to tamper with orbeon. |
Administrator
|
> this suggests that drupal and orbeon can now be tightly integrated.
Great. > For some reason not yet figured out .. *.shtml file extensions still goes > through orbeon .. > > > Orbeon error page .. "Cannot load "/apps/svg/page-flow.xml" with webapp > loader" > > If I change the *.shtml extension to *.html .. it works at <rootdir> level > without orbeon error. Puzzling. > > But I can now dynamically create svg content. > > So question .. when does the page-flow filter kick in? If I understand well, if you have a .css file now, it is still served by the Orbeon servlet, but it works because of the Resource Manager configuration. Now the .shtml extension is not listed as a file in the main page flow: https://github.com/orbeon/orbeon-forms/blob/master/src/resources/page-flow.xml So instead the path /svg/foobar.shtml is interpreted as an application path, and will attempt to run the page flow for the app "svg", which you don't have. So try adding .shtml to the main page flow regexp. -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 OW2 mailing lists service home page: http://www.ow2.org/wws |
Just to add a note that I've started with testing a basic integration of WordPress (php) + orbeon. The orbeon xform content is embedded in WordPress pages through an iframe plugin. http://de77.com/other/wordpress-iframe-embedder MySQL database is used for wordpress content. If there is interest I can set out the detailed steps taken for integration. There are a few quercus glitches which need to patched. e.g. if you see this error "com.caucho.quercus.QuercusModuleException: java.lang.StackOverflowError" read here ... http://bugs.caucho.com/view.php?id=3840 and comment out last line of default-widgets.php Looking at default-widgets.php, at the last line it has: add_action('init', 'wp_widgets_init', 1); ... and if you see "CURL option unknown or unimplemented [curl_setopt]" on wordpress go to \wordpress\wp-includes\class-http.php and comment out line 1351 ... // curl_setopt( $handle, CURLOPT_MAXREDIRS, $r['redirection'] ); since quercus does not seem to handle this function .. the end result is that xforms can be embedded in wordpress on the tomcat server where orbeon is deployed. of course the same can be achieved with wordpress on apache server and orbeon on tomcat .. but where only one server is available for hosting quercus provides a way of integrating the two. Here is an example of the iframe code to embed an xform in wordpress page .. [iframe http://localhost:8080/orbeon/xforms-sandbox/sample/alert 100% 600 50 50] |
Administrator
|
Thanks for sharing!
-Erik On Sun, Jan 2, 2011 at 1:35 PM, DL <[hidden email]> wrote: > > > > Erik Bruchez wrote: >> >>> this suggests that drupal and orbeon can now be tightly integrated. >> >> Great. >> >> > > Just to add a note that I've started with testing a basic integration of > WordPress (php) + orbeon. > > The orbeon xform content is embedded in Pss pages through an iframe plugin. > http://de77.com/other/wordpress-iframe-embedder > > MySQL database is used for wordpress content. > > If there is interest I can set out the detailed steps taken for integration. > > There are a few quercus glitches which need to patched. > > e.g. if you see this error "com.caucho.quercus.QuercusModuleException: > java.lang.StackOverflowError" > > read here .. read here ... http://bugs.caucho.com/view.php?id=3840 > > and if you see "CURL option unknown or unimplemented [curl_setopt]" on > wordpress > > go to \wordpress\wp-includes\class-http.php > > and comment out line 1351 ... // curl_setopt( $handle, CURLOPT_MAXREDIRS, > $r['redirection'] ); > > since quercus does not seem to handle this function .. > > the end result is that xforms can be embedded in wordpress on the tomcat > server where orbeon is deployed. > > of course the same can be achieved with wordpress on apache server and > orbeon on tomcat .. but where only one server is available for hosting > quercus provides a way of integrating the two. > > Here is an example of the iframe code to embed an xform in wordpress page .. > > [iframe http://localhost:8080/orbeon/xforms-sandbox/sample/alert 100% 600 50 > 50] > > > > > > -- > View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/mapping-file-types-css-png-at-root-level-tp3160446p3171292.html > Sent from the Orbeon Forms (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 > > -- 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 |
Free forum by Nabble | Edit this page |