Home Projects Jobs Clientele Contact


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

Re: compile errors in gentoo 2006.1


> 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- 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"/>

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:
Gecko/20060731 Epiphan
y/2.14 Firefox/
Line: Accept:
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

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.

Authoright © Total Knowledge: 2001-2008