Unable to run application using ssh

I'm testing a C++ based application (HLR) in my solaris system.
Whenever i start the application remotely from some other solaris server using ssh command the application throws an error and goes down.
command i used:

ssh root@192.168.151.77 "./start_hlr.sh"

Below is the error observed :

Initializing OAM Transaction list...
Initializing TCAP Stack ...FtAttachEx failed exiting errno: 258
Unable to initialize the stackexitFunc called with exit code: 514exiting...

But if i directly login to the server and run the application its working fine.

Why the application is not running when invoked remotely using ssh ?

Undef ENV values are likely to be causing the problem.

From the ssh man:

           Additionally, ssh reads ~/.ssh/environment, and adds lines of the
           format ``VARNAME=value'' to the environment if the file exists
           and users are allowed to change their environment.  For more
           information, see the PermitUserEnvironment option in
           sshd_config(5).

Set ~/.ssh/environment in the target machine to load the profile variables needed.