"Hello World" beginner problem

Added by Anonymous 4 months ago

Hello, this is probably a typical beginner-question as I am a Wt-beginner. I get unexpected outputs when running the "Hello World" example program from webtoolkit.eu/wt/doc/tutorial/wt.html#_hello_wt and I don't know why. May someone please help me?
I am using Windows 10 and Visual Studio 2017. I have followed the setup-instructions for "the easy method" at redmine.webtoolkit.eu/projects/1/wiki/Installing_Wt_on_MS_Windows. I made sure to download the right .exe file (Wt-4.0.5-rc1-msvs2017-Windows-x64-SDK.exe). I have moved the .dll-files into the project folder.
By the way, I am unsure about the second instruction about defining WIN32 and HPDF_DLL in C/C++ -> Preprocessor. It looks like this: WIN32;HPDF_DLL;%(PreprocessorDefinitions) so please let me know if I defined that wrongly.

Console output:
[date and time] 5956 - [info] "WServer/wthttp: fatal: Document root was not set, or was set to the empty path. Use --docroot to set the HTML root directory."

Output:
'Webtoolkit.exe' (Win32): Loaded 'C:\projects\Webtoolkit\x64\Release\Webtoolkit.exe'. Symbols loaded.
'Webtoolkit.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'. Symbols loaded.
'Webtoolkit.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'. Symbols loaded.
'Webtoolkit.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'. Symbols loaded.
'Webtoolkit.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbase.dll'. Symbols loaded.
'Webtoolkit.exe' (Win32): Loaded 'C:\projects\Webtoolkit\Webtoolkit\wt.dll'. Module was built without symbols.
'Webtoolkit.exe' (Win32): Loaded 'C:\Windows\System32\ws2_32.dll'. Symbols loaded.
'Webtoolkit.exe' (Win32): Loaded 'C:\Windows\System32\rpcrt4.dll'. Symbols loaded.
'Webtoolkit.exe' (Win32): Loaded 'C:\Windows\System32\shlwapi.dll'. Symbols loaded.
'Webtoolkit.exe' (Win32): Loaded 'C:\Windows\System32\msvcp140.dll'. Symbols loaded.
'Webtoolkit.exe' (Win32): Loaded 'C:\Windows\System32\msvcrt.dll'. Symbols loaded.
'Webtoolkit.exe' (Win32): Loaded 'C:\Windows\System32\vcruntime140.dll'. Symbols loaded.
'Webtoolkit.exe' (Win32): Loaded 'C:\projects\Webtoolkit\Webtoolkit\wthttp.dll'. Module was built without symbols.
'Webtoolkit.exe' (Win32): Loaded 'C:\Windows\System32\combase.dll'. Symbols loaded.
'Webtoolkit.exe' (Win32): Loaded 'C:\Windows\System32\bcryptprimitives.dll'. Symbols loaded.
'Webtoolkit.exe' (Win32): Loaded 'C:\Windows\System32\gdi32.dll'. Symbols loaded.
'Webtoolkit.exe' (Win32): Loaded 'C:\Windows\System32\gdi32full.dll'. Symbols loaded.
'Webtoolkit.exe' (Win32): Loaded 'C:\Windows\System32\msvcp_win.dll'. Symbols loaded.
'Webtoolkit.exe' (Win32): Loaded 'C:\Windows\System32\user32.dll'. Symbols loaded.
'Webtoolkit.exe' (Win32): Loaded 'C:\Windows\System32\win32u.dll'. Symbols loaded.
'Webtoolkit.exe' (Win32): Loaded 'C:\Windows\System32\shell32.dll'. Symbols loaded.
'Webtoolkit.exe' (Win32): Loaded 'C:\projects\Webtoolkit\Webtoolkit\ssleay32.dll'. Cannot find or open the PDB file.
'Webtoolkit.exe' (Win32): Loaded 'C:\projects\Webtoolkit\Webtoolkit\libeay32.dll'. Cannot find or open the PDB file.
'Webtoolkit.exe' (Win32): Loaded 'C:\Windows\System32\advapi32.dll'. Symbols loaded.
'Webtoolkit.exe' (Win32): Loaded 'C:\projects\Webtoolkit\Webtoolkit\libhpdf.dll'. Module was built without symbols.
'Webtoolkit.exe' (Win32): Loaded 'C:\Windows\System32\d2d1.dll'. Symbols loaded.
'Webtoolkit.exe' (Win32): Loaded 'C:\Windows\System32\sechost.dll'. Symbols loaded.
'Webtoolkit.exe' (Win32): Loaded 'C:\Windows\System32\DWrite.dll'. Symbols loaded.
'Webtoolkit.exe' (Win32): Loaded 'C:\Windows\System32\opengl32.dll'. Symbols loaded.
'Webtoolkit.exe' (Win32): Loaded 'C:\Windows\System32\mswsock.dll'. Symbols loaded.
'Webtoolkit.exe' (Win32): Loaded 'C:\Windows\System32\cfgmgr32.dll'. Symbols loaded.
'Webtoolkit.exe' (Win32): Loaded 'C:\projects\Webtoolkit\Webtoolkit\libpng14.dll'. Module was built without symbols.
'Webtoolkit.exe' (Win32): Loaded 'C:\projects\Webtoolkit\Webtoolkit\zlib.dll'. Module was built without symbols.
'Webtoolkit.exe' (Win32): Loaded 'C:\Windows\System32\glu32.dll'. Symbols loaded.
'Webtoolkit.exe' (Win32): Loaded 'C:\Windows\System32\SHCore.dll'. Symbols loaded.
'Webtoolkit.exe' (Win32): Loaded 'C:\Windows\System32\windows.storage.dll'. Symbols loaded.
'Webtoolkit.exe' (Win32): Loaded 'C:\Windows\System32\kernel.appcore.dll'. Symbols loaded.
'Webtoolkit.exe' (Win32): Loaded 'C:\Windows\System32\profapi.dll'. Symbols loaded.
'Webtoolkit.exe' (Win32): Loaded 'C:\Windows\System32\powrprof.dll'. Symbols loaded.
'Webtoolkit.exe' (Win32): Loaded 'C:\Windows\System32\fltLib.dll'. Symbols loaded.
'Webtoolkit.exe' (Win32): Loaded 'C:\Windows\System32\ole32.dll'. Symbols loaded.
'Webtoolkit.exe' (Win32): Loaded 'C:\Windows\System32\imm32.dll'. Symbols loaded.
'Webtoolkit.exe' (Win32): Loaded 'C:\Windows\System32\NapiNSP.dll'. Symbols loaded.
'Webtoolkit.exe' (Win32): Loaded 'C:\Windows\System32\pnrpnsp.dll'. Symbols loaded.
'Webtoolkit.exe' (Win32): Loaded 'C:\Windows\System32\nlaapi.dll'. Symbols loaded.
'Webtoolkit.exe' (Win32): Loaded 'C:\Windows\System32\dnsapi.dll'. Symbols loaded.
'Webtoolkit.exe' (Win32): Loaded 'C:\Windows\System32\nsi.dll'. Symbols loaded.
'Webtoolkit.exe' (Win32): Loaded 'C:\Windows\System32\IPHLPAPI.DLL'. Symbols loaded.
'Webtoolkit.exe' (Win32): Loaded 'C:\Windows\System32\winrnr.dll'. Symbols loaded.
'Webtoolkit.exe' (Win32): Loaded 'C:\Windows\System32\wshbth.dll'. Symbols loaded.
Exception thrown at 0x00007FF98BF2A388 in Webtoolkit.exe: Microsoft C++ exception: Wt::WServer::Exception at memory location 0x00000093EA5FEF00.
Exception thrown at 0x00007FF98BF2A388 in Webtoolkit.exe: Microsoft C++ exception: [rethrow] at memory location 0x0000000000000000.
Exception thrown at 0x00007FF98BF2A388 in Webtoolkit.exe: Microsoft C++ exception: Wt::WServer::Exception at memory location 0x00000093EA5FEF00.
The thread 0x27c4 has exited with code 1 (0x1).
The thread 0x280c has exited with code 1 (0x1).
The thread 0x2878 has exited with code 1 (0x1).
The program '[5956] Webtoolkit.exe' has exited with code 1 (0x1).


Replies (3)

RE: "Hello World" beginner problem - Added by Wim Dumon 4 months ago

Hi,

You seem to have missed this part of the instructions:

  In the Debugging tab, set Command Arguments to --docroot . --http-address 0.0.0.0 --http-port 8080

Wt requires these arguments to start: what files it should serve, what interface to listen on, and on what port.

RE: "Hello World" beginner problem - Added by Anonymous 4 months ago

I see. What is the debugging tab, where do I find this?

RE: "Hello World" beginner problem - Added by Anonymous 4 months ago

Nevermind, I found it in Project -> Properties -> Debugging thanks to this blog: https://www.cnblogs.com/subaiBlog/p/5758341.html

(1-3/3)