Re: JRuby 1.1.6 and json-jruby on Tomcat

Just for the record, I got around this issue by switching to from
json_jruby to json-pure, but I had to use a patched version of json-pure
so it would play nice in our environment:

Tomcat is able to find and load this dependency.

Thanks for the input.

Ed

----- Original Message ----
From: ed copony [email protected]
To: [email protected]
Sent: Tuesday, December 9, 2008 11:05:26 AM
Subject: Re: [jruby-user] JRuby 1.1.6 and json-jruby on Tomcat

Same result for each of the requires (require ‘json/ext’, require
‘json/pure’, require ‘json/version’, require ‘json/common’).

None of them can be found under 1.1.6, when they are located just fine
under 1.1.3. Could the ‘no such file to load’ issue be a side effect of
some other failure?

Here they are in the exploded app directory under Tomcat:

ecopony@ooboontoo:trisano$ ls -l
/opt/tomcat/current/webapps/trisano/WEB-INF/gems/gems/json-jruby-1.1.2-universal-java/lib/
total 12
drwxr-xr-x 5 ecopony ecopony 4096 2008-12-09 10:50 json
-rw-r–r-- 1 ecopony ecopony 8015 2008-12-09 10:50 json.rb
ecopony@ooboontoo:trisano$ ls -l
/opt/tomcat/current/webapps/trisano/WEB-INF/gems/gems/json-jruby-1.1.2-universal-java/lib/json
total 40
drwxr-xr-x 2 ecopony ecopony 4096 2008-12-09 10:50 add
-rw-r–r-- 1 ecopony ecopony 12409 2008-12-09 10:50 common.rb
drwxr-xr-x 2 ecopony ecopony 4096 2008-12-09 10:50 ext
-rw-r–r-- 1 ecopony ecopony 336 2008-12-09 10:50 ext.rb
drwxr-xr-x 2 ecopony ecopony 4096 2008-12-09 10:50 pure
-rw-r–r-- 1 ecopony ecopony 2470 2008-12-09 10:50 pure.rb
-rw-r–r-- 1 ecopony ecopony 297 2008-12-09 10:50 version.rb
ecopony@ooboontoo:trisano$

----- Original Message ----
From: Matt B. [email protected]
To: [email protected]
Sent: Tuesday, December 9, 2008 7:06:33 AM
Subject: Re: [jruby-user] JRuby 1.1.6 and json-jruby on Tomcat

In lib/active_record/activesupport_json_unicode_patch.rb (where it looks
like you’re requiring json), could you try inlining some of the requires
from json.rb[1]?

[1] http://github.com/mernen/json-jruby/tree/master/lib/json.rb


Matt

ed copony wrote:

Thanks!
from file:/opt/tomcat/apache-tomcat-6.0.18/webapps/trisano/WEB-INF/lib/jruby-complete161RC2.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require’
at org.jruby.rack.RackFilter.doFilter(RackFilter.java:51)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at Kernel.require(file:/opt/tomcat/apache-tomcat-6.0.18/webapps/trisano/WEB-INF/lib/jruby-complete161RC2.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31)
at #Class:01x64cc1a.run(/opt/tomcat/current/webapps/trisano/WEB-INF/config/environment.rb:13)

To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email