View Single Post
  #1 (permalink)  
Old 04-22-2008
zaoliu zaoliu is offline
Registered User
 
Name: Zao Liu
Organization: HI5
Project: Performance test
 
Join Date: Mar 2008
Posts: 14
Question regarding to run IceBox service

I am writing a simple program to run the IceBox java services.
The simple configuration for the IceBox is like below:

IceBox.InstanceName=ServiceIceBox
IceBox.ServiceManager.Endpoints=tcp -p 10000
IceBox.ServiceManager.RegisterProcess=1
IceBox.Service.SimpleTest=service.MessageServiceI
SimpleTest.Endpoints=tcp -p 10001


But when I use the command to run the IceBox:
java IceBox.Server ‑‑Ice.Config=./service.cfg

I got the exception like below:
error: ServiceManager: Ice.InitializationException
reason = "object adapter "IceBox.ServiceManager" requires configuration."
Ice.InitializationException
reason = "object adapter "IceBox.ServiceManager" requires configuration."
at Ice.ObjectAdapterI.<init>(ObjectAdapterI.java:789)
at IceInternal.ObjectAdapterFactory.createObjectAdapt er(ObjectAdapterFactory.java:183)
at Ice.CommunicatorI.createObjectAdapter(Communicator I.java:71)
at IceBox.ServiceManagerI.run(ServiceManagerI.java:13 1)
at IceBox.Server.run(Server.java:50)
at Ice.Application.main(Application.java:114)
at Ice.Application.main(Application.java:30)
at IceBox.Server.main(Server.java:28)

To my understand, the only necessary configuration for ServiceManager is the endpoints. Is there anything I am missing?

Thanks,
Zao
Reply With Quote