Hi all,
I have problems running my orbeon forms as a liferay portlet. I was able to run a basic orbeon portlet following this tutorialhttp://wiki.orbeon.com/forms/doc/developer-guide/deployment-portlet. This is how it looks: . The orbeon app is deployed as tomcat-5.5/webapps/orbeon-5.1.2.1. This done, I have copied a running orbeon x-forms application named "alliance1" to tomcat-5.5.27/webapps/orbeon-5.1.2.1/WEB-INF/resources/apps directory and restarted the server. Now when I access the application as http://localhost:8080/orbeon-5.1.2.1/alliance1/7031 (this is a valid url), I get the response as a stand-alone resource but not a portlet-response. This is how it looks: Why does this happen? Where am I going wrong. Any suggestions/points of reference might be helpful. ragards, venkat |
You would find portlet responses after you make any submission actions from your portlet.
Vinith Gowda.
|
I submitted the form using UPDATE button but no effect in style.
Actually, how/where do we specify a CSS for orbeon forms?
|
Did you configure this application as portlet in portlet.xml and liferaydisplay.xml.
|
Yes, I did configure it as a portlet. This is how they looked.
portlet.xml: [code] <?xml version="1.0" ?> <portlet-app> <portlet> <portlet-name>OrbeonFormsPortlet</portlet-name> <portlet-class>org.orbeon.oxf.portlet.OrbeonPortletDelegate</portlet-class> <supports> <mime-type>text/html</mime-type> <portlet-mode>edit</portlet-mode> </supports> <init-param> <name>oxf.main-processor.name</name> <value>{http://www.orbeon.com/oxf/processors}pipeline</value> </init-param> <init-param> <name>oxf.main-processor.input.config</name> <value>oxf:/config/prologue-portlet.xpl</value> </init-param> <init-param> <name>oxf.error-processor.name</name> <value>{http://www.orbeon.com/oxf/processors}pipeline</value> </init-param> <init-param> <name>oxf.error-processor.input.config</name> <value>oxf:/config/error.xpl</value> </init-param> <supports> <mime-type>text/html</mime-type> <mime-type>application/xml</mime-type> </supports> <portlet-info> <title>Orbeon Forms Portlet</title> </portlet-info> <portlet-preferences> <preference> <name>web-site</name> <value>http://www.orbeon.com/</value> </preference> <preference> <name>favorite-animals</name> <value>cat, dog</value> </preference> </portlet-preferences> </portlet> </portlet-app> liferay-portlet.xml <?xml version="1.0"?> <liferay-portlet-app> <portlet> <portlet-name>OrbeonFormsPortlet</portlet-name> <instanceable>true</instanceable> <portlet-class>org.orbeon.oxf.portlet.OrbeonPortlet2Delegate</portlet-class> <supports> <mime-type>text/html</mime-type> <portlet-mode>edit</portlet-mode> </supports> <init-param> <name>oxf.main-processor.name</name> <value>{http://www.orbeon.com/oxf/processors}pipeline</value> </init-param> <init-param> <name>oxf.main-processor.input.config</name> <value>oxf:/config/prologue-portlet.xpl</value> </init-param> <init-param> <name>oxf.error-processor.name</name> <value>{http://www.orbeon.com/oxf/processors}pipeline</value> </init-param> <init-param> <name>oxf.error-processor.input.config</name> <value>oxf:/config/error.xpl</value> </init-param> <supports> <mime-type>text/html</mime-type> <mime-type>application/xml</mime-type> </supports> <portlet-info> <title>Orbeon Forms Portlet</title> </portlet-info> <portlet-preferences> <preference> <name>web-site</name> <value>http://www.orbeon.com/</value> </preference> <preference> <name>favorite-animals</name> <value>cat, dog</value> </preference> </portlet-preferences> </portlet> </liferay-portlet-app> [/code]
|
Did you login with liferay are you are directly hitting the URL???
|
I did log into liferay. And then access the url
http://venkat:8080/orbeon-5.1.2.1/alliance1/7031 directly.
|
I have fixed my orbeon to have a portlet look now, thanks for your replies and valuable suggestions. But I have another issue still bothering me. My application couldnt fetch the data from db. Its throwing some weird errors which I couldn't interpret for my level of expertise. But the same application when run as an individual app in tomcat( I mean when accessed directly through url -- http://venkat:9080/orbeon/alliance1/7031 -- this is another tomcat instance with the identical configuration), fetches the data and renders it correctly.
Here is the error when run as a portlet. 2009-03-17 21:42:42,690 INFO ProcessorService - /alliance1/7031 - Received request 2009-03-17 21:42:44,540 INFO ProcessorService - /alliance1/getName - Received request 2009-03-17 21:42:45,298 INFO DatabaseContext - Rolling back JDBC connection for datasource: [com.mysql.jdbc.Driver|jdbc:mysql://localhost:3306/lportal|gppadmin]. 2009-03-17 21:42:45,303 ERROR ProcessorService - Exception at oxf:/config/theme-plain.xsl (executing XSLT transformation) java.lang.NullPointerException at org.orbeon.saxon.event.HTMLURIEscaper.escapeURL(HTMLURIEscaper.java:155) at org.orbeon.saxon.event.HTMLURIEscaper.attribute(HTMLURIEscaper.java:137) at org.orbeon.saxon.event.ReceivingContentHandler.startElement(ReceivingContentHandler.java:265) at org.orbeon.oxf.xml.ForwardingContentHandler.startElement(ForwardingContentHandler.java:87) at org.orbeon.oxf.xml.SimpleForwardingContentHandler.startElement(SimpleForwardingContentHandler.java:69) at org.orbeon.oxf.xml.ForwardingContentHandler.startElement(ForwardingContentHandler.java:87) at org.orbeon.oxf.processor.converter.QNameConverter$3.startElement(QNameConverter.java:105) at org.orbeon.oxf.processor.converter.AbstractRewrite$RewriteState.handleEltWithResource(AbstractRewrite.java:230) at org.orbeon.oxf.processor.converter.AbstractRewrite$RewriteState.startElementStart(AbstractRewrite.java:690) at org.orbeon.oxf.xml.saxrewrite.State.startElement(State.java:148) at org.orbeon.oxf.xml.saxrewrite.StatefullHandler.startElement(StatefullHandler.java:78) at org.orbeon.oxf.xml.SimpleForwardingContentHandler.startElement(SimpleForwardingContentHandler.java:69) at org.orbeon.oxf.processor.transformer.xslt.XSLTTransformer$3.startElement(XSLTTransformer.java:268) at org.orbeon.saxon.event.ContentHandlerProxy.startContent(ContentHandlerProxy.java:349) .....blah...blah....blah..... 2009-03-17 21:42:47,487 INFO ProcessorService - /alliance1/getSubOrg - Received request 2009-03-17 21:42:47,809 INFO DatabaseContext - Rolling back JDBC connection for datasource: [com.mysql.jdbc.Driver|jdbc:mysql://localhost:3306/lportal|gppadmin]. 2009-03-17 21:42:47,810 ERROR ProcessorService - Exception at oxf:/config/theme-plain.xsl (executing XSLT transformation) java.lang.NullPointerException at org.orbeon.saxon.event.HTMLURIEscaper.escapeURL(HTMLURIEscaper.java:155) at org.orbeon.saxon.event.HTMLURIEscaper.attribute(HTMLURIEscaper.java:137) at org.orbeon.saxon.event.ReceivingContentHandler.startElement(ReceivingContentHandler.java:265) at org.orbeon.oxf.xml.ForwardingContentHandler.startElement(ForwardingContentHandler.java:87) at org.orbeon.oxf.xml.SimpleForwardingContentHandler.startElement(SimpleForwardingContentHandler.java:69) at org.orbeon.oxf.xml.ForwardingContentHandler.startElement(ForwardingContentHandler.java:87) at org.orbeon.oxf.processor.converter.QNameConverter$3.startElement(QNameConverter.java:105) at org.orbeon.oxf.processor.converter.AbstractRewrite$RewriteState.handleEltWithResource(AbstractRewrite.java:230) at org.orbeon.oxf.processor.converter.AbstractRewrite$RewriteState.startElementStart(AbstractRewrite.java:690) at org.orbeon.oxf.xml.saxrewrite.State.startElement(State.java:148) at org.orbeon.oxf.xml.saxrewrite.StatefullHandler.startElement(StatefullHandler.java:78) at org.orbeon.oxf.xml.SimpleForwardingContentHandler.startElement(SimpleForwardingContentHandler.java:69) at org.orbeon.oxf.processor.transformer.xslt.XSLTTransformer$3.startElement(XSLTTransformer.java:268) at org.orbeon.saxon.event.ContentHandlerProxy.startContent(ContentHandlerProxy.java:349) at org.orbeon.saxon.event.ProxyReceiver.startContent(ProxyReceiver.java:162) at org.orbeon.saxon.event.NamespaceReducer.startContent(NamespaceReducer.java:168) ............................................................blah ........blah............ and my properties-base.xml looks like: <properties xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:oxf="http://www.orbeon.com/oxf/processors" xmlns:xi="http://www.w3.org/2001/XInclude"> <property as="xs:anyURI" name="oxf.log4j-config" value="oxf:/config/log4j.xml"/> <property as="xs:integer" name="oxf.cache.size" value="500"/> <property as="xs:integer" name="oxf.cache.xpath.size" value="600"/> <property as="xs:boolean" name="oxf.sax.inspection" value="false"/> <property as="xs:boolean" name="oxf.resources.versioned" value="false"/> <property as="xs:string" name="oxf.resources.version-number" value="3.1415"/> <property as="xs:anyURI" name="oxf.epilogue.theme" value="oxf:/config/theme-plain.xsl"/> <property as="xs:boolean" name="oxf.epilogue.use-theme" value="false"/> <property as="xs:anyURI" name="oxf.epilogue.theme.error" value="oxf:/config/theme-error.xsl"/> <property as="xs:anyURI" name="oxf.epilogue.theme.portlet" value="oxf:/config/theme-plain.xsl"/> <property as="xs:boolean" name="oxf.epilogue.output-xhtml" value="false"/> <property as="xs:boolean" name="oxf.epilogue.renderer-rewrite" value="true"/> <property as="xs:boolean" name="oxf.epilogue.process-svg" value="true"/> <property as="xs:boolean" name="oxf.epilogue.embeddable" value="false"/> <property as="xs:integer" processor-name="oxf:request" name="max-upload-size" value="100000000"/> <property as="xs:integer" processor-name="oxf:request" name="max-upload-memory-size" value="10240"/> <property as="xs:string" processor-name="oxf:page-flow" name="instance-passing" value="redirect"/> <property as="xs:string" processor-name="oxf:page-flow" name="xforms-submission-path" value="/xforms-server-submit"/> <property as="xs:anyURI" processor-name="oxf:page-flow" name="xforms-submission-model" value="oxf:/ops/xforms/xforms-server-submit.xpl"/> <property as="xs:boolean" processor-name="oxf:saxon8" name="generate-source-location" value="false"/> <property as="xs:boolean" processor-name="oxf:sql" name="legacy-implicit-prefixes" value="false"/> </properties> Why does the same app behave differently in tomcat and portlet?
|
Hello Vinith!
As far as I know xforms uses built-in eXist database. Your application tried to get data from MySQL. It's possible, but you need to use XML transformation for your database. I read about it here http://www.orbeon.com/ops/doc/intro-tutorial. Maybe it'll help you. Have you tried to run Form Builder within liferay? Svetlana |
Free forum by Nabble | Edit this page |