Not sure whether this question belongs to this newsgroup. I am trying to
use the TPTP Profiler on our linux server. When I run "./RAStart.sh" it
always tells me that "RAServer is already running". When I try
"./RAServer.sh -v" it gives me error msg, "./RAServer: error while loading
shared libraries: libxerces-c.so.24: cannot open shared object file: No
such file or directory".

Not sure what's going on, if someone could guide me here it would be of
great help.

You sure you followed the "Getting started with Agent Controller - Linux
on ..." carefully? That second message looks like what happens when you
don't set your LD_LIBRARY_PATH so that it can find the libxerces-c.so file.
--
RDS

vivek wrote:
> Hi,
>
> Not sure whether this question belongs to this newsgroup. I am trying to
> use the TPTP Profiler on our linux server. When I run "./RAStart.sh" it
> always tells me that "RAServer is already running". When I try
> "./RAServer.sh -v" it gives me error msg, "./RAServer: error while
> loading shared libraries: libxerces-c.so.24: cannot open shared object
> file: No such file or directory".
>
> Not sure what's going on, if someone could guide me here it would be of
> great help.
>
> This is for TPTP 4.01 version.
>
> Thanks,
> -vivek
>

Look in your <unzip directory>/lib (presumably
/var/tptp/Linux_AgentController/lib mentioned below) and see if there is
any libxerces-c.so there... and if not, check over in <unzip
directory>/bin ... if it is there, that needs to be on the
LD_LIBRARY_PATH also.

The reason I sound so uncertain is (1) I work with the AC ("technology
preview" for 4.0), not so much with the RAC, and (2) when I do use the
RAC, it's usually on Windows. For the AC, we put the dll/lib.so in /bin,
not /lib.

I'm not responding to the "already running" part because (1) I don't
have a clue (see last paragraph), and (2) I half expect fixing this will
fix that.

Hmmm, I seem to always (1) number things, and (2) ... uh... I guess
there is no (2)! :-)

Let me know if that helps. I'm doing some stress testing this weekend,
and strangely enough I'll probably be hitting the RAC stuff as a
baseline, so if that doesn't do it, I'll look further into it for you.
--
RDS

vivek wrote:
> Yes, I did following the "Getting started with Agent Controller ..."
> My LD_LIBRARY_PATH is :
>
> LD_LIBRARY_PATH=/opt/ps_manager/tools-java/jre/lib/i386/serv er:/var/tptp/Linux_AgentController/lib
>
>
>
> I don't see the RAServer process running (ps -eaf|grep RAServer). There
> is no log also in the servicelog.log, it's empty.
>
> any more ideas ?
> thanks.
>

Okay, again I feel a little like I'm describing how to do things in one
universe to someone living in another universe...but I guess that's just
how it is until 4.2 when the new (technology preview now) AC replaces
the RAC.

When I have this problem on the AC, it is due to problems with my
serviceconfig.xml file in the config directory. Now the RAC's version is
built for you with the setConfig.bat program (I think it is) that I
thought I recalled you stating you'd run... but now I don't see any
indication of that in your prior messages.

You did do the setConfig.bat, right?

Oh, one other problem I've occasionally run into (and this time I think
it *was* on the RAC version) was that I was expected to run these
startup things *in* the bin directory. It's not enough to just have bin
on your path.

I hope this helps, and I hope I'm not leading you too far afield... I
just know that feeling when you're so close, but just can't quite get
there...
--
RDS

vivek wrote:
> actually now I am able to run "RAServer -v", it shows me "4.0.0.0".
> Earlier I didn't have the LD_LIBRARY_PATH set propertly. But when I run
> "./RAStart.sh" it still gives me the following:
>
> "Starting Agent Controller
> RAServer is already running"
>
> when I do "ps -ef|grep RAServer" I don't get anything. I tried
> "./RAStop.sh", but that doesn't helps. I rebooted the box and still the
> same.
>
> When I try to attach to the application remotely (using Eclipse 3.1), I get
> "Connection failed on host xxxx
> Reason:
> IWAT0284E The agent controller is not available on host xxx
> "
>
> Not sure what can I do about this.
>

This is a multipart message in MIME format.
--=_alternative 004CE013852570A8_=
Content-Type: text/plain; charset="US-ASCII"

Type in the following to make sure that the RAC port is free: 'netstat -a
| grep 10002', this shouldn't display anything. The following message:
"./RAServer: error while loading
shared libraries: libxerces-c.so.24: cannot open shared object file: No
such file or directory" is usually caused by not having the lib directory
of RAC in LD_LIBRARY_PATH. You indicated in an earlier message that you
did have the lib directory in that environment variable, but just before
starting the RAC do: echo $LD_LIBRARY_PATH to make sure it's there. Also
do a 'ls -l' in RAC's lib directory and make sure both of these files are
executable: libxerces-c.so, libxerces-c.so.24.

What happens when you run RAStop.sh? do you get any output? Note that
RAStop.sh won't kill the RAC if there are any monitoring agents registered
with it, you have to do a kill -9 on the PID of RAServer.
--=_alternative 004CE013852570A8_=
Content-Type: text/html; charset="US-ASCII"

<br><font size=2 face="sans-serif">Type in the following to make sure that
the RAC port is free: 'netstat -a | grep 10002', this shouldn't display
anything. &nbsp; The following message: </font><font size=2><tt>&quot;./RAServer:
error while loading <br>
shared libraries: libxerces-c.so.24: cannot open shared object file: No
such file or directory&quot;</tt></font><font size=2 face="sans-serif">
is usually caused by not having the lib directory of RAC in </font><font size=2><tt>&nbsp;LD_LIBRARY_PATH</tt></font><font size=2 face="sans-serif">.
&nbsp;You indicated in an earlier message that you did have the lib directory
in that environment variable, but just before starting the RAC do: echo
$</font><font size=2><tt>LD_LIBRARY_PATH</tt></font><font size=2 face="sans-serif">
to make sure it's there. &nbsp;Also do a 'ls -l' in RAC's lib directory
and make sure both of these files are executable: libxerces-c.so, libxerces-c.so.24.</font>
<br>
<br><font size=2 face="sans-serif">What happens when you run RAStop.sh?
&nbsp;do you get any output? &nbsp;Note that RAStop.sh won't kill the RAC
if there are any monitoring agents registered with it, you have to do a
kill -9 on the PID of RAServer.</font>
--=_alternative 004CE013852570A8_=--