Thanks, that fixes that problem. I switched to goldspike-snapshot and
removed by previous WEB-INF/web.xml file, and the rake task recreated
it.

Now Rails actually starts up (I get "Welcome to Rails"), but it seems
that the Goldspike servlet gets interpreted as a rails path rather
than being intercepted somewhere. Here's the last entry in
production.log:

Processing ApplicationController#index (for 172.31.1.22 at 2007-06-04
09:22:26) [GET]
  Session ID: 817bd98fcfc407ffdc9dca645a076305
  Parameters: {}


ActionController::RoutingError (no route found to match
"/servlet/rails" with {:method=>:get}):
    
D:/OraHome_1/j2ee/OC4J_EscCatchAll/applications/tgt-admin/tgt-admin/WEB-INF/gems/gems/actionpack-1.13.3/lib/action_controller/routing.rb:1292:in
`recognize_path'
    
D:/OraHome_1/j2ee/OC4J_EscCatchAll/applications/tgt-admin/tgt-admin/WEB-INF/gems/gems/actionpack-1.13.3/lib/action_controller/routing.rb:1282:in
`recognize'
    
D:/OraHome_1/j2ee/OC4J_EscCatchAll/applications/tgt-admin/tgt-admin/WEB-INF/gems/gems/rails-1.2.3/lib/dispatcher.rb:40:in
`dispatch'
    <script>:0

So what am I doing wrong? Any help is much appreciated, I've been
wrestling with JRuby on Rails on Oracle for the last month or so, on
and off.

Cheers,

-- Steen

On 02/06/07, Robert Egglestone <[EMAIL PROTECTED]> wrote:
> Please add this to your web.xml, or use the goldspike-snapshot version
> of the plugin.
> <listener>
>   <listener-class>org.jruby.webapp.RailsContextListener</listener-class>
> </listener>
>
> The runtime pool has been moved out into a context listener to enable
> proper lifecycle management.
>
> Cheers,
> Robert
>
> Steen Lehmann wrote:
> > Hi,
> >
> > I'm using Goldspike to run Rails on JRuby in an Oracle app server.
> > However, recently I've been getting an exception relating to the
> > runtime pool handling, preventing my application from working.
> >
> > I've been using trial-and-error to locate the exact revision where
> > things went haywire, and the last revision where I don't get the error
> > is 579.
> >
> > Here's the exception:
> >
> > 07/06/01 10:38:11.675 10.1.3.1.0 Started
> > 07/06/01 10:38:19.333 tgt-admin: 10.1.3.1.0 Started
> > 07/06/01 10:38:20.458 tgt-admin: Servlet error
> > javax.servlet.ServletException: No runtime pool is available, please
> > check RailsContextListener
> >         at 
> > org.jruby.webapp.AbstractRailsServlet.getRuntimePool(AbstractRailsServlet.java:69)
> >         at 
> > org.jruby.webapp.AbstractRailsServlet.serviceRequest(AbstractRailsServlet.java:45)
> >         at 
> > org.jruby.webapp.AbstractRailsServlet.service(AbstractRailsServlet.java:34)
> >         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> >         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0)
> > ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)
> >         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0)
> > ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
> >         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0)
> > ].server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:259)
> >         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0)
> > ].server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:50)
> >         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0)
> > ].server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193)
> >         at 
> > oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
> >         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0)
> > ].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198)
> >         at org.jruby.webapp.FileServlet.doGet(FileServlet.java:113)
> >         at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
> >         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> >         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0)
> > ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)
> >         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0)
> > ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
> >         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0)
> > ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
> >         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0)
> > ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
> >         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0)
> > ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
> >         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0)
> > ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
> >         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0)
> > ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
> >         at 
> > oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
> >         at 
> > oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
> >         at 
> > oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
> >         at 
> > oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
> >         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0)
> > ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
> >         at java.lang.Thread.run(Thread.java:613)
> >
> > Thanks for any help,
> >
> > -- Steen
> > _______________________________________________
> > Jruby-extras-devel mailing list
> > [email protected]
> > http://rubyforge.org/mailman/listinfo/jruby-extras-devel
> >
> _______________________________________________
> Jruby-extras-devel mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/jruby-extras-devel
>
_______________________________________________
Jruby-extras-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/jruby-extras-devel

Reply via email to