You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Peter O <po...@onebox.com> on 2002/08/09 19:06:59 UTC

Servlet to JDBC connection

What's wrong with this string? I can't get this string to connect to
the database, I'm trying to connect on a RH 7.2 system.

  protected String dbURL =
"jdbc:interbase://66.18.29.95:8089/opt/jakarta-tomcat-4.0.4/webapps/ROOT/database/MAIN.GDB";

The servlet dir is working, there's no error message.

-Paul

 

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Servlet to JDBC connection

Posted by Mike Jackson <mj...@cdi-hq.com>.
I don't know for sure, but in my experience the jdbc urls typically 
don't have the path on the disk referenced.  Rather they usually
have the database name listed, or no name (ie default database).  
So I'd check your docs for interbase and make sure that your url
following the slash after the port is correct.

Also, if your database is running on the same machine as the web
server then consider using the loopback address instead of the the
"real" ip address of the server.  Sometimes that'll be more efficient.

--mikej
-=-----
mike jackson
mjackson@cdi-hq.com 

> -----Original Message-----
> From: Peter O [mailto:por@onebox.com]
> Sent: Friday, August 09, 2002 10:07 AM
> To: Tomcat Users List
> Subject: Servlet to JDBC connection
> 
> 
> What's wrong with this string? I can't get this string to connect to
> the database, I'm trying to connect on a RH 7.2 system.
> 
>   protected String dbURL =
> "jdbc:interbase://66.18.29.95:8089/opt/jakarta-tomcat-4.0.4/webapp
> s/ROOT/database/MAIN.GDB";
> 
> The servlet dir is working, there's no error message.
> 
> -Paul
> 
>  
> 
> --
> To unsubscribe, e-mail:   
> <ma...@jakarta.apache.org>
> For additional commands, e-mail: 
> <ma...@jakarta.apache.org>
> 


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>