Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #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
  #2 (permalink)  
Old 04-22-2008
matthew's Avatar
matthew matthew is online now
ZeroC Staff
 
Name: Matthew Newhook
Organization: ZeroC, Inc.
Project: Internet Communications Engine
 
Join Date: Feb 2003
Location: NL, Canada
Posts: 1,061
I'm not sure what you are exactly doing wrong ... very likely you are not using the configuration that you expect. I tried a very similar configuration with demo/IceBox/hello and everything works fine.

Your configuration does have some issues, but none that cause the error that you have described:

- You have defined RegisterProcess, but you have no corresponding locator defined. This will cause a warning to be issued.
- You are defining the service endpoints in the icebox configuration file, however, you are not using property inheritance (IceBox.InheritProperties=1). Therefore, the service will not see the properties.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
IceGrid Registry - can this be run as a Windows Service? amercieca Help Center 4 10-09-2007 10:32 AM
how to install and run the service of IceStorm and IcePack in solaris9 system freshman Help Center 1 05-18-2005 01:49 AM
IceBox.ServiceManagerI.run() Visibility Question Venkat Seeth Help Center 8 04-05-2005 04:11 PM
Can IcePack Service and server run in different hosts? eyexercise Help Center 11 12-19-2004 09:41 PM
Cannot run icepackregistry as a service? annekat Help Center 4 10-23-2004 02:22 PM


All times are GMT -4. The time now is 10:15 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.