« Return to Thread: Newbie executing app after deployed in Tomcat

Re: Newbie executing app after deployed in Tomcat

by Nick Sieger-2 :: Rate this Message:

Reply to Author | View in Thread

On Thu, May 29, 2008 at 10:20 AM, Damaris <dfl_maradentro@...> wrote:

>
> 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?

It certainly is an unusual error -- I haven't seen it before. Because
we're allowing a java stack trace to escape, I'd definitely say it's a
JRuby bug.

Can you please create an issue in JIRA [1] and provide the version of
Tomcat you're using, the complete contents of your server log file?
Also, if possible, can you attach the output of "jar tf myapp.war >
myapp.txt"? It will help us to track this more effectively than
through email.

Thanks,
/Nick

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


 « Return to Thread: Newbie executing app after deployed in Tomcat