This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
Helicon Zoo
 Helicon Tech : Helicon Zoo
Subject Topic: [Solved]Rails3.1 Cant find Java Runtim Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
drl123
Newbie
Newbie


Joined: 21 September 2011
Location: United States
Online Status: Offline
Posts: 2
Posted: 07 February 2012 at 7:58am | IP Logged Quote drl123

[Solved] See second post.

I set up a new website using WebMatrix and Hellicon Zoo as a new Rails  3.1.3 site (WebMatrix template site, then rails new .).  I have the directory permissions set to R/W for Everyone.  When I go to the start page, the Rails.png does not show up, but stylesheets are being applied.  However when I click on the 'About your applications environment' link, it dies with a 500 error that says it can't find the java runtime.  I have tried adding node and execjs to the gemfile one at a time, but neither works.  When I start the site using webrick, all is fine.  Any suggestions?

PS...Win7 64 bit

500. Error in Helicon Zoo module or application configuration

TransportError: ZooApplication Asynchronous IO Error. GetLastError = The I/O operation has been aborted because of either a thread exit or an application request. dwError=995

You can find more debug information in C:\Users\usd38260\AppData\Local\Temp\

Application Configuration

appName                        rails.project.x86
appFullPath                    C:\Ruby19\bin\ruby.exe
appDirectory                   C:\Users\usd38260\Documents\My Web Sites\B2
appArguments                   C:\ZooExpress\Workers\ruby\zack.rb
transportName                  NamedPipe
protocol                       fastcgi
scriptProcessor                ruby.1.9.pipe
errorLogDir                    C:\Users\usd38260\AppData\Local\Temp\
postBufferDir                  
watchFileChangesMask           
host                           127.0.0.1
port                           %PORT%
minInstances                   1
maxInstances                   1
minRequestsPerWorker           3
maxRequestsPerWorker           15
portLower                      49152
portUpper                      65535
workerRequestTimeout           1000
timeLimit                      0
postBuffer                     1024
memoryLimit                    0
gracefulShutdownTimeout        0

Enviroment Variables

APPL_PHYSICAL_PATH             C:\Users\usd38260\Documents\My Web Sites\B2
APPL_VIRTUAL_PATH              
HOST                           127.0.0.1
PORT                           %PORT%
RACK_ENV                       development
WORKER_REQUEST_TIMEOUT         1000

Last words...

std_out

[tid-18112452] Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable)
	C:/Ruby19/lib/ruby/gems/1.9.1/gems/execjs-1.3.0/lib/execjs/runtimes.rb:50:in `autodetect'
	C:/Ruby19/lib/ruby/gems/1.9.1/gems/execjs-1.3.0/lib/execjs.rb:5:in `'
	C:/Ruby19/lib/ruby/gems/1.9.1/gems/execjs-1.3.0/lib/execjs.rb:4:in `'
	C:/Ruby19/lib/ruby/gems/1.9.1/gems/bundler-1.0.21/lib/bundler/runtime.rb:68:in `require'
	C:/Ruby19/lib/ruby/gems/1.9.1/gems/bundler-1.0.21/lib/bundler/runtime.rb:68:in `block (2 levels) in require'
	C:/Ruby19/lib/ruby/gems/1.9.1/gems/bundler-1.0.21/lib/bundler/runtime.rb:66:in `each'
	C:/Ruby19/lib/ruby/gems/1.9.1/gems/bundler-1.0.21/lib/bundler/runtime.rb:66:in `block in require'
	C:/Ruby19/lib/ruby/gems/1.9.1/gems/bundler-1.0.21/lib/bundler/runtime.rb:55:in `each'
	C:/Ruby19/lib/ruby/gems/1.9.1/gems/bundler-1.0.21/lib/bundler/runtime.rb:55:in `require'
	C:/Ruby19/lib/ruby/gems/1.9.1/gems/bundler-1.0.21/lib/bundler.rb:122:in `require'
	C:/Users/usd38260/Documents/My Web Sites/B2/config/application.rb:7:in `'
	C:/Users/usd38260/Documents/My Web Sites/B2/config/environment.rb:2:in `require'
	C:/Users/usd38260/Documents/My Web Sites/B2/config/environment.rb:2:in `'
	C:\Users\usd38260\Documents\My Web Sites\B2/config.ru:3:in `require'
	C:\Users\usd38260\Documents\My Web Sites\B2/config.ru:3:in `block in 
' C:/Ruby19/lib/ruby/gems/1.9.1/gems/rack-1.3.6/lib/rack/builder.rb:51:in `instance_eval' C:/Ruby19/lib/ruby/gems/1.9.1/gems/rack-1.3.6/lib/rack/builder.rb:51:in `initialize' C:\Users\usd38260\Documents\My Web Sites\B2/config.ru:1:in `new' C:\Users\usd38260\Documents\My Web Sites\B2/config.ru:1:in `
' C:/ZooExpress/Workers/ruby/lib/app.rb:79:in `eval' C:/ZooExpress/Workers/ruby/lib/app.rb:79:in `build_config_ru' C:/ZooExpress/Workers/ruby/lib/app.rb:24:in `build_app' C:/ZooExpress/Workers/ruby/lib/app.rb:16:in `initialize' C:/ZooExpress/Workers/ruby/lib/worker.rb:4:in `new' C:/ZooExpress/Workers/ruby/lib/worker.rb:4:in `initialize' C:/ZooExpress/Workers/ruby/zack.rb:30:in `new' C:/ZooExpress/Workers/ruby/zack.rb:30:in `' C:/ZooExpress/Workers/ruby/zack.rb:12:in `
'

JobFastCgi:[/rails/info/properties] _requestId:2, BACKEND_READ_COMPLETE, POST_MODE_PARTIAL

Internal info

file: ZooApplication.cpp
line: 907


 

 



Edited by drl123 - 07 February 2012 at 1:27pm
Back to Top View drl123's Profile Search for other posts by drl123
 
drl123
Newbie
Newbie


Joined: 21 September 2011
Location: United States
Online Status: Offline
Posts: 2
Posted: 07 February 2012 at 1:25pm | IP Logged Quote drl123

OK, so I feel like a total NOOB!  Way down on the page it tells you to see the Execjs website where you can find the supported runtimes.

Apparently, when running under WeBrick, it includes some version of a java runtime environment.  However that is not available to IIS or WebMatrix.  After downloading and installing Node.js under Windows, my site now operates properly. 

I had assumed the styling was coming from the compiled SASS and javascript in the assets directory, but in fact it is inline in the welcome page under rails 3.1.3.

It might be a good idea to mention the need to install a runtime as a prerequisite to running WPI, or include one as part of the hosting solution that gets installed by Zoo.

Back to Top View drl123's Profile Search for other posts by drl123
 
Vyacheslav
Admin Group
Admin Group


Joined: 02 July 2008
Location: Ukraine
Online Status: Offline
Posts: 1542
Posted: 07 February 2012 at 1:50pm | IP Logged Quote Vyacheslav

Hello.
It’s nice to see the issue’s been solved.
There is Node.js in our feed: http://www.helicontech.com/zoo/gallery/#NodeJS_Zoo
Rails 3.1 comes with new assets pipeline which is even used in the welcome page. In development mode request to rails.png, for example, goes through Ruby. However before you deploy your application somewhere, you should run “rake assets:precompile” which compiles all CSS/JS and puts them into public/assets folder. There is specific instructions in web.config file which make requests to assets delivered by IIS in production mode.

__________________
Slavik Shynkarenko,
Helicon Tech.
Back to Top View Vyacheslav's Profile Search for other posts by Vyacheslav Visit Vyacheslav's Homepage
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum