rails 4.2 assets precompilation issue
<p>i'm testing the deployment af RoR 4.2.x app...</p>

<p>when i execute it in development all runs fine, 
if i simulate deployment on a vm to prepare final deployment phase, 
i receive an error during asset precompilation....</p>

<p>the deployment env is ubuntu 14.04 lts server using rvm, passenger and Apache as web server..</p>

<p>after all needed library updates (as prerequisites) i've done a checkout of the repo to the working dir onto web server, 
then correctly executed 'bundle update' inside the working dir to correctly populate the gemset...</p>

<p>during this phase no errors are returned from the server console, all seems to run fine...</p>

<p>if i run 'gem list' all needed gems results present</p>

<p>now, precompiling assets using the command:</p>

<pre><code>RAILS_ENV=production bundle exec rake assets:precompile
</code></pre>

<p>the operation aborts after few seconds with this error:</p>

<pre><code>rake aborted!
Sprockets::FileNotFound: couldn't find file 'jquery-ui' with type 'application/javascript'
/home/rails-usr/www_v2/app/assets/javascripts/application.js:10
/home/rails-usr/.rvm/gems/ruby-2.2.2@Best-i-gest_v2/gems/sprockets-3.6.2/lib/sprockets/resolve.rb:64:in `resolve!'
/home/rails-usr/.rvm/gems/ruby-2.2.2@Best-i-gest_v2/gems/sprockets-3.6.2/lib/sprockets/directive_processor.rb:399:in `resolve'
/home/rails-usr/.rvm/gems/ruby-2.2.2@Best-i-gest_v2/gems/sprockets-3.6.2/lib/sprockets/directive_processor.rb:207:in `process_require_directive'
.....
</code></pre>

<p>going to add some more info to my question...</p>

<p>here is my app 'Gemfile'</p>

<pre><code>source 'http://rubygems.org'

gem 'rails', '4.2.5'

gem 'mysql2', '0.3.17'
gem 'bcrypt-ruby', :require =&gt; 'bcrypt'
gem 'declarative_authorization', :git =&gt; 'git://github.com/stffn/declarative_authorization'
gem 'ruby_parser'
gem 'jQuery-Validation-Engine-rails'
gem 'prawn', '1.3.0'
gem 'prawn-table', '0.2.1'

# gem 'bootstrap-sass', '~&gt; 3.1.1'

# Gems used only for assets and not required
# in production environments by default.
group :assets do
  gem 'sass-rails'
  gem 'coffee-rails'
  gem 'uglifier'

  gem "therubyracer"
  gem "less-rails", :git =&gt; 'git://github.com/metaskills/less-rails', :ref =&gt; '539f28d'

  gem 'jquery-datatables-rails' , :git =&gt; 'git://github.com/rweng/jquery-datatables-rails'
  gem 'jquery-ui-rails'
end

gem 'twitter-bootstrap-rails', :git =&gt; 'git://github.com/coppolaf/tb3-rails4.git'

gem 'jquery-rails'
gem 'will_paginate'
gem 'nokogiri'

# To use debugger
# gem 'ruby-debug19', :require =&gt; 'ruby-debug'

group :test do
  # Pretty printed test output
  gem 'turn', '~&gt; 0.8.3', :require =&gt; false
end
</code></pre>

<p>this is 'application.js' file:</p>

<pre><code>// This is a manifest file that'll be compiled into including all the files listed below.
// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
// be included in the compiled file accessible from http://example.com/assets/application.js
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// the compiled file.
//
//= require jquery
//= require jquery-ui
//= require jquery_ujs
//= require dataTables/jquery.dataTables
//= require twitter/bootstrap
//= require jquery.validationEngine
//= require_tree .
....
</code></pre>

<p>this is 'application.css' file:</p>

<pre><code>/*
 * This is a manifest file that'll automatically include all the stylesheets available in this directory
 * and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
 * the top of the compiled file, but it's generally better to create a new file per style scope.
 *= require_self
 *= require jquery-ui
 *= require dataTables/src/demo_table_jui
 *= bootstrap_and_overrides.css.less
 *= require validationEngine.jquery
 *= require_tree .
 */
....
</code></pre>

<p>pls note all jquery modules runs fine in development, the requested module seems to be present inside gemset....</p>

<p>waiting your suggestions, </p>

<p>regards, 
francesco</p>