Hello Jason, docroot is the directory where the HTTP server will fetch files if the request is not handled by your application. For a Wt application, it should contain at least the 'resources' folder that came in the src directory of your Wt version. Some of Wt's widgets assume that they can fetch static files (css, images, ...). You must specify a docroot. If you really don't wat to serve any files, point the docroot to an empty directory - but watch out for 404 (file not found) errors in your log!
Best regards, Wim. 2011/11/30 Jason H <scorp...@yahoo.com>: > My first program just bails, I was hoping someone could tell me what I am > doing wrong. > > My main looks like this: > #include "mywidget.h" > #include <Wt/WEnvironment> > WApplication *createApplication(const WEnvironment& env) > { > WApplication *app = new WApplication(env); > app->root()->addWidget(new MyWidget()); > return app; > } > > > int main(int argc, char *argv[]) > { > return WRun(argc, argv, &createApplication); > } > I compiled with -lwt and -lwthttp and got: > stat: No such file or directory > Error: Document root ("") not valid. > > To me this is confusing because I do not wish to have a root folder, I only > want MyWidget displayed. FWIW, the MyWidget just adds some > WInteractiveWidgets to itself, a WContainterWidget. > Any help for this noob? > Thanks! > > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity, and more. Splunk takes this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d > _______________________________________________ > witty-interest mailing list > witty-interest@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/witty-interest > > ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d _______________________________________________ witty-interest mailing list witty-interest@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/witty-interest