Yaml parsing error with application in JRuby (war format of application)
------------------------------------------------------------------------
Key: JRUBY-2083
URL: http://jira.codehaus.org/browse/JRUBY-2083
Project: JRuby
Issue Type: Bug
Components: Extensions
Affects Versions: JRuby 1.1
Environment: The jruby version that they are using is :
ruby 1.8.6 (2008-02-03 rev 5512) [i386-jruby1.1RC1]
Reporter: Pramod Gopinath
This is the error that a partner is seeing when they try to port their
application to a JRuby + GlassFish V2 (using
Goldspike) environment.
>>
>> We get this error. It is from GemInstaller (which I wrote). It seems
>> to have problem parsing the yaml file under jruby, but this problem
>> never exists under standard ruby. Seems like a problem with the YAML
>> parsing in jruby?
>>
>> 008-02-05 18:08:41.653:/pivots-jruby-spike:INFO: Failed to load
>> Rails: Error: Received error while attempting to parse YAML from yaml
>> text:
>> ScannerException while scanning a block scalar we had this expected
>> chomping or indentation indicators, but found =(61)
>> Please ensure this is valid YAML:
>>
>> ---
>> defaults:
>> install_options: -y
>> gems:
>> - name: ActiveRecord-JDBC
>> version: 0.5
>> - name: activerecord-jdbcmysql-adapter
>> version: 0.7
>> - name: aws-s3
>> version: 0.3.0
>> - name: capistrano-ext
>> version: 1.2
>> - name: capistrano
>> version: 2.0
>> - name: flexmock
>> version: 0.6.0
>> - name: rails
>> version: 2.0.2
>> - name: mime-types
>> version: 1.15
>> - name: hpricot
>> version: 0.5
>> - name: geminstaller
>> version: >= 0.3.0
>> - name: gmailer
>> version: 0.1.6
>> - name: mechanize
>> version: 0.6.8
>> - name: rmagick
>> version: 1.15.10
>> - name: ruby-debug
>> version: >= 0.9.3
>> - name: has_finder
>> version: 0.1.5
>> - name: json
>> version: 1.1.0
>> - name: jruby-openssl
>> version: 0.1.1
>> - name: markaby
>> version: 0.5
>>
>>
>> "
>>
>>
>> /home/pivotal/workspace/pivots-jruby-spike/WEB-INF/gems/gems/geminstaller-0.3.0/lib/geminstaller/yaml_l
oader.rb:17:in
>> `load'
>>
>> /home/pivotal/workspace/pivots-jruby-spike/WEB-INF/gems/gems/geminstaller-0.3.0/lib/geminstaller/config
_builder.rb:34:in
>> `build_config'
>>
>> /home/pivotal/workspace/pivots-jruby-spike/WEB-INF/gems/gems/geminstaller-0.3.0/lib/geminstaller/config
_builder.rb:31:in
>> `each'
>>
>> /home/pivotal/workspace/pivots-jruby-spike/WEB-INF/gems/gems/geminstaller-0.3.0/lib/geminstaller/config
_builder.rb:18:in
>> `build_config'
>>
>> /home/pivotal/workspace/pivots-jruby-spike/WEB-INF/gems/gems/geminstaller-0.3.0/lib/geminstaller/config
_builder.rb:31:in
>> `create_gems_from_config'
>>
>> /home/pivotal/workspace/pivots-jruby-spike/WEB-INF/gems/gems/geminstaller-0.3.0/lib/geminstaller/applic
ation.rb:42:in
>> `autogem'
>>
>> /home/pivotal/workspace/pivots-jruby-spike/WEB-INF/gems/gems/geminstaller-0.3.0/lib/geminstaller.rb:28:
in
>> `autogem'
>>
>> /home/pivotal/workspace/pivots-jruby-spike/config/../vendor/plugins/pivotal_core_bundle/lib/geminstalle
r/geminstaller_boot.rb:37
>> /home/pivotal/workspace/pivots-jruby-spike/config/boot.rb:18:in
>> `require'
>> /home/pivotal/workspace/pivots-jruby-spike/config/boot.rb:18
>> /home/pivotal/workspace/pivots-jruby-spike/config/environment.rb:2:in
>> `require'
>> /home/pivotal/workspace/pivots-jruby-spike/config/environment.rb:2
>> :1
>>
>> javax.servlet.ServletException: Could not load Rails. See the logs for
>> more details.
>> at org.jruby.webapp.RailsFactory.makeObject(RailsFactory.java:139)
>> at
>> org.jruby.webapp.util.CustomObjectPool.addObjectInternal(CustomObjectPool.java:111)
>> at
>> org.jruby.webapp.util.CustomObjectPool.access$200(CustomObjectPool.java:15)
>> at
>> org.jruby.webapp.util.CustomObjectPool$PoolSizeManager.run(CustomObjectPool.java:193)
>> 2008-02-05 18:08:41.925::INFO: Shutdown hook executing
>> 2008-02-05 18:08:42.041::INFO: Shutdown hook complete
>>
>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email