db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan Scott" <deni...@gmail.com>
Subject Re: starting and connecting to server without eclipse
Date Thu, 21 Sep 2006 15:01:06 GMT
James:

Are you starting the server from the command line using the
startNetworkServer batch file before trying to connect the second
time?

The server has to be running before the network driver can connect to it.

Dan

On 21/09/06, James McNamara <3rdshiftcoder@verizon.net> wrote:
>
>
> hi-
>
> i have been going through the documentation and i still cant get connected.
>
> the first time you can see it connected. that is because i had it already
> connected using eclipse ide.
>
> the second time i had shut the connection off on eclipse and then tried to
> connect using ij at the command line in the frameworks\etc.  it refuses.
>
> i want to deploy my app but am having a tough time getting a connection
> unless i use the eclipse environment to start the server.
>
> any suggestions or help why this may be acting this way?
>
> thanks for any help,
> jim
>
> C:\db-derby-10.1.3.1-bin\frameworks\NetworkServer\bin>java
> org.apache.derby.tool
> s.ij
> ij version 10.1
> ij>  connect
> 'jdbc:derby://localhost:1527/c:/ab/derbyDB/myDB;create=false;user=u
> ser1;password=user1';
> ij> exit;
>
> C:\db-derby-10.1.3.1-bin\frameworks\NetworkServer\bin>java
> org.apache.derby.tool
> s.ij
> ij version 10.1
> ij> connect
> 'jdbc:derby://localhost:1527/c:/ab/derbyDB/myDB;create=false;user=us
> er1;password=user1';
> ERROR (no SQLState): java.net.ConnectException : Error opening socket to
> server
> localhost on port 1527 with message : Connection refused: connect
> ij>

Mime
View raw message