Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 06-12-2006
cesartovic's Avatar
cesartovic cesartovic is offline
Registered User
 
 
Join Date: Feb 2006
Posts: 50
2 .Ice in php

Hello, I have a problem because I need to use 2 .ice (Drupal.ice and Clase.ice) in my page and If I put in the php.ini:

ice.slice=/var/www/drupal-4.7.0/modules/suscripcion/Clases.ice
ice.slice=/var/www/drupal-4.7.0/modules/suscripcion/Drupal.ice

it doesn't work. How I can use 2 .ice in PHPIce?

Thanks
__________________
Name: César Rodríguez Maurelo
Project:working with TC65 that supports j2ME aplicattions and I will use Ice to comunicate with a server.The project is a consorcium betwen "Universidad Politecnica de Madrid" and "Recreativos Franco".
url: http://www.die.upm.es/
We are trying to improve the technologie of some game machines and one important aspect is communications.The project haven´t got name
Reply With Quote
  #2 (permalink)  
Old 06-12-2006
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: 962
Hi,

Put both files on the same ice.slice line.

Take care,
- Mark
Reply With Quote
  #3 (permalink)  
Old 06-12-2006
cesartovic's Avatar
cesartovic cesartovic is offline
Registered User
 
 
Join Date: Feb 2006
Posts: 50
but with wich separator

HI, could yo put an example for me?Because I don't know if you have to separate it with comas,etc...

Thanks
__________________
Name: César Rodríguez Maurelo
Project:working with TC65 that supports j2ME aplicattions and I will use Ice to comunicate with a server.The project is a consorcium betwen "Universidad Politecnica de Madrid" and "Recreativos Franco".
url: http://www.die.upm.es/
We are trying to improve the technologie of some game machines and one important aspect is communications.The project haven´t got name
Reply With Quote
  #4 (permalink)  
Old 06-12-2006
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: 962
You separate the files with spaces, just like on the command line of a Slice compiler:

ice.slice=Drupal.ice Clases.ice

Take care,
- Mark
Reply With Quote
  #5 (permalink)  
Old 06-13-2006
cesartovic's Avatar
cesartovic cesartovic is offline
Registered User
 
 
Join Date: Feb 2006
Posts: 50
Not good solution

Hi again it doesn't work I have put:

ice.slice=/var/www/drupal-4.7.0/modules/suscripcion/Clases.ice /var/www/drupal-4.7.0/modules/suscripcion/Drupal.ice

with spaces, like you say to me, but in the mozilla this message appears

Unable to connect
Firefox can't establish a connection to the server at localhost.

with one .ice it works good but when I use two It doesn't work. Do you know the problem?

Thanks
__________________
Name: César Rodríguez Maurelo
Project:working with TC65 that supports j2ME aplicattions and I will use Ice to comunicate with a server.The project is a consorcium betwen "Universidad Politecnica de Madrid" and "Recreativos Franco".
url: http://www.die.upm.es/
We are trying to improve the technologie of some game machines and one important aspect is communications.The project haven´t got name
Reply With Quote
  #6 (permalink)  
Old 06-13-2006
matthew's Avatar
matthew matthew is offline
ZeroC Staff
 
Name: Matthew Newhook
Organization: ZeroC, Inc.
Project: Internet Communications Engine
 
Join Date: Feb 2003
Location: NL, Canada
Posts: 1,001
Connecting with a web browser isn't the right approach to diagnose such a failure. You need to look at the Apache log files to find out why the web server is not starting.
Reply With Quote
  #7 (permalink)  
Old 06-14-2006
cesartovic's Avatar
cesartovic cesartovic is offline
Registered User
 
 
Join Date: Feb 2006
Posts: 50
Apache 2 logs

Hi again, these are the apache2 logs

[Wed Jun 14 17:33:40 2006] [notice] Apache/2.0.55 (Debian) PHP/5.1.2-1+b1 configured -- resuming normal operations
[Wed Jun 14 17:34:09 2006] [notice] caught SIGTERM, shutting down
/var/www/drupal-4.7.0/modules/suscripcion/Drupal.ice:4: No include path in which to find Clases.ice
PHP Fatal error: Unable to start ice module in Unknown on line 0

I have put the two .ice (Clases.ice and Drupal.ice) like you say to me. These are the .ice:

Clases.ice

#ifndef CLASES_ICE
#define CLASES_ICE


module Management{

class Notification
{
string idMachine;
string idGame;
string clase;
string name;
string info;
string timeStamp;

};

sequence<Notification> allNotifications;
dictionary<string,string> parameters;
};


#endif

************************************************** ************************************************** ***
Drupal.ice

#ifndef DRUPAL_ICE
#define DRUPAL_ICE

#include <Clases.ice>


module Management{

interface Drupal{

int subscribe(string idMachine, string topic);
int unsubscribe(string idMachine, string topic);

allNotifications getNotificationByDate(string idMachine, string topic, string end, string begin);
allNotifications getNotification(string idMachine, string topic, parameters allParam);
};
};

#endif

************************************************** ************************************************** ****

How I can solve it?

Thanks
__________________
Name: César Rodríguez Maurelo
Project:working with TC65 that supports j2ME aplicattions and I will use Ice to comunicate with a server.The project is a consorcium betwen "Universidad Politecnica de Madrid" and "Recreativos Franco".
url: http://www.die.upm.es/
We are trying to improve the technologie of some game machines and one important aspect is communications.The project haven´t got name

Last edited by cesartovic : 06-14-2006 at 11:35 AM.
Reply With Quote
  #8 (permalink)  
Old 06-14-2006
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: 962
Since Drupal.ice includes Clases.ice, you only need to include Drupal.ice, but you also need to specify where it can find included files, like this:

ice.slice=-I/var/www/drupal-4.7.0/modules/suscripcion /var/www/drupal-4.7.0/modules/suscripcion/Drupal.ice

Take care,
- Mark
Reply With Quote
  #9 (permalink)  
Old 12-19-2007
fanson fanson is offline
Registered User
 
Name: Haiyang
Organization: kongzhong Corp. China
Project: storage system
 
Join Date: Aug 2007
Posts: 37
now i have 3 slice files, A includes C, B includes C(ifndef... define...endif used in each slice file )

so when i write ice.slice = a.ice, b.ice

there are redefinition errors. so how can i avoid this problem

thanks

Last edited by fanson : 12-19-2007 at 04:22 AM.
Reply With Quote
  #10 (permalink)  
Old 12-19-2007
matthew's Avatar
matthew matthew is offline
ZeroC Staff
 
Name: Matthew Newhook
Organization: ZeroC, Inc.
Project: Internet Communications Engine
 
Join Date: Feb 2003
Location: NL, Canada
Posts: 1,001
What type of redefinition errors? If a.ice includes b.ice then you don't need to have both a.ice and b.ice on the ice.slice directive.
Reply With Quote
  #11 (permalink)  
Old 12-19-2007
fanson fanson is offline
Registered User
 
Name: Haiyang
Organization: kongzhong Corp. China
Project: storage system
 
Join Date: Aug 2007
Posts: 37
a.ice includes c.ice
b.ice includes c.ice

but different contents in a.ice and b.ice. neither slice file includes another one.

so how can i do if i want to include both a.ice and b.ice?

thanks



Quote:
Originally Posted by matthew View Post
What type of redefinition errors? If a.ice includes b.ice then you don't need to have both a.ice and b.ice on the ice.slice directive.

Last edited by fanson : 12-19-2007 at 09:03 PM.
Reply With Quote
  #12 (permalink)  
Old 12-20-2007
benoit's Avatar
benoit benoit is offline
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,475
Hi,

The easiest is to create a top-level Slice file that includes both a.ice and b.ice and use this Slice file in the definition of ice.slice.

Cheers,
Benoit.
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


All times are GMT -4. The time now is 03:06 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.