Class loading errors with tomcat/warbler

In the code below, generates this error under
tomcat/warbler, while webrick runs fine. HTTPClient is a third party
ruby gem that’s specified in Gemfile. Funny thing is, it’s been there
for a while and this error only cropped up after I added some new
gems. Looks like an ordering issue with class loading that’s not
accounting for the non standard HTTPClient class name.

Expected lib/offbeat/http_client.rb to define HTTPClient

module Offbeat
class HttpClient

class Logger

def initialize
@client = HTTPClient



This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs