Environment
Business Service Management 4.5
Situation
Formula server not starting.
Error in the ManagedObjects/logs/formula.trc trying to start formula server using mosstart Formula.
ERROR License.Client - Connect to license server failed org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0
at org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read(NotFoundHelper.java:7
2)
at org.omg.CosNaming._NamingContextStub.resolve(_NamingContextStub.java:251)
at com.mosol.util.CORBA.Naming.findObject(Naming.java:239)
at com.mosol.license.client.LicenseClient.connect(LicenseClient.java:164)
at com.mosol.Formula.Server.ServerImpl.verifyLicense(ServerImpl.java:5255)
at com.mosol.Formula.Server.ServerImpl.run(ServerImpl.java:776)
at java.lang.Thread.run(Thread.java:595)
ERROR Server - Error occurred while verifying license: java.lang.Exception: Cannot connect to license server: com.mosol.license.client.LicensingException: Unable to connect to licensing service: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0
During the Managed Objects installation, the license.dat was browsed to in a structure other than the formula users home directory.
No license.dat file exists in the /home/formula/ManagedObjects/config directory
/home/formula/ManagedObjects/config/mosdaemon.properties contains License.Repository=/home/formula/ManagedObjects/config/license.dat
Note: /home/formula is the location where the ManagedObjects directory was installed. It maybe different if a different structure was used during the installation.
Error in the ManagedObjects/logs/formula.trc trying to start formula server using mosstart Formula.
ERROR License.Client - Connect to license server failed org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0
at org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read(NotFoundHelper.java:7
2)
at org.omg.CosNaming._NamingContextStub.resolve(_NamingContextStub.java:251)
at com.mosol.util.CORBA.Naming.findObject(Naming.java:239)
at com.mosol.license.client.LicenseClient.connect(LicenseClient.java:164)
at com.mosol.Formula.Server.ServerImpl.verifyLicense(ServerImpl.java:5255)
at com.mosol.Formula.Server.ServerImpl.run(ServerImpl.java:776)
at java.lang.Thread.run(Thread.java:595)
ERROR Server - Error occurred while verifying license: java.lang.Exception: Cannot connect to license server: com.mosol.license.client.LicensingException: Unable to connect to licensing service: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0
During the Managed Objects installation, the license.dat was browsed to in a structure other than the formula users home directory.
No license.dat file exists in the /home/formula/ManagedObjects/config directory
/home/formula/ManagedObjects/config/mosdaemon.properties contains License.Repository=/home/formula/ManagedObjects/config/license.dat
Note: /home/formula is the location where the ManagedObjects directory was installed. It maybe different if a different structure was used during the installation.
Resolution
To resolve:
Copy the license.dat to the ManagedObjects/config directory.
Set the permissions on the license.dat file to allow read access by the user running the mosdaemon and formula server.
EX: chmod +r license.dat; chown formula license.dat
Restart the mosdaemon.
From the ManagedObjects/bin directory run:
./mosstop
./mosdaemon
./mosstart Formula
Copy the license.dat to the ManagedObjects/config directory.
Set the permissions on the license.dat file to allow read access by the user running the mosdaemon and formula server.
EX: chmod +r license.dat; chown formula license.dat
Restart the mosdaemon.
From the ManagedObjects/bin directory run:
./mosstop
./mosdaemon
./mosstart Formula