Sign in or 

|
simoha78 |
Error by deploying rails Apps on tomcat
Aug 26 2009, 6:16 AM EDT
I have a Rails application (MyApp) and want deploy it on Tomcat. - The configuration files (environment.rb, database.rb, warble.rb) are correctly configured. - *** LOCAL GEMS *** actionmailer (2.3.3) actionpack (2.3.3) activerecord (2.3.3) ActiveRecord-JDBC (0.5) activerecord-jdbc-adapter (0.9.1) activerecord-jdbcmysql-adapter (0.9.1) activeresource (2.3.3) activesupport (2.3.3) ambethia-smtp-tls (1.1.2) builder (2.1.2) camping (1.5.180) chronic (0.2.3) fastercsv (1.5.0) hoe (2.3.3) jdbc-mysql (5.0.4) jruby-openssl (0.5.1) markaby (0.5) metaid (1.0) mislav-will_paginate (2.3.11) packet (0.1.15) rack (1.0.0) rails (2.3.3) rake (0.8.7) rspec (1.2.6) rubyforge (1.0.4) rubygems-update (1.3.5) rubyist-aasm (2.1.1) sources (0.0.1) test-spec (0.10.0) warbler (0.9.13) will_paginate (2.2.2) I use Warbler for creating the WAR file, then I copy this fWAR-file into webapps, start tomcat and call: http://localhost:8080/myApps. Then I get in logs from Tomcat, the following error: org.jruby.rack.RackInitializationException: no such file to load -- packet from file:/C:/Programme/Apache Software Foundation/apache-tomcat-6.0.20/webapps/Jruby_App/WEB-INF/lib/jruby-complete-1.3.0RC1.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' I extended my Application with the following plug-ins: attachment_fu, auto_complete, backgroundrb, restful_authentication I think they cause this problem. I think they should be installed on the Tomcat server too, but I don't know, how I do it. Can you please tell me wat I am missing? Thanks im Advance Do you find this valuable?
Keyword tags:
None
|
|
saturnflyer |
1. RE: Error by deploying rails Apps on tomcat
Sep 22 2009, 1:47 PM EDT
It's unable to find your packet gem. It is possibly related to this http://kenai.com/projects/jruby-rack/lists/issues/archive/2009-09/message/0 although that is OAS specific.Try my fork of jruby-rack http://github.com/saturnflyer/jruby-rack Clone it, run "jruby -S rake" and take the generated jar and put it in lib. Then, in your config/warble.rb: config.java_libs.delete_if {|f| f =~ /jruby-rack/ } config.java_libs += FileList["lib/jruby-rack*.jar"] Do you find this valuable? |