Derby Network Server can't open a listener

General discussion on the JZOS batch launcher and toolkit
Post Reply
Nalini
Posts: 27
Joined: Thu Dec 30, 2004 7:03 pm

Derby Network Server can't open a listener

Post by Nalini »

Hello,

I am trying to bring up the Derby Network Server as a started task using the nice article you posted on your site. I am getting the following message in the SYSOUT:

"Could not listen on port 1527 on host localhost."

The started task proc is:

//DERBYNET PROC LOGLVL='',ARGS='start',
// JAVACLS='org.apache.derby.drda.NetworkServerControl'
//********************************************************************
//* THIS PROC STARTS THE DERBY NETWORK SERVER
//********************************************************************
//IEFPROC EXEC PGM=JZOSVM13,REGION=0M,
// PARM='&JAVACLS &LOGLVL &ARGS '
//STEPLIB DD DSN=INSIDE1.JZOS.LOADLIB,DISP=SHR
//STDENV DD DSN=INSIDE1.ITS.CNTL(CLOUDZ),DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//STDOUT DD SYSOUT=*
//STDERR DD SYSOUT=*
//CEEDUMP DD SYSOUT=*
//ABNLIGNR DD DUMMY


The STDINV is:

export JZOS_HOME=/u/inside1/jzos
export JAVA_HOME=/usr/lpp/java/IBM/J1.3
export DERBY_HOME=/u/inside1/dj

export PATH="$PATH":"${JAVA_HOME}"/bin:

LIBPATH="$LIBPATH":"${JAVA_HOME}"/bin
LIBPATH="$LIBPATH":"${JAVA_HOME}"/bin/classic
LIBPATH="$LIBPATH":"${JZOS_HOME}"
export LIBPATH="$LIBPATH":

CLASSPATH="${DERBY_HOME}/derby.jar"
CLASSPATH="$CLASSPATH":"${JZOS_HOME}/jzos.jar"
CLASSPATH="$CLASSPATH":"${DERBY_HOME}/dn"
CLASSPATH="$CLASSPATH":"${DERBY_HOME}/db2cc.jar"
CLASSPATH="$CLASSPATH":"${DERBY_HOME}/db2cc_license_c.jar"
export CLASSPATH="$CLASSPATH":


IJO="-Xms128m -Xmx512m"
IJO="$IJO -Djzos.home=${JZOS_HOME}"
IJO="$IJO -Dfile.encoding=ISO8859-1"
IJO="$IJO -verbose:gc"
IJO="$IJO -Dderby.system.home=/u/inside1"
export IBM_JAVA_OPTIONS="$IJO "

export JAVA_DUMP_HEAP=false
export JAVA_PROPAGATE=NO
export IBM_JAVA_ZOS_TDUMP=NO
//

Could this be a RACF problem?

Thanks for your help,
Nalini Elkins
Inside Products, Inc.
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

You are probably right, about it being a SAF / RACF problem. Check for messages in the system log to see if you are getting security violations (might not show up there, depending on your configuration)

Here's a good reference on configuring security for z/OS TCP/IP:

http://www.redbooks.ibm.com/redbooks/pdfs/sg246840.pdf

(Refer to chapter 4.3 "Port access control" )
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

Nalini -

Were you able to find a resolution to your problem?

Also, I wanted just to mention that I really enjoyed your article in the latest Z/Journal on TCP/IP stack tuning... I didn't see it available online, if it is could you reply with a link to it? Some others in this forum may be interested; its a very nice article.

Regards,
Kirk
Nalini
Posts: 27
Joined: Thu Dec 30, 2004 7:03 pm

Post by Nalini »

Kirk,

Sorry, I just saw this posting. Yes, I did find the problem. It turns out that you need to code a parameter for the Derby task which is: -h 0.0.0.0 to get it to listen to the right address.

Now, I am trying to find how to get it to use less cpu & to do garbage collection automatically... Never ending tuning issues!

Thanks for the kind note about my article in zJournal. Here is a link to our web site where you can see some of my recent articles & an online version, where avaialble. http://www.inside-products.com/articles.html Not all the magazines have digital versions, but zJournal has a nice one.

I also came to your BOF at SHARE to meet in person, but it got too late on Thursday night & I was tired. Maybe next SHARE.

Thanks,
Nalini
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

Nalini -

You might have to tell it where to listen if you have more than one "stack" on your LPAR / system. "0.0.0.0" is a special address that says to listen "any" stack I think.

Regards,
Kirk
Post Reply