Orbeon 4.0 XForms sandbox ClassCastException

63 views
Skip to first unread message

Stian Sigvartsen

unread,
Mar 21, 2013, 1:42:35 PM3/21/13
to orb...@googlegroups.com

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

Alessandro Vernet

unread,
Mar 21, 2013, 9:24:25 PM3/21/13
to orb...@googlegroups.com
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
> --
> 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 orbeon+un...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>



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

Stian Sigvartsen

unread,
Mar 22, 2013, 9:17:25 AM3/22/13
to orb...@googlegroups.com
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

Alessandro Vernet

unread,
Mar 22, 2013, 12:42:01 PM3/22/13
to orb...@googlegroups.com
Hi Stian,

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

Alex
> --
> 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 orbeon+un...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>



--
Follow me on Twitter: @avernet

benjamin.dougherty

unread,
Mar 22, 2013, 1:49:03 PM3/22/13
to orb...@googlegroups.com
'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.

Stian Sigvartsen

unread,
Mar 22, 2013, 3:08:21 PM3/22/13
to orb...@googlegroups.com
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

Erik Bruchez

unread,
Mar 22, 2013, 8:56:23 PM3/22/13
to orb...@googlegroups.com
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
Reply all
Reply to author
Forward
0 new messages