Questions tagged [trinidad-gem]

Simple JRuby library to run Ruby on Rails and Rack applications from an embedded Apache Tomcat

31 questions
1
vote
1 answer

Session values aren't kept

I'm using a JRuby(latest, 1.7 RC2)/Sinatra mix on the Trinidad server, for background info. get "/" do @user = session[:user] || [3,2] puts session[:user] haml :home end get "/signed_in" do "#{session[:loggedin]}" end post…
Imnotanerd
  • 1,167
  • 2
  • 14
  • 30
1
vote
0 answers

Rails (jruby) cache error (Can't dump hash with default proc) when caching assets

Ruby version: jruby-1.6.8 Rails version 3.2.6 Server: trinidad I am having an error in my log in production mode whenever an asset (image, CSS or JS) is served where it is not cached (i.e. when it's in the browser cache the app is sending a 304 and…
0
votes
1 answer

Padrino & Trinidad undefined method `register' for Rack::Handler:Module

Trying to run a sample_blog application Padrino framework based application on Trinidad throws weird error undefined method `register' for Rack::Handler:Module Using: trinidad-1.3.4 jruby-rack-1.1.4 Following is the stack trace ip-192-168-1-126: $…
Daya Sharma
  • 2,855
  • 2
  • 15
  • 12
0
votes
1 answer

Can trinidad (running as a daemon) cope with multiple versions of rails (and rack)?

Forgive me if this is a silly question! But to run trinidad as a daemon does it need to be in the system gems? Or can you install just the daemon extension to the system gems? If the former is true is it still possible to run different versions…
Daniel Upton
  • 5,561
  • 8
  • 41
  • 64
0
votes
1 answer

Can the Trinidad server use log files in development?

I'm working on an app that's served using Trinidad, and in development, the server defaults to pushing all of its output to stdout. This is making it very difficult to use a command line debugger (in my case Pry). Is there some way to make it use…
Oleg Bulkin
  • 63
  • 1
  • 7
0
votes
1 answer

error when running trinidad from shell script

I am using rvm to manage ruby versions. Also I am making use of trinidad. When I run trinidad -e production from any path then it runs but when I ran it through the shell script then it given the error Gem::LoadError: Could not find 'trinidad' (>=…
Ajinkya Pisal
  • 551
  • 1
  • 6
  • 24
0
votes
1 answer

Reload jars from lib directory when using Trinidad (JRuby and RoR 3)

Has anyone achieved hot-deployment of Java libraries (or even compiled Java classes) when using Trinidad? My Rails application runs on Trinidad and depends on a Java backend that is packed as many jars under my-rails/lib/java. When one of these jars…
G. Demecki
  • 10,145
  • 3
  • 58
  • 58
0
votes
1 answer

NoMethodError when running sinatra on jruby with sinatra-synchrony

I'm trying to integrate a basic 'hello world' jruby sinatra application with sinatra-synchrony and keep running into errors. app.rb: require 'sinatra/synchrony' class App < Sinatra::Base register Sinatra::Synchrony get '/' do 'Hello…
mhriess
  • 396
  • 3
  • 7
0
votes
1 answer

Nginx configuration for trinidad-gem

How to configure nginx with Trinidad? I did a lot of Googling, but no luck. Is there any resource for a sample configuration?
Santhosh
  • 28,097
  • 9
  • 82
  • 87
0
votes
1 answer

How to add Jar dependencies for JRuby + Trinidad

I am using JRuby with Trinidad. It seems I am able to get Trinidad to recognize my class, which is "com.x.HttpClient". But it doesn't recognize the JARs this class depends on (the HttpClient ones) I get the error: cannot link Java class…
Henley
  • 21,258
  • 32
  • 119
  • 207
0
votes
1 answer

Setting Public folder with Trinidad Gem

I'm running a rails application using the trinidad gem. I'm using the method that lets me use it with the Rack handler: $ jruby -S rails s -p 80 However, it gives me a bunch of 404 errors whenever I try to access something in the rails public/…
user684934
0
votes
1 answer

Getting a value out of a hash

I'm using the gem twitter_oauth. I put in the tokens, and I get my access_token. Now I want to access some information in this hash, but it won't let me for some reason. The best I can do is inspect it: access_token.inspect…
Imnotanerd
  • 1,167
  • 2
  • 14
  • 30
0
votes
1 answer

Which message queue tools are recommended for using in a JRuby on Rails app using Trinidad?

I'm a long time Torquebox user, but now I want to try using Trinidad for JRuby on Rails deployment. One of the best things of using Trinidad instead of Torquebox is that you may use Heroku :) But Torquebox has a message queue feature using JMS and…
razenha
  • 7,660
  • 6
  • 37
  • 53
0
votes
2 answers

What is the preferred way to run Sinatra application?

EDIT: I got the application working using TorqueBox, so I guess the problem is related to Trinidad. However, I think my guestion about the preferred way to run Sinatra applications is still valid. I am using JRuby, Bundler, and modular style. Here's…
Kitanotori
  • 1,741
  • 5
  • 16
  • 23
0
votes
1 answer

Trying to access HBase Java API with JRuby on Rails/Trinidad

I am trying to use the HBase Java API with Trinidad in a Rails 3.2 Application. Everything works fine when I put all jar files into Rails.root/lib/jars, which is Trinidad's preferred *.jar-folder. When I try to separate the jar files from the…
Jasper
  • 1,971
  • 19
  • 34