I belive Liferay IDE 1.1 creates a context.xml file in the META-INF which contains no mention of crossContext="true".If I remember correctly (it was a while ago)... I edited this file to contain the following content:
Message Hi MariaI belive Liferay IDE 1.1 creates a context.xml file in the META-INF which contains no mention of crossContext="true".If I remember correctly (it was a while ago)... I edited this file to contain the following content:<?xml version="1.0" encoding="UTF-8"?>
<Context crossContext="true" path="/DCCOrbeonXFormPortlet-portlet" reloadable="true"/>Basically you need to make sure that Liferay IDE doesn't replace the file without the crossContext attribute set correctly each time you use the "deploy" target of the Liferay IDE generated Ant build file.In additon (maybe duplicating effort), I added two files to the \conf\Catalina\localhost directory within the Tomcat home directory:orbeon.xml :: Containing: <Context path="/orbeon" crossContext="true"/>
DCCOrbeonXFormPortlet-portlet.xml :: Containing: <Context path="/DCCOrbeonXFormPortlet-portlet" crossContext="true"/>
These two filenames match the context directory names of each of the web applications.I believe Liferay IDE 1.1 doesn't touch these files, but I may have done something to prevent it touching these through the Eclipse project configuration for the latter.Good luck!- Stian-----Original Message-----Hi,
From: María Gil [[hidden email]]
Sent: 27 October 2010 11:51
To: [hidden email]
Subject: [ops-users] Re: RE: Re: Re: XForms in a portlet
I have been trying to Orbeon with one portlet in liferay.
Does anyone know which is the cause of the problem I am having?
I have been following this guide: http://wiki.orbeon.com/forms/doc/developer-guide/xforms-separate-deployment-with-portlets
After following all these steps, I got a block of words in my portlet. Thanks to Stian, I found out that, the problem was that I was using .jsps, and there are some limitations with that.
But now, after doing some changes, I get this error, and when I deploy my portlet in liferay, it says: OrbeonTestXFormPortlet is temporarily unavailable.
I get this error:
INFO: Server startup in 99515 ms
09:33:17,075 ERROR [PortletRequestDispatcherImpl:93] javax.servlet.ServletException: Can't find Orbeon Forms context called '/orbeon'. Check the 'oxf.xforms.renderer.context' filter initialization parameter and the <Context crossContext="true"/> attribute.
javax.servlet.ServletException: Can't find Orbeon Forms context called '/orbeon'. Check the 'oxf.xforms.renderer.context' filter initialization parameter and the <Context crossContext="true"/> attribute.
at org.orbeon.oxf.portlet.OrbeonTrampolineServlet.getOrbeonContext(OrbeonTrampolineServlet.java:55)
at org.orbeon.oxf.portlet.OrbeonTrampolineServlet.getOrbeonDispatcher(OrbeonTrampolineServlet.java:45)
at org.orbeon.oxf.portlet.OrbeonTrampolineServlet.service(OrbeonTrampolineServlet.java:41)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
....
I know (I believe) that there must be a problem with crossContext, but I can't find it.
in server.xml :
<Host appBase="webapps" autoDeploy="true" deployXML="false" name="localhost" unpackWARs="true" xmlNamespaceAware="false" xmlValidation="false">
<Context path="/orbeon" docBase="orbeon" crossContext="true"/>
<Context path="/ROOT" docBase="ROOT" crossContext="true"/>
</Host>
(ROOT is where liferay is placed, do I need to put ROOT or the name of my portlet?)
I change that in server.xml, and every time I start my server it is remove...
I don't know what is my problem... can anyone help???
Thanks so much.
Regards,
María
|
MARÍA GIL
R&D Engineer T: +34 94 641 60 66 M: +34 672 263 122 F: +34 94 431 82 86 [hidden email] www.andago.com |
ÁNDAGO INGENIERÍA
Álcalde Ángel Arroyo, 10, 1º 28904, Getafe, Madrid (Spain) ÁNDAGO LABS Bizkaia Technology Park Kanala Bidea, Edif-103, 1º izq. E-48170, Zamudio, Bizkaia (Spain) |
Ciudad del Saber Edificio 223, 3ºA. Ciudad de Panamá (Panamá) |
| |
Antes de imprimir este mensaje, asegúrese
de que es necesario. El medio ambiente está en nuestra
mano. Consider the environment before printing this mail. |
AVISO LEGAL
ANDAGO CONSULTING SL / ANDAGO INGENIERÍA, SL le informa que los datos facilitados por Ud. y utilizados para el envío de esta comunicación serán objeto de tratamiento automatizado o no en nuestros ficheros, con la finalidad de gestionar la agenda de contactos de nuestra empresa y para el envío de comunicaciones profesionales por cualquier medio electrónico o no. Vd. podrá en cualquier momento ejercer el derecho de acceso, rectificación, cancelación y oposición en los términos establecidos en la Ley Orgánica 15/1999. El responsable del tratamiento es ANDAGO CONSULTING SL / ANDAGO INGENIERIA SL, con domicilio en C/ ALCALDE ANGEL ARROYO, 10, 28904, Getafe (Madrid).
El contenido de esta comunicación, así como el de toda la documentación anexa, es confidencial y va dirigido únicamente al destinatario del mismo. En el supuesto de que usted no fuera el destinatario, le solicitamos que nos lo indique y no comunique su contenido a terceros, procediendo a su destrucción.
DISCLAIMER
The content of this communication and any attached information is confidential and exclusively for the use of the addressee. If you are not the addressee, we ask you to notify to the sender and do not pass its content to another person, and please be sure you destroy it.
| Free forum by Nabble | Edit this page |