Did you mention the servletcontext in the Query?

This is how the URI will be

http://server:port/applicationcontext/serveletcontext

http://localhost:8080/marklogicsql/*mlsql *


<servlet>
        <servlet-name>*mlsql*</servlet-name>
        <servlet-class>com.xqdev.sql.MLSQL</servlet-class>
        <init-param>
            <param-name>driver</param-name>
            <param-value>oracle.jdbc.driver.OracleDriver</param-value>
            <description>The JDBC driver class to use</description>
        </init-param>....


xquery version "1.0-ml";

import module namespace sql="http://xqdev.com/sql"; at
"/MarkLogic/mlsql/sql.xqy";

sql:execute("select * from some table","http://localhost:8080/marklogicsql*
/mlsql*", () )





On Tue, May 22, 2012 at 4:19 PM, Dileshni Jayasinghe <
[email protected]> wrote:

> Hi folks,
>
> We're trying to get MLSQL up and running following the steps outlined in
> the tutorial, and have run in to an issue.
>
> At step #6, running the basic query, we are getting the error below:
> <sql:reason>Invalid http response code: 302</sql:reason>
>
> The mySQL database is running on a separate server. Could this be the
> cause of the error?
>
> If it helps, it's running on apache-tomcat-6.0.29.
>
> Any help is appreciated!
>
> Thanks,
>
> --
> Dileshni Jayasinghe
>
> _______________________________________________
> General mailing list
> [email protected]
> http://community.marklogic.com/mailman/listinfo/general
>
>


-- 
Thanks & Regards
SujithMaram
_______________________________________________
General mailing list
[email protected]
http://community.marklogic.com/mailman/listinfo/general

Reply via email to