[Mulgara-dev] Now problem with JSP & mulgara
Paul Gearon
gearon at ieee.org
Mon Nov 3 11:53:47 UTC 2008
This looks like a classpath problem. ConnectionFactory is in
querylang-2.0.6.jar, driver-2.0.6.jar and mulgara-2.0.6.jar.
Do you have one of these jars in the classpath?
Have you imported it? The full name is org.mulgara.connection.ConnectionFactory
Paul
On Mon, Nov 3, 2008 at 5:38 AM, Carlo Bernava <carlo.bernava at gmail.com> wrote:
> Hi All
>
> I'm doing a jsp that connect to mulgara...
> I'm developping jsp in Eclipse editor, and i'm usign tomcat....
>
>
> I wrote a simple example:
>
>
> <%@page import="java.net.URI" %>
> <%@page import="org.mulgara.connection.*" %>
> <%
> //define the server we want to connect to
> URI serverURI = new URI("rmi://Utentino/server1");
> //Create a factory, and connect to the server
> ConnectionFactory factory = new ConnectionFactory();
> Connection connection = factory.newConnection(serverURI);
> %>
>
>
>
> But the can't execute beacouse the error is :
>
> HTTP Status 500 -
>
> ________________________________
>
> type Exception report
>
> message
>
> description The server encountered an internal error () that prevented it
> from fulfilling this request.
>
> exception
>
> org.apache.jasper.JasperException: Unable to compile class for JSP:
>
> An error occurred at line: 10 in the jsp file: /Prova.jsp
> ConnectionFactory cannot be resolved to a type
> 7: //define the server we want to connect to
> 8: URI serverURI = new URI("rmi://Utentino/server1");
> 9: //Create a factory, and connect to the server
> 10: ConnectionFactory factory = new ConnectionFactory();
> 11: Connection connection = factory.newConnection(serverURI);
> 12: %>
>
>
> HELP PLEASE :P
>
>
>
>
>
> Carlo
>
> _______________________________________________
> Mulgara-dev mailing list
> Mulgara-dev at mulgara.org
> http://mulgara.org/mailman/listinfo/mulgara-dev
>
>
More information about the Mulgara-dev
mailing list