Sign in or 

sudo jruby -S gem install rails [-y]
sudo jruby -S gem install activerecord-jdbc-adapter
jruby -S rails bookstore
cd bookstore
development: adapter: jdbc production: development | development: adapter: oracle production: development | development: adapter: oracle production: development |
unless defined?(RAILS_CONNECTION_ADAPTERS)RAILS_CONNECTION_ADAPTERS = %w( mysql postgresql sqlite firebird sqlserver db2 oracle sybase openbase frontbase jdbc)end
ruby script/generate scaffold book name:string description:text price:float
jruby -S rake db:migrate
jruby script/server
jruby -S gem install warbler
jruby -S warbler config
config.gems = ["activerecord-jdbc-adapter", "rails" ]
jruby -S warbler [war]
java -jar $OC4J_ROOT/j2ee/home/admin_client.jar deployer:oc4j:localhost:23791 oc4jadmin -deploy -file /path/to/bookstore.war -deploymentName bookstore -bindAllWebApps
No :secret given to the #protect_from_forgery call.
Set that or use a session store capable of generating its own keys (Cookie Session Store)
driver encountered an error: java.sql.SQLException: Io exception: SO Exception was generated.
url: jdbc:oracle:thin:@hostname:1521:XE
jesse.hu |
Latest page update: made by jesse.hu
, May 8 2008, 3:20 AM EDT
(about this update
About This Update
fix a format error
- jesse.hu
3 words added 2 words deleted view changes - complete history) |
|
More Info: links to this page
|
| Started By | Thread Subject | Replies | Last Post | ||
|---|---|---|---|---|---|
| simoha78 | Error by deploying rails Apps on tomcat | 1 | Sep 22 2009, 1:47 PM EDT by saturnflyer | ||
|
Thread started: Aug 26 2009, 6:16 AM EDT
Watch
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 |
|||||
| PaulHoehne | Error during jruby-rack initialization | 1 | Jul 25 2009, 9:53 PM EDT by PaulHoehne | ||
|
Thread started: Jul 24 2009, 6:40 PM EDT
Watch
I followed the instructions (except postgres instead of Oracle and JRuby-1.3.1). On both the OC4J and Weblogic containers I get an exception thrown during jruby-rack initialization. As this is an empty application, only updated to include a valid database connection for production and configured for warbler, I find it a little odd. I'm able to deploy the same war file on glassfish 2.1 with no problem. I'm trying to deploy on either 10.1.3.4 (OC4J) or the current WebLogic server.
|
|||||