[orbeon-user] Orbeon 4.0 XForms sandbox ClassCastException

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

[orbeon-user] Orbeon 4.0 XForms sandbox ClassCastException

Stian Sigvartsen

Hi. Is anyone else experiencing issues with running uploaded .xhtml files using the XForms Sandbox of Orbeon 4.0? I’ve tried the most basic of XForms. No form is rendered and the following exception appears in the logs:

 

com.liferay.portlet.PortletContextImpl cannot be cast to javax.servlet.ServletContext

 

I’m not running the XForms sandbox via a portlet container so I don’t understand why it is mentioning PortletContextImpl.

 

-Stian

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply | Threaded
Open this post in threaded view
|

Re: [orbeon-user] Orbeon 4.0 XForms sandbox ClassCastException

Alessandro  Vernet
Administrator
Hi Stian,

I tried this here, uploaded the source of the "XForms hello" example,
and it is working for me. I imagine you're using Liferay; is that
correct? How is Orbeon Forms deployed on Liferay?

https://github.com/orbeon/orbeon-forms/blob/master/src/resources/apps/xforms-hello/view.xhtml

Alex

On Thu, Mar 21, 2013 at 10:42 AM, Stian Sigvartsen
<[hidden email]> wrote:

> Hi. Is anyone else experiencing issues with running uploaded .xhtml files
> using the XForms Sandbox of Orbeon 4.0? I’ve tried the most basic of XForms.
> No form is rendered and the following exception appears in the logs:
>
>
>
> com.liferay.portlet.PortletContextImpl cannot be cast to
> javax.servlet.ServletContext
>
>
>
> I’m not running the XForms sandbox via a portlet container so I don’t
> understand why it is mentioning PortletContextImpl.
>
>
>
> -Stian
>
> --
> You received this message because you are subscribed to the Google Groups
> "Orbeon Forms" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [hidden email].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>



--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.


--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

RE: [orbeon-user] Orbeon 4.0 XForms sandbox ClassCastException

Stian Sigvartsen
In reply to this post by Stian Sigvartsen
Thanks Alex. That's the same XForm I tested it with. Yes, Orbeon is
deployed into Liferay, but when I tested the XForms sandbox I bypassed
it and accessed the Orbeon web application directly. i.e.
http://host:8080/orbeon . Is there something that occurs during the
Liferay deployment of Orbeon which changes the configuration of Orbeon?

-Stian

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.


Reply | Threaded
Open this post in threaded view
|

Re: [orbeon-user] Orbeon 4.0 XForms sandbox ClassCastException

Alessandro Vernet
Administrator
Hi Stian,

Got it. I'll let Erik follow-up on this, as he knows much more about
Liferay than I do.

Alex

On Fri, Mar 22, 2013 at 6:17 AM, Stian Sigvartsen
<[hidden email]> wrote:

> Thanks Alex. That's the same XForm I tested it with. Yes, Orbeon is
> deployed into Liferay, but when I tested the XForms sandbox I bypassed
> it and accessed the Orbeon web application directly. i.e.
> http://host:8080/orbeon . Is there something that occurs during the
> Liferay deployment of Orbeon which changes the configuration of Orbeon?
>
> -Stian
>
> --
> You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>



--
Follow me on Twitter: @avernet

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.


Reply | Threaded
Open this post in threaded view
|

RE: [orbeon-user] Orbeon 4.0 XForms sandbox ClassCastException

benjamin.dougherty
In reply to this post by Stian Sigvartsen
'Is there something that occurs during the
Liferay deployment of Orbeon which changes the configuration of Orbeon?'

Yes. Liferay will modify the web application's web.xml file adding filters. If you want to add orbeon outside of Liferay then simply drop orbeon.war into the webapps folder.

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.


Reply | Threaded
Open this post in threaded view
|

[orbeon] RE: [orbeon-user] Orbeon 4.0 XForms sandbox ClassCastException

Stian Sigvartsen
In reply to this post by Stian Sigvartsen
Thanks Benjamin. It's not so much that we want to add Orbeon outside of
Liferay, but the XForms sandbox is very handy to access direct whilst
developing XForms. With Orbeon  3.9 and some milestone builds of 4.0 we
were able to have one installation function both via Liferay and direct
for this purpose. Maybe we need to start using the sandbox via a portlet
somehow.

-Stian

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.


Reply | Threaded
Open this post in threaded view
|

Re: [orbeon] RE: [orbeon-user] Orbeon 4.0 XForms sandbox ClassCastException

Erik Bruchez
Administrator
I reproduce this. I entered an issue:

https://github.com/orbeon/orbeon-forms/issues/890

It's a bit funny. One workaround is to deploy orbeon.war as a
different name directly into Tomcat for this purpose.

-Erik

On Fri, Mar 22, 2013 at 12:08 PM, Stian Sigvartsen
<[hidden email]> wrote:

> Thanks Benjamin. It's not so much that we want to add Orbeon outside of
> Liferay, but the XForms sandbox is very handy to access direct whilst
> developing XForms. With Orbeon  3.9 and some milestone builds of 4.0 we
> were able to have one installation function both via Liferay and direct
> for this purpose. Maybe we need to start using the sandbox via a portlet
> somehow.
>
> -Stian
>
> --
> You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.