CPPSERV


Home Projects Jobs Clientele Contact

cppserv


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

Re: compile errors in gentoo 2006.1



Hmm... How exactly did you configure Apache?
Oh, and do not use :9004 in URL.. Use http://localhost/IndexServlet
That'll cause your browser to connect to apache, and apache will
take care of talking to CPPSERV

noniko wrote:
> Hi,Ilya
>   
>> Alternatively, you could just do
>> emerge cppserv
>> Since there is an ebuild for it. It'll pull in all necessary dependencies.
>>     
>
> Yeah, that is great! "Emerge cppserv" installed everything it needs.
> And I could also compile cppserv-samples-0.1.94.0 manually by make
> command. I skipped some of samples using database, followed by the
> instruction with the source.
>
> A step before success! Now I'm wondering how to make the samples work.
> I run "cppserv -c ./engine.xml" in the source folder after build.
> I deleted some of samples'name from engine.xml which would cause error.
> Below is my current engine.xml.
>
> <?xml version="1.0"?>
> <listener protocol="tcp" host="localhost" port="9004"/>
> <!-- <num_threads value="1"/> -->
> <!--<listener protocol="unix" path="/tmp/cppserv.sock"/>-->
> <app name="test">
>     <servlet name="IndexServlet" dso="./debug/index/IndexServlet.so"/>
>     <servlet name="HelloServlet" dso="./debug/hello/HelloServlet.so"/>
>
>     .......
>
>     <servlet name="UtilServlet" dso="./debug/utils/UtilServlet.so"/>
>     <servlet name="SessionServlet" dso="./debug/session/SessionServlet.so"/>
>     <servlet name="HeadersServlet" dso="./debug/headers/HeadersServlet.so"/>
> </app>
>
> And below is the log console of cppserv.
>
> Line: Host: localhost:9004
> Line: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.5)
> Gecko/20060731 Epiphan
> y/2.14 Firefox/1.5.0.5
> Line: Accept:
> text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.
> 8,image/png,*/*;q=0.5
> Line: Accept-Encoding: gzip,deflate
> Line: Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
> Line: Keep-Alive: 300
> Line: Connection: keep-alive
> Line:
>
> When I call for example http://localhost:9004/test/IndexServlet from
> browser, a "Line:" output appears,which I believe apache2 is connecting
>  to the servlet engine. But the browser stops with the status bar
> message "loading localhost...."
>
> Sorry for poor report.
> noniko
>
>   

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


Authoright © Total Knowledge: 2001-2008