{"action":"created","issue":{"url":"https://api.github.com/repos/jruby/warbler/issues/263","repository_url":"https://api.github.com/repos/jruby/warbler","labels_url":"https://api.github.com/repos/jruby/warbler/issues/263/labels{/name}","comments_url":"https://api.github.com/repos/jruby/warbler/issues/263/comments","events_url":"https://api.github.com/repos/jruby/warbler/issues/263/events","html_url":"https://github.com/jruby/warbler/issues/263","id":33681631,"number":263,"title":"RVM interference with WAR bundled gems in Tomcat 7","user":{"login":"DrPep","id":84512,"avatar_url":"https://avatars.githubusercontent.com/u/84512?v=3","gravatar_id":"","url":"https://api.github.com/users/DrPep","html_url":"https://github.com/DrPep","followers_url":"https://api.github.com/users/DrPep/followers","following_url":"https://api.github.com/users/DrPep/following{/other_user}","gists_url":"https://api.github.com/users/DrPep/gists{/gist_id}","starred_url":"https://api.github.com/users/DrPep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DrPep/subscriptions","organizations_url":"https://api.github.com/users/DrPep/orgs","repos_url":"https://api.github.com/users/DrPep/repos","events_url":"https://api.github.com/users/DrPep/events{/privacy}","received_events_url":"https://api.github.com/users/DrPep/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2014-05-16T14:54:33Z","updated_at":"2016-05-24T19:37:18Z","closed_at":"2016-05-24T19:37:18Z","body":"Hi,\r\n\r\nWe encountered some issues with RVM interfering with the gems available to a warbler-packaged WAR file (deployed within Tomcat 7).\r\n\r\nObservations:\r\nWe generated a WAR with the following warbler configuration:\r\n\r\n    Warbler::Config.new do |config|\r\n      config.features = %w(runnable)\r\n\r\n      # Application directories to be included in the webapp.\r\n      config.dirs = %w(app config db lib log script vendor doc)\r\n      config.bundle_without = %w(development test assets)\r\n      config.jar_name = 'AppName'\r\n      config.override_gem_home = false\r\n      config.webxml.jruby.min.runtimes = 1\r\n      config.webxml.jruby.max.runtimes = 1\r\n    end\r\n\r\nWhen we set override_gem_home in the warble config to true, the application successfully boots in development and serves pages. However, any rake tasks run against the war file (like db:migrate) fail.\r\n\r\nWhen we set override_gem_home in the warble config to false, rake tasks run successfully, but the application fails to boot.\r\n\r\nIn both cases, the error given is:\r\n\r\n    Bundler::GitError: git@github.com:<user>/<extracted-gem>.git (at master) is not yet checked out. Run `bundle install` first\r\n\r\nAfter trying a number of things, we eventually got both the app and rake tasks to work by setting the RVM gemset in the directory where we were running tomcat to our project's development gemset.\r\n\r\nThis seems to suggest that RVM is blocking the application from using the gems packaged in the WAR file, in surprising ways. We haven't tracked down the precise mechanism by which this happens, so it's possible that it's an RVM issue rather than something Warbler could deal with.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/jruby/warbler/issues/comments/221379230","html_url":"https://github.com/jruby/warbler/issues/263#issuecomment-221379230","issue_url":"https://api.github.com/repos/jruby/warbler/issues/263","id":221379230,"user":{"login":"kares","id":45967,"avatar_url":"https://avatars.githubusercontent.com/u/45967?v=3","gravatar_id":"","url":"https://api.github.com/users/kares","html_url":"https://github.com/kares","followers_url":"https://api.github.com/users/kares/followers","following_url":"https://api.github.com/users/kares/following{/other_user}","gists_url":"https://api.github.com/users/kares/gists{/gist_id}","starred_url":"https://api.github.com/users/kares/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kares/subscriptions","organizations_url":"https://api.github.com/users/kares/orgs","repos_url":"https://api.github.com/users/kares/repos","events_url":"https://api.github.com/users/kares/events{/privacy}","received_events_url":"https://api.github.com/users/kares/received_events","type":"User","site_admin":false},"created_at":"2016-05-24T19:37:18Z","updated_at":"2016-05-24T19:37:18Z","body":"stale/old issue ... :git gems are now working and isolation should be much better esp. on 2.0 with JRuby 9k"}}
{"actor":{"display_login":"kares"}}