09 May 2013, 15:23
Generic-user-small

Owen Murphy (11 posts)

Just a small note. The text (on page 15) includes the following:

$ warble executable war
Creating twitalytics.war

$ RAILS_ENV=development java -jar twitalytics.war
[Winstone 2011/10/22 17:37:11] - Beginning extraction from war file
[Winstone 2011/10/22 17:37:13] - WARNING: The Servlet 2.4/2.5 spec XSD was ...
[Winstone 2011/10/22 17:37:13] - No webapp classes folder found - /private/...
[webapp 2011/10/22 17:37:13] - Warning: no max runtimes specified.
[webapp 2011/10/22 17:37:13] - jruby 1.6.7 (ruby-1.8.7-p357) (2012-02-22 3e...
[webapp 2011/10/22 17:37:13] - Info: using runtime pool timeout of 30 seconds
[webapp 2011/10/22 17:37:13] - Warning: no min runtimes specified.
[webapp 2011/10/22 17:37:13] - Warning: no max runtimes specified.
[Winstone 2011/10/22 17:37:13] - Listener winstone.ajp13.Ajp13Listener not ...
[Winstone 2011/10/22 17:37:13] - Listener winstone.ssl.HttpsListener not fo...
[Winstone 2011/10/22 17:37:13] - Winstone Servlet Engine v0.9.10 running: c...
[Winstone 2011/10/22 17:37:13] - HTTP Listener started: port=8080

On a Windows environment, with warbler 1.3.7 previously installed and winstone 0.9.10 pulled down by warbler, the output is different enough to make the proceeding text in the book irrelevant, as there are no warnings about min/max runtimes included.

$ warble executable war
Downloading winstone-0.9.10-jenkins-43.jar
rm -f twitalytics.war
Creating twitalytics.war

$ set RAILS_ENV=development
$ java -jar twitalytics.war
May 09, 2013 3:56:08 PM winstone.Logger logInternal
INFO: Beginning extraction from war file
May 09, 2013 3:56:23 PM winstone.Logger logInternal
WARNING: No webapp classes folder found - C:\Users\...
May 09, 2013 3:56:23 PM winstone.Logger logInternal
INFO: INFO: jruby 1.7.3 (1.9.3p385) 2013-02-21 dac429b on Java...
May 09, 2013 3:56:23 PM winstone.Logger logInternal
INFO: INFO: using : runtime pool with acquire timeout of 10.0 seconds
May 09, 2013 3:56:23 PM winstone.Logger logInternal
INFO: HTTP Listener started: port=8080
May 09, 2013 3:56:23 PM winstone.Logger logInternal
INFO: Winstone Servlet Engine v0.9.10 running: controlPort=disabled
09 May 2013, 15:24
Generic-user-small

Owen Murphy (11 posts)

Similarly, there is a comment on page 17 relating to the output when running the WAR after setting the max runtimes to 1.

“We can tell by the following line in the console output that Warbler is using a single runtime instance of our application:”

[webapp 2012/01/12 19:48:00] - Info: received max runtimes = 1

This output is not seen when starting the WAR in my Windows environment.

  You must be logged in to comment