Running a Sinatra app built with Warbler on WebSphere 6.1

I’m trying to get a trivial “hello world” Sinatra app assembled with
Warbler to run on WebSphere 6.1 but running into an error. The app
starts, but attempting to hit any URL results in:
Error 404: SRVE0200E: Servlet [org.jruby.rack.RackServlet]: Could not
find required class - org.jruby.rack.RackServlet

I followed the advice here
(JRuby on Rails and Websphere — Clint Hill)
and replaced the RackFilter in web.xml with

Rails
org.jruby.rack.RackServlet


Rails
/*

I’m using jruby 1.6.4 and jruby-rack 1.0.10 and verified that they did
get installed to WEB-INF/lib for the application. WebSphere is running
under a Java 5 JRE and on Windows Server 2003.

I’ve been able to deploy the same app with Tomcat without any issue.
I’m not very familiar with WebSphere. Is there anything else I should
need to do to get it to be able to find RackServlet?

On Wed, Sep 7, 2011 at 9:52 PM, Will G. [email protected]
wrote:

Rails

http://xircles.codehaus.org/manage_email

java5 jre could be the culprit. Are you really stuck with WebSphere ?
Or are you just experimenting ?

I’m deploying sinatra apps with latest versions of jruby and
jruby-rack. Last issue I saw was on the way session cookies are
generated in latest sinatra, and informing Nick S solved the problem
(he upgraded jruby-rack internals to rack-1.3.2).

For deployments, I use either jetty or tomcat, but I usually test the
app first with winstone. It usually catch most deployment mistakes,
very handy and small.

Good luck


Christian