Unrecognized line
Added by Saif Rehman 4 months ago
Hi,
I'm using Windows 7 PC for development and I get the following error (through exception)
"Error: unrecognized line in '<server>'"
No matter which file I use. when I use the default file it gives me an error on Server.setServerConfiguration(argc, argv, "wt_config.xml");
"Error: unrecognized line in '<!--'"
My configuration file is the following
<server>
<application-settings location="*">
<session-management>
<shared-process>
<num-processes>1</num-processes>
</shared-process>
<tracking>Auto</tracking>
<reload-is-new-session>false</reload-is-new-session>
<timeout>600</timeout>
<server-push-timeout>50</server-push-timeout>
</session-management>
<connector-fcgi>
<valgrind-path/>
<run-directory>C:/witty</run-directory>
<num-threads>5</num-threads>
</connector-fcgi>
<connector-isapi>
<num-threads>10</num-threads>
<max-memory-request-size>128</max-memory-request-size>
</connector-isapi>
<debug>false</debug>
<log-file>./logs</log-file>
<log-config>*</log-config>
<max-request-size>128</max-request-size>
<session-id-length>16</session-id-length>
<plain-ajax-sessions-ratio-limit>1</plain-ajax-sessions-ratio-limit>
<ajax-puzzle>true</ajax-puzzle>
<send-xhtml-mime-type>false</send-xhtml-mime-type>
<strict-event-serialization>false</strict-event-serialization>
<web-sockets>false</web-sockets>
<redirect-message>Click here if the page does not refreshes.</redirect-message>
<behind-reverse-proxy>true</behind-reverse-proxy>
<inline-css>true</inline-css>
<indicator-timeout>500</indicator-timeout>
<user-agents type="ajax" mode="black-list"/>
<user-agents type="bot">
<user-agent>.*Googlebot.*</user-agent>
<user-agent>.*msnbot.*</user-agent>
<user-agent>.*Slurp.*</user-agent>
<user-agent>.*Crawler.*</user-agent>
<user-agent>.*Bot.*</user-agent>
<user-agent>.*ia_archiver.*</user-agent>
<user-agent>.*Twiceler.*</user-agent>
</user-agents>
<progressive-bootstrap>true</progressive-bootstrap>
<session-id-cookie>true</session-id-cookie>
<properties>
<property name="resourcesURL">resources/</property>
<property name="extBaseURL">resources/ext/</property>
</properties>
</application-settings>
</server>
Replies
RE: Unrecognized line - Added by Koen Deforche 3 months ago
Hey,
Sorry for the late response.
There are two configuration files:- wt_config.xml
- wthttpd which may contain the same arguments as the command-line allows for the built-in httpd. It's contents is for example:
docroot = . http-address = 0.0.0.0 http-port = 9090
A non-default location of the wt_config.xml file can be passed as second argument to the constructor of WServer(), or the location can be specified through command-line argument "--config"
Regards,
koen
RE: Unrecognized line - Added by Saif Rehman 3 months ago
Thank you again koen .. It's working now :)