Hello,
I find a nice login application http://demo.exist-db.org/exist/xquery/login.xql and want run it from my Orbeon project. If I trying to run login.xql file - I get an error: "Fatal error: Content is not allowed in prolog" at oxf:/apps/forms/login.xql 1 line. So, what the problem? Maybe Orbeon or server not supported .xql files? Or maybe someone know other good login examples? |
Administrator
|
How to you try to run it?
That is an XQuery file, so it must be run by an XQuery interpreter, like eXist, or Saxon XQuery. The error you are seeing seems to tell you that that file is being parsed by an XML parser instead. -Erik On May 11, 2009, at 12:14 AM, gunmanas wrote: > > Hello, > > I find a nice login application > http://demo.exist-db.org/exist/xquery/login.xql > and want run it from my Orbeon project. > If I trying to run login.xql file - I get an error: "Fatal error: > Content is > not allowed in prolog" at oxf:/apps/forms/login.xql 1 line. > > So, what the problem? Maybe Orbeon or server not supported .xql files? > Or maybe someone know other good login examples? > > > -- > View this message in context: http://www.nabble.com/xql-files-in-Orbeon-tp23478228p23478228.html > Sent from the ObjectWeb OPS - Users mailing list archive at > Nabble.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 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 |
I moved xql files to the Orbeon project and modify page-flow.xml file. In Orbeon project there are some eXist library, so I hope that I do not need additional library... |
Administrator
|
Did you configure your web.xml in such a way that the paths that need to hit eXist (e.g. /exist/xquery/login.xql) go to the eXist servlet instead of the Orbeon Forms servlet? Another option is to deploy eXist as a separate web app, so you don't have to worry about changing the web.xml (which would be my personal preference). Alex |
In web.xml I add code: <servlet> <servlet-name>org.exist.http.servlets.XQueryServlet</servlet-name> <servlet-class>org.exist.http.servlets.XQueryServlet</servlet-class> <init-param> <param-name>uri</param-name> <param-value>xmldb:exist:///db</param-value> </init-param> </servlet> <servlet-mapping> <servlet-name>org.exist.http.servlets.XQueryServlet</servlet-name> <url-pattern>*.xql</url-pattern> </servlet-mapping> But I still cant load xql files... |
Administrator
|
That looks right. And what is your <servlet-mapping> for the Orbeon Forms servlet? Are you sure that the one above is kicking in when you access a URL with *.xql? Alex |
Free forum by Nabble | Edit this page |