0

I'm trying to add the Derby included with WebLogic as a data source. I'm running WebLogic 10.3.5. I didn't see a Derby flag in the setDomainEnv.cmd, so I added the client driver to the CLASSPATH:

set CLASSPATH=%PRE_CLASSPATH%;%WEBLOGIC_CLASSPATH%;%POST_CLASSPATH%;%WLP_POST_CLASSPATH%;%WL_HOME%\common\derby\lib\derbyclient.jar

in setDomainEnv.cmd. Now when I try to activate my data source in WebLogic I get:

An error occurred during activation of changes, please see the log for
details. Message icon - Error weblogic.application.ModuleException: 
Message icon - Error java.net.ConnectException : Error connecting to
server localhost on port 1527 with message Connection refused:
connect.

What else do I need to do to get this to work?

Kevin Panko
  • 8,356
  • 19
  • 50
  • 61
user994165
  • 9,146
  • 30
  • 98
  • 165

2 Answers2

5

I believe your local derby is not up yet. To check this, issue: netstat -an | findstr 1527.

See if it returns anything. If nothing is returned, try to start the Derby Network Service manually. Go to <WLS_HOME>\common\derby\bin and click the startNetworkServer.cmd.

Double check with netstat again. If it's there, you can try to add to the datasource.

Note: this only covers manually start the Derby network service (not automatially start it upon weblogic start, which a bit tricky).

kuronue
  • 306
  • 2
  • 8
  • You're right, the instructions I was following didn't say to start the server, but that was the essential missing piece. – user994165 Oct 23 '13 at 01:51
0

Either whatever is supposed to be running on that port isn't running or there is a firewall issue.

user207421
  • 305,947
  • 44
  • 307
  • 483