Script/server doesn't work in jruby

Hi,

I am completely new to JRuby and I was trying to get the server to run.

I typed in:

$jruby script/server

and I got the following error:

=> Booting WEBrick
=> Rails 2.3.8 application starting on http://0.0.0.0:3000
JRuby limited openssl loaded. http://jruby.org/openssl
gem install jruby-openssl for full support.
/home/jacqueline/iGEM/Alberta-IGEM/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:76:in
establish_connection': Please install the jdbcmysql adapter: gem
install activerecord-jdbcmysql-adapter` (no such file to load –
active_record/connection_adapters/jdbcmysql_adapter) (RuntimeError)

When I typed gem list, I got:

*** LOCAL GEMS ***

actionmailer (2.3.8, 2.3.4)
actionpack (2.3.8, 2.3.4)
activerecord (2.3.8, 2.3.4)
activerecord-jdbc-adapter (0.9.7)
activerecord-jdbcmysql-adapter (0.9.7)
activeresource (2.3.8, 2.3.4)
activesupport (2.3.8, 2.3.4)
cgi_multipart_eof_fix (2.5.0)
daemons (1.0.10)
fastthread (1.0.7)
gem_plugin (0.2.3)
haml (3.0.6)
jdbc-mysql (5.0.4)
jruby-openssl (0.7)
mongrel (1.1.5)
mysql (2.8.1)
rack (1.1.0, 1.0.0)
rails (2.3.8, 2.3.4)
rake (0.8.7)
rubygems-update (1.3.7)

so I think that means openssl and activerecord-jdbcmysql-adapter are
both installed.

Does anyone have any suggestions on how to get the server to run?

thanks for any help

oh I forgot to mention, I’m running Jruby on rails on unix

Maybe uninstall, then reinstall those gems??

On Mon, May 31, 2010 at 11:19 AM, Jennifer L. [email protected]
wrote:

=> Booting WEBrick

daemons (1.0.10)
rubygems-update (1.3.7)

To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email


Joshua S. Martin

CONFIDENTIALITY NOTE: This e-mail message, including any attachment(s),
contains information that may be confidential, protected by the attorney
client or other legal privileges, and or proprietary non public
information.
If you are not an intended recipient of this message or an authorized
assistant to an intended recipient, please notify the sender by replying
to
this message and then delete it from your system. Use, dissemination,
distribution, or reproduction of this message and or any of its
attachments
(if any) by unintended recipients is not authorized and may be unlawful.

On Mon, May 31, 2010 at 8:19 AM, Jennifer L. [email protected]
wrote:

When I typed gem list, I got:

Did you type gem list or jruby -S gem list ?

The JRuby gems and MRI gem directories are completely separate.

Does anyone have any suggestions on how to get the server to run?

It should just work once you have the DB adapter straightened out.


Hassan S. ------------------------ [email protected]
twitter: @hassan


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

the minimal set of rubygems you need for running rails with jruby (and
mysql) is - maybe there are some newer version around:

*** LOCAL GEMS ***

actionmailer (2.3.5)
actionpack (2.3.5)
activerecord (2.3.5)
activerecord-jdbc-adapter (0.9.4)
activeresource (2.3.5)
activesupport (2.3.5)
jdbc-mysql (5.0.4)
rack (1.0.1)
rails (2.3.5)
rake (0.8.7)

maybe this helps.

regards Kristian

On Mon, May 31, 2010 at 8:49 PM, Jennifer L. [email protected]
wrote:

=> Booting WEBrick
*** LOCAL GEMS ***
fastthread (1.0.7)

To unsubscribe from this list, please visit:

  http://xircles.codehaus.org/manage_email


Kristian Meier + Saumya Sharma + Sanuka Meier
Vadakkethu House,
Edayanmula West PO - 689532,
Pathanamthitta District, Kerala, INDIA

tel: +91 468 2319577

protect your privacy while searching the net: www.ixquick.com

         _=_
       q(-_-)p
        '_) (_`
        /__/  \
     _(<_   / )_
  (__\_\_|_/__)

To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Joshua M. wrote:

Maybe uninstall, then reinstall those gems??

Ya, that seemed to work, thank you