Leave feedback
  • Question

    Problems with Java classes when starting a service remotely. (6331)

Enter a new topic
  • StreamServe Support StreamServe Support StreamServe Support Administrator
    0 likes 8272 views


    If the service is started from the shell, it works fine. That means all the necessary java classes and the java library path are set correctly. If it is started remotely from the Process Manager, you get an error when StreamServe tries launching one of the OC_Connectors, because it can not find a necessary java class.

    What can be the reason for this?


    Monday 11 January, 2010
  • Best Answer
    StreamServe Support StreamServe Support StreamServe Support Administrator


    From the two cases described it sounds very clear that the environment is not the same. When you logon into a system and then execute a program interactively compared to executing a program directly, like Control Center does,  implicates that the running login script is not the same. This could affect the environment variables. If you assign a variable in .profile VAR=VALUE and in strs.sh add: ~/.profile, then the variable VAR would not be set to VALUE in the strs.sh script. But if you write: .~/.profile, the value would be set in strs.sh. Another important detail is that the binary file you specify for the Server in Control Center is strs_pm.sh not strs.sh or strs. You create strs_pm through the following command: $ ln -s strs.sh strs_pm.sh $ ls -l strs_pm.sh lrwxrwxrwx 1 user group 7 Nov 3 10:07 strs_pm.sh -> strs.sh . This creates a logical link to strs.sh that makes strs.sh execute the server in another way.


    Monday 11 January, 2010
  • Vyv Lomax Vyv Lomax Administrator

    Is this in the right container? It sounds more like Connectivity & Post Processing or Administration.

    Tuesday 12 January, 2010


Latest from the blogs