Skip to main content

License violation[1019]: License directory system property is not set

  • February 16, 2013
  • 0 replies
  • 0 views

Problem:

A VisiBroker based CORBA application fails to start-up and prints the following error message to stdout:

License violation[1019]: License directory system property is not set

Resolution:

The ORB was not able to verify the license during start-up since the information about the location of the license was missing. Only applications which require a server license will fail to start. A server license is needed if more than 10 callback objects are activated or the persistent lifespan policy is set for any created POA.

VisiBroker for C

VisiBroker for C requires the environment variables BES_LIC_DIR and BES_LIC_DEFAULT_DIR to be set.

Usually they are set together with other important environment variables by executing <VBROKERDIR>/bin/vbroker.bat ( Windows ) or <VBROKERDIR>/bin/vbroker.sh ( Unix ). If your application uses these script files, verify their content and ensure they are executed.

Alternatively the environment variables can also be set in any other way, for example in an application specific start-up script.

  • set BES_LIC_DIR to the /var folder of the VisiBroker installation
  • set BES_LIC_DEFAULT_DIR to the /license folder of the VisiBroker installation

VisiBroker for Java

VisiBroker for Java requires the JVM System Properties borland.enterprise.licenseDir and borland.enterprise.licenseDefaultDir to be set.

VisiBroker provides a helper tool to start a VisiBroker for Java based CORBA application, <VBROKERDIR>/bin/vbj.exe for Windows or <VBROKERDIR>/bin/vbj for Unix. This tool passes a set of important properties to the JVM. If your application is started by the vbj tool, verify the content of <VBROKERDIR>/bin/vbj.config. Towards the end of the file in a user modifiable section the necessary properties should be defined

  • vmprop borland.enterprise.licenseDir=$var(installRoot)/var
  • vmprop borland.enterprise.licenseDefaultDir=$var(installRoot)/license

If your application does not use the vbj tool, it need to ensure that these System Properties are set by

  • Using the java -D option
  • Or setting them in the application code before calling the ORB initialization
Old KB# 26514

#Security
#VisiBroker