Project

General

Profile

Actions

Bug #1332

closed

WServer/wthttp: start(): server already started!

Added by navnidhi sharma almost 13 years ago. Updated almost 13 years ago.

Status:
Closed
Priority:
Urgent
Assignee:
Target version:
Start date:
06/20/2012
Due date:
% Done:

0%

Estimated time:

Description

Is there any obvious reason I am getting the following error when i run my application as '-bash-4.1$ Debug/mychart ---docroot . ---http-address 0.0.0.0 ---http-port 8080' :

[2012-Jun-20 09:33:35.767315] 10669 - [error] "WServer/wthttp: start(): server already started!"

Facts-

I am using latest GCC, i.e. 4.7 and boost 1.49. The port(8080) is available and is NOT occupied by any other process. I ran a simple socket server raw C application, and it starts listening. Any help will be appreciated and thanks for the great tool.

Code -

#include

#include "Charts.h"

#include

#include <boost/thread.hpp>

#include <boost/date_time.hpp>

#include <boost/serialization/singleton.hpp>

using namespace Wt;

class Exchanges

{

public:

Exchanges() : m_tradeQueue(m_io_mutex)

{

}

boost::mutex m_io_mutex;

ibc::Queue m_tradeQueue;

};

class ChartsApplication: public WApplication

{

public:

boost::serialization::singleton exchanges;

ChartsApplication(const WEnvironment& env)

: WApplication(env)

{

setTitle("Charts example");

setCssTheme("polished");

messageResourceBundle().use(appRoot() + "charts");

root()->setPadding(10);

root()->resize(WLength::Auto, WLength::Auto);

new ChartsExample(root(), exchanges.get_mutable_instance().m_tradeQueue);

/*

  • Set our style sheet last, so that it loaded after the ext stylesheets.
    */
    useStyleSheet("charts.css");
    }
    };

WApplication *createApplication(const WEnvironment& env)

{

WApplication *app = new ChartsApplication(env);

return app;

}

int main(int argc, char **argv)

{

int iret = WRun(argc, argv, &createApplication);

return iret;

}

-bash-4.1$ ldd Debug/mychart

linux-vdso.so.1 => (0x00007ffff7ec8000)

libwtdbosqlite3.so.32 => /home/nsharma/nsharma/Desktop/crtllc/sw/wt-3.2.1/build/src/Wt/Dbo/backend/libwtdbosqlite3.so.32 (0x00007ffb53879000)

libwtdbo.so.32 => /home/nsharma/nsharma/Desktop/sw/wt-3.2.1/build/src/Wt/Dbo/libwtdbo.so.32 (0x00007ffb535f2000)

libwttest.so.2 => /home/nsharma/nsharma/Desktop/sw/wt-3.2.1/build/src/Wt/Test/libwttest.so.2 (0x00007ffb533d8000)

libwthttp.so.32 => /home/nsharma/nsharma/Desktop/sw/wt-3.2.1/build/src/http/libwthttp.so.32 (0x00007ffb53117000)

libwt.so.32 => /home/nsharma/nsharma/Desktop/sw/wt-3.2.1/build/src/libwt.so.32 (0x00007ffb528bf000)

libstdc.so.6 => /opt/gcc-4.7.0/lib64/libstdc.so.6 (0x00007ffb52048000)

libm.so.6 => /lib64/libm.so.6 (0x000000331b600000)

libgcc_s.so.1 => /opt/gcc-4.7.0/lib64/libgcc_s.so.1 (0x00007ffb51e24000)

libc.so.6 => /lib64/libc.so.6 (0x000000331a600000)

libpthread.so.0 => /lib64/libpthread.so.0 (0x000000331ae00000)

libcrypto.so.10 => /usr/lib64/libcrypto.so.10 (0x0000003326e00000)

librt.so.1 => /lib64/librt.so.1 (0x000000331b200000)

libboost_date_time.so.1.49.0 => /opt/boost_1_49_0_source/stage/lib/libboost_date_time.so.1.49.0 (0x00007ffb51c12000)

libdl.so.2 => /lib64/libdl.so.2 (0x000000331aa00000)

libboost_thread.so.1.49.0 => /opt/boost_1_49_0_source/stage/lib/libboost_thread.so.1.49.0 (0x00007ffb519f6000)

libboost_random.so.1.49.0 => /opt/boost_1_49_0_source/stage/lib/libboost_random.so.1.49.0 (0x00007ffb517f4000)

libboost_regex.so.1.49.0 => /opt/boost_1_49_0_source/stage/lib/libboost_regex.so.1.49.0 (0x00007ffb51500000)

libboost_signals.so.1.49.0 => /opt/boost_1_49_0_source/stage/lib/libboost_signals.so.1.49.0 (0x00007ffb512ec000)

libboost_system.so.1.49.0 => /opt/boost_1_49_0_source/stage/lib/libboost_system.so.1.49.0 (0x00007ffb510e9000)

libssl.so.10 => /usr/lib64/libssl.so.10 (0x000000332aa00000)

libz.so.1 => /opt/CollabNet_Subversion/lib/libz.so.1 (0x00007ffb50fd1000)

libboost_filesystem.so.1.49.0 => /opt/boost_1_49_0_source/stage/lib/libboost_filesystem.so.1.49.0 (0x00007ffb50db1000)

libboost_program_options.so.1.49.0 => /opt/boost_1_49_0_source/stage/lib/libboost_program_options.so.1.49.0 (0x00007ffb50b51000)

/lib64/ld-linux-x86-64.so.2 (0x000000331a200000)

libgssapi_krb5.so.2 => /lib64/libgssapi_krb5.so.2 (0x0000003327e00000)

libkrb5.so.3 => /lib64/libkrb5.so.3 (0x0000003327200000)

libcom_err.so.2 => /lib64/libcom_err.so.2 (0x0000003325600000)

libk5crypto.so.3 => /lib64/libk5crypto.so.3 (0x0000003326200000)

libkrb5support.so.0 => /lib64/libkrb5support.so.0 (0x0000003325e00000)

libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x0000003326a00000)

libresolv.so.2 => /lib64/libresolv.so.2 (0x000000331c600000)

libselinux.so.1 => /lib64/libselinux.so.1 (0x000000331c200000)

#4

Updated by Koen Deforche almost 13 years ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF