Hello,
I am doing the separated deploy but I can't find the ops-xforms-filter.jar. Where is it? -- Un saludo Javier Cerro -- 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 |
Hi Javier, You need to download
the nightly build (3.6) from http://www.orbeon.com/forms/download,
it’s not in 3.5.1 Cheers, Gerrit From: javi cerro
[mailto:[hidden email]] Hello, -- 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 |
Thank you, but now I have another problem. I have a JSP application under the directory /apache-xxx/webapps/prueba and orbeon is under: /apache-xxx/webapps/ops. How I must configure the crosscontext for doing the separated deployment?
-- Regards Javier Cerro -- 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 |
In reply to this post by javi cerro
Hi Javier, You have to setup a
filter in your web.xml like described here: http://www.orbeon.com/ops/doc/reference-xforms-java And you need to
configure your tomcat to allow your webapp to go crosscontext (also described in
the table). After you have set
things up like described, all request going to http://your-server/prueba/xforms-jsp/*
will automagically be forwarded and
processed by ops cheers, Gerrit From: javi cerro
[mailto:[hidden email]] Thank you, but now I have another problem. I have a JSP application
under the directory /apache-xxx/webapps/prueba and orbeon is under:
/apache-xxx/webapps/ops. How I must configure the crosscontext for doing the
separated deployment? -- 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 |
Hi, I have inserted the following line in the web.xml:
<Context path ="/prueba" docBase="/webapps/prueba " crossContext="true" /> But there is an error: javax.servlet.ServletException: Can't find Orbeon Forms context called '/ops'. Check the 'oxf.xforms.renderer.context' filter initialization parameter and the <Context crossContext="true"/> attribute.What's happend? -- Regards Javier Cerro -- 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 |
In reply to this post by javi cerro
Hi Javier, You mean you put that
in the tomcat server.xml ? Here’s what I added to mine: <Context path="/ops" docBase="ops" reloadable="true" override="true"/> <Context path="/umadmin" docBase="umadmin" crossContext="true" reloadable="true" override="true"/> (I put it in the
<Host> tag with attribute appBase=”webapps”) Hope this helps, Gerrit From: javi cerro
[mailto:[hidden email]] Hi, I have inserted the
following line in the web.xml: javax.servlet.ServletException: Can't find Orbeon Forms context called '/ops'. Check the 'oxf.xforms.renderer.context' filter initialization parameter and the <Context crossContext="true"/> attribute.
What's happend? -- 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 |
Ok, with this there is no exception, a lot of thanks but now I have another problem: orbeon said to me that there is no file when I put:
http://localhost:8080/prueba/prueba.jsp I have set the web.xml as said the manual and the server.xml as you said. What's the problem? -- Regards Javier Cerro -- 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 |
In reply to this post by Gerrit Germis-2
I am getting an error when I attempt to submit an xform. Perhaps I am misunderstanding how to handle the submission of
xforms.. Below is the skeleton of the model and the submission button code. I am able to generate the xform from my WAR file using the cross-context set up, but when I submit it i get the following error. (also attached at html) java.lang.IllegalArgumentException Error Message Path http://localhost:8080/STRUTS1XFORMS/xformsubmit.do does not start with a "/" character Call Stack Resource URL Line Column Description XML Element oxf:/config/xforms-widgets.xsl 27 N/A processing submission <xforms:submission dispatching XForms event action="xformsubmit.do" event → xxforms-submit method="post" id="s0"/> target id → s0 ----------------------------------------------------------------------------------------------------------------------- oxf:/ops/xforms/ 61 43 executing processor <p:processor xforms-server-submit.xpl name → {http://www.orbeon.com/ name="oxf:xforms-server">... oxf/processors}xforms-server </p:processor> ___________________________________________________________________________________________________________ MY MODEL AND XFORM Xforms Model with submission... <xforms:model xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="QA34"> <xforms:instance xmlns="" id="f1"> <Data> ... </Data> </xforms:instance> <xforms:submission action="xformsubmit.do" method="post" id="s0"/> </xforms:model> xforms submit button... <xforms:submit submission="s0"> <xforms:label>SubmitXform</xforms:label> </xforms:submit> Any help or a nudge in the right direction would be greatly appreciated. <script type="text/javascript"> function hideShowTBody(id) { var tbody = document.getElementById(id); for (var i = 0; tbody.rows.length > i; i++) { var row = tbody.rows[i]; if (row.style.display == 'none') row.style.display = ''; else row.style.display = 'none'; } } function hideShowSection (handlerElement) { var detailsHidden = getElementById("orbeon-error-panel-details-hidden"); var detailsShown = getElementById("orbeon-error-panel-details-shown"); if (handlerElement.className == "orbeon-error-panel-show-details") { detailsHidden.style.display = "none"; detailsShown.style.display = "block"; } else { detailsHidden.style.display = "block"; detailsShown.style.display = "none"; } } function getElementById(controlId) { var result = document.getElementById(controlId); if (result && (result.id != controlId) && document.all) { result = null; documentAll = document.all[controlId]; if (documentAll) { if (documentAll.length) { for (var i = 0; i < documentAll.length; i++) { if (documentAll[i].id == controlId) { result = documentAll[i]; break; } } } else { result = documentAll; } } } return result; } </script> Orbeon Forms - An Error has OccurredAn error has occurred in Orbeon Forms. You may want to try one of the following:
<a class="orbeon-error-panel-show-details" onclick="hideShowSection(this)">Show details <a class="orbeon-error-panel-hide-details" onclick="hideShowSection(this)">Hide details Error MessagePath http://localhost:8080/STRUTS1XFORMS/xformsubmit.do does not start with a "/" character Call Stack
Java Exceptions (7 total)Java Exceptions are the native mechanism by which Orbeon Forms reports errors. More than one exception may be provided below but usually the first exception along with the Orbeon Forms Stack Trace above provide enough information to track down an issue.
Orbeon Forms 3.6.0rc1.200711130217 -- 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 |
Administrator
|
Naveen,
You may want to try to turn off optimized submission. In RESOURCES/ config/properties.xml, try changing this property to "false": <property as="xs:boolean" name="oxf.xforms.optimize-local- submission" value="false"/> -Erik On Nov 13, 2007, at 1:20 PM, Naveen Ayyagari wrote: > I am getting an error when I attempt to submit an xform. Perhaps I > am misunderstanding how to handle the submission of xforms.. Below > is the skeleton of the model and the submission button code. I am > able to generate the xform from my WAR file using the cross-context > set up, but when I submit it i get the following error. (also > attached at html) > > > java.lang.IllegalArgumentException > Error Message > Path http://localhost:8080/STRUTS1XFORMS/xformsubmit.do does not > start with a "/" character > > Call Stack > Resource URL Line Column Description XML Element > oxf:/config/xforms-widgets.xsl 27 N/A processing submission > <xforms:submission > dispatching XForms event action="xformsubmit.do" > event → xxforms-submit method="post" id="s0"/> > target id → s0 > ----------------------------------------------------------------------------------------------------------------------- > oxf:/ops/xforms/ 61 43 executing processor <p:processor > xforms-server-submit.xpl name → {http://www.orbeon.com/ > name="oxf:xforms-server">... > oxf/processors}xforms-server </p:processor> > > ___________________________________________________________________________________________________________ > > MY MODEL AND XFORM > > Xforms Model with submission... > > <xforms:model xmlns:xsi="http://www.w3.org/2001/XMLSchema- > instance" id="QA34"> > <xforms:instance xmlns="" id="f1"> > <Data> > ... > </Data> > </xforms:instance> > <xforms:submission action="xformsubmit.do" method="post" > id="s0"/> > </xforms:model> > > xforms submit button... > > <xforms:submit submission="s0"> > <xforms:label>SubmitXform</xforms:label> > </xforms:submit> > > > Any help or a nudge in the right direction would be greatly > appreciated. > Orbeon Forms - An Error has Occurred > An error has occurred in Orbeon Forms. You may want to try one of > the following: > > • If this error occurred when you followed a link, press your > browser's Back button. > • If this didn't work, press the ctrl key (or command key on a > Mac) and click on the Reload button in the toolbar. > • Return home. > Show details > > Hide details > > Error Message > Path http://localhost:8080/STRUTS1XFORMS/xformsubmit.do does not > start with a "/" character > > Call Stack > Resource URL > Line > Column > Description > XML Element > oxf:/config/xforms-widgets.xsl > 27 > N/A > processing submission > dispatching XForms event > event → xxforms-submit > target id → s0 > <xforms:submission action="xformsubmit.do" method="post" id="s0"/> > oxf:/ops/xforms/xforms-server-submit.xpl > 61 > 43 > executing processor > name → {http://www.orbeon.com/oxf/processors}xforms-server > <p:processor name="oxf:xforms-server">...</p:processor> > Java Exceptions (7 total) > Java Exceptions are the native mechanism by which Orbeon Forms > reports errors. More than one exception may be provided below but > usually the first exception along with the Orbeon Forms Stack Trace > above provide enough information to track down an issue. > > java.lang.IllegalArgumentException > Exception Class > java.lang.IllegalArgumentException > Message > Path http://localhost:8080/STRUTS1XFORMS/xformsubmit.do does not > start with a "/" character > Servlet Stack Trace > (97 method calls) > Class Name > Method Name > File Name > Line Number > org.apache.catalina.core.ApplicationContext > getRequestDispatcher > ApplicationContext.java > 378 > org.apache.catalina.core.ApplicationContextFacade > getRequestDispatcher > ApplicationContextFacade.java > 194 > org.orbeon.oxf.servlet.ServletExternalContext > getRequestDispatcher > ServletExternalContext.java > 817 > org.orbeon.oxf.xforms.XFormsSubmissionUtils > doOptimized > XFormsSubmissionUtils.java > 92 > org.orbeon.oxf.xforms.XFormsModelSubmission > performDefaultAction > XFormsModelSubmission.java > 686 > org.orbeon.oxf.xforms.XFormsContainingDocument > dispatchEvent > XFormsContainingDocument.java > 962 > org.orbeon.oxf.xforms.XFormsContainingDocument > executeExternalEvent > XFormsContainingDocument.java > 791 > org.orbeon.oxf.xforms.processor.XFormsServer > executeExternalEventPrepareIfNecessary > XFormsServer.java > 283 > org.orbeon.oxf.xforms.processor.XFormsServer > doIt > XFormsServer.java > 223 > org.orbeon.oxf.xforms.processor.XFormsServer > start > XFormsServer.java > 84 > More... > Servlet Stack Trace > (20 method calls) > Class Name > Method Name > File Name > Line Number > javax.servlet.http.HttpServlet > service > HttpServlet.java > 810 > org.apache.catalina.core.ApplicationFilterChain > internalDoFilter > ApplicationFilterChain.java > 252 > org.apache.catalina.core.ApplicationFilterChain > doFilter > ApplicationFilterChain.java > 173 > org.jboss.web.tomcat.filters.ReplyHeaderFilter > doFilter > ReplyHeaderFilter.java > 96 > org.apache.catalina.core.ApplicationFilterChain > internalDoFilter > ApplicationFilterChain.java > 202 > org.apache.catalina.core.ApplicationFilterChain > doFilter > ApplicationFilterChain.java > 173 > org.apache.catalina.core.StandardWrapperValve > invoke > StandardWrapperValve.java > 213 > org.apache.catalina.core.StandardContextValve > invoke > StandardContextValve.java > 178 > org.jboss.web.tomcat.security.SecurityAssociationValve > invoke > SecurityAssociationValve.java > 175 > org.jboss.web.tomcat.security.JaccContextValve > invoke > JaccContextValve.java > 74 > More... > org.orbeon.oxf.xforms.XFormsModelSubmission$XFormsSubmissionException > org.orbeon.oxf.common.OXFException > org.orbeon.oxf.common.ValidationException > org.orbeon.oxf.common.OXFException > org.orbeon.oxf.common.ValidationException > org.orbeon.oxf.common.OXFException > Orbeon Forms 3.6.0rc1.200711130217 > > > -- > 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 Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- 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 |
Yes Erik,
Im also getting this error,
But I could fix this hard coding full url. That means
action="http://localhost:8080/xform-test/emp/doAction.htm"
instead of
action="/xform-test/emp/doAction.htm
I know that is not good. But I could fix the issue.
Thanks
On 11/27/07, Erik Bruchez <[hidden email]> wrote:
Naveen, -- Chaminda Amarasinghe, -- 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 |