jruby-rack | Rack for JRuby and Java appservers | Continuous Deployment library
kandi X-RAY | jruby-rack Summary
kandi X-RAY | jruby-rack Summary
JRuby-Rack is a lightweight adapter for the Java Servlet environment that allows any (Ruby) Rack-based application to run unmodified in a Java Servlet container. JRuby-Rack supports Rails as well as any Rack-compatible Ruby web framework. For more information on Rack, visit
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of jruby-rack
jruby-rack Key Features
jruby-rack Examples and Code Snippets
Community Discussions
Trending Discussions on jruby-rack
QUESTION
I was trying to look at the system information on my local SonarQube system today. Nothing was displayed, so I checked the logs that are linked from the page. I found the output below. I haven't changed my sonar installation in months so I don't know how something would have changed, and I believe that I've been to the system info page since the last upgrade.
Any ideas what's wrong or how to fix it?
...ANSWER
Answered 2018-Apr-23 at 16:39Apparently I had upgraded the JDK version sometime ago and something got messed up. I ran alternatives java, java and re-selected the current option and that specific problem seems to be resolved.
But now see: SonarQube won't display System Info.
QUESTION
I am trying to start the sonarqube with ./sonar.sh start
command. It starts for 5 secs and then stops on it own.
The log file shows this:
...ANSWER
Answered 2018-Apr-16 at 05:52Your SonarQube is configured to use a Postgresql database, however your server is not able to connect to this database, according to this error :
QUESTION
We recently upgraded an old rails app from rails 3 to 4.2, along with many other gem updates. Now I can't get my rails app to load any pages. We were on JRuby 9.1.0.0 but upgraded to 9.1.8.0. However, I'm hitting the same problem on both versions.
Once we start tomcat with our latest .war
, it runs all the way until I see the INFO: Server startup in 1234ms
message. I've added some debug statements in my rails environment / initializers files to follow it through and it is hitting each of them. So once I see the startup message from tomcat, I figured it would be okay. However, it immediately spits out the following message quite a few times:
DEBUG: resetting rack response due exception
Every time I load a URL, it also shows that message in my logs.
I see that it's from this jruby-rack class but I have no idea how to debug or troubleshoot this further.
I assume that something in my configuration is causing a problem or that a class/module is somehow short-circuiting it but I'm not sure how to identify which one it is or isolate the issue.
Does anybody know of a way to get some more verbose logs or ways to figure out where the problem is happening?
Happy to post any config/gemfiles etc if it will help.
...ANSWER
Answered 2018-Jan-09 at 23:04After receiving some great help from the #jruby IRC channel, they mentioned the error message was missing the specific exception message. I was using the latest version, v1.1.21
so I just made a hack-build that added some logging to identify my problem further. Turns out it was a runtime error because of some missing config.
I made an issue with jruby-rack and a PR which will hopefully make its way into the next release!
QUESTION
I have a Jruby project that is using background processes that need to be run every x minutes. I am using Jruby-rack-worker + delayed_cron_job library. I have followed the jruby-rack-worker instructions as follow:
Copy the jruby-rack-worker.jar file under lib folder
my web.xml located under config folder:
my worker rb file:
my GEM file:
gem 'jruby-rack-worker', :platform => :jruby, :require => nil
gem 'delayed_cron_job'
After the deployment of the WAR file on WebLogic, I have checked the log file and I can see that after the completion of deployment, It is trying to start the Worker but nothing happening:
...ANSWER
Answered 2017-Jul-15 at 16:24you have it right and your log output confirms the worker started, fine!
QUESTION
We'd like to deploy multiple instances of the same Rails application within a single Tomcat container using jruby-rack.
The first instance comes up fine, but the second one fails:
...ANSWER
Answered 2017-May-23 at 12:03It looks like this was a jRuby issue and the problem was fixed in 9.1.8.0. We can't reproduce the problem anymore.
QUESTION
I am trying to restore a quality profile on a fresh installation of SonarQube v.5.6.4 over Web API using curl.
In c:\temp I have an exported "Sonar way" profile from running Sonar and I have renamed it to test.xml (inside, the name was also changed to test so that both profiles are "different").
From the c:\temp location, I used the following curl command:
...ANSWER
Answered 2017-Jan-30 at 14:22The answer to my problem was this command:
QUESTION
Steps to replicate:
- Create a new Rails project. (rails 3.2.22.5)
- Add dependencies (warbler, rake, rufus-scheduler) (/Gemfile)
- JRuby 9.1.7.0
- Create new files. (/config/warble.rb) (/web.xml.erb) (/config/intializers/scheduler_rufus.rb)
- Create an executable war file with jetty webserver. (warble war RAILS_ENV=development)
- Launch the executable. (java -jar mywar.war)
- The scheduler does not run the cron job.
/Gemfile:
...ANSWER
Answered 2017-Feb-09 at 06:14You're saying "it's not scheduling". I guess you've waited until the specified 1815
but nothing happened.
According to your previous question (Why is Rufus scheduling the job twice?) rufus-scheduler is actually scheduling, so what's happening?
Rufus-scheduler 3.3.3 (the one you seem to be using) defaults to using Rails' timezone. This timezone is set in config/application.rb and defaults to UTC.
Could it be that you waited until 1815 local time (not UTC time) and nothing happened?
Try with a schedule like "* * * * *"
(every minute) or "*/5 * * * *"
(0, 5, 10, 15, ... minute).
QUESTION
Steps to replicate:
- Create a new Rails project. (rails 3.2.22.5)
- Add dependencies (warbler, rake, rufus-scheduler) (/Gemfile)
- JRuby 9.1.7.0
- Create new files. (/config/warble.rb) (/web.xml.erb) (/config/intializers/scheduler_rufus.rb)
- Create an executable war file with jetty webserver. (warble war RAILS_ENV=development)
- Launch the executable. (java -jar mywar.war)
- The scheduler runs the job 2 times.
/Gemfile:
...ANSWER
Answered 2017-Feb-08 at 21:02Rufus-scheduler was scheduling twice because there were 2 Ruby runtimes in my application server. I had to limit to 1 runtime.
Change the pool of Rails runtimes in /config/warble.rb
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install jruby-rack
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page