Urgent: Jsp page with orbeon (even demo jsp example) dose not work with a error 'Fatal error: Content is not allowed in prolog.'

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Urgent: Jsp page with orbeon (even demo jsp example) dose not work with a error 'Fatal error: Content is not allowed in prolog.'

aminul
This post was updated on .
Hi all
i want to use jsp page in orbeon forms, but orbeon demo jsp pages with Orbeon3.9.0PE RC1 does not work with a error message Fatal error: Content is not allowed in prolog. i've add the log file. I'm stuck with this problem. Please help someone. Thank you
Reply | Threaded
Open this post in threaded view
|

Re: Urgent: Jsp page with orbeon (even demo jsp example) dose not work with a error 'Fatal error: Content is not allowed in prolog.'

Alessandro  Vernet
Administrator
Hi Aminul,

I answered to this on Stack Overflow (http://stackoverflow.com/questions/5712051), and I suggest that in the future you don't post both on Stack Overflow and this mailing list. Pick the one that seems the most appropriate to you, and just post there. It wouldn't be convenient to have a discussion about a given issue in two places, and might be confusing to people who find this through a search if they find somewhere a pending question and no follow up.

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Urgent: Jsp page with orbeon (even demo jsp example) dose not work with a error 'Fatal error: Content is not allowed in prolog.'

aminul
This post was updated on .
Hi Alessadro Vernet

Thanks for your response. Here is my configuration and version. All jsp page including demo jsp page shows the same error.

 
liferay-portal-6.0.5
tomcat-6.0.26
Orbeon Forms 3.9.0.rc1.201103220239 PE

I noticed that on your site (http://orbeon.com/orbeon/home/) Orbeon forms version is
 Orbeon Forms 3.9.0.rc1.201103231915 PE
where JsP demo are running well

Url:
http://localhost:8080/orbeon/xforms-jsp/flickr-search/
http://localhost:8080/orbeon/xforms-jsp/guess-the-number/

error & Exceptionorbeon.log:
 'Fatal error: Content is not allowed in prolog

Exception at line 1, column 1 of file:///F:/liferay-portal-6.0.5/tomcat-6.0.26/bin/
org.orbeon.oxf.common.ValidationException: line 1, column 1 of file:///F:/liferay-portal-6.0.5/tomcat-6.0.26/bin/: Fatal error: Content is not allowed in prolog.
file:///F:/liferay-portal-6.0.5/tomcat-6.0.26/bin/, line 1, column 1: Fatal error: Content is not allowed in prolog.
        at org.orbeon.oxf.xml.XMLUtils$ErrorHandler.fatalError(XMLUtils.java:330)
        at orbeon.apache.xerces.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:178)
Reply | Threaded
Open this post in threaded view
|

Re: Urgent: Jsp page with orbeon (even demo jsp example) dose not work with a error 'Fatal error: Content is not allowed in prolog.'

Alessandro  Vernet
Administrator
HiĀ Aminul,

Is it working for you if you just deploy Orbeon Forms a plain Tomcat (not through Liferay)? Or do you want to use the separate deployment in a portlet?

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Urgent: Jsp page with orbeon (even demo jsp example) dose not work with a error 'Fatal error: Content is not allowed in prolog.'

aminul
Hi Alex

Yes... JSP demo examples working nice on plain Tomcat. Then, what i can do to run JSP with LifeRay.?
Reply | Threaded
Open this post in threaded view
|

Re: Urgent: Jsp page with orbeon (even demo jsp example) dose not work with a error 'Fatal error: Content is not allowed in prolog.'

Alessandro  Vernet
Administrator
Hi Aminul,

Thank you for checking this. Based on the URL you mentioned (http://localhost:8080/orbeon/xforms-jsp/flickr-search/), you are not running a portlet but a servlet. But then why are you using Liferay and not just Tomcat? Am I missing something?

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet