Hi,
I am new to the Orbeon Form even XForm. I have followed the below document , http://wiki.orbeon.com/forms/doc/developer-guide/admin/installing and deployed the orbeon.ear in my WebLogic Portal 10.3 seprately and its running in http://localhost:7001/orbeon I am trying to get the FormRunner into my portal application which is running on the same server. Before doing that i have updated my properties-local.xml and created the new ear and deployed again. <property as="xs:string" name="oxf.fr.summary.buttons.orbeon.contact" value="new edit delete"/> <property as="xs:string" name="oxf.fr.detail.buttons.orbeon.contact" value="close clear submit"/> <property as="xs:string" name="oxf.fr.detail.submit.buttons.orbeon.contact" value="clear"/> After that i followed the following steps which are given for the Liferay portal. https://sites.google.com/a/orbeon.com/forms/doc/developer-guide/form-runner/form-runner-proxy-portlet-guide I have downloaded the orbeon-PE-proxy-portlet.war and copied the followin jar filed into my classpath orbeon.jar orbeon-xforms-filter.jar scala-library-2.8.1.jar After i have created a JSR portlet using the class org.orbeon.oxf.portlet.OrbeonProxyPortlet and set the inial parameters which are given in the document Please find my portlet.xml <?xml version="1.0" encoding="UTF-8"?> <portlet-app version="2.0" xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <portlet> <portlet-name>OrbeonProxyPortlet</portlet-name> <portlet-class>org.orbeon.oxf.portlet.OrbeonProxyPortlet</portlet-class> <init-param> <name>form-runner-url</name> <value>http://localhost:7001/orbeon</value> </init-param> <init-param> <name>app-name</name> <value>orbeon</value> </init-param> <init-param> <name>form-name</name> <value>bookshelf</value> </init-param> <init-param> <name>action</name> <value>new</value> </init-param> <init-param> <name>read-only</name> <value>false</value> </init-param> <supports> <mime-type>text/html</mime-type> <portlet-mode>view</portlet-mode> </supports> <portlet-info> <title>OrbeonProxyPortlet</title> </portlet-info> </portlet> </portlet-app> When i am trying the run this portlet i am getting the following error, java.lang.IllegalStateException: Content type not set before calling this method. at com.bea.portlet.container.HttpServletResponseImpl.getWriter(HttpServletResponseImpl.java:142) at com.bea.portlet.container.RenderResponseImpl.getWriter(RenderResponseImpl.java:318) at org.orbeon.oxf.portlet.WSRP2Utils.write(WSRP2Utils.java:50) at org.orbeon.oxf.portlet.OrbeonProxyPortlet.readRewrite(OrbeonProxyPortlet.scala:202) at org.orbeon.oxf.portlet.OrbeonProxyPortlet.doView(OrbeonProxyPortlet.scala:85) at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:328) at javax.portlet.GenericPortlet.render(GenericPortlet.java:233) at com.bea.portlet.container.PortletStub.render(PortletStub.java:401) at com.bea.portlet.container.AppContainer.renderStub(AppContainer.java:946) at com.bea.portlet.container.AppContainer.invokeRender(AppContainer.java:878) at com.bea.netuix.servlets.controls.content.JavaPortletContent.fireRender(JavaPortletContent.java:264) at com.bea.netuix.servlets.controls.content.JavaPortletContent.renderInternal(JavaPortletContent.java:159) at com.bea.netuix.servlets.controls.content.JavaPortletContent.beginRender(JavaPortletContent.java:106) at com.bea.netuix.servlets.controls.application.laf.ContentControlRenderer.beginRender(ContentControlRenderer.java:48) at com.bea.netuix.nf.ControlLifecycle$7.visit(ControlLifecycle.java:481) at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:518) at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529) at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529) at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:220) at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:395) at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:361) at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:352) at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:326) at com.bea.netuix.nf.UIControl.render(UIControl.java:582) at com.bea.netuix.servlets.controls.PresentationContext.render(PresentationContext.java:486) at com.bea.netuix.servlets.util.RenderToolkit.renderChild(RenderToolkit.java:146) at com.bea.netuix.servlets.jsp.taglib.skeleton.Child.doTag(Child.java:63) at jsp_servlet._framework._skeletons._bighorn.__flowlayout._jspService(__flowlayout.java:175) at weblogic.servlet.jsp.JspBase.service(JspBase.java:34) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175) at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:505) at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:432) at com.bea.netuix.servlets.controls.application.laf.JspTools.renderJsp(JspTools.java:130) at com.bea.netuix.servlets.controls.application.laf.JspControlRenderer.beginRender(JspControlRenderer.java:72) at com.bea.netuix.servlets.controls.application.laf.PresentationControlRenderer.beginRender(PresentationControlRenderer.java:65) at com.bea.netuix.nf.ControlLifecycle$7.visit(ControlLifecycle.java:481) at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:518) at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529) at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:220) at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:395) at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:361) at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:352) at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:326) at com.bea.netuix.nf.UIControl.render(UIControl.java:582) at com.bea.netuix.servlets.controls.PresentationContext.render(PresentationContext.java:486) at com.bea.netuix.servlets.util.RenderToolkit.renderChild(RenderToolkit.java:146) at com.bea.netuix.servlets.jsp.taglib.skeleton.Child.doTag(Child.java:63) at jsp_servlet._framework._skeletons._bighorn.__gridlayout._jspService(__gridlayout.java:219) at weblogic.servlet.jsp.JspBase.service(JspBase.java:34) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175) at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:505) at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:432) at com.bea.netuix.servlets.controls.application.laf.JspTools.renderJsp(JspTools.java:130) at com.bea.netuix.servlets.controls.application.laf.JspControlRenderer.beginRender(JspControlRenderer.java:72) at com.bea.netuix.servlets.controls.application.laf.PresentationControlRenderer.beginRender(PresentationControlRenderer.java:65) at com.bea.netuix.nf.ControlLifecycle$7.visit(ControlLifecycle.java:481) at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:518) at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529) at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529) at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529) at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529) at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529) at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529) at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529) at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529) at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:220) at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:395) at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:361) at com.bea.netuix.nf.Lifecycle.runOutbound(Lifecycle.java:208) at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:162) at com.bea.netuix.servlets.manager.UIServlet.runLifecycle(UIServlet.java:388) at com.bea.netuix.servlets.manager.UIServlet.doPost(UIServlet.java:258) at com.bea.netuix.servlets.manager.UIServlet.doGet(UIServlet.java:211) at com.bea.netuix.servlets.manager.UIServlet.service(UIServlet.java:196) at com.bea.netuix.servlets.manager.SingleFileServlet.service(SingleFileServlet.java:251) at com.bea.netuix.servlets.manager.PortalServlet.service(PortalServlet.java:686) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at com.bea.portal.tools.servlet.http.HttpContextFilter.doFilter(HttpContextFilter.java:60) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:336) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3502) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(Unknown Source) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2186) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2092) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) at weblogic.work.ExecuteThread.run(ExecuteThread.java:173) I noticed that in the OrbeonProxyPortlet, the response.contentType is not set. Please let me know whether you intentionally not set the contentType or any other reason behind this. Please help me resovle to get the FormRunner in my WebLogic Portal page. Regards Kalaiselvan
Regards,
Kalaiselvan |
Can you please any one help me on this to fix in WebLogic Portal?
Regards Kalaiselvan
Regards,
Kalaiselvan |
Administrator
|
Kalaiselvan,
It seems your original message did not make it to the list. For reference it is here: We have not tested our portlet with WebLogic Portal. To answer your question: "in the OrbeonProxyPortlet, the response.contentType is not set. Please let me know whether you intentionally not set the contentType or any other reason behind this."
That's not intentional. At first I thought that this was due to the fact that we don't call setContentType() directly but we call setProperty("Content-Type", …) if Orbeon returned a content type, which it should. See:
It was possible that WebLogic did not handle this while Liferay does. The portlet spec is a bit vague on this: it says this is meant to translate into headers, but does not say specifically that setting the "Content-Type" property should be equivalent to setContentType(), although I would expect this to be the case.
However, I also notice that doView() does not call propagateHeaders(), and that seems wrong. I committed this change, which might help:
Could you get the next PE nightly (up in a few minutes) and let us know if this helps? -Erik On Sun, Feb 13, 2011 at 9:47 PM, Kalaiselvan <[hidden email]> wrote:
-- 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 |
Free forum by Nabble | Edit this page |