• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

wsStartServer - Ws60ProcessManagement (Not found in java.library.path)

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

These two days i'm working on Websphere(8.5.5.3) Ant tasks to finish some automated jobs on AIX.
Everything goes well including(wsStopServer,wsInstallApp,wsUninstallApp,etc.) but is stuck on the wsStartServer task.
I am using ant instead of the built-in script ws_ant.sh.

The snippet of build.xml as follows:

<path id="lib.path">^M
<fileset dir="${was.home}/plugins" includes="com.ibm.ws.runtime.jar"/>
</path>
<taskdef name="wsStartApp" classname="com.ibm.websphere.ant.tasks.StartApplication" classpathref="lib.path"/>
<target name="deploy.websphere" if="deploy.websphere.enabled">^M
<wsStartServer
wasHome="${was.home}"
server="${server}"
debug="${debug}"
profileName="${profile.name}"/>
<target>


And some properties in build.properties:

was.home=/export/aix02-2/IBM/Websphere
profile.name=testProfile
debug=true
server=server1


The debug info is as below:

[startServer] profileName=testProfile registry=/export/aix02-2/IBM/Websphere/properties/profileRegistry.xml
[startServer] profileHome=/export/aix02-2/IBM/Websphere/profiles/testProfile
[startServer] jvm args > /usr/java71_64/jre/bin/java
[startServer] jvm args > -Dfile.encoding=ISO8859-1
[startServer] jvm args > -Dconsole.encoding=ISO8859-1
[startServer] jvm args > -Dosgi.install.area=/export/aix02-2/IBM/Websphere/
[startServer] jvm args > -Dosgi.configuration.area=/export/aix02-2/IBM/Websphere/profiles/testProfile/configuration
[startServer] jvm args > -Dcom.ibm.SSL.ConfigURL=file:/export/aix02-2/IBM/Websphere/profiles/testProfile/properties/ssl.client.props
[startServer] jvm args > -Dcom.ibm.CORBA.ConfigURL=file:/export/aix02-2/IBM/Websphere/profiles/testProfile/properties/sas.client.props
[startServer] jvm args > -Djava.security.auth.login.config=/export/aix02-2/IBM/Websphere/profiles/testProfile/properties/wsjaas_client.conf
[startServer] jvm args > -Dcom.ibm.SOAP.ConfigURL=file:/export/aix02-2/IBM/Websphere/profiles/testProfile/properties/soap.client.props
[startServer] jvm args > -Dwebsphere.lib.dir=/export/aix02-2/IBM/Websphere/lib
[startServer] jvm args > -Djava.util.logging.manager=com.ibm.ws.bootstrap.WsLogManager
[startServer] jvm args > -Djava.util.logging.configureByServer=true
[startServer] jvm args > -Dws.ext.dirs=/usr/java71_64/lib:/export/aix02-2/IBM/Websphere//classes:/export/aix02-2/IBM/Websphere//lib:/export/aix02-2/IBM/Websphere//installedChannels:/export/aix02-2/IBM/Websphere//lib/ext:/export/aix02-2/IBM/Websphere//web/help:/export/aix02-2/IBM/Websphere//deploytool/itp/plugins/com.ibm.etools.ejbdeploy/runtime
[startServer] jvm args > -Dserver.root=/export/aix02-2/IBM/Websphere/profiles/testProfile
[startServer] jvm args > -Dwas.install.root=/export/aix02-2/IBM/Websphere
[startServer] jvm args > -Duser.install.root=/export/aix02-2/IBM/Websphere/profiles/testProfile
[startServer] jvm args > -Dwas.node.name=testNode
[startServer] jvm args > -Dwas.cell.name=testCell
[startServer] jvm args > -Dwas.repository.root=/export/aix02-2/IBM/Websphere/profiles/testProfile/config
[startServer] jvm args > -Xmx256M
[startServer] jvm args > -classpath
[startServer] jvm args > /export/aix02-2/IBM/Websphere/properties:/export/aix02-2/IBM/Websphere/lib/startup.jar:/export/aix02-2/IBM/Websphere/lib/bootstrap.jar:/export/aix02-2/IBM/Websphere/lib/lmproxy.jar:/export/aix02-2/IBM/Websphere/lib/urlprotocols.jar:/usr/java71_64/lib/tools.jar
[startServer] jvm args > com.ibm.wsspi.bootstrap.WSPreLauncher
[startServer] jvm args > -nosplash
[startServer] jvm args > -application
[startServer] jvm args > com.ibm.ws.bootstrap.WSLauncher
[startServer] jvm args > com.ibm.ws.admin.services.WsServerLauncher
[startServer] jvm args > /export/aix02-2/IBM/Websphere/profiles/testProfile/config
[startServer] jvm args > testCell
[startServer] jvm args > testNode
[startServer] jvm args > server1
[startServer] jvm args > -profileName
[startServer] jvm args > testProfile
[startServer] ADMU0116I: Tool information is being logged in file
[startServer] /export/aix02-2/IBM/Websphere/profiles/testProfile/logs/server1/startServer.log
[startServer] ADMU0128I: Starting tool with the testProfile profile
[startServer] ADMU3100I: Reading configuration for server: server1
[startServer] ADMU0111E: Program exiting with error: java.lang.UnsatisfiedLinkError:
[startServer] Ws60ProcessManagement (Not found in java.library.path)
[startServer] ADMU1211I: To obtain a full trace of the failure, use the -trace option.
[startServer] ADMU0211I: Error details may be seen in the file:
[startServer] /export/aix02-2/IBM/Websphere/profiles/testProfile/logs/server1/startServer.log
[startServer] Java Result: 255


Can anyone help me out? Thanks in advance.
 
Crespo Chan
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
More clues :

-bash-2.05b$ pwd
/export/aix02-2/IBM/Websphere/lib/native/aix
-bash-2.05b$ ls
ppc_32 ppc_64
-bash-2.05b$ cd ppc_64/
-bash-2.05b$ ls
libNativeFile.so libUnixRegistryImpl.so libibmaio.so
libSelector.so libWs60ProcessManagement.so libibmaiodbg.so
libSystemData.so libgetClasses.so libpmiJvmtiProfiler.so

So the question now is how could i set the java.library.path to the folder which holds libWs60ProcessManagement.so?
 
Crespo Chan
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The issue has been solved finally by myself.

Check the lines in script startServer.sh :

case $PLATFORM in
AIX)
EXTSHM=ON
LIBPATH="$WAS_LIBPATH":$LIBPATH
export LIBPATH EXTSHM ;;


and the lines in setupCmdLine.sh :

case $PLATFORM in

AIX)
if test "x$LIBPATH" = "x"; then
LIBPATH="$WAS_HOME"/nulldllsdir
fi

WAS_LIBPATH="$JAVA_NATIVE_LIB_DIR":"$WAS_HOME"/bin
WAS_EXT_DIRS="$WAS_EXT_DIRS"
NLSPATH=/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/en_US/%N:${NLSPATH:=}
# WAS_BOOTCLASSPATH=
;;



I've added $WAS_HOME/lib/native/aix/ppc_64 to variable $LIBPATH (also works when adding it to LD_LIBRARY_PATH).

But i still don't think it is a graceful solution because it needs to be configured at the OS level.
Is there any way to specify options/properties to set java.library.path just when starting the server? I don't find any of them in wsStartServer task.
reply
    Bookmark Topic Watch Topic
  • New Topic