Thank for your reply!

It primitive code don't work:

----------------------------------------------------------------------
main.cpp
----------------------------------------------------------------------
#include <iostream>
#include <Wt/WApplication>
#include <Wt/WEnvironment>
#include <Wt/WContainerWidget>
#include <Wt/WText>
using namespace std;
using namespace Wt;


class c_web_app : public WApplication
{
public:
    c_web_app(const WEnvironment& env) : WApplication(env)
    {
        this->setTitle("Web App! Now title not work.");
        WContainerWidget *webpage = new WContainerWidget(this->root());

        webpage->addWidget(new WText("Hello!"));
    }

private:

};

WApplication* create_app(const WEnvironment& env)
{
    return new c_web_app(env);
}

int main(int argc, char *argv[])
{
    const int a = 9;
    char *v[a];

    v[0] = argv[0];

    v[1] = (char*) "--http-address";
    v[2] = (char*) "0.0.0.0";

    v[3] = (char*) "--http-port";
    v[4] = (char*) "8080";

    v[5] = (char*) "--deploy-path";
    v[6] = (char*)  "/";


    v[7] = (char*) "--docroot";
    v[8] = (char*) ".;/resources";



    return WRun(a, v, &create_app);
}
---------------------------------------------------------------------
//
//
//
//
//
//
---------------------------------------------------------------------
CMakeLists.txt
---------------------------------------------------------------------
project(test1)
cmake_minimum_required(VERSION 2.8)
aux_source_directory(. SRC_LIST)
add_executable(${PROJECT_NAME} ${SRC_LIST})

set(CMAKE_CXX_FLAGS "-lwt -lwthttp")
---------------------------------------------------------------------





But, i see requests in stdout:

Запускается /home/ioann/workspace/test1/build/test1...

[2015-Sep-08 13:22:53.445993] 2948 - [info] "config: reading Wt config file: /etc/wt/wt_config.xml (location = '/home/ioann/workspace/test1/build/test1')"

[2015-Sep-08 13:22:53.446968] 2948 - [info] "WServer/wthttp: initializing built-in wthttpd"

[2015-Sep-08 13:22:53.447312] 2948 - [info] "wthttp: started server: http://0.0.0.0:8080";

[2015-Sep-08 13:22:55.253040] 2948 - [info] "Wt: session created (#sessions = 1)"

[2015-Sep-08 13:22:55.253141] 2948 [/ Iw6fNZRGMugn8FUO] [info] "WEnvironment: UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36"

[2015-Sep-08 13:22:55.253847] 2948 - [info] "WebRequest: took 0.875ms"

127.0.0.1 - - [2015-Sep-08 13:22:55.253797] "GET / HTTP/1.1" 200 2649

127.0.0.1 - - [2015-Sep-08 13:22:55.307885] "GET /?wtd=Iw6fNZRGMugn8FUO&request=style HTTP/1.1" 200 91

[2015-Sep-08 13:22:55.307919] 2948 - [info] "WebRequest: took 40.434ms"

127.0.0.1 - - [2015-Sep-08 13:22:55.319758] "GET /resources/themes/default/wt.css HTTP/1.1" 404 85127.0.0.1 - - [2015-Sep-08 13:22:55.319810] "GET /resources/webkit-transitions.css HTTP/1.1" 404 85


127.0.0.1 - - [2015-Sep-08 13:22:55.322411] "GET /?wtd=Iw6fNZRGMugn8FUO&sid=1424260071&webGL=true&scrW=1920&scrH=1080&tz=180&htmlHistory=true&deployPath=%2F&request=script&rand=1081462392 HTTP/1.1" 200 57830

[2015-Sep-08 13:22:55.322455] 2948 - [info] "WebRequest: took 15.143ms"

[2015-Sep-08 13:22:55.335467] 2948 - [info] "Wt: session created (#sessions = 2)"

127.0.0.1 - - [2015-Sep-08 13:22:55.337313] "GET /favicon.ico HTTP/1.1" 200 2659

[2015-Sep-08 13:22:55.335793] 2948 [/ MoPc9f0Pg6bxsbGy] [info] "WEnvironment: UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36"

[2015-Sep-08 13:22:55.337402] 2948 - [info] "WebRequest: took 2.095ms"








08.09.2015 11:47, Pau Garcia i Quiles пишет:
Hello,

Have you tried to clean the browser cache, close & reopen the browser and press Control + F5 to make sure a new copy is reloaded?

Have you tried with other browsers and/or from a different computer?

If that does not work, could you please provide sample code that leads to a blank page so that I can try it?

Thank you



On Tue, Sep 8, 2015 at 10:07 AM, ioann sys <ioann....@gmail.com <mailto:ioann....@gmail.com>> wrote:

    Package: witty
    Version: 3.3.4+dfsg-3
    Severity: important

    Dear Maintainer,

    *** Reporter, please consider answering these questions, where
    appropriate ***

       * What led up to the situation?
       * What exactly did you do (or not do) that was effective (or
         ineffective)?
       * What was the outcome of this action?
       * What outcome did you expect instead?

    *** End of the template - remove these template lines ***

    Hello! After upgrading witty,my projects has been run, but i can
    see content
    (images, buttons and title!)



    -- System Information:
    Debian Release: stretch/sid
      APT prefers testing-updates
      APT policy: (500, 'testing-updates'), (500, 'testing')
    Architecture: amd64 (x86_64)
    Foreign Architectures: i386

    Kernel: Linux 4.1.6 (SMP w/4 CPU cores)
    Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
    Shell: /bin/sh linked to /bin/dash
    Init: systemd (via /run/systemd/system)

    Versions of packages witty depends on:
    ii  libwt38             3.3.4+dfsg-3
    ii  libwtdbo38          3.3.4+dfsg-3
    ii  libwtdbofirebird38  3.3.4+dfsg-3
    ii  libwtdbopostgres38  3.3.4+dfsg-3
    ii  libwtdbosqlite38    3.3.4+dfsg-3
    ii  libwtext38          3.3.4+dfsg-3
    ii  libwthttp38         3.3.4+dfsg-3
    ii  witty-examples      3.3.4+dfsg-3

    witty recommends no packages.

    witty suggests no packages.

    -- no debconf information




--
Pau Garcia i Quiles
http://www.elpauer.org
(Due to my workload, I may need 10 days to answer)

Reply via email to