CPPSERV


Home Projects Jobs Clientele Contact

cppserv


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

Re: Problem with starting CPPSERV



> sergey@total-knowledge.com wrote:
>> After making changes to xmlserverconfig.cpp servlets stopped working.
>>
>> When I run LD_LIBRARY_PATH=
> Eh? What exactly do you run, again?

I start CPPSERV using this command in my uu/trunk directory:

LD_LIBRARY_PATH=debug/libui ../../cppserv/debug/src/container/cppserv -P
eng.pid -c engine.xml

Here is my engine.xml:

<?xml version="1.0"?>
<listener protocol="unix" path="/tmp/cppserv.sock"/>
<app name="">
    <servlet name="HomeServlet" dso="./debug/libui/HomeServlet.so"/>
    <servlet name="RegisterServlet" dso="./debug/libui/RegisterServlet.so"/>
    <servlet name="LoginServlet" dso="./debug/libui/LoginServlet.so"/>
    <csp name="themes/HomeView.csp" path="HomeView.csp"
dso="./debug/themes/HomeView.so" hidden="true"/>
    <csp name="themes/RegistrationView.csp" path="RegistrationView.csp"
dso="./debug/themes/RegistrationView.so" hidden="true"/>
    <csp name="themes/LoginView.csp" path="LoginView.csp"
dso="./debug/themes/LoginView.so" hidden="true"/>
</app>



>>  I don't get any error messages.
>> However when I try to view my servlet in the browser, it just hangs.
>> When I try to stop cppserv using ctrl-C, it doesn't do the job.
> Did that work before?

Yes, it always worked before rebuilding SPTK and making changes to
xmlserverconfig.cpp

>>  I have to
>> kill the cppserv proccess manually each time.
>> I debugged xmlserverconfig.cpp
> That doesn't tell us much. What did you do?
>>  and it looks like engine.xml was parsed
>> correctly.
> Again. How do you know that.

I put several debug messages. For example in XMLServerConfig::addKids()

for(CXmlAttributes::const_iterator it=attr_map.begin();
it!=attr_map.end(); it++) {
                                            cnode->addAttr(it->first,it->second);
std::cout<<it->first<<" = "<<it->second<<"\n\n";

}

The output looked like this:

dso = ./debug/libui/HomeServlet.so
name = HomeServlet
dso = ./debug/libui/RegisterServlet.so
name = RegisterServlet
dso = ./debug/themes/LoginView.so
hidden = true
name = themes/LoginView.csp
path = LoginView.csp

etc...

So, in my opinion the parsing was correct.


>>  The only change in engine.xml is removed comments.
>> Any suggestions?
>>
>>
>>
>
> --
> Ilya A. Volynets-Evenbakh
> Total Knowledge. CTO
> http://www.total-knowledge.com
>
>



Authoright © Total Knowledge: 2001-2008