Closed millisami closed 12 years ago
Just figured I'd let you know I just saw this issue - sorry for that. Looking into the issue.
I've corrected the file naming problem, updated the pointer to the most recent Vagrant, and changed the default Box to the standard Vagrant Lucid32 that is referenced in the Vagrant docs.
Its fine that you at least took out the time to look at it. Well, I've to try it out first.
Well, that rake
cmd succeeded and the server is also fired up.
But now when I go to http://localhost:8080/up
, the browser shows the Internal Server Error
but still the Virtualbox firesup and hangs on there.
BTW, I changed the Vagrantfile inside the wanton to use my available server box. And I noticed that the boot mode in that Vagrant file is gui. Do I 've to have the box with desktop version installed ubuntu??
$ java -jar wanton.jar ruby-1.9.2-p180
[Winstone 2011/10/14 11:43:14] - Beginning extraction from war file
[Winstone 2011/10/14 11:43:17] - No webapp classes folder found - /private/var/folders/rN/rNuZEfFNEeSzeQ6b+eew-E+++TI/-Tmp-/winstoneEmbeddedWAR/WEB-INF/classes
[webapp 2011/10/14 11:43:17] - jruby 1.6.4 (ruby-1.8.7-p330) (2011-08-23 17ea768) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_26) [darwin-x86_64-java]
*** Using highline effectively in JRuby requires manually installing the ffi-ncurses gem.
*** jruby -S gem install ffi-ncurses
[Winstone 2011/10/14 11:43:35] - HTTP Listener started: port=8080
[Winstone 2011/10/14 11:43:35] - AJP13 Listener started: port=8009
[Winstone 2011/10/14 11:43:35] - Winstone Servlet Engine v0.9.10 running: controlPort=disabled
[webapp 2011/10/14 11:47:25] - 127.0.0.1 - [14/Oct/2011 11:47:25] "GET / " 404 18 0.0280
[webapp 2011/10/14 11:47:25] - 127.0.0.1 - [14/Oct/2011 11:47:25] "GET /favicon.ico " 404 18 0.0070
we are loading the config file
#<Vagrant::Environment:0x1cf0
@cwd=
#<Pathname:/private/var/folders/rN/rNuZEfFNEeSzeQ6b+eew-E+++TI/-Tmp-/winstoneEmbeddedWAR/WEB-INF/lib>,
@loaded=false,
@lock_acquired=false,
@lock_path=nil,
@logger=
#<Logger:0x1cf8
@default_formatter=#<Logger::Formatter:0x1cfc @datetime_format=nil>,
@formatter=
#<Proc:0xe92c877@/private/var/folders/rN/rNuZEfFNEeSzeQ6b+eew-E+++TI/-Tmp-/winstoneEmbeddedWAR/WEB-INF/gems/gems/vagrant-0.8.7/lib/vagrant/environment.rb:311>,
@level=0,
@logdev=nil,
@progname=nil>,
@parent=nil,
@vagrantfile_name=["Vagrantfile", "vagrantfile"],
@vm=nil>
we are loading the config file
#<Vagrant::Environment:0x1d10
@cwd=
#<Pathname:/private/var/folders/rN/rNuZEfFNEeSzeQ6b+eew-E+++TI/-Tmp-/winstoneEmbeddedWAR/WEB-INF/lib>,
@loaded=false,
@lock_acquired=false,
@lock_path=nil,
@logger=
#<Logger:0x1d18
@default_formatter=#<Logger::Formatter:0x1d1c @datetime_format=nil>,
@formatter=
#<Proc:0x12d72107@/private/var/folders/rN/rNuZEfFNEeSzeQ6b+eew-E+++TI/-Tmp-/winstoneEmbeddedWAR/WEB-INF/gems/gems/vagrant-0.8.7/lib/vagrant/environment.rb:311>,
@level=0,
@logdev=nil,
@progname=nil>,
@parent=nil,
@vagrantfile_name=["Vagrantfile", "vagrantfile"],
@vm=nil>
[webapp 2011/10/14 11:47:29] - Vagrant::Errors::VirtualBoxNotDetected - Vagrant could not detect VirtualBox! Make sure VirtualBox is properly installed.
If VirtualBox is installed, it may be an incorrect version. Vagrant currently
requires VirtualBox 4.1.x. Please install the proper version to continue.
If you have an older or newer version of VirtualBox, please make sure you're
using the proper version of Vagrant. Ask the mailing list if you have questions.:
/private/var/folders/rN/rNuZEfFNEeSzeQ6b+eew-E+++TI/-Tmp-/winstoneEmbeddedWAR/WEB-INF/gems/gems/vagrant-0.8.7/lib/vagrant/environment.rb:41:in `check_virtualbox!'
/private/var/folders/rN/rNuZEfFNEeSzeQ6b+eew-E+++TI/-Tmp-/winstoneEmbeddedWAR/WEB-INF/gems/gems/vagrant-0.8.7/lib/vagrant/environment.rb:411:in `load!'
./lib/shrinkwrap.rb:15:in `HEAD /up'
org/jruby/RubyProc.java:274:in `call'
org/jruby/RubyMethod.java:117:in `call'
/private/var/folders/rN/rNuZEfFNEeSzeQ6b+eew-E+++TI/-Tmp-/winstoneEmbeddedWAR/WEB-INF/gems/gems/sinatra-1.3.1/lib/sinatra/base.rb:1211:in `compile!'
org/jruby/RubyProc.java:274:in `call'
org/jruby/RubyProc.java:229:in `call'
/private/var/folders/rN/rNuZEfFNEeSzeQ6b+eew-E+++TI/-Tmp-/winstoneEmbeddedWAR/WEB-INF/gems/gems/sinatra-1.3.1/lib/sinatra/base.rb:772:in `route!'
/private/var/folders/rN/rNuZEfFNEeSzeQ6b+eew-E+++TI/-Tmp-/winstoneEmbeddedWAR/WEB-INF/gems/gems/sinatra-1.3.1/lib/sinatra/base.rb:788:in `route_eval'
/private/var/folders/rN/rNuZEfFNEeSzeQ6b+eew-E+++TI/-Tmp-/winstoneEmbeddedWAR/WEB-INF/gems/gems/sinatra-1.3.1/lib/sinatra/base.rb:772:in `route!'
/private/var/folders/rN/rNuZEfFNEeSzeQ6b+eew-E+++TI/-Tmp-/winstoneEmbeddedWAR/WEB-INF/gems/gems/sinatra-1.3.1/lib/sinatra/base.rb:821:in `process_route'
org/jruby/RubyKernel.java:1191:in `catch'
/private/var/folders/rN/rNuZEfFNEeSzeQ6b+eew-E+++TI/-Tmp-/winstoneEmbeddedWAR/WEB-INF/gems/gems/sinatra-1.3.1/lib/sinatra/base.rb:819:in `process_route'
/private/var/folders/rN/rNuZEfFNEeSzeQ6b+eew-E+++TI/-Tmp-/winstoneEmbeddedWAR/WEB-INF/gems/gems/sinatra-1.3.1/lib/sinatra/base.rb:771:in `route!'
org/jruby/RubyArray.java:1603:in `each'
/private/var/folders/rN/rNuZEfFNEeSzeQ6b+eew-E+++TI/-Tmp-/winstoneEmbeddedWAR/WEB-INF/gems/gems/sinatra-1.3.1/lib/sinatra/base.rb:770:in `route!'
/private/var/folders/rN/rNuZEfFNEeSzeQ6b+eew-E+++TI/-Tmp-/winstoneEmbeddedWAR/WEB-INF/gems/gems/sinatra-1.3.1/lib/sinatra/base.rb:886:in `dispatch!'
/private/var/folders/rN/rNuZEfFNEeSzeQ6b+eew-E+++TI/-Tmp-/winstoneEmbeddedWAR/WEB-INF/gems/gems/sinatra-1.3.1/lib/sinatra/base.rb:706:in `call!'
/private/var/folders/rN/rNuZEfFNEeSzeQ6b+eew-E+++TI/-Tmp-/winstoneEmbeddedWAR/WEB-INF/gems/gems/sinatra-1.3.1/lib/sinatra/base.rb:871:in `invoke'
org/jruby/RubyKernel.java:1191:in `catch'
/private/var/folders/rN/rNuZEfFNEeSzeQ6b+eew-E+++TI/-Tmp-/winstoneEmbeddedWAR/WEB-INF/gems/gems/sinatra-1.3.1/lib/sinatra/base.rb:871:in `invoke'
/private/var/folders/rN/rNuZEfFNEeSzeQ6b+eew-E+++TI/-Tmp-/winstoneEmbeddedWAR/WEB-INF/gems/gems/sinatra-1.3.1/lib/sinatra/base.rb:706:in `call!'
/private/var/folders/rN/rNuZEfFNEeSzeQ6b+eew-E+++TI/-Tmp-/winstoneEmbeddedWAR/WEB-INF/gems/gems/sinatra-1.3.1/lib/sinatra/base.rb:692:in `call'
/private/var/folders/rN/rNuZEfFNEeSzeQ6b+eew-E+++TI/-Tmp-/winstoneEmbeddedWAR/WEB-INF/gems/gems/rack-protection-1.1.4/lib/rack/protection/xss_header.rb:22:in `call'
/private/var/folders/rN/rNuZEfFNEeSzeQ6b+eew-E+++TI/-Tmp-/winstoneEmbeddedWAR/WEB-INF/gems/gems/rack-protection-1.1.4/lib/rack/protection/path_traversal.rb:16:in `call'
/private/var/folders/rN/rNuZEfFNEeSzeQ6b+eew-E+++TI/-Tmp-/winstoneEmbeddedWAR/WEB-INF/gems/gems/rack-protection-1.1.4/lib/rack/protection/json_csrf.rb:17:in `call'
/private/var/folders/rN/rNuZEfFNEeSzeQ6b+eew-E+++TI/-Tmp-/winstoneEmbeddedWAR/WEB-INF/gems/gems/rack-protection-1.1.4/lib/rack/protection/base.rb:47:in `call'
/private/var/folders/rN/rNuZEfFNEeSzeQ6b+eew-E+++TI/-Tmp-/winstoneEmbeddedWAR/WEB-INF/gems/gems/rack-protection-1.1.4/lib/rack/protection/xss_header.rb:22:in `call'
file:/private/var/folders/rN/rNuZEfFNEeSzeQ6b+eew-E+++TI/-Tmp-/winstoneEmbeddedWAR/WEB-INF/lib/jruby-rack-1.0.10.jar!/vendor/rack-1.3.2/rack/logger.rb:15:in `call'
file:/private/var/folders/rN/rNuZEfFNEeSzeQ6b+eew-E+++TI/-Tmp-/winstoneEmbeddedWAR/WEB-INF/lib/jruby-rack-1.0.10.jar!/vendor/rack-1.3.2/rack/commonlogger.rb:20:in `call'
file:/private/var/folders/rN/rNuZEfFNEeSzeQ6b+eew-E+++TI/-Tmp-/winstoneEmbeddedWAR/WEB-INF/lib/jruby-rack-1.0.10.jar!/vendor/rack-1.3.2/rack/head.rb:9:in `call'
file:/private/var/folders/rN/rNuZEfFNEeSzeQ6b+eew-E+++TI/-Tmp-/winstoneEmbeddedWAR/WEB-INF/lib/jruby-rack-1.0.10.jar!/vendor/rack-1.3.2/rack/methodoverride.rb:24:in `call'
file:/private/var/folders/rN/rNuZEfFNEeSzeQ6b+eew-E+++TI/-Tmp-/winstoneEmbeddedWAR/WEB-INF/lib/jruby-rack-1.0.10.jar!/rack/handler/servlet.rb:19:in `call'
[webapp 2011/10/14 11:47:29] - 127.0.0.1 - [14/Oct/2011 11:47:29] "GET /up " 500 30 1.4920
[webapp 2011/10/14 11:47:38] - 127.0.0.1 - [14/Oct/2011 11:47:38] "GET /favicon.ico " 404 18 0.0060
[webapp 2011/10/14 11:47:39] - Vagrant::Errors::VirtualBoxNotDetected - Vagrant could not detect VirtualBox! Make sure VirtualBox is properly installed.
If VirtualBox is installed, it may be an incorrect version. Vagrant currently
requires VirtualBox 4.1.x. Please install the proper version to continue.
If you have an older or newer version of VirtualBox, please make sure you're
using the proper version of Vagrant. Ask the mailing list if you have questions.:
/private/var/folders/rN/rNuZEfFNEeSzeQ6b+eew-E+++TI/-Tmp-/winstoneEmbeddedWAR/WEB-INF/gems/gems/vagrant-0.8.7/lib/vagrant/environment.rb:41:in `check_virtualbox!'
/private/var/folders/rN/rNuZEfFNEeSzeQ6b+eew-E+++TI/-Tmp-/winstoneEmbeddedWAR/WEB-INF/gems/gems/vagrant-0.8.7/lib/vagrant/environment.rb:411:in `load!'
./lib/shrinkwrap.rb:15:in `HEAD /up'
org/jruby/RubyProc.java:274:in `call'
org/jruby/RubyMethod.java:117:in `call'
/private/var/folders/rN/rNuZEfFNEeSzeQ6b+eew-E+++TI/-Tmp-/winstoneEmbeddedWAR/WEB-INF/gems/gems/sinatra-1.3.1/lib/sinatra/base.rb:1211:in `compile!'
org/jruby/RubyProc.java:274:in `call'
org/jruby/RubyProc.java:229:in `call'
/private/var/folders/rN/rNuZEfFNEeSzeQ6b+eew-E+++TI/-Tmp-/winstoneEmbeddedWAR/WEB-INF/gems/gems/sinatra-1.3.1/lib/sinatra/base.rb:772:in `route!'
/private/var/folders/rN/rNuZEfFNEeSzeQ6b+eew-E+++TI/-Tmp-/winstoneEmbeddedWAR/WEB-INF/gems/gems/sinatra-1.3.1/lib/sinatra/base.rb:788:in `route_eval'
/private/var/folders/rN/rNuZEfFNEeSzeQ6b+eew-E+++TI/-Tmp-/winstoneEmbeddedWAR/WEB-INF/gems/gems/sinatra-1.3.1/lib/sinatra/base.rb:772:in `route!'
/private/var/folders/rN/rNuZEfFNEeSzeQ6b+eew-E+++TI/-Tmp-/winstoneEmbeddedWAR/WEB-INF/gems/gems/sinatra-1.3.1/lib/sinatra/base.rb:821:in `process_route'
org/jruby/RubyKernel.java:1191:in `catch'
/private/var/folders/rN/rNuZEfFNEeSzeQ6b+eew-E+++TI/-Tmp-/winstoneEmbeddedWAR/WEB-INF/gems/gems/sinatra-1.3.1/lib/sinatra/base.rb:819:in `process_route'
/private/var/folders/rN/rNuZEfFNEeSzeQ6b+eew-E+++TI/-Tmp-/winstoneEmbeddedWAR/WEB-INF/gems/gems/sinatra-1.3.1/lib/sinatra/base.rb:771:in `route!'
org/jruby/RubyArray.java:1603:in `each'
/private/var/folders/rN/rNuZEfFNEeSzeQ6b+eew-E+++TI/-Tmp-/winstoneEmbeddedWAR/WEB-INF/gems/gems/sinatra-1.3.1/lib/sinatra/base.rb:770:in `route!'
/private/var/folders/rN/rNuZEfFNEeSzeQ6b+eew-E+++TI/-Tmp-/winstoneEmbeddedWAR/WEB-INF/gems/gems/sinatra-1.3.1/lib/sinatra/base.rb:886:in `dispatch!'
/private/var/folders/rN/rNuZEfFNEeSzeQ6b+eew-E+++TI/-Tmp-/winstoneEmbeddedWAR/WEB-INF/gems/gems/sinatra-1.3.1/lib/sinatra/base.rb:706:in `call!'
/private/var/folders/rN/rNuZEfFNEeSzeQ6b+eew-E+++TI/-Tmp-/winstoneEmbeddedWAR/WEB-INF/gems/gems/sinatra-1.3.1/lib/sinatra/base.rb:871:in `invoke'
org/jruby/RubyKernel.java:1191:in `catch'
/private/var/folders/rN/rNuZEfFNEeSzeQ6b+eew-E+++TI/-Tmp-/winstoneEmbeddedWAR/WEB-INF/gems/gems/sinatra-1.3.1/lib/sinatra/base.rb:871:in `invoke'
/private/var/folders/rN/rNuZEfFNEeSzeQ6b+eew-E+++TI/-Tmp-/winstoneEmbeddedWAR/WEB-INF/gems/gems/sinatra-1.3.1/lib/sinatra/base.rb:706:in `call!'
/private/var/folders/rN/rNuZEfFNEeSzeQ6b+eew-E+++TI/-Tmp-/winstoneEmbeddedWAR/WEB-INF/gems/gems/sinatra-1.3.1/lib/sinatra/base.rb:692:in `call'
/private/var/folders/rN/rNuZEfFNEeSzeQ6b+eew-E+++TI/-Tmp-/winstoneEmbeddedWAR/WEB-INF/gems/gems/rack-protection-1.1.4/lib/rack/protection/xss_header.rb:22:in `call'
/private/var/folders/rN/rNuZEfFNEeSzeQ6b+eew-E+++TI/-Tmp-/winstoneEmbeddedWAR/WEB-INF/gems/gems/rack-protection-1.1.4/lib/rack/protection/path_traversal.rb:16:in `call'
/private/var/folders/rN/rNuZEfFNEeSzeQ6b+eew-E+++TI/-Tmp-/winstoneEmbeddedWAR/WEB-INF/gems/gems/rack-protection-1.1.4/lib/rack/protection/json_csrf.rb:17:in `call'
/private/var/folders/rN/rNuZEfFNEeSzeQ6b+eew-E+++TI/-Tmp-/winstoneEmbeddedWAR/WEB-INF/gems/gems/rack-protection-1.1.4/lib/rack/protection/base.rb:47:in `call'
/private/var/folders/rN/rNuZEfFNEeSzeQ6b+eew-E+++TI/-Tmp-/winstoneEmbeddedWAR/WEB-INF/gems/gems/rack-protection-1.1.4/lib/rack/protection/xss_header.rb:22:in `call'
file:/private/var/folders/rN/rNuZEfFNEeSzeQ6b+eew-E+++TI/-Tmp-/winstoneEmbeddedWAR/WEB-INF/lib/jruby-rack-1.0.10.jar!/vendor/rack-1.3.2/rack/logger.rb:15:in `call'
file:/private/var/folders/rN/rNuZEfFNEeSzeQ6b+eew-E+++TI/-Tmp-/winstoneEmbeddedWAR/WEB-INF/lib/jruby-rack-1.0.10.jar!/vendor/rack-1.3.2/rack/commonlogger.rb:20:in `call'
file:/private/var/folders/rN/rNuZEfFNEeSzeQ6b+eew-E+++TI/-Tmp-/winstoneEmbeddedWAR/WEB-INF/lib/jruby-rack-1.0.10.jar!/vendor/rack-1.3.2/rack/head.rb:9:in `call'
file:/private/var/folders/rN/rNuZEfFNEeSzeQ6b+eew-E+++TI/-Tmp-/winstoneEmbeddedWAR/WEB-INF/lib/jruby-rack-1.0.10.jar!/vendor/rack-1.3.2/rack/methodoverride.rb:24:in `call'
file:/private/var/folders/rN/rNuZEfFNEeSzeQ6b+eew-E+++TI/-Tmp-/winstoneEmbeddedWAR/WEB-INF/lib/jruby-rack-1.0.10.jar!/rack/handler/servlet.rb:19:in `call'
[webapp 2011/10/14 11:47:39] - 127.0.0.1 - [14/Oct/2011 11:47:39] "GET /up " 500 30 12.9360
[Winstone 2011/10/14 11:47:39] - Untrapped Error in Servlet
java.net.SocketException: Broken pipe
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at winstone.WinstoneOutputStream.commit(WinstoneOutputStream.java:161)
at winstone.WinstoneOutputStream.flush(WinstoneOutputStream.java:199)
at winstone.WinstoneResponse.flushBuffer(WinstoneResponse.java:438)
at winstone.RequestDispatcher.forward(RequestDispatcher.java:340)
at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244)
at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
at java.lang.Thread.run(Thread.java:680)
Nope, the :gui just means the GUI for VirtualBox, rather than "headless". BTW, what version of VirtualBox do you have installed?
Its 4.1.2
Followed the README but it blows while executing rake.
I'm using jruby 1.6.4 and java
And this is the trace: