1
我有一些麻煩,用鶯打包我的JRuby應用程序並運行它。鶯可執行文件無法啓動
我創建了一個簡單的sqlite3應用程序,其中一個模型在通過jruby -S rails s
運行時工作正常。
不過,如果我嘗試用jruby -S warble executable war
與
[Winstone 2010/12/20 10:33:48] - Beginning extraction from war file
[Winstone 2010/12/20 10:33:50] - WARNING: The Servlet 2.4/2.5 spec XSD was unavailable inside the winstone classpath. Will be retrieved from the web if required (slow)
[Winstone 2010/12/20 10:33:50] - No webapp classes folder found - C:\Temp\winstone908137348044208817webroot\sqlite-test.war\WEB-INF\classes
[webapp 2010/12/20 10:33:51] - Warning: error application could not be initialized org.jruby.rack.RackInitializationException: no such file to load -- builtin/core_ext/symbol
at org.jruby.rack.DefaultRackApplicationFactory.newRuntime(DefaultRackApplicationFactory.java:85)
at org.jruby.rack.DefaultRackApplicationFactory.createApplication(DefaultRackApplicationFactory.java:177)
at org.jruby.rack.DefaultRackApplicationFactory.newErrorApplication(DefaultRackApplicationFactory.java:127)
at org.jruby.rack.DefaultRackApplicationFactory.init(DefaultRackApplicationFactory.java:45)
at org.jruby.rack.PoolingRackApplicationFactory.init(PoolingRackApplicationFactory.java:50)
at org.jruby.rack.RackServletContextListener.contextInitialized(RackServletContextListener.java:40)
at winstone.WebAppConfiguration.<init>(WebAppConfiguration.java:889)
at winstone.HostConfiguration.initWebApp(HostConfiguration.java:131)
at winstone.HostConfiguration.<init>(HostConfiguration.java:73)
at winstone.HostGroup.initHost(HostGroup.java:85)
at winstone.HostGroup.<init>(HostGroup.java:45)
at winstone.Launcher.<init>(Launcher.java:196)
at winstone.Launcher.main(Launcher.java:391)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at Main.launchWinstone(Main.java:67)
at Main.start(Main.java:72)
at Main.main(Main.java:97)
Caused by: org.jruby.exceptions.RaiseException: no such file to load -- builtin/core_ext/symbol
at (unknown).new(:1)
at (unknown).(unknown)(:1)
包裝它的包裝溫斯頓 - 服務器崩潰哪裏該從哪裏來,以及如何得到這個運行?
非常感謝,我已經升級到JRuby 1.5.6和jruby-rack 1.0.4,這個錯誤似乎是固定的。雖然從戰爭中使用空格的方式運行戰爭仍然無效,但會失敗,因爲「所提供的戰爭文件不可用或無效」 – Jan 2010-12-21 08:43:27