CPPSERV


Home Projects Jobs Clientele Contact

cppserv


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems on setting configuration parameters



I think I found what the problem was.
Setter functions didn't have return value for success case,
which in C++ (or at least for your gcc version) means "return 0",
which in turn means false. Latest git has this fixed. If you can test
it, it would be nice.

Since build system has been completely redone (autotools are
replaced with adon/banai), but new build process is at the moment
completely undocummented, feel free to drop by on our IRC
channel (#cppserv on irc.freenode.net), and I'll walk you through
the build

    Best regards,
       Ilya.

Vania CIlli wrote:

>I'm using Ubuntu 5.04 with kernel 2.6.10-5 (386), gcc 3.3.5
>
>Vania
>
>Il giorno lun, 20/03/2006 alle 09.44 -0800, Ilya A. Volynets-Evenbakh ha
>scritto:
>  
>
>>Interesting. I tried your config file with no problem, yet
>>I got report from someone else having similar issue. What
>>distribution, and which version of Linux, are you using?
>>
>>Vania CIlli wrote:
>>
>>    
>>
>>>The error message is the following:
>>>
>>>"Failed setting parameter sessiontimeoutIn context brazil of type app". 
>>>
>>>
>>>Vania
>>>
>>>
>>> 
>>>
>>>      
>>>
>>>>Hi,
>>>>
>>>>The config files is the following:
>>>>
>>>>To what written in the  previous email I add that the parameter tags
>>>>enclosed inside a servlet tag are being set in the servlet config
>>>>   
>>>>
>>>>        
>>>>
>>>object
>>> 
>>>
>>>      
>>>
>>>>but cppserv still outputs a message saying that it has failed to do
>>>>   
>>>>
>>>>        
>>>>
>>>so.
>>> 
>>>
>>>      
>>>
>>>>The sessiontimeout and the parameter tags set in the app context
>>>>   
>>>>
>>>>        
>>>>
>>>however
>>> 
>>>
>>>      
>>>
>>>>cause cppserv to fails loading.
>>>>
>>>><?xml version="1.0"?>
>>>><app name="brazil">
>>>> <sessiontimeout value="1500"/>
>>>> <parameter name="templates_root" value="XXXX"/>
>>>> <servlet name="BrazilDispatcher" dso="./brazil.so">
>>>>       <parameter name="db.connectionstring" value="XXXX"/>
>>>>       <parameter name="crypto.seed" value="XXXX"/>
>>>> </servlet>
>>>></app>
>>>>
>>>>Vania
>>>>
>>>>Il giorno ven, 17/03/2006 alle 11.52 -0800, Ilya A. Volynets-Evenbakh
>>>>   
>>>>
>>>>        
>>>>
>>>ha
>>> 
>>>
>>>      
>>>
>>>>scritto:
>>>>   
>>>>
>>>>        
>>>>
>>>>>Vania CIlli wrote:
>>>>>
>>>>>     
>>>>>
>>>>>          
>>>>>
>>>>>>Hi, congratulation for the job you have done.
>>>>>>
>>>>>>
>>>>>>       
>>>>>>
>>>>>>            
>>>>>>
>>>>>Thanks ;-)
>>>>>
>>>>>     
>>>>>
>>>>>          
>>>>>
>>>>>>I have installed version 0.1.6 and I have a problem while setting
>>>>>>parameters in the engine.xml file. Whatever tag I write (parameter,
>>>>>>sessiontimeout, etc) with the exception of the "servlet tag"
>>>>>>       
>>>>>>
>>>>>>            
>>>>>>
>>>results in
>>> 
>>>
>>>      
>>>
>>>>>>an error of the type "Failed setting parameter parameterIn context
>>>>>>       
>>>>>>
>>>>>>            
>>>>>>
>>>test
>>> 
>>>
>>>      
>>>
>>>>>>of type app".
>>>>>>
>>>>>>
>>>>>>       
>>>>>>
>>>>>>            
>>>>>>
>>>>>Can you send me your config file that fails?
>>>>>There were lot of rewrites in config handling, so I'm not surprised
>>>>>things broke.
>>>>>
>>>>>     
>>>>>
>>>>>          
>>>>>
>>>>>>Thanks
>>>>>>
>>>>>>Vania
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>       
>>>>>>
>>>>>>            
>>>>>>
>>>>   
>>>>
>>>>        
>>>>
>>>
>>> 
>>>
>>>      
>>>
>
>  
>

-- 
Ilya A. Volynets-Evenbakh
Total Knowledge. CTO
http://www.total-knowledge.com


Authoright © Total Knowledge: 2001-2008