on 06-22-2006 5:26 AM
Hi Craig,
I've just downloaded the new Scripting in a Box Version 0.1.0. Unfortunately the Homepage at http://localhost:8080/ contains a link to the ExRate directory but the example does not start. What is the URL to use? Is Apache configured to run the Ruby on Rails example or do I have to start the standalone server?
Regards
Gregor
Should be starting in running if you load that link you should get
Apache/2.0.54 (Win32) PHP/5.1.2 mod_fastcgi/2.4.2 mod_ruby/1.2.4 Ruby/1.8.2(2004-12-25) Server at localhost Port 8080
In the bottom and the ExRates should run OK. The link only opens the directory so you have to navigate to the pages to start.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Craig,
but what page exactly? I've tried a lot also the http://localhost:8080/ExRates/public/dispatch.fcgi but there a Internal Server Error is returned. In C:\Development\Apache\logs\error.log I find this Message:
[Thu Jun 22 07:59:00 2006] [crit] (OS 3)Das System kann den angegebenen Pfad nicht finden. : FastCGI: can't start (dynamic) server "C:/Development/htdocs/ExRates/public/dispatch.fcgi": spawn_fs_process() failed
Regards
Gregor
I don't really have a windows platform on which to check this out, but - depnding on how the Rails stuff has been installed, the easiest way to run it should be via Eclipse. Open the project up for ExRates, make sure a server has been created (a Webrick one), and then start that server. It will probably be listening on locahost:3000, so point your browser at that.
Make sure you are not using a UNICODE environment - we have general outstanding issues with that at the moment.
Speaking of UNICODe - I need to get access to a UNICODE system so that I can port SAP::Rfc, SAP::Rfc, and saprfc (Perl, Python, and Ruby).
Cheers.
Hi Gregor,
There is a console pane in Eclipse that should show something about what is happening at startup. Also - in the Project, there is the Exrates/log directory which should show some kind of evidence about what is happening (or not as the case maybe).
Please show us what you find.
Cheers.
Still seems to be a problem
C:/Development/Apache/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:194:in `report_activate_error': Could not find RubyGem activerecord (= 1.14.2) (Gem::LoadError)
from C:/Development/Apache/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:136:in `activate'
from C:/Development/Apache/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:162:in `activate'
from C:/Development/Apache/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:161:in `each'
from C:/Development/Apache/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:161:in `activate'
from C:/Development/Apache/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:37:in `require_gem_with_options'
from C:/Development/Apache/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:31:in `require_gem'
from ./script/../config/boot.rb:28
from ./script/../config/environment.rb:11:in `require'
from ./script/../config/environment.rb:11
from ./script/server:42:in `require'
from ./script/server:42
from -e:3:in `load'
from -e:3
Step 1:
Download .gem for ActiveRecord from http://rubyforge.org/frs/?group_id=182
Step 2:
Copy .gem file to "install" directory in "Scripting in a Box"
Step 3:
Create "install_gem_comp.bat" file under "tools" directory in "Scripting in a Box"
Step 4:
Save this text to "install_gem_comp.bat"
@ECHO OFF
PATH=%PATH%;C:\Development\Apache\ruby\bin;
cd ..\install
gem install %1 --include-dependencies
Step 5:
Right click on "tools" directory and choose "Command Prompt" (this works if you used the "Command Prompt Here" script included)
at the command prompt type:
install_gem_comp activerecord-1.14.2.gem (be sure it's the name of the file you just downloaded)
Step 6:
Repeat this for "Actionpack" from http://rubyforge.org/frs/?group_id=249
Step 7:
Repeat this for "Actionmailer" from http://rubyforge.org/frs/?group_id=361&release_id=4817
Step 8:
Repeat this for "Actionwebservice" from http://rubyforge.org/frs/?group_id=567&release_id=4875
Hi Craig,
great, the server starts now. But when accessing http://localhost:3000/ I got this error:
NameError in ExrateController#list
uninitialized constant SAPRfc
RAILS_ROOT: ./script/../config/..
Application Trace | Framework Trace | Full Trace
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:123:in `const_missing'
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/saprfc-0.17-mswin32/lib/SAP/Rfc.rb:315
C:/Development/Apache/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require__'
C:/Development/Apache/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require'
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require'
C:/Development/Apache/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:175:in `activate'
C:/Development/Apache/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:23:in `require'
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require'
#/lib/SAP4Rails.rb:3 #/app/models/exrate.rb:1
#/app/controllers/exrate_controller.rb:16:in `list' -e:3:in `load' -e:3 C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:123:in `const_missing' C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/saprfc-0.17-mswin32/lib/SAP/Rfc.rb:315 C:/Development/Apache/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require__' C:/Development/Apache/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require' C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require' C:/Development/Apache/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:175:in `activate' C:/Development/Apache/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:23:in `require' C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require' C:/Development/Apache/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require__' C:/Development/Apache/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require' C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require' C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:140:in `load' C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:140:in `load' C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:56:in `require_or_load' C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:30:in `depend_on' C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:85:in `require_dependency' C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:85:in `require_dependency' C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:98:in `const_missing' C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:131:in `const_missing' C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:133:in `send' C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:133:in `const_missing' C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:910:in `send' C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:910:in `perform_action_without_filters' C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/filters.rb:368:in `perform_action_without_benchmark' C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue' C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:69:in `measure' C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue' C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/rescue.rb:82:in `perform_action' C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:381:in `send' C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:381:in `process_without_filters' C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/filters.rb:377:in `process_without_session_management_support' C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/session_management.rb:117:in `process' C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/dispatcher.rb:38:in `dispatch' C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/webrick_server.rb:115:in `handle_dispatch' C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/webrick_server.rb:81:in `service' C:/Development/Apache/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' C:/Development/Apache/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' C:/Development/Apache/ruby/lib/ruby/1.8/webrick/server.rb:155:in `start_thread' C:/Development/Apache/ruby/lib/ruby/1.8/webrick/server.rb:144:in `start' C:/Development/Apache/ruby/lib/ruby/1.8/webrick/server.rb:144:in `start_thread' C:/Development/Apache/ruby/lib/ruby/1.8/webrick/server.rb:94:in `start' C:/Development/Apache/ruby/lib/ruby/1.8/webrick/server.rb:89:in `each' C:/Development/Apache/ruby/lib/ruby/1.8/webrick/server.rb:89:in `start' C:/Development/Apache/ruby/lib/ruby/1.8/webrick/server.rb:79:in `start' C:/Development/Apache/ruby/lib/ruby/1.8/webrick/server.rb:79:in `start' C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/webrick_server.rb:67:in `dispatch' script/server:49 C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:123:in `const_missing' C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/saprfc-0.17-mswin32/lib/SAP/Rfc.rb:315 C:/Development/Apache/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require__' C:/Development/Apache/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require' C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require' C:/Development/Apache/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:175:in `activate' C:/Development/Apache/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:23:in `require' C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require' #/lib/SAP4Rails.rb:3
C:/Development/Apache/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require__'
C:/Development/Apache/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require'
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require'
#/app/models/exrate.rb:1 C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:140:in `load' C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:140:in `load' C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:56:in `require_or_load' C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:30:in `depend_on' C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:85:in `require_dependency' C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:85:in `require_dependency' C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:98:in `const_missing' C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:131:in `const_missing' C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:133:in `send' C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:133:in `const_missing' #/app/controllers/exrate_controller.rb:16:in `list'
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:910:in `send'
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:910:in `perform_action_without_filters'
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/filters.rb:368:in `perform_action_without_benchmark'
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue'
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:69:in `measure'
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue'
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/rescue.rb:82:in `perform_action'
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:381:in `send'
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:381:in `process_without_filters'
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/filters.rb:377:in `process_without_session_management_support'
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/session_management.rb:117:in `process'
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/dispatcher.rb:38:in `dispatch'
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/webrick_server.rb:115:in `handle_dispatch'
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/webrick_server.rb:81:in `service'
C:/Development/Apache/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
C:/Development/Apache/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
C:/Development/Apache/ruby/lib/ruby/1.8/webrick/server.rb:155:in `start_thread'
C:/Development/Apache/ruby/lib/ruby/1.8/webrick/server.rb:144:in `start'
C:/Development/Apache/ruby/lib/ruby/1.8/webrick/server.rb:144:in `start_thread'
C:/Development/Apache/ruby/lib/ruby/1.8/webrick/server.rb:94:in `start'
C:/Development/Apache/ruby/lib/ruby/1.8/webrick/server.rb:89:in `each'
C:/Development/Apache/ruby/lib/ruby/1.8/webrick/server.rb:89:in `start'
C:/Development/Apache/ruby/lib/ruby/1.8/webrick/server.rb:79:in `start'
C:/Development/Apache/ruby/lib/ruby/1.8/webrick/server.rb:79:in `start'
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/webrick_server.rb:67:in `dispatch'
script/server:49
-e:3:in `load'
-e:3
This error occured while loading the following files:
exrate.rb
SAP4Rails
SAP/Rfc
SAP/Rfc
sap/sap_rfc.rb
Request
Parameters: None
Show session dump
---
flash: !ruby/hash:ActionController::Flash::FlashHash {}
Response
Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"}
Hope it's enough for debugging.
Regards
Gregor
OK.
If I had to guess, I think that you are using an old version of the Exrates example, and probably the old version of sap4rails.
If that is the case - what you need to do is install this: http://www.piersharding.com/download/ruby/rails/sap4rails-0.02.gem
and download this: http://www.piersharding.com/download/ruby/rails/sap4rails-0.02.tar.gz
The tar file will contain a version of Exrates that will run with the sap4rails gem.
Cheers.
Hi Piers,
I've updated sap4rails and the Exrates example. Now I get this error:
NameError in ExrateController#list
uninitialized constant SAP4Rails
RAILS_ROOT: ./script/../config/..
Application Trace | Framework Trace | Full Trace
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:123:in `const_missing'
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:131:in `const_missing'
#/app/models/exrate.rb:2 #/app/controllers/exrate_controller.rb:16:in `list'
-e:3:in `load'
-e:3
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:123:in `const_missing'
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:131:in `const_missing'
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:140:in `load'
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:140:in `load'
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:56:in `require_or_load'
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:30:in `depend_on'
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:85:in `require_dependency'
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:85:in `require_dependency'
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:98:in `const_missing'
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:131:in `const_missing'
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:133:in `send'
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:133:in `const_missing'
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:910:in `send'
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:910:in `perform_action_without_filters'
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/filters.rb:368:in `perform_action_without_benchmark'
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue'
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:69:in `measure'
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue'
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/rescue.rb:82:in `perform_action'
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:381:in `send'
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:381:in `process_without_filters'
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/filters.rb:377:in `process_without_session_management_support'
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/session_management.rb:117:in `process'
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/dispatcher.rb:38:in `dispatch'
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/webrick_server.rb:115:in `handle_dispatch'
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/webrick_server.rb:81:in `service'
C:/Development/Apache/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
C:/Development/Apache/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
C:/Development/Apache/ruby/lib/ruby/1.8/webrick/server.rb:155:in `start_thread'
C:/Development/Apache/ruby/lib/ruby/1.8/webrick/server.rb:144:in `start'
C:/Development/Apache/ruby/lib/ruby/1.8/webrick/server.rb:144:in `start_thread'
C:/Development/Apache/ruby/lib/ruby/1.8/webrick/server.rb:94:in `start'
C:/Development/Apache/ruby/lib/ruby/1.8/webrick/server.rb:89:in `each'
C:/Development/Apache/ruby/lib/ruby/1.8/webrick/server.rb:89:in `start'
C:/Development/Apache/ruby/lib/ruby/1.8/webrick/server.rb:79:in `start'
C:/Development/Apache/ruby/lib/ruby/1.8/webrick/server.rb:79:in `start'
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/webrick_server.rb:67:in `dispatch'
script/server:49
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:123:in `const_missing'
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:131:in `const_missing'
#/app/models/exrate.rb:2 C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:140:in `load' C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:140:in `load' C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:56:in `require_or_load' C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:30:in `depend_on' C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:85:in `require_dependency' C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:85:in `require_dependency' C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:98:in `const_missing' C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:131:in `const_missing' C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:133:in `send' C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:133:in `const_missing' #/app/controllers/exrate_controller.rb:16:in `list'
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:910:in `send'
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:910:in `perform_action_without_filters'
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/filters.rb:368:in `perform_action_without_benchmark'
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue'
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:69:in `measure'
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue'
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/rescue.rb:82:in `perform_action'
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:381:in `send'
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:381:in `process_without_filters'
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/filters.rb:377:in `process_without_session_management_support'
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/session_management.rb:117:in `process'
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/dispatcher.rb:38:in `dispatch'
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/webrick_server.rb:115:in `handle_dispatch'
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/webrick_server.rb:81:in `service'
C:/Development/Apache/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
C:/Development/Apache/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
C:/Development/Apache/ruby/lib/ruby/1.8/webrick/server.rb:155:in `start_thread'
C:/Development/Apache/ruby/lib/ruby/1.8/webrick/server.rb:144:in `start'
C:/Development/Apache/ruby/lib/ruby/1.8/webrick/server.rb:144:in `start_thread'
C:/Development/Apache/ruby/lib/ruby/1.8/webrick/server.rb:94:in `start'
C:/Development/Apache/ruby/lib/ruby/1.8/webrick/server.rb:89:in `each'
C:/Development/Apache/ruby/lib/ruby/1.8/webrick/server.rb:89:in `start'
C:/Development/Apache/ruby/lib/ruby/1.8/webrick/server.rb:79:in `start'
C:/Development/Apache/ruby/lib/ruby/1.8/webrick/server.rb:79:in `start'
C:/Development/Apache/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/webrick_server.rb:67:in `dispatch'
script/server:49
-e:3:in `load'
-e:3
This error occured while loading the following files:
exrate.rb
sap4_rails.rb
Request
Parameters: None
Show session dump
---
activesupport-1.3.1.gem is at the latest version.
Regards
Gregor
It seems to be still erroring when it does a require_gem on sap4rails in the exrate.rb model.
To check that the example does actually work still, I installed saprfc-0.19 and sap4rails-0.02, using ruby 1.8.4.
My list of local gems are:
piers@ubuntu:~/Desktop/sap4rails-0.02/examples/Exrates$ gem list
LOCAL GEMS ***
actionmailer (1.2.1, 0.9.1)
Service layer for easy email delivery and testing.
actionpack (1.12.1, 1.8.1)
Web-flow and rendering framework putting the VC in MVC.
actionwebservice (1.1.2)
Web service support for Action Pack.
activerecord (1.14.2, 1.10.1)
Implements the ActiveRecord pattern for ORM.
activesupport (1.3.1, 1.2.3, 1.0.4)
Support and utility classes used by the Rails framework.
rails (1.1.2)
Web-application framework with template engine, control-flow layer,
and ORM.
rake (0.7.1, 0.6.2)
Ruby based make-like utility.
sap4rails (0.02)
Ruby SAP4Rails library
saprfc (0.19)
Ruby SAP RFC library
sources (0.0.1)
This package provides download sources for remote gem installation
You can test that the gems are picked up correctly using:
ruby -rrubygems -e 'require_gem "saprfc"'
ruby -rrubygems -e 'require_gem "sap4rails"'
Gems are at:
http://www.piersharding.com/download/ruby/saprfc-0.19-mswin32.gem
http://www.piersharding.com/download/ruby/rails/sap4rails-0.02.gem
Once you have ruby, rails, and the sap related gems sorted out, cd into the examples directory in the tar file (from above: http://www.piersharding.com/download/ruby/rails/sap4rails-0.02.tar.gz) , modify the config/sap.yml details, and run "ruby scripts/server"
Hopefully, if you do this outside the context of eclipse etc. you should get a better idea of whats going on.
Cheers.
Hi Piers,
my problem is similar, however use Ubuntu:
** Starting Rails with development environment...
stderr initialized
/usr/local/lib/ruby/gems/1.8/gems/sap4rails-0.12/lib/sap4rails.rb:58:Warning: require_gem is obsolete. Use gem instead.
Cannot find either SAP/Rfc or gem saprfc - RFC is NOT available!
Regards,
Ozéias Sant'ana
I think it would be a good idea to start this as a new thread (so please do...) as a lot of time has passed, and people should be trying to use sapnwrfc now not saprfc.
Please get the latest versions of sap4rails, and sapnwrfc. When you install on ubuntu, use the apt installed ruby package, but then manually install rubygems, and then rails. The latest version should use the mongrel web server by default.
Piers Harding.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.