-
1. Re: Deploying JRuby WAR file: DuplicateServiceException: service is already registered
wdfink Jul 9, 2012 7:05 AM (in response to earthnail)How the structure is?
Where do you add the postgres driver?
-
2. Re: Deploying JRuby WAR file: DuplicateServiceException: service is already registered
earthnail Jul 9, 2012 7:08 AM (in response to wdfink)The postgres driver actually is a gem. I include it in my ruby gemfile:
platforms :jruby do
gem 'activerecord-jdbc-adapter', require: false
gem 'activerecord-jdbcsqlite3-adapter', require: false
gem 'jruby-openssl'
gem 'warbler'
end
Other than that, I do not specifically include the postgres driver anywhere. I only specify using it in my database.yml (where the database connection is in, e.g. username, password, dbname etc.).
-
3. Re: Deploying JRuby WAR file: DuplicateServiceException: service is already registered
wdfink Jul 9, 2012 7:30 AM (in response to earthnail)If you start JBoss without your applciation do you see any message that the postgres driver is loaded?
Do you copy the postgres driver jar into deployments? Maybe with different jar names?
I'm not familiar with JRuby
-
4. Re: Deploying JRuby WAR file: DuplicateServiceException: service is already registered
ctomc Jul 9, 2012 8:20 AM (in response to earthnail)Hey,
did you try http://torquebox.org/features/ this is as7+jruby based solution for deploying ruby aplications.
it works much better than warbler...
--
tomaz