Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7722225
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T04:06:59+00:00 2026-06-01T04:06:59+00:00

My code base initially was written in ruby. It had a rakefile.rb file to

  • 0

My code base initially was written in ruby. It had a rakefile.rb file to perform db migration. I later changed the whole thing to jruby for the ease of deployment which works fine. Only problem I am facing is how to run my rake task (to perform db migrations).

I tried

java -jar GV_S.war -S rake db_migrate[1]

with 1 being the version but this didn’t work.

this gave me :

[Winstone 2012/03/23 18:04:56] - Beginning extraction from war file
[Winstone 2012/03/23 18:04:56] - WARNING: The Servlet 2.4/2.5 spec XSD was unavailable inside the winstone classpath. Will be retrieved from the web if required (slow)
[Winstone 2012/03/23 18:04:56] - No webapp classes folder found - /tmp/winstone6913591014121608835webroot/GV_S.war/WEB-INF/classes
[webapp 2012/03/23 18:04:57] - jruby 1.6.7 (ruby-1.9.2-p312) (2012-02-22 3e82bc8) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_26) [linux-amd64-java]
[Winstone 2012/03/23 18:05:03] - Listener winstone.ajp13.Ajp13Listener not found / disabled - ignoring
[Winstone 2012/03/23 18:05:03] - Listener winstone.ssl.HttpsListener not found / disabled - ignoring
[Winstone 2012/03/23 18:05:03] - Winstone Servlet Engine v0.9.10 running: controlPort=disabled
[Winstone 2012/03/23 18:05:03] - HTTP Listener started: port=8080

Any help ‘ll be appreciated

-Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T04:07:00+00:00Added an answer on June 1, 2026 at 4:07 am

    Finally found something that works…. i first tried

    java -jar lib/jruby-complete-1.6.7.jar -S rake db_migrate[1] 
    

    which was working fine on my personal machine but giving me something like the message below on production

    rake aborted!
    cannot load Java class com.mysql.jdbc.Driver
    
    Tasks: TOP => db_migrate
    (See full trace by running task with --trace)
    

    this was because i was using gems like sequel, logger etc inside my rake task…. i head those installed on my machine but not on production machine…. installing those gems on production was not an option…. so i installed the gems required in the rake task in a separate directory and converted it into a jar file( http://blog.nicksieger.com/articles/2009/01/10/jruby-1-1-6-gems-in-a-jar)… this command finally worked…

    java -jar lib/jruby-complete-1.6.7.jar -rlib/mygems.jar -S rake db_migrate[1]
    

    point to note: no matter where you place the jar file, warbler ‘ll always send this to lib directory although you ‘ll still see a dummy jar file at the original location…
    i think the solution can be a bit neater if worked out in a couple of ways, although haven’t tried this….

    i>by including the gem files in jruby-complete-1.6.7.jar itself as mentioned in the blog mentioned above…

    java -jar lib/jruby-complete-1.6.7.jar -S rake db_migrate[1]
    

    should work then…

    ii>by writing some kind of a manifest file and include it in the mygems.jar to make this run independently… if this happens

    java -jar myapp.jar -S rake db_migrate[1] 
    

    should work

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I work on a code base written in php 4. I'd like to go
The code base I'm currently working on is littered with hard-coded values. I view
My code base is getting quite big and it's difficult to organize all the
I have this legacy code base (Compaq PERL) , about 1500 lines of code,
I have a C code base and need to programmatically identify all of the
I have a code base that makes extensive use of files to represent a
I have a code base that has been used as an ASP.Net web application.
I have a small code base using Subsonic 2.1 in my project. I would
I have an existing code base that is not packaged at all. The code
I inherited a moderately large sized code base that makes extensive use of mysql_fetch_assoc

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.