Administrator
|
Garima,
Well this just means that dummy.jsp returns an error code 500, probably because your JSP page fails. You just have to figure out why. -Erik [hidden email] wrote: > Hi, > This is in continuation to my previous post "stacktrace for error msg:An empty sequence is not allowed as the value of variable $example".I have now placed my jsp inside webapps/jsp-examples/cal folder of external tomcat server.The 'action' attribute defined in view.xhtml, i have given like: > action="http://localhost:8080/jsp-examples/cal/dummy.jsp" > > When i click on submit button( to submit the instance on dummy.jsp), this time, the error msg "An empty sequence is not allowed as the value of variable $example" is not shown.Instead,i get an error msg stating "Error code received when submitting instance: 500" .I receieve the OPS error page stating errors for: > dispatch.xpl > and xforms-server-submit.xpl > at the following code segments . > > code segment from dispatch.xpl: > <p:processor name="oxf:pipeline"> > <p:input name="config" href="oxf:/ops/xforms/xforms-server-submit.xpl"/> > </p:processor> > > > code segment from xforms-server-submit.xpl > <p:processor name="oxf:xforms-server"> > <p:input name="request" href="#xml-request" schema-href="xforms-server-request.rng"/> > </p:processor> > Kindly suggest.. > Regards, > Garima Singh Orbeon - XForms Everywhere: http://www.orbeon.com/blog/ -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Eric ,
Thanks a lot for the quick response !! Here is the code for dummy.jsp which i have deployed on external tomcat server.In dummy.jsp, i only intend to display the submitted xml instance in proper xml format.The error msg is same as before: org.orbeon.oxf.common.OXFException: Error code received when submitting instance: 500.In the tomcat server console, i could see the following errors: 1.package org.orbeon.oxf.util does not exist 2.package org.apache.commoms.lang does not exist dummy.jsp: <%@page import="org.dom4j.io.SAXReader" %> <%@page import="org.dom4j.Document"%> <%@page import="java.io.*"%> <html><head><title>Result from POST page</title></head><body> <p> This is the content of the request input, converted to string with UTF-8: </p> <pre style="background: lightgrey; padding: 1em; border: 1px solid black; overflow: scroll"> <% ByteArrayOutputStream xOutputStream = new ByteArrayOutputStream(); org.orbeon.oxf.util.NetUtils.copyStream(request.getInputStream(), xOutputStream); out.println(org.apache.commons.lang.StringUtils.replace(xOutputStream.toString("UTF-8"), "<", "<")); %> </pre> </body></html> Kindly suggest.. Thanks in advance!! Regards, Garima Singh -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Eric ,
Thanks again for the correct solution !! The error code 500 was indeed because jsp page was failing.I modified my jsp, and deployed the same on external tomact server in webapps/jsp-examples folder.Now, I am able to see the submitted xml instance on tomcat server console ,using system.out.println in my jsp. It seems to be a valid xml, but when i try to see the same on jsp page using out.println, i get the ops error page stating : The processing instruction target matching "[xX][mM][lL]" is not allowed. I guess, its because of some blank lines before the prolog , but , i am not getting ways to rectify it. Kindly suggest.. Thanks in advance !! Regards, Garima -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Garima,
I already mentioned that a working version of the JSP file that does exactly what you wan to do is attached to this bug: http://forge.objectweb.org/tracker/index.php?func=detail&aid=305794&group_id=168&atid=350207 Download the first dummy.jsp and see how it is done. -Erik [hidden email] wrote: > Eric , > Thanks again for the correct solution !! The error code 500 was indeed because jsp page was failing.I modified my jsp, and deployed the same on external tomact server in webapps/jsp-examples folder.Now, I am able to see the submitted xml instance on tomcat server console ,using system.out.println in my jsp. It seems to be a valid xml, but when i try to see the same on jsp page using out.println, i get the ops error page stating : > The processing instruction target matching "[xX][mM][lL]" is not allowed. > I guess, its because of some blank lines before the prolog , but , i am not getting ways to rectify it. > > Kindly suggest.. > Thanks in advance !! > Regards, > Garima -- Orbeon - XForms Everywhere: http://www.orbeon.com/blog/ -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Eric ,
my sincere apologies for repeating my question.I downloaded the same dummy.jsp from the link you provided, http://forge.objectweb.org/tracker/index.php?func=detail&aid=305794&group_id=168&atid=350207 and deployed the same on external tomcat server.I placed the jsp inside webapps/jsp-examples folder Using this jsp, the error msg is same as before: org.orbeon.oxf.common.OXFException: Error code received when submitting instance: 500. On tomcat server console, i can see the following msgs. 1.package org.orbeon.oxf.util does not exist 2.package org.apache.commoms.lang does not exist Kindly suggest.. Thanks in advance !! Regards, Garima Singh -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
In reply to this post by Erik Bruchez
Eric ,
my sincere apologies for repeating my question.I downloaded the same dummy.jsp from the link you provided, http://forge.objectweb.org/tracker/index.php?func=detail&aid=305794&group_id=168&atid=350207 and deployed the same on external tomcat server.I placed the jsp inside webapps/jsp-examples folder Using this jsp, the error msg is same as before: org.orbeon.oxf.common.OXFException: Error code received when submitting instance: 500. On tomcat server console, i can see the following msgs. 1.package org.orbeon.oxf.util does not exist 2.package org.apache.commoms.lang does not exist Kindly suggest.. Thanks in advance !! Regards, Garima Singh -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
In reply to this post by garima.singh
Garima,
I guess this means that you need at least ops.jar and commons-lang-*.jar in the webapp containing the JSP. -Erik [hidden email] wrote: > Eric , > my sincere apologies for repeating my question.I downloaded the same dummy.jsp from the link you provided, > http://forge.objectweb.org/tracker/index.php?func=detail&aid=305794&group_id=168&atid=350207 > > and deployed the same on external tomcat server.I placed the jsp inside webapps/jsp-examples folder > Using this jsp, the error msg is same as before: > org.orbeon.oxf.common.OXFException: Error code received when submitting > instance: 500. > On tomcat server console, i can see the following msgs. > 1.package org.orbeon.oxf.util does not exist > 2.package org.apache.commoms.lang does not exist > > Kindly suggest.. > Thanks in advance !! > Regards, > Garima Singh Orbeon - XForms Everywhere: http://www.orbeon.com/blog/ -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Thanks Eric, for the response !!
i placed the appropriate jars in webapps folder and the 'package does not exist' problem got solved.I am using the dummy.jsp provided at link: http://forge.objectweb.org/tracker/index.php?func=detail&aid=305794&group_id=168&atid=350207 However,the jsp page is still failing, and i am still getting an error msg: Error code received when submitting instance: 500 i placed system.outs in the jsp page and i dont see any system.outs in tomcat console after "SOP2".I mean to say, that i can't see "SOP3" on tomacat server console and only "SOP1" and "SOP2" are displayed. dummy.jsp: <%@page import="org.dom4j.io.SAXReader" %> <%@page import="org.dom4j.Document"%> <%@page import="java.io.*"%> <html><head><title>Result from POST page</title></head><body> <p> This is the content of the request input, converted to string with UTF-8: </p> <pre style="background: lightgrey; padding: 1em; border: 1px solid black; overflow: scroll"> <% System.out.println("SOP1"); ByteArrayOutputStream xOutputStream = new ByteArrayOutputStream(); System.out.println("SOP2"); org.orbeon.oxf.util.NetUtils.copyStream(request.getInputStream(), xOutputStream); System.out.println("SOP3"); System.out.println(org.apache.commons.lang.StringUtils.replace(xOutputStream.toString("UTF-8"), "<", "<")); %> </pre> </body></html> Kindly suggest the probable cause ?? The problem is that, i am not able to identify the cause for it, as no error msg as such , is displayed on tomcat server console,where i had deployed this jsp. Thanks in advance!! Regards, Garima Singh -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Free forum by Nabble | Edit this page |