Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

db derby StartNetworkServer

Tags:

database

derby

I have problem with starting derby server. My derby version: db-derby-10.11.1.1

I followed this tutorial: http://db.apache.org/derby/papers/DerbyTut/ns_intro.html

but after typing: startNetworkServer.bat there is no response: https://www.dropbox.com/s/bo1tgfj8gf2533i/derby_issue.PNG?dl=0

Could you help me? Maybe there is some problem with my localhost? I think that i install Derby correctly because after typing: java org.apache.derby.tools.sysinfo I got some result

regards

like image 463
lukast008 Avatar asked Nov 19 '14 09:11

lukast008


People also ask

How do I start a network server?

To start the Network Server, you can invoke a script, a jar file, or a class. Important: Note that you should always properly shut down the Network Server after use, because failure to do so might result in unpredictable side-effects, such as blocked ports on the server.

How do I start a WebLogic Derby server?

You could start the derby database ( on *nix systems) from command line. In the WebLogic server home the derby libraries, binaries and scripts are located under <WL_HOME>/common/derby. After the test is successful, and you've targeted the datasource to the proper servers, it is ready for use.

How do I connect to a Derby server?

If you want to connect to a Derby database which is running in server mode then you can use the following command. connect 'jdbc:derby://localhost:1527/c:\temp\db\FAQ\db;create=true'; To disconnect from the database.


2 Answers

The bug is in the localization (for me in cs localization) and the derby server does not print exceptions by default.

Workaround: Under windows in the console run the following commands:

set "DERBY_OPTS=-Duser.language=en -Dderby.drda.debug=true" 
startNetworkServer.bat

The first line adds two options for java/derby. First option to change the local language to en and the second one enables printing debug messages to the console. The second line runs the server (add path if needed).

Another workaround is adding the missing localization key DRDA_MissingNetworkJar.S to file org\apache\derby\loc\drda\messages_cs.properties inside derbynet.jar.

like image 50
DavidJezek Avatar answered Oct 16 '22 14:10

DavidJezek


I had this problem with using derby in 1.8.0_45 but changing the DERBY_HOME back to 1.8.0_31 solved it.

like image 22
Davis Avatar answered Oct 16 '22 13:10

Davis