Re: xql files in Orbeon

Posted by gunmanas on
URL: https://discuss.orbeon.com/xql-files-in-Orbeon-tp43206p43210.html

Alessandro Vernet wrote
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...