OXFServletFilter

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

OXFServletFilter

IvanLatysh
I am evaluating Orbeon to transform XForms into XHTML, basically we are looking a way to run XForms application for clients who don't want to adopt Mozilla.

I went trough online doc's where I found an example of running Orbeon as a simple filter. But I believe that codebase has been changed, and doc's didn't get updated.
It seems that "config/filter.xpl" get obsolete or simply not there any more.

Appreciate any help with running Orbeon as a filter.

[config]
  <filter>
    <filter-name>ops-main-filter</filter-name>
    <filter-class>org.orbeon.oxf.servlet.OXFServletFilter</filter-class>
    <init-param>
      <param-name>oxf.main-processor.name</param-name>
      <param-value>{http://www.orbeon.com/oxf/processors}pipeline</param-value>
    </init-param>
    <init-param>
      <param-name>oxf.main-processor.input.config</param-name>
      <param-value>oxf:/config/filter.xpl</param-value>
    </init-param>
    <init-param>
      <param-name>oxf.error-processor.name</param-name>
      <param-value>{http://www.orbeon.com/oxf/processors}pipeline</param-value>
    </init-param>
    <init-param>
      <param-name>oxf.error-processor.input.config</param-name>
      <param-value>oxf:/config/error.xpl</param-value>
    </init-param>
  </filter>  
  <filter-mapping>
    <filter-name>ops-main-filter</filter-name>
    <url-pattern>/xforms-jsp/*</url-pattern>
  </filter-mapping>
[/config]



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

Re: OXFServletFilter

Alessandro Vernet
Administrator
Hi Ivan,

filter.xpl is under WEB-INF/resources/config. All the resources are
under WEB-INF/resources, so this part of the path is usually omitted
in the documentation. If there is a specific part of the documentation
that you found confusing, please let us and know and we can maybe
update it.

Alex

On 1/29/07, [hidden email] <[hidden email]> wrote:

> I am evaluating Orbeon to transform XForms into XHTML, basically we are looking a way to run XForms application for clients who don't want to adopt Mozilla.
>
> I went trough online doc's where I found an example of running Orbeon as a simple filter. But I believe that codebase has been changed, and doc's didn't get updated.
> It seems that "config/filter.xpl" get obsolete or simply not there any more.
>
> Appreciate any help with running Orbeon as a filter.
>
> [config]
>   <filter>
>     <filter-name>ops-main-filter</filter-name>
>     <filter-class>org.orbeon.oxf.servlet.OXFServletFilter</filter-class>
>     <init-param>
>       <param-name>oxf.main-processor.name</param-name>
>       <param-value>{http://www.orbeon.com/oxf/processors}pipeline</param-value>
>     </init-param>
>     <init-param>
>       <param-name>oxf.main-processor.input.config</param-name>
>       <param-value>oxf:/config/filter.xpl</param-value>
>     </init-param>
>     <init-param>
>       <param-name>oxf.error-processor.name</param-name>
>       <param-value>{http://www.orbeon.com/oxf/processors}pipeline</param-value>
>     </init-param>
>     <init-param>
>       <param-name>oxf.error-processor.input.config</param-name>
>       <param-value>oxf:/config/error.xpl</param-value>
>     </init-param>
>   </filter>
>   <filter-mapping>
>     <filter-name>ops-main-filter</filter-name>
>     <url-pattern>/xforms-jsp/*</url-pattern>
>   </filter-mapping>
> [/config]
>
>
>
>
> --
> 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
>
>
>

--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re[2]: OXFServletFilter

IvanLatysh
Hello Alessandro,

Tuesday, January 30, 2007, 10:30:03 PM, you wrote:

> filter.xpl is under WEB-INF/resources/config. All the resources are
> under WEB-INF/resources, so this part of the path is usually omitted
> in the documentation. If there is a specific part of the documentation
> that you found confusing, please let us and know and we can maybe
> update it.
It if would be there I wouldn't ask.

1) Download ops-3.0.1.200602032326.zip from your website
2) Unzip it
3) look for filter.xpl anywhere ... Found none ...

Or I am missing something ?

--
Best regards,
 Ivan                            mailto:[hidden email]




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

Re: OXFServletFilter

Erik Bruchez
Administrator
Ivan Latysh wrote:

> Hello Alessandro,
>
> Tuesday, January 30, 2007, 10:30:03 PM, you wrote:
>
>> filter.xpl is under WEB-INF/resources/config. All the resources are
>> under WEB-INF/resources, so this part of the path is usually omitted
>> in the documentation. If there is a specific part of the documentation
>> that you found confusing, please let us and know and we can maybe
>> update it.
> It if would be there I wouldn't ask.
>
> 1) Download ops-3.0.1.200602032326.zip from your website
> 2) Unzip it
> 3) look for filter.xpl anywhere ... Found none ...
>
> Or I am missing something ?
Yes, you are missing using a recent version of Orbeon Forms. Try a
nightly build, or if you are scared of those use 3.5 M1, or then your
only option is to wait until 3.5 final is out ;-)

   Nigtly builds
   http://forge.objectweb.org/nightlybuilds/ops/ops/

   OPS 3.5 M1
   http://forge.objectweb.org/project/showfiles.php?group_id=168

-Erik

--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re[2]: OXFServletFilter

IvanLatysh
Hello Erik,

Wednesday, January 31, 2007, 2:44:00 PM, you wrote:

> Ivan Latysh wrote:
>> Or I am missing something ?

> Yes, you are missing using a recent version of Orbeon Forms. Try a
> nightly build, or if you are scared of those use 3.5 M1, or then your
> only option is to wait until 3.5 final is out ;-)
Now it make more sense.

But my troubles didn't stop there, out of the box night build can't serve xforms-jsp examples,
instead I am getting bunch of errors.
"Cannot load "/apps/xforms-jsp/page-flow.xml" with webapp loader"
"Filtered resource did not call getWriter() or getOutputStream()."
and so on.

Can you advice me please on this issues. Or should I use M1 distro ?

--
Best regards,
 Ivan                            mailto:[hidden email]




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

Re: Re[2]: OXFServletFilter

Alessandro Vernet
Administrator
Ivan,

On 1/31/07, Ivan Latysh <[hidden email]> wrote:
> > Yes, you are missing using a recent version of Orbeon Forms. Try a
> > nightly build, or if you are scared of those use 3.5 M1, or then your
> > only option is to wait until 3.5 final is out ;-)
> Now it make more sense.

Sorry, I assumed you were already using a nightly build.

> But my troubles didn't stop there, out of the box night build can't serve xforms-jsp examples,
> instead I am getting bunch of errors.
> "Cannot load "/apps/xforms-jsp/page-flow.xml" with webapp loader"
> "Filtered resource did not call getWriter() or getOutputStream()."
> and so on.

First, can you successfully load
http://localhost:8090/ops/xforms-jsp/guess-the-number/ (replacing the
port and context name as appropriate for your machine)? I just
downloaded a nightly build, and this page works fine for me.

When you get the error above, it means in general that your JSP does
not set the right content type. See for instance index.jsp for the
"Guess the number" example. It starts with:

<% response.setContentType("application/xhtml+xml"); %>

If you don't want the example "portal" around your example, edit
WEB-INF/resources/config/epilogue-servlet.xpl, look for
theme-portal.xsl and replace that by theme-plain.xsl.

Alex
--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws