Orbeon Portlet on Glassfish Webspace

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Orbeon Portlet on Glassfish Webspace

rishi4you
I was trying to deploy the orbeon portlet on webspace version (webspace-gfv2-windows0 ). After setting up glassfish and starting the domain, i tried to install the Sample Orbeon forms portlet . Its shows the message "you application is being deployed ".When i try to include the portlet from the "Add application" link, it shows that the application ahve been undeployed and remove ir redeploy it. When i check the log ..it shows the following message ..

com.liferay.portal.kernel.xml.DocumentException: Error on line 26 of document  : cvc-complex-type.2.4.a: Invalid content was found starting with element 'mime-type'. One of '{"http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd":portlet-mode, "http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd":window-state}' is expected. Nested exception: cvc-complex-type.2.4.a: Invalid content was found starting with element 'mime-type'. One of '{"http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd":portlet-mode, "http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd":window-state}' is expected.
        at com.liferay.portal.xml.SAXReaderImpl.read(SAXReaderImpl.java:377)

Further , i modifed the portlet.xml with by adding this entry for portlet-mode as per the error mssg..

<supports>
        <mime-type>text/html</mime-type>
           <portlet-mode>edit</portlet-mode>
</supports>
<supports>
        <mime-type>application/xml</mime-type>
        <portlet-mode>edit</portlet-mode>
</supports> 

Once i do the previous error goes off But now i get a new error in form of a Null Pointer ...

[#|2009-06-06T06:50:34.641+0000|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=32;_ThreadName=Thread-1871;|2009-06-06 06:50:34,641 [Thread-1871] ERROR com.liferay.portal.deploy.hot.PortletHotDeployListener - javax.portlet.PortletException: java.lang.NullPointerException
javax.portlet.PortletException: java.lang.NullPointerException
        at org.orbeon.oxf.portlet.OPSPortlet.init(OPSPortlet.java:62)
        at javax.portlet.GenericPortlet.init(GenericPortlet.java:107)
        at com.liferay.portlet.InvokerPortletImpl.init(InvokerPortletImpl.java:250)

Further to this i would need to debug through the Orbeon source. I would appreciate any clues for the  obove error or any idea 'how best can i debug the orbeon source code ..does the nightly build contains the source code also ".