Skip to content

Instantly share code, notes, and snippets.

@takeru
Created January 30, 2010 18:05
Show Gist options
  • Save takeru/290656 to your computer and use it in GitHub Desktop.
Save takeru/290656 to your computer and use it in GitHub Desktop.
############################################
### not working in user gem??? (/home/app/.gem/ruby/1.8/gems/...)
dev002:~/tmp/gaeprof% appcfg.rb .
file:/home/app/.gem/ruby/1.8/gems/appengine-jruby-jars-0.0.7.pre/lib/appengine-jruby-rubygems-0.0.7.pre.jar!/rubygems.rb:827:in `report_activate_error': Could not find RubyGem appengine-tools (>= 0) (Gem::LoadError)
from file:/home/app/.gem/ruby/1.8/gems/appengine-jruby-jars-0.0.7.pre/lib/appengine-jruby-rubygems-0.0.7.pre.jar!/rubygems.rb:261:in `activate'
from file:/home/app/.gem/ruby/1.8/gems/appengine-jruby-jars-0.0.7.pre/lib/appengine-jruby-rubygems-0.0.7.pre.jar!/rubygems.rb:68:in `gem'
from /home/app/.gem/ruby/1.8/bin/appcfg.rb:18
dev002:~/tmp/gaeprof% dev_appserver.rb .
=> Booting DevAppServer
=> Press Ctrl-C to shutdown server
file:/home/app/.gem/ruby/1.8/gems/appengine-jruby-jars-0.0.7.pre/lib/appengine-jruby-rubygems-0.0.7.pre.jar!/rubygems.rb:827:in `report_activate_error': Could not find RubyGem appengine-tools (>= 0) (Gem::LoadError)
from file:/home/app/.gem/ruby/1.8/gems/appengine-jruby-jars-0.0.7.pre/lib/appengine-jruby-rubygems-0.0.7.pre.jar!/rubygems.rb:261:in `activate'
from file:/home/app/.gem/ruby/1.8/gems/appengine-jruby-jars-0.0.7.pre/lib/appengine-jruby-rubygems-0.0.7.pre.jar!/rubygems.rb:68:in `gem'
from /home/app/.gem/ruby/1.8/bin/appcfg.rb:18
Error executing jruby
2010/01/30 17:47:10 com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml
致命的: Received exception processing /home/app/tmp/gaeprof/WEB-INF/appengine-web.xml
com.google.apphosting.utils.config.AppEngineConfigException: Could not locate /home/app/tmp/gaeprof/WEB-INF/appengine-web.xml
at com.google.apphosting.utils.config.AppEngineWebXmlReader.getInputStream(AppEngineWebXmlReader.java:102)
at com.google.apphosting.utils.config.AppEngineWebXmlReader.readAppEngineWebXml(AppEngineWebXmlReader.java:60)
at com.google.appengine.tools.development.AbstractContainerService.loadAppEngineWebXml(AbstractContainerService.java:204)
at com.google.appengine.tools.development.AbstractContainerService.startup(AbstractContainerService.java:118)
at com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:217)
at com.google.appengine.tools.development.DevAppServerMain$StartAction.apply(DevAppServerMain.java:162)
at com.google.appengine.tools.util.Parser$ParseResult.applyArgs(Parser.java:48)
at com.google.appengine.tools.development.DevAppServerMain.<init>(DevAppServerMain.java:113)
at com.google.appengine.tools.development.DevAppServerMain.main(DevAppServerMain.java:89)
Caused by: java.io.FileNotFoundException: /home/app/tmp/gaeprof/WEB-INF/appengine-web.xml (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:137)
at java.io.FileInputStream.<init>(FileInputStream.java:96)
at com.google.apphosting.utils.config.AppEngineWebXmlReader.getInputStream(AppEngineWebXmlReader.java:99)
... 8 more
com.google.apphosting.utils.config.AppEngineConfigException: Could not locate /home/app/tmp/gaeprof/WEB-INF/appengine-web.xml
at com.google.apphosting.utils.config.AppEngineWebXmlReader.getInputStream(AppEngineWebXmlReader.java:102)
at com.google.apphosting.utils.config.AppEngineWebXmlReader.readAppEngineWebXml(AppEngineWebXmlReader.java:60)
at com.google.appengine.tools.development.AbstractContainerService.loadAppEngineWebXml(AbstractContainerService.java:204)
at com.google.appengine.tools.development.AbstractContainerService.startup(AbstractContainerService.java:118)
at com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:217)
at com.google.appengine.tools.development.DevAppServerMain$StartAction.apply(DevAppServerMain.java:162)
at com.google.appengine.tools.util.Parser$ParseResult.applyArgs(Parser.java:48)
at com.google.appengine.tools.development.DevAppServerMain.<init>(DevAppServerMain.java:113)
at com.google.appengine.tools.development.DevAppServerMain.main(DevAppServerMain.java:89)
Caused by: java.io.FileNotFoundException: /home/app/tmp/gaeprof/WEB-INF/appengine-web.xml (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:137)
at java.io.FileInputStream.<init>(FileInputStream.java:96)
at com.google.apphosting.utils.config.AppEngineWebXmlReader.getInputStream(AppEngineWebXmlReader.java:99)
... 8 more
################################################
### need to fix permissons /usr/lib/ruby/gems/1.8/gems/appengine-jruby-jars-0.0.7.pre/lib/*
% appcfg.rb generate_app .
=> Installing JRuby
/usr/lib/ruby/1.8/fileutils.rb:1261:in `initialize': Permission denied - /usr/lib/ruby/gems/1.8/gems/appengine-jruby-jars-0.0.7.pre/lib/appengine-jruby-0.0.7.pre.jar (Errno::EACCES)
from /usr/lib/ruby/1.8/fileutils.rb:1261:in `open'
from /usr/lib/ruby/1.8/fileutils.rb:1261:in `copy_file'
from /usr/lib/ruby/1.8/fileutils.rb:463:in `copy_file'
from /usr/lib/ruby/1.8/fileutils.rb:383:in `cp'
from /usr/lib/ruby/1.8/fileutils.rb:1395:in `fu_each_src_dest'
from /usr/lib/ruby/1.8/fileutils.rb:1404:in `fu_each_src_dest0'
from /usr/lib/ruby/1.8/fileutils.rb:1402:in `each'
from /usr/lib/ruby/1.8/fileutils.rb:1402:in `fu_each_src_dest0'
from /usr/lib/ruby/1.8/fileutils.rb:1393:in `fu_each_src_dest'
from /usr/lib/ruby/1.8/fileutils.rb:382:in `cp'
from /usr/lib/ruby/gems/1.8/gems/appengine-tools-0.0.9/lib/appengine-tools/bundler.rb:228:in `update_jars'
from /usr/lib/ruby/gems/1.8/gems/appengine-tools-0.0.9/lib/appengine-tools/bundler.rb:184:in `copy_jruby'
from /usr/lib/ruby/gems/1.8/gems/appengine-tools-0.0.9/lib/appengine-tools/bundler.rb:120:in `bundle_deps'
from /usr/lib/ruby/gems/1.8/gems/appengine-tools-0.0.9/lib/appengine-tools/bundler.rb:112:in `bundle'
from /usr/lib/ruby/gems/1.8/gems/appengine-tools-0.0.9/lib/appengine-tools/bundler.rb:293:in `bundle_app'
from /usr/lib/ruby/gems/1.8/gems/appengine-tools-0.0.9/lib/appengine-tools/appcfg.rb:123:in `generate_app'
from /usr/lib/ruby/gems/1.8/gems/appengine-tools-0.0.9/lib/appengine-tools/appcfg.rb:94:in `send'
from /usr/lib/ruby/gems/1.8/gems/appengine-tools-0.0.9/lib/appengine-tools/appcfg.rb:94:in `main'
from /usr/lib/ruby/gems/1.8/gems/appengine-tools-0.0.9/bin/appcfg.rb:18
from /usr/bin/appcfg.rb:19:in `load'
from /usr/bin/appcfg.rb:19
dev002:~/tmp/gaeprof% ls -l /usr/lib/ruby/gems/1.8/gems/appengine-jruby-jars-0.0.7.pre/lib/
合計 8964K
-rw-r----- 1 root root 8986963 2010-01-31 02:52 appengine-jruby-0.0.7.pre.jar
-rw-r-xr-x 1 root root 1011 2010-01-31 02:52 appengine-jruby-jars.rb
-rw-r----- 1 root root 160671 2010-01-31 02:52 appengine-jruby-rubygems-0.0.7.pre.jar
dev002:~/tmp/gaeprof% appcfg.rb generate_app .
/usr/bin/appcfg.rb:9:in `require': no such file to load -- rubygems (LoadError)
from /usr/bin/appcfg.rb:9
Error executing jruby
dev002:~/tmp/gaeprof% sudo chmod 644 /usr/lib/ruby/gems/1.8/gems/appengine-jruby-jars-0.0.7.pre/lib/appengine-jruby-jars.rb
dev002:~/tmp/gaeprof% sudo chmod 644 /usr/lib/ruby/gems/1.8/gems/appengine-jruby-jars-0.0.7.pre/lib/appengine-jruby-rubygems-0.0.7.pre.jar
dev002:~/tmp/gaeprof% ls -l /usr/lib/ruby/gems/1.8/gems/appengine-jruby-jars-0.0.7.pre/lib/
合計 8964K
-rw-r--r-- 1 root root 8986963 2010-01-31 02:52 appengine-jruby-0.0.7.pre.jar
-rw-r--r-- 1 root root 1011 2010-01-31 02:52 appengine-jruby-jars.rb
-rw-r--r-- 1 root root 160671 2010-01-31 02:52 appengine-jruby-rubygems-0.0.7.pre.jar
dev002:~/tmp/gaeprof% appcfg.rb generate_app .
=> Generating configuration files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment