Home Help Center

How to start the iceBox in java for the storm service

I succeed in using the command "icebox --Ice.Config=D:/config.icebox_service " in windows server 2003 to start the icebox. But it will be existed a dos window. So now I want to Start the Java Server to discard that window. The main code is as follows.

Firstly, in a servelet class:
IceBox.Server server = new IceBox.Server();
server.main( "IceBox.Server", new String[0], "D:/config.icebox_service" );

Secondly, in D:/config.icebox_service:
IceBox.ServiceManager.Endpoints=tcp -p 9998
IceBox.Service.IceStorm=IceStormService,30:create --Ice.Config=D:/config.icebox_other

Finally,in D:/config.icebox_other:
IceStorm.TopicManager.Proxy=DemoIceStorm/TopicManager:default -p 10000
IceStorm.TopicManager.Endpoints=default -p 10000

Then the Exception happened:

error: ServiceManager: class IceStormService,30:create not found
reason = "ServiceManager: class IceStormService,30:create not found"
at IceBox.ServiceManagerI.start(ServiceManagerI.java:244)
at IceBox.ServiceManagerI.load(ServiceManagerI.java:202)
at IceBox.ServiceManagerI.run(ServiceManagerI.java:107)
at IceBox.Server.run(Server.java:66)
at Ice.Application.main(Application.java:73)
at Ice.Application.main(Application.java:38)
at com.thtf.ezone.ezibs.jpc.iceapp.HessianRPC$1.run(HessianRPC.java:55)
Caused by: java.lang.ClassNotFoundException: IceStormService,30:create
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at IceBox.ServiceManagerI.start(ServiceManagerI.java:232)
... 6 more

What's wrong wiht me?


  • benoitbenoit Rennes, FranceAdministrators, ZeroC Staff Benoit FoucherOrganization: ZeroC, Inc.Project: Ice ZeroC Staff

    You're trying to load a C++ service with the Java IceBox server, that's not possible. You can only start Java services with the Java IceBox server. Perhaps you can run the C++ IceBox server as a Windows service instead?

  • Jason GaoJason Gao Member
    So rapid reply!

    Thanks! I Have tried to do it for two hours!
  • Jason GaoJason Gao Member
    I failed to register the icebox to be a windows service!

    Because icebox.exe provide no parameter about "install",instead of glacier!

    So glacier can be a windows service ,but icebox can't.

    can you do it?
  • benoitbenoit Rennes, FranceAdministrators, ZeroC Staff Benoit FoucherOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    Which Ice version do you use? Since Ice 3.1.0, you should be able to run IceBox as a Windows service.

  • Jason GaoJason Gao Member

    I will try to use version 3.1.0.
    Now my ice version is 3.0.1.
Sign In or Register to comment.