Hi you all,
I have installed jruby 1.1.2. I’ve made a simple application (copied
from
[1]), and this application works fine with Mongrel.
Problems have come when trying to execute it in Tomcat. I have installed
Warbler. I have generated the war and copied in tomcat/webapps (such as
explained in [2])
When starting Tomcat, the deployment works correctly (without apparent
mistakes). But when going to localhost:8080/myapp/posts, I have:
"Application initialization failed: null "
In logs I have something like:
29-may-2008 17:18:29 org.apache.catalina.core.ApplicationContext log
GRAVE: Exception caught
java.lang.NullPointerException
at org.jruby.runtime.load.LoadService.findFile(LoadService.java:466)
at
org.jruby.runtime.load.LoadService.findLibrary(LoadService.java:391)
at org.jruby.runtime.load.LoadService.smartLoad(LoadService.java:258)
at org.jruby.runtime.load.LoadService.require(LoadService.java:346)
at org.jruby.Ruby.initBuiltins(Ruby.java:1158)
at org.jruby.Ruby.init(Ruby.java:843)
at org.jruby.Ruby.newInstance(Ruby.java:158)
at
org.jruby.javasupport.JavaEmbedUtils.initialize(JavaEmbedUtils.java:85)
at
org.jruby.rack.DefaultRackApplicationFactory.newRuntime(DefaultRackApplicationFactory.java:79)
at
org.jruby.rack.DefaultRackApplicationFactory.createApplication(DefaultRackApplicationFactory.java:144)
at
org.jruby.rack.DefaultRackApplicationFactory.newApplication(DefaultRackApplicationFactory.java:44)
at
org.jruby.rack.DefaultRackApplicationFactory.getApplication(DefaultRackApplicationFactory.java:52)
at
org.jruby.rack.PoolingRackApplicationFactory.getApplication(PoolingRackApplicationFactory.java:92)
at
org.jruby.rack.DefaultRackDispatcher.process(DefaultRackDispatcher.java:31)
at org.jruby.rack.RackFilter.doFilter(RackFilter.java:51)
Am i doing something wrong? I mean, do you have any clue about it?
[1]
http://blog.emptyway.com/2008/04/08/120-seconds-guide-to-jruby-on-rails/
[2] http://wiki.jruby.org/wiki/Jruby_on_Rails_on_Tomcat (the Rails 2.0
section)
–
View this message in context:
http://www.nabble.com/Newbie-executing-app-after-deployed-in-Tomcat-tp17541412p17541412.html
Sent from the JRuby - User mailing list archive at Nabble.com.
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email