Operating System - HP-UX
1821244 Members
2763 Online
109632 Solutions
New Discussion юеВ

java_wrapper - no such file or directory

 

java_wrapper - no such file or directory

Hello All,

My collegue was in the process of installing commandview SDM on an rp8400. After the installation the armdiscover produces the following error:
/opt/java1.4/bin/PA_RISC2.0>armdiscover
Cannot exec - /opt/sanmgr/jre/bin/PA_RISC2.0/PA_RISC2.0/.java_wrapper
execvp(): No such file or directory
/opt/java1.4/bin/PA_RISC2.0


the directory does exist but the file dosent.

Any ideas?

Thanks in advance.
13 REPLIES 13
T G Manikandan
Honored Contributor

Re: java_wrapper - no such file or directory

let us know your OS version and CommandView SDM software version
V. Nyga
Honored Contributor

Re: java_wrapper - no such file or directory

Hi,

you should check with 'ldd armdiscover'
and 'chatr armdiscover' which libraries are claimed.

Then check if the directories/files are there.

And search in /opt/java1.4/bin with find for '.java_wrapper'.

HTH
Volkmar
*** Say 'Thanks' with Kudos ***

Re: java_wrapper - no such file or directory

Sorry for the delay guys and thanks for the responce.
UX Ver: 11.11
Java ver 1.4
CMDVIEW SDM ver: 1.08.01

The java_wrapper file is present in the /opt/java1.4/bin directory
V. Nyga
Honored Contributor

Re: java_wrapper - no such file or directory

Hi again,

if the .java_wrapper is in /opt/java1.4/bin ,then I believe 'armdiscover' is searching in the wrong directory.

One simple solution is to make a link there where 'armdiscover' is looking for the binary.

The other solution is to pass the right pathes in SHLIB_PATH or PATH to the application.

As I told you use 'ldd' and 'chatr' to find out where 'armdiscover' is looking for it's libraries/binaries.

HTH
Volkmar
*** Say 'Thanks' with Kudos ***

Re: java_wrapper - no such file or directory

Hello Volmar,

I get the following when trying the suggestions:
/opt/sanmgr/jre # ldd armdiscover
ldd: cannot open "armdiscover".
ldd: No such file or directory

/opt/sanmgr/jre # chatr armdiscover
chatr(error): cannot open file armdiscover
/opt/sanmgr/jre #
V. Nyga
Honored Contributor

Re: java_wrapper - no such file or directory

Hi,

are you sure that armdiscover is in /opt/sanmgr/jre?

V.
*** Say 'Thanks' with Kudos ***
V. Nyga
Honored Contributor

Re: java_wrapper - no such file or directory

Sorry for my short answer,
just to explain:

you have to do 'ldd' and 'chatr' in the directory where the file armdiscover is ...

V.
*** Say 'Thanks' with Kudos ***

Re: java_wrapper - no such file or directory

Apologies V,

/opt/sanmgr/commandview/client/sbin # ldd armdiscover
ldd: Invalid file type: "armdiscover". Shared executable or shared libray expect
ed.
/opt/sanmgr/commandview/client/sbin # chatr armdiscover
chatr(error): chatr cannot recognize file type of file armdiscover

Above is the output.
V. Nyga
Honored Contributor

Re: java_wrapper - no such file or directory

Hmm - seems like armdiscover is a shell-script - can you recognize executable files inside armdiscover?

V
*** Say 'Thanks' with Kudos ***

Re: java_wrapper - no such file or directory

Hello again,

I have attached the output of the 'armdiscover script' probably means more to you than me.

# Script used to run the Device Discovery application
#

ScriptPath=$(dirname $0)

# Set up the common environment variables
. ${ScriptPath}/PanScriptCommon.sh

# Set up the class path
CLASSPATHA=${ClCls}disc.jar
CLASSPATHA=${CLASSPATHA}:${ClCls}DeviceDB.jar
CLASSPATHA=${CLASSPATHA}:${ClCls}DOFactory.jar
CLASSPATHA=${CLASSPATHA}:${ClCls}jcore.jar
CLASSPATHA=${CLASSPATHA}:${ClCls}panutils.jar
CLASSPATHA=${CLASSPATHA}:${ClCls}sandevice.jar
CLASSPATHA=${CLASSPATHA}:${ClCls}clui.jar
CLASSPATHA=${CLASSPATHA}:${ClCls}CVSDMLicensing.jar
CLASSPATHA=${CLASSPATHA}:${INSTDIR}/../cssi/Licensing/classes/Licensing.jar
CLASSPATHA=${CLASSPATHA}:${INSTDIR}/../security/lib/cssisec.jar

# Set the main class and associated required options
# The option passes in the directory containing the
# Device property files.
CLASSMAIN=com.hp.Array2001Mgr.clui.armdiscover

# Execute Java
${JREEXE} -classpath ${CLASSPATHA} ${CLASSMAIN} ${OPT} "$@"
ExitVal=$?

exit ${ExitVal}


Hope that this helps somewhat.

Kind regards
Shokhat
V. Nyga
Honored Contributor

Re: java_wrapper - no such file or directory

No, sorry

${JREEXE} seems to be the file, but where is it set?
You start it with 'armdiscover' in '/opt/java1.4/bin/PA_RISC2.0' ?

Can you give me an 'ls -la' from this directory 'opt/sanmgr/commandview/client/sbin' ?

Or does anybody else know this application?

Volkmar
*** Say 'Thanks' with Kudos ***

Re: java_wrapper - no such file or directory

Hello V,

I did a complete swremove of commandviewsdm, including HPOVSAMJR, HPOVSAMHA,HPOVSAMDA, HPOVSAMHB, HPOVSAMSG, HPOVLIC, SSLIC, SMI-S_VA
and also did "rm -r /opt/sanmgr/jre"

Reinstalled COMMANVIEWSDM and it seems to have fixed the problem, however now I am getting the following:
# armdiscover -v
This could take several minutes ...

Remote discovery failed with status: Error connecting to HostDiscovery.

I have not spent much time investigating this, and ideas?

Thanks for all the assistance thus far.
V. Nyga
Honored Contributor

Re: java_wrapper - no such file or directory

Hi again,

sorry don't know this application.
Are there man pages installed?
'man armdiscover' or any hints about option '-v'?

Maybe you should start a new thread with the subject 'COMMANVIEWSDM' itself? So anybody who knows this app will look in.

Volkmar
*** Say 'Thanks' with Kudos ***