Static XForm in separate deployment not working with recent builds

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

Static XForm in separate deployment not working with recent builds

npujol73
hi,

 I've tried the 11/25 and 12/01 builds and a simple xform (which works when dropped in orbeon.war/xforms-jsp) and is NOT working in a separate deployment. Note that it DOES work with an earlier build from back in september. There is no error in the console and it appears the request is being forwarded to orbeon as I am seeing the ProcessService spitting out some log entries. On the UI end, I can see a white page that at the top shows the "You may want to try one of the following" etc... message (though not in a popup as i have seen before), followed by my munbled form.

I am running on JBOSS 4.0.2 on top lof linux ubuntu.

 I am confident that my web.xml is correct (as I have not changed it). Here are  relevant snippets from web.xml file for reference. Any thoughts? Could it be related to the bug that was fixed by Eric in yesterday's build? That should have made in 12/01 build though....

.....
      <filter>
                <filter-name>orbeon-xforms-filter</filter-name>
                <filter-class>org.orbeon.oxf.servlet.OrbeonXFormsFilter</filter-class>
                <init-param>
                        <param-name>oxf.xforms.renderer.context</param-name>
                        <param-value>/orbeon</param-value>
                </init-param>
        </filter>
        <filter-mapping>
                <filter-name>orbeon-xforms-filter</filter-name>
                <url-pattern>/xforms/*</url-pattern>
                <dispatcher>REQUEST</dispatcher>
                <dispatcher>FORWARD</dispatcher>
        </filter-mapping>
       
        <filter-mapping>
                <filter-name>orbeon-xforms-filter</filter-name>
                <url-pattern>/orbeon/*</url-pattern>
                <dispatcher>REQUEST</dispatcher>
                <dispatcher>FORWARD</dispatcher>
        </filter-mapping>
......

Here is the xforms (which again runs fine within orbeon.war/xforms-jsp)

<html
    xmlns="http://www.w3.org/1999/xhtml"
    xmlns:xforms="http://www.w3.org/2002/xforms"
    xmlns:ev="http://www.w3.org/2001/xml-events"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

    <head>
      <xforms:model id="fr-form-model">
            <xforms:instance id="data">
                <root xmlns="" required="">
                    <field10/>
                </root>
            </xforms:instance>
        </xforms:model>
    </head>
    <body>
         <xforms:input ref="instance('data')/field10">
            <xforms:label>field10 buddy</xforms:label>
            <xforms:alert>Required</xforms:alert>
        </xforms:input>
    </body>
</html>
Reply | Threaded
Open this post in threaded view
|

Re: Static XForm in separate deployment not working with recent builds

Erik Bruchez
Administrator
Nicolas,

I am trying your example above as a simple JSP in separate deployment,
and it seems to work. I am not ruling out any issue of course.

Did you copy the new orbeon-xforms-filter.jar to your app?

-Erik

On Tue, Dec 1, 2009 at 12:56 PM, npujol73 <[hidden email]> wrote:

>
> hi,
>
>  I've tried the 11/25 and 12/01 builds and a simple xform (which works when
> dropped in orbeon.war/xforms-jsp) and is NOT working in a separate
> deployment. Note that it DOES work with an earlier build from back in
> september. There is no error in the console and it appears the request is
> being forwarded to orbeon as I am seeing the ProcessService spitting out
> some log entries. On the UI end, I can see a white page that at the top
> shows the "You may want to try one of the following" etc... message (though
> not in a popup as i have seen before), followed by my munbled form.
>
> I am running on JBOSS 4.0.2 on top lof linux ubuntu.
>
>  I am confident that my web.xml is correct (as I have not changed it). Here
> are  relevant snippets from web.xml file for reference. Any thoughts? Could
> it be related to the bug that was fixed by Eric in yesterday's build? That
> should have made in 12/01 build though....
>
> .....
>      <filter>
>                <filter-name>orbeon-xforms-filter</filter-name>
>                <filter-class>org.orbeon.oxf.servlet.OrbeonXFormsFilter</filter-class>
>                <init-param>
>                        <param-name>oxf.xforms.renderer.context</param-name>
>                        <param-value>/orbeon</param-value>
>                </init-param>
>        </filter>
>        <filter-mapping>
>                <filter-name>orbeon-xforms-filter</filter-name>
>                <url-pattern>/xforms/*</url-pattern>
>                <dispatcher>REQUEST</dispatcher>
>                <dispatcher>FORWARD</dispatcher>
>        </filter-mapping>
>        <!-- This is necessary so that XForms engine resources can be served
> appropriately -->
>        <filter-mapping>
>                <filter-name>orbeon-xforms-filter</filter-name>
>                <url-pattern>/orbeon/*</url-pattern>
>                <dispatcher>REQUEST</dispatcher>
>                <dispatcher>FORWARD</dispatcher>
>        </filter-mapping>
> ......
>
> Here is the xforms (which again runs fine within orbeon.war/xforms-jsp)
>
> <html
>    xmlns="http://www.w3.org/1999/xhtml"
>    xmlns:xforms="http://www.w3.org/2002/xforms"
>    xmlns:ev="http://www.w3.org/2001/xml-events"
>    xmlns:xs="http://www.w3.org/2001/XMLSchema"
>    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>
>    <head>
>      <xforms:model id="fr-form-model">
>            <xforms:instance id="data">
>                <root xmlns="" required="">
>                    <field10/>
>                </root>
>            </xforms:instance>
>        </xforms:model>
>    </head>
>    <body>
>         <xforms:input ref="instance('data')/field10">
>            <xforms:label>field10 buddy</xforms:label>
>            <xforms:alert>Required</xforms:alert>
>        </xforms:input>
>    </body>
> </html>
> --
> View this message in context: http://n4.nabble.com/Static-XForm-in-separate-deployment-not-working-with-recent-builds-tp932536p932536.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
>
>


--
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: Static XForm in separate deployment not working with recent builds

npujol73
yes. i am using the orbeon-xforms-filter.jar that comes in the  
orbeon.war/WEB-INF/lib.

I have double checked my setup but i will check again to make sure  
since you should have been able to replicate easily.

thanks

On Dec 1, 2009, at 8:49 PM, Erik Bruchez <[hidden email]> wrote:

> Nicolas,
>
> I am trying your example above as a simple JSP in separate deployment,
> and it seems to work. I am not ruling out any issue of course.
>
> Did you copy the new orbeon-xforms-filter.jar to your app?
>
> -Erik
>
> On Tue, Dec 1, 2009 at 12:56 PM, npujol73 <[hidden email]>  
> wrote:
>>
>> hi,
>>
>>  I've tried the 11/25 and 12/01 builds and a simple xform (which  
>> works when
>> dropped in orbeon.war/xforms-jsp) and is NOT working in a separate
>> deployment. Note that it DOES work with an earlier build from back in
>> september. There is no error in the console and it appears the  
>> request is
>> being forwarded to orbeon as I am seeing the ProcessService  
>> spitting out
>> some log entries. On the UI end, I can see a white page that at the  
>> top
>> shows the "You may want to try one of the following" etc... message  
>> (though
>> not in a popup as i have seen before), followed by my munbled form.
>>
>> I am running on JBOSS 4.0.2 on top lof linux ubuntu.
>>
>>  I am confident that my web.xml is correct (as I have not changed  
>> it). Here
>> are  relevant snippets from web.xml file for reference. Any  
>> thoughts? Could
>> it be related to the bug that was fixed by Eric in yesterday's  
>> build? That
>> should have made in 12/01 build though....
>>
>> .....
>>      <filter>
>>                <filter-name>orbeon-xforms-filter</filter-name>
>>                <filter-
>> class>org.orbeon.oxf.servlet.OrbeonXFormsFilter</filter-class>
>>                <init-param>
>>                        <param-name>oxf.xforms.renderer.context</
>> param-name>
>>                        <param-value>/orbeon</param-value>
>>                </init-param>
>>        </filter>
>>        <filter-mapping>
>>                <filter-name>orbeon-xforms-filter</filter-name>
>>                <url-pattern>/xforms/*</url-pattern>
>>                <dispatcher>REQUEST</dispatcher>
>>                <dispatcher>FORWARD</dispatcher>
>>        </filter-mapping>
>>        <!-- This is necessary so that XForms engine resources can  
>> be served
>> appropriately -->
>>        <filter-mapping>
>>                <filter-name>orbeon-xforms-filter</filter-name>
>>                <url-pattern>/orbeon/*</url-pattern>
>>                <dispatcher>REQUEST</dispatcher>
>>                <dispatcher>FORWARD</dispatcher>
>>        </filter-mapping>
>> ......
>>
>> Here is the xforms (which again runs fine within orbeon.war/xforms-
>> jsp)
>>
>> <html
>>    xmlns="http://www.w3.org/1999/xhtml"
>>    xmlns:xforms="http://www.w3.org/2002/xforms"
>>    xmlns:ev="http://www.w3.org/2001/xml-events"
>>    xmlns:xs="http://www.w3.org/2001/XMLSchema"
>>    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>>
>>    <head>
>>      <xforms:model id="fr-form-model">
>>            <xforms:instance id="data">
>>                <root xmlns="" required="">
>>                    <field10/>
>>                </root>
>>            </xforms:instance>
>>        </xforms:model>
>>    </head>
>>    <body>
>>         <xforms:input ref="instance('data')/field10">
>>            <xforms:label>field10 buddy</xforms:label>
>>            <xforms:alert>Required</xforms:alert>
>>        </xforms:input>
>>    </body>
>> </html>
>> --
>> View this message in context: http://n4.nabble.com/Static-XForm-in-separate-deployment-not-working-with-recent-builds-tp932536p932536.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
>>
>>
>
> --
> 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: Static XForm in separate deployment not working with recent builds

npujol73
Hi,

 Yes Eric, I confirm there is an issue. I have quadrupled checked everything. Please find attached a screenshot of what gets generated for the xforms example from above. Let me know what you need from me or how i can help.

thanks

Error

npujol73 wrote
yes. i am using the orbeon-xforms-filter.jar that comes in the  
orbeon.war/WEB-INF/lib.

I have double checked my setup but i will check again to make sure  
since you should have been able to replicate easily.

thanks

On Dec 1, 2009, at 8:49 PM, Erik Bruchez <ebruchez@orbeon.com> wrote:

> Nicolas,
>
> I am trying your example above as a simple JSP in separate deployment,
> and it seems to work. I am not ruling out any issue of course.
>
> Did you copy the new orbeon-xforms-filter.jar to your app?
>
> -Erik
>
> On Tue, Dec 1, 2009 at 12:56 PM, npujol73 <nicolaspujol73@gmail.com> 
> wrote:
>>
>> hi,
>>
>>  I've tried the 11/25 and 12/01 builds and a simple xform (which  
>> works when
>> dropped in orbeon.war/xforms-jsp) and is NOT working in a separate
>> deployment. Note that it DOES work with an earlier build from back in
>> september. There is no error in the console and it appears the  
>> request is
>> being forwarded to orbeon as I am seeing the ProcessService  
>> spitting out
>> some log entries. On the UI end, I can see a white page that at the  
>> top
>> shows the "You may want to try one of the following" etc... message  
>> (though
>> not in a popup as i have seen before), followed by my munbled form.
>>
>> I am running on JBOSS 4.0.2 on top lof linux ubuntu.
>>
>>  I am confident that my web.xml is correct (as I have not changed  
>> it). Here
>> are  relevant snippets from web.xml file for reference. Any  
>> thoughts? Could
>> it be related to the bug that was fixed by Eric in yesterday's  
>> build? That
>> should have made in 12/01 build though....
>>
>> .....
>>      <filter>
>>                <filter-name>orbeon-xforms-filter</filter-name>
>>                <filter-
>> class>org.orbeon.oxf.servlet.OrbeonXFormsFilter</filter-class>
>>                <init-param>
>>                        <param-name>oxf.xforms.renderer.context</
>> param-name>
>>                        <param-value>/orbeon</param-value>
>>                </init-param>
>>        </filter>
>>        <filter-mapping>
>>                <filter-name>orbeon-xforms-filter</filter-name>
>>                <url-pattern>/xforms/*</url-pattern>
>>                <dispatcher>REQUEST</dispatcher>
>>                <dispatcher>FORWARD</dispatcher>
>>        </filter-mapping>
>>        
>>        <filter-mapping>
>>                <filter-name>orbeon-xforms-filter</filter-name>
>>                <url-pattern>/orbeon/*</url-pattern>
>>                <dispatcher>REQUEST</dispatcher>
>>                <dispatcher>FORWARD</dispatcher>
>>        </filter-mapping>
>> ......
>>
>> Here is the xforms (which again runs fine within orbeon.war/xforms-
>> jsp)
>>
>> <html
>>    xmlns="http://www.w3.org/1999/xhtml"
>>    xmlns:xforms="http://www.w3.org/2002/xforms"
>>    xmlns:ev="http://www.w3.org/2001/xml-events"
>>    xmlns:xs="http://www.w3.org/2001/XMLSchema"
>>    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>>
>>    <head>
>>      <xforms:model id="fr-form-model">
>>            <xforms:instance id="data">
>>                <root xmlns="" required="">
>>                    <field10/>
>>                </root>
>>            </xforms:instance>
>>        </xforms:model>
>>    </head>
>>    <body>
>>         <xforms:input ref="instance('data')/field10">
>>            <xforms:label>field10 buddy</xforms:label>
>>            <xforms:alert>Required</xforms:alert>
>>        </xforms:input>
>>    </body>
>> </html>
>> --
>> View this message in context: http://n4.nabble.com/Static-XForm-in-separate-deployment-not-working-with-recent-builds-tp932536p932536.html
>> Sent from the ObjectWeb OPS - Users mailing list archive at Nabble.com
>> .
>>
>>
>> --
>> You receive this message as a subscriber of the ops-users@ow2.org  
>> mailing list.
>> To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
>> For general help: mailto:sympa@ow2.org?subject=help
>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>
>>
>
> --
> You receive this message as a subscriber of the ops-users@ow2.org  
> mailing list.
> To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
> For general help: mailto:sympa@ow2.org?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws


--
You receive this message as a subscriber of the ops-users@ow2.org mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
For general help: mailto:sympa@ow2.org?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Static XForm in separate deployment not working with recent builds

npujol73
I am posting this again but i still have an issue of the same nature.

I am in a separate deployment and I get the error below in the browser when using "*.xhtml" as a filter url pattern. It works fine if I use a url pattern like this "/somepath/*". I am using orbeon version dev-post-3.7.1.201002261123.

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

I can tell that my xform is being processed since it renders but the error shows up right after. Here is my separate deployment setup.


....
        <filter>
                <filter-name>orbeon-xforms-filter</filter-name>
                <filter-class>org.orbeon.oxf.servlet.OrbeonXFormsFilter</filter-class>
                <init-param>
                        <param-name>oxf.xforms.renderer.context</param-name>
                        <param-value>/orbeon</param-value>
                </init-param>
        </filter>
.....
<filter-mapping>
                <filter-name>orbeon-xforms-filter</filter-name>
                <url-pattern>*.xhtml</url-pattern>
                <dispatcher>REQUEST</dispatcher>
                <dispatcher>FORWARD</dispatcher>
        </filter-mapping>
       
        <filter-mapping>
                <filter-name>orbeon-xforms-filter</filter-name>
                <url-pattern>/orbeon/*</url-pattern>
                <dispatcher>REQUEST</dispatcher>
                <dispatcher>FORWARD</dispatcher>
        </filter-mapping>

Any ideas?
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Static XForm in separate deployment not working with recent builds

Alessandro  Vernet
Administrator
I am not sure why the type of URL pattern would make a difference.
When you get a change, could you create a minimal war that reproduces
this, so we can try it locally?

Alex

On Tue, Mar 2, 2010 at 9:53 AM, npujol73 <[hidden email]> wrote:

>
> I am posting this again but i still have an issue of the same nature.
>
> I am in a separate deployment and I get the error below in the browser when
> using "*.xhtml" as a filter url pattern. It works fine if I use a url
> pattern like this "/somepath/*". I am using orbeon version
> dev-post-3.7.1.201002261123.
>
> Cannot load "/apps/orbeon/page-flow.xml" with webapp loader
>
> I can tell that my xform is being processed since it renders but the error
> shows up right after. Here is my separate deployment setup.
>
>
> ....
>        <filter>
>                <filter-name>orbeon-xforms-filter</filter-name>
>                <filter-class>org.orbeon.oxf.servlet.OrbeonXFormsFilter</filter-class>
>                <init-param>
>                        <param-name>oxf.xforms.renderer.context</param-name>
>                        <param-value>/orbeon</param-value>
>                </init-param>
>        </filter>
> .....
> <filter-mapping>
>                <filter-name>orbeon-xforms-filter</filter-name>
>                <url-pattern>*.xhtml</url-pattern>
>                <dispatcher>REQUEST</dispatcher>
>                <dispatcher>FORWARD</dispatcher>
>        </filter-mapping>
>        <!-- This is necessary so that XForms engine resources can be served
> appropriately -->
>        <filter-mapping>
>                <filter-name>orbeon-xforms-filter</filter-name>
>                <url-pattern>/orbeon/*</url-pattern>
>                <dispatcher>REQUEST</dispatcher>
>                <dispatcher>FORWARD</dispatcher>
>        </filter-mapping>
>
> Any ideas?
>
> --
> View this message in context: http://n4.nabble.com/Static-XForm-in-separate-deployment-not-working-with-recent-builds-tp932536p1575404.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
>
>


--
Orbeon Forms - Web forms, open-source, for the Enterprise -
http://www.orbeon.com/
My 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
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Static XForm in separate deployment not working with recent builds

npujol73
Alex,

 I got a couple of threads going for that. I know i should not and I apologize. Please see this thread
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: Static XForm in separate deployment not working with recent builds

Alessandro  Vernet
Administrator
Nicolas,

No problem, then we will continue the discussion in the other threads.

Alex

On Fri, Mar 5, 2010 at 8:35 PM, npujol73 <[hidden email]> wrote:

>
> Alex,
>
>  I got a couple of threads going for that. I know i should not and I
> apologize. Please see this
> http://n4.nabble.com/Loading-An-error-has-occured-in-a-separate-deployment-on-jboss-td1576057.html#a1576057
> thread
>
> --
> View this message in context: http://n4.nabble.com/Static-XForm-in-separate-deployment-not-working-with-recent-builds-tp932536p1580416.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
>
>


--
Orbeon Forms - Web forms, open-source, for the Enterprise -
http://www.orbeon.com/
My 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
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet