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

  • SEARCH
  • Home
  • 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 7577739
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T17:15:55+00:00 2026-05-30T17:15:55+00:00

I successfully created my war file using warble. I am trying to deploy my

  • 0

I successfully created my war file using warble. I am trying to deploy my Rails 3 application in tomcat.

I am using Ruby 1.9.2 and jRuby 1.6.7 supports it.

I am using windows and set an environment variable JRUBY_OPTS to –1.9.

If I go to the console (cmd) and type jruby -v this is the answer:jruby 1.6.7 (ruby-1.9.2-p312)…..

After deployed, when I execute the application it fails due to a syntaxis problem. Analyzing the log file I can see the following:

System

jruby 1.6.7 (ruby-1.8.7-p357) (2012-02-22 3e82bc8) (Java HotSpot(TM) Client VM 1.6.0_23) [Windows XP-x86-java]

Why is it using ruby 1.8.7? That is causing my error!
I tried to add SET RAILS_OPTS=–1.9.2 to my tomcat startup script but it has the same behaviour.

Note: If I start the server using jruby -S rails S it works well, it starts webrick using 1.9.2. But if I generate the WAR it executes using 1.8.7.

Any idea?

  • 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-05-30T17:15:57+00:00Added an answer on May 30, 2026 at 5:15 pm

    If you run:

    warble config
    

    this creates a config file, config/warble.rb. Open this file, and uncomment the following line:

    # config.webxml.jruby.compat.version = "1.9"
    

    and then repackage your war with warble.

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

Sidebar

Related Questions

I have successfully created a Python Windows service using pywin32. In testing my application
I have developed a Ruby on Rails application and successfully deployed on Weblogic using
I've successfully created Ruby-C++ bindings in the past using SWIG where the C++ code
I have successfully created an app that reads from a bundled .plist file and
Im trying to test my successfully creates a new user after login (using authlogic).
I'm creating an XML file using Perl and XML::Simple module. I successfully create the
I have created a web application using Jersey and Dynamic Web Project of Eclipse.
I am working on a J2EE application, to deploy I am using a build.xml
I successfully created my first Entity Framework Code first project using SQL Server CE.
I've used the maven-ear-plugin with the maven-war-plugin and maven-ejb-plugin to successfully deploy and run

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.