Results 1 to 4 of 4

Thread: Not specying IceStorm version in Icebox broken on 3.4 ?

  1. #1
    oroulet is offline Registered User
    Name: Olivier Roulet
    Organization: NTNU/SINTEF
    Project: Holonic manufacturing System
    Join Date
    Apr 2009
    Posts
    9

    Not specying IceStorm version in Icebox broken on 3.4 ?

    With Ice 3.3 on Linux and windows we have the following xml to register an icestorm server

    <icebox id="IceBoxServer" exe="icebox" activation="on-demand">
    <service name="IceStorm" entry="IceStormService:createIceStorm">


    However with Ice 3.4 on Windows we get the following error :

    !! 08/12/10 14:34:40.309 IceBoxServer: error: ServiceManager: unable to load entry point `IceStormService:createIceStorm'
    !! 08/12/10 14:34:40.340 IceBoxServer: error: ServiceManager: unable to load entry point `IceStormService:createIceStorm'
    !! 08/12/10 14:34:40.371 IceBoxServer: error: ServiceManager: unable to load entry point `IceStormService:createIceStorm'
    !! 08/12/10 14:34:40.402 IceBoxServer: error: ServiceManager: unable to load entry point `IceStormService:createIceStorm'

    This is solved by adding the version number :
    <service name="IceStorm" entry="IceStormService,34:createIceStorm">
    However I wish to suport both 3.3 and 3.4 and I though that the version was optional.
    What is wrong ?

    Olivier

  2. #2
    mes's Avatar
    mes
    mes is offline ZeroC Staff
    Name: Mark Spruiell
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Feb 2003
    Location
    California
    Posts
    1,441
    Hi,

    The version specifier is required for IceBox services (including IceStorm). IceBox does not automatically append the Ice version to service entry points because it's unlikely that a user-written service would have the same version as Ice. I just tried a simple IceGrid deployment of IceStorm with Ice 3.3 on Linux and the version specifier was required there as well, so I'm not sure why it's working for you without the version.

    Regards,
    Mark

  3. #3
    oroulet is offline Registered User
    Name: Olivier Roulet
    Organization: NTNU/SINTEF
    Project: Holonic manufacturing System
    Join Date
    Apr 2009
    Posts
    9
    Hi,
    I tested again and it does seem to work on an ubuntu 10.04 installation with the default ice packages.

    In addition reading the documentation for 330 I can read
    """

    The first argument in the property value is the entry point specification. For
    C++ services, this must have the form library[,version]:symbol, where library is
    the simple name of the service’s shared library or DLL, and symbol is the name of
    the entry point function. By simple name, we mean a name without any platform-
    specific prefixes or extensions; the server adds appropriate decorations depending
    on the platform. The version is optional. If specified, the version is embedded in
    the library name.
    """
    If it is not supposed to work, Can I then find the ice version in a variable so that I can use the same xml declaration for 3.3 and 3.4 ?
    something like IceBox.Service.IceStorm=IceStormService,${ice_vers ion}:createIceStorm

    Thank you
    Olivier

  4. #4
    mes's Avatar
    mes
    mes is offline ZeroC Staff
    Name: Mark Spruiell
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Feb 2003
    Location
    California
    Posts
    1,441
    Hi,

    You only need to specify a version in the entry point of an IceBox service if its shared library has a version suffix. For example, on RHEL the IceStorm service library is called libIceStormService.so.33, therefore the version must be specified in its entry point. Perhaps it works for you on Ubuntu because the IceStorm service library does not have a version suffix, or there is a symbolic link without the version suffix?

    IceGrid does not pre-define a variable containing the Ice version, but you can certainly define such a variable yourself during deployment, such as:

    % icegridadmin --Ice.Config=... -e "application add app.xml ice-version=33"

    Regards,
    Mark

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. IceBox or IceStorm hang up?
    By caihua2007 in forum Help Center
    Replies: 15
    Last Post: 03-28-2008, 09:35 AM
  2. icestorm without icebox
    By david_123 in forum Help Center
    Replies: 4
    Last Post: 11-09-2007, 11:21 AM
  3. Changes in IceBox\IceStorm configurations
    By litghost in forum Help Center
    Replies: 3
    Last Post: 03-03-2007, 09:15 PM
  4. configuring IceBox and IceStorm without files
    By vtepek in forum Help Center
    Replies: 3
    Last Post: 05-01-2006, 03:20 PM
  5. Replies: 1
    Last Post: 11-05-2004, 02:23 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •