trinidad/trinidad — Issue #47: NativeException: org.apache.catalina.LifecycleException: Failed to start component [StandardServer[-1]]
Author: alexzar
Created: 2012-01-23 19:02:24+00:00
State: open

I have a pretty simple application:

$> cat test.rb
## --test.rb Sinatra App--
require 'rubygems'
require 'sinatra'

get '/' do
[ 200, { 'Content-Type' => 'text/plain' }, 'Hello, World!' ] end

## --end test.rb--

$> cat config.ru
## --config.ru--
require 'rubygems'
require 'sinatra'
require './test.rb'

run Sinatra::Application
## --end config.ru--

When I run it as

$ trinidad -r

I am getting the following error
log4j:WARN No appenders could be found for logger (org.apache.catalina.core.ContainerBase).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
NativeException: org.apache.catalina.LifecycleException: Failed to start component [StandardServer[-1]]
start at /home/....../.rvm/gems/jruby-1.6.5/gems/trinidad-1.3.0/lib/trinidad/server.rb:212
(root) at /home/...../.rvm/gems/jruby-1.6.5/gems/trinidad-1.3.0/bin/trinidad:6
load at org/jruby/RubyKernel.java:1073
(root) at /home/....../.rvm/gems/jruby-1.6.5/bin/trinidad:19

Any ideas of how to fix it? Thanks, Alex

That are installed gems:

$ gem list

*** LOCAL GEMS ***

awesome_print (0.4.0)
bouncy-castle-java (1.5.0146.1)
bundler (1.0.21 ruby)
facets (2.9.2)
httparty (0.8.1)
jdbc-mysql (5.1.13)
jruby-launcher (1.0.9 java)
jruby-openssl (0.7.4)
jruby-rack (1.1.2)
json (1.6.1 java)
macaddr (1.5.0)
minitest (2.7.0)
multi_json (1.0.3)
multi_xml (0.4.1)
nokogiri (1.5.0 java)
rack (1.4.0)
rack-protection (1.2.0)
rake (0.9.2, 0.8.7)
rdoc (3.11)
simplecov (0.5.4)
simplecov-html (0.5.3)
sinatra (1.3.2)
systemu (2.4.2)
tilt (1.3.3)
trinidad (1.3.0)
trinidad_daemon_extension (0.2.10)
trinidad_jars (1.0.2)
trinidad_logging_extension (1.0.0)
uuid (2.3.4)
uuidtools (2.1.2)