"Separate Deployment" Orbeon & JSP

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

"Separate Deployment" Orbeon & JSP

fitek
Hi,

I noticed this had been posted last month as well, but without resolution.  I have setup JBoss 4.0.4 and deployed Orbeon 3.6.0.  I followed the instructions for separate deployment at http://www.orbeon.com/ops/doc/reference-xforms-java  to use JSPs to output my XForms.  I have a simple view.xhtml which works just fine in the orbeon.war/WEB-INF/resources/apps directory.  The XForm loads correctly in the browser when it is in the xforms-jsp directory and has an xhtml extention on the filename.  However, once I turn on the filter and filter mapping in web.xml, no jsp inside /xforms-jsp works anymore-- they all have a Content not allowed in prologue error.  I copy the working view.xhtml to view.jsp and it simply will not load.  I add an <% response.setContentType("application/xml") %>  at the top but still the same error. I have tried reducing the view.xhtml to be empty, to have just a <foo/> element, and all manner of other things, but I always get Content not allowed in prologue.

The error is attached as html to this message.  Any help would be greatly appreciated.

Error Message

Fatal error: Content is not allowed in prolog.

Call Stack

Resource URL Line Column Description XML Element
file:///home/liferay/was/bin/ 1 1

oxf:/ops/xforms/xforms-renderer.xpl 39 56
reading processor output
name → data
id → extracted-document
<p:output name="data" id="extracted-document"/>






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

peter2.jsp.htm (88K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: "Separate Deployment" Orbeon & JSP

fitek
After a couple of days of guess-and-test, we have integrated Orbeon with our application using the "separate deployment" method. we followed the instructions at :

http://www.orbeon.com/ops/doc/reference-xforms-java

But, the missing piece of information is that the order in which the
filters are setup in web.xml are important. In that file,
we already have a bunch of filters (about 160 lines worth). The
orbeon OPSXFormsFilter must be inserted AFTER the last
filter. I suppose this is a problem because there are other filters
that handle *.jsp for the whole app. If the filter chain is not
assembled in the correct order, the "resource URL" is not correctly
passed to Orbeon, and the parser will not receive any xhtml.

Just for the record, this is the bit of web.xml code which enables
Orbeon to filter xhtml inside Liferay:

We also copied these libraries to our WEB-INF/lib, but only the one mentioned in the Orbeon doc may be necessary.

orbeon-resources-private.jar
orbeon-resources-public.jar
orbeon-xforms-filter.jar
Reply | Threaded
Open this post in threaded view
|

Re: Re: "Separate Deployment" Orbeon & JSP

Erik Bruchez
Administrator
Hi,

Thanks for this information.

BTW you shouldn't need the resource JARs in your own app, just the  
filter.

-Erik

On May 19, 2008, at 10:03 AM, fitek wrote:

>
> After a couple of days of guess-and-test, we have integrated Orbeon  
> with our
> application using the "separate deployment" method. we followed the
> instructions at :
>
> http://www.orbeon.com/ops/doc/reference-xforms-java
>
> But, the missing piece of information is that the order in which the
> filters are setup in web.xml are important. In that file,
> we already have a bunch of filters (about 160 lines worth). The
> orbeon OPSXFormsFilter must be inserted AFTER the last
> filter. I suppose this is a problem because there are other filters
> that handle *.jsp for the whole app. If the filter chain is not
> assembled in the correct order, the "resource URL" is not correctly
> passed to Orbeon, and the parser will not receive any xhtml.
>
> Just for the record, this is the bit of web.xml code which enables
> Orbeon to filter xhtml inside Liferay:
>
> We also copied these libraries to our WEB-INF/lib, but only the one
> mentioned in the Orbeon doc may be necessary.
>
> orbeon-resources-private.jar
> orbeon-resources-public.jar
> orbeon-xforms-filter.jar
> --
> View this message in context: http://www.nabble.com/%22Separate-Deployment%22-Orbeon---JSP-tp17139028p17323381.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