Hello
I know this is a Liferay specific problem, but I hope to find someone to share experiences and samples about Liferay and Orbeon with separate deployment. I am working with the latest Orbeon nightly build, Liferay 5.2.3 and JBoss 4.2.2. Orbeon.war is deployed in my Liferay portal and most of the examples works. I made a separate war (webui.war) for my web application to represent xForms. Deploying webui.war I can add my portlet showing xForms by passing the content through the attribute "oxf.xforms.renderer.document" to OrbeonXFormsFilter.java. (Thanks for the quick fix Erik!) I can see the xForms rendered by Orbeon. (see my code attached) The problem starts by restart Liferay. My web application cant get deployed again. 2009-12-01 15:59:47,811 INFO [STDOUT] 15:59:47,811 INFO [PortletHotDeployListener:227] Registering portlets for webui 2009-12-01 15:59:47,936 INFO [STDOUT] 15:59:47,920 ERROR [HotDeployUtil:111] com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering portlets for webui com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering portlets for webui at com.liferay.portal.deploy.hot.BaseHotDeployListener.throwHotDeployException(BaseHotDeployListener.java:58) I read the Orbeon documentation and tried to adjust the web.xml in webui.war. http://wiki.orbeon.com/forms/doc/developer-guide/deployment-portlet I included <context-param>, <filter> and some jar because of ClassNotFoundException, but more and more errors occurs. Is that the right way? I choose separate deployment because of it advantages and now I have to copy more and more Orbeon jars in my separate web application to find out why orbeon.war is working and not my webui.war. Can anybody provide an example how the web.xml in a separate web application has to look like or tell me at least if I am on the right way? (see web2.xml) Thanks so much for sharing your experiences, Karolin -- 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 portlet.xml (1K) Download Attachment web.xml (1K) Download Attachment XFormsPortlet.java (878 bytes) Download Attachment XFormsPortletServlet.java (2K) Download Attachment web2.xml (3K) Download Attachment |
Hi to alll,
I soleved the problem myself. I got the hint in jboss-service.xml from URLDeploymentScanner: <!-- The URLComparator can be used to specify a deployment ordering for deployments found in a scanned directory. The class specified must be an implementation of java.util.Comparator, it must be able to compare two URL objects, and it must have a no-arg constructor. Two deployment comparators are shipped with JBoss: - org.jboss.deployment.DeploymentSorter Sorts by file extension, as follows: "sar", "service.xml", "rar", "jar", "war", "wsr", "ear", "zip", "*" - org.jboss.deployment.scanner.PrefixDeploymentSorter If the name portion of the url begins with 1 or more digits, those digits are converted to an int (ignoring leading zeroes), and files are deployed in that order. Files that do not start with any digits will be deployed first, and they will be sorted by extension as above with DeploymentSorter. --> I renamed the web moduls: 1orbeon.war 2webui.war 3liferay-portal.war Know its working. Cheers Karolin >>> "Karolin Krieg" <[hidden email]> 12/2/2009 5:44 >>> Hello I know this is a Liferay specific problem, but I hope to find someone to share experiences and samples about Liferay and Orbeon with separate deployment. I am working with the latest Orbeon nightly build, Liferay 5.2.3 and JBoss 4.2.2. Orbeon.war is deployed in my Liferay portal and most of the examples works. I made a separate war (webui.war) for my web application to represent xForms. Deploying webui.war I can add my portlet showing xForms by passing the content through the attribute "oxf.xforms.renderer.document" to OrbeonXFormsFilter.java. (Thanks for the quick fix Erik!) I can see the xForms rendered by Orbeon. (see my code attached) The problem starts by restart Liferay. My web application cant get deployed again. 2009-12-01 15:59:47,811 INFO [STDOUT] 15:59:47,811 INFO [PortletHotDeployListener:227] Registering portlets for webui 2009-12-01 15:59:47,936 INFO [STDOUT] 15:59:47,920 ERROR [HotDeployUtil:111] com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering portlets for webui com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering portlets for webui at com.liferay.portal.deploy.hot.BaseHotDeployListener.throwHotDeployException(BaseHotDeployListener.java:58) I read the Orbeon documentation and tried to adjust the web.xml in webui.war. http://wiki.orbeon.com/forms/doc/developer-guide/deployment-portlet I included <context-param>, <filter> and some jar because of ClassNotFoundException, but more and more errors occurs. Is that the right way? I choose separate deployment because of it advantages and now I have to copy more and more Orbeon jars in my separate web application to find out why orbeon.war is working and not my webui.war. Can anybody provide an example how the web.xml in a separate web application has to look like or tell me at least if I am on the right way? (see web2.xml) Thanks so much for sharing your experiences, Karolin -- 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 |
Karolin,
Great to hear and thanks for sharing! -Erik On Thu, Dec 3, 2009 at 2:20 AM, Karolin Krieg <[hidden email]> wrote: > Hi to alll, > > I soleved the problem myself. > I got the hint in jboss-service.xml from URLDeploymentScanner: > > <!-- The URLComparator can be used to specify a deployment > ordering > for deployments found in a scanned directory. The class > specified > must be an implementation of java.util.Comparator, it must > be able > to compare two URL objects, and it must have a no-arg > constructor. > Two deployment comparators are shipped with JBoss: > - org.jboss.deployment.DeploymentSorter > Sorts by file extension, as follows: > "sar", "service.xml", "rar", "jar", "war", "wsr", > "ear", "zip", > "*" > - org.jboss.deployment.scanner.PrefixDeploymentSorter > If the name portion of the url begins with 1 or more > digits, those > digits are converted to an int (ignoring leading > zeroes), and > files are deployed in that order. Files that do not > start with > any digits will be deployed first, and they will be > sorted by > extension as above with DeploymentSorter. > --> > > I renamed the web moduls: > > 1orbeon.war > 2webui.war > 3liferay-portal.war > > > Know its working. > > Cheers Karolin > > >>>> "Karolin Krieg" <[hidden email]> 12/2/2009 5:44 >>> > Hello > > I know this is a Liferay specific problem, but I hope to find someone > to share experiences and samples about Liferay and Orbeon with > separate > deployment. > I am working with the latest Orbeon nightly build, Liferay 5.2.3 and > JBoss 4.2.2. > > Orbeon.war is deployed in my Liferay portal and most of the examples > works. > I made a separate war (webui.war) for my web application to represent > xForms. > > Deploying webui.war I can add my portlet showing xForms by passing the > content through the attribute "oxf.xforms.renderer.document" to > OrbeonXFormsFilter.java. (Thanks for the quick fix Erik!) > I can see the xForms rendered by Orbeon. (see my code attached) > > The problem starts by restart Liferay. My web application cant get > deployed again. > > 2009-12-01 15:59:47,811 INFO [STDOUT] 15:59:47,811 INFO > [PortletHotDeployListener:227] Registering portlets for webui > 2009-12-01 15:59:47,936 INFO [STDOUT] 15:59:47,920 ERROR > [HotDeployUtil:111] > com.liferay.portal.kernel.deploy.hot.HotDeployException: Error > registering portlets for webui > com.liferay.portal.kernel.deploy.hot.HotDeployException: Error > registering portlets for webui > at > com.liferay.portal.deploy.hot.BaseHotDeployListener.throwHotDeployException(BaseHotDeployListener.java:58) > > I read the Orbeon documentation and tried to adjust the web.xml in > webui.war. > http://wiki.orbeon.com/forms/doc/developer-guide/deployment-portlet > I included <context-param>, <filter> and some jar because of > ClassNotFoundException, but more and more errors occurs. Is that the > right way? > I choose separate deployment because of it advantages and now I have > to > copy more and more Orbeon jars in my separate web application to find > out why orbeon.war is working and not my webui.war. > > Can anybody provide an example how the web.xml in a separate web > application has to look like or tell me at least if I am on the right > way? (see web2.xml) > > > Thanks so much for sharing your experiences, > Karolin > > > -- > 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 > > -- 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 |