db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryuichi Nishimura <nishi.ryui...@gmail.com>
Subject I failed to connect client and server Derby.
Date Tue, 12 Mar 2013 15:35:44 GMT
I am a beginner.
http://db.apache.org/derby/docs/10.9/getstart/index.html
I tried to run the Tutorial of the above URL.
Client server connection method fails.
However, there is no problem connecting with the Derby embedded driver.
Whatever the cause, try to resolve the problem? What can I do?
Of my PC, the operating environment is as follows.
--------------------------------------------------------------------------------
C:\Users\pocky\derby\db-derby-10.9.1.0-bin\DERBYTUTOR>java
org.apache.derby.tools.sysinfo
------------------ Java Information ------------------
Java Version:    1.7.0_13
Java Vendor:     Oracle Corporation
Java home:       C:\java\jre\jre7
Java classpath:
 C:\Users\pocky\derby\db-derby-10.9.1.0-bin\lib\derbynet.jar;C:\Users\pocky\derby\db-derby-10.9.1.0-bin\lib\derbytools.jar;C:\Users\po
cky\derby\db-derby-10.9.1.0-bin\lib\derbyclient.jar;C:\Users\pocky\derby\db-derby-10.9.1.0-bin\lib\derbytools.jar;C:\Users\pocky\derby\db-derby-10.9.1
.0-bin\lib\derbynet.jar;C:\Users\pocky\derby\db-derby-10.9.1.0-bin\lib\derbytools.jar;C:\Users\pocky\derby\db-derby-10.9.1.0-bin\lib\derby.jar;C:\User
s\pocky\derby\db-derby-10.9.1.0-bin\lib\derbytools.jar;.;C:\Program Files
(x86)\Java\jre7\lib\ext\QTJava.zip;C:\java\jdk\jdk1.7.0_13\jre\lib\ext\mysql
-connector-java-5.1.23-bin.jar
OS name:         Windows 7
OS architecture: amd64
OS version:      6.1
Java user name:  pocky
Java user home:  C:\Users\pocky
Java user dir:   C:\Users\pocky\derby\db-derby-10.9.1.0-bin\DERBYTUTOR
java.specification.name: Java Platform API Specification
java.specification.version: 1.7
java.runtime.version: 1.7.0_13-b20
--------- Derby Information --------
JRE - JDBC: Java SE 7 - JDBC 4.0
[C:\java\jre\jre7\lib\ext\derby.jar] 10.8.2.2 - (1181258)
[C:\java\jre\jre7\lib\ext\derbyclient.jar] 10.8.2.2 - (1181258)
[C:\Users\pocky\derby\db-derby-10.9.1.0-bin\lib\derbynet.jar] 10.9.1.0 -
(1344872)
[C:\Users\pocky\derby\db-derby-10.9.1.0-bin\lib\derbytools.jar] 10.9.1.0 -
(1344872)
[C:\Users\pocky\derby\db-derby-10.9.1.0-bin\lib\derbyclient.jar] 10.9.1.0 -
(1344872)
[C:\Users\pocky\derby\db-derby-10.9.1.0-bin\lib\derby.jar] 10.9.1.0 -
(1344872)
------------------------------------------------------
----------------- Locale Information -----------------
Current Locale :  [日本語/日本 [ja_JP]]
Found support for locale: [cs]
         version: 10.9.1.0 - (1344872)
Found support for locale: [de_DE]
         version: 10.9.1.0 - (1344872)
Found support for locale: [es]
         version: 10.9.1.0 - (1344872)
Found support for locale: [fr]
         version: 10.9.1.0 - (1344872)
Found support for locale: [hu]
         version: 10.9.1.0 - (1344872)
Found support for locale: [it]
         version: 10.9.1.0 - (1344872)
Found support for locale: [ja_JP]
         version: 10.9.1.0 - (1344872)
Found support for locale: [ko_KR]
         version: 10.9.1.0 - (1344872)
Found support for locale: [pl]
         version: 10.9.1.0 - (1344872)
Found support for locale: [pt_BR]
         version: 10.9.1.0 - (1344872)
Found support for locale: [ru]
         version: 10.9.1.0 - (1344872)
Found support for locale: [zh_CN]
         version: 10.9.1.0 - (1344872)
Found support for locale: [zh_TW]
         version: 10.9.1.0 - (1344872)
------------------------------------------------------
C:\Users\pocky\derby\db-derby-10.9.1.0-bin\DERBYTUTOR>java -jar
%DERBY_HOME%\lib\derbyrun.jar server start

C:\Users\pocky\derby\db-derby-10.9.1.0-bin\DERBYTUTOR>
C:\Users\pocky\derby\db-derby-10.9.1.0-bin\DERBYTUTOR>java -jar
%DERBY_HOME%\lib\derbyrun.jar ij
ij version 10.9
ij> CONNECT 'jdbc:derby://localhost:1527/seconddb;create=true';
ERROR 08001: java.net.ConnectException: ポート 1527 のサーバー localhost
への接続中にメッセージ Connection refused: connect でエラーになりました。
ij> java -jar %DERBY_HOME%\lib\derbyrun.jar server start
> ;
IJ ERROR: Unable to establish connection
ij> exit;
------------------------------------------------------

Mime
View raw message