> GEM_HOME should be unix-style.
>
> For the project I'm working on now, we dev on windows, and the gems are
> outside of the jruby directory. When I tried setting GEM_HOME using
> windows-style path separators, it didn't work. Unix-style does work. FWIW,
> this appears to be the case for cruby, too.
>
> --
> Matt
>
>
>> Does anyone know if GEM_HOME should be specified UNIX-style or
>> Windows-style
>> for JRuby on Windows?
>>
>> Currently Goldspike is grabbing the path from the Servlet API, which would
>> come out Windows-style, but this problem sounds like maybe we should be
>> translating it to UNIX-style first.
>>
>> Cheers,
>> Robert
>>
>> On 28/02/08 5:12 AM, "
peterd96@..." <
peterd96@...> wrote:
>>
>>> I have been able to narrow my problem to this (GemPathSearcher) :
>>> spec: #<Gem::Specification name=ruport version=1.4.0> path: ruport glob:
>>> C:\Program Files\Apache Software Foundation\Tomcat
>>> 6.0\webapps\my-app\WEB-INF\gems/gems/ruport-1.4.0/{lib}/ruport{,.rb,.rbw,.so
>>> ,.
>>> bundle,.dll,.sl,.jar} pattern: {,.rb,.rbw,.so,.bundle,.dll,.sl,.jar} id:
>>> 102.
>>>
>>> I believe the Dir[glob] fails because of this. Somehow a mix directory
>>> path
>>> structure is being used for full_gem_path when running jruby under
>>> Tomcat.
>>> What do I need to change to get rid of the windows path format that is
>>> not
>>> working? I tried a simple test using just jruby
>>> and the gem path is unix like, not mixed, all the gems are locate just
>>> fine.
>>>
>>> Thanks,
>>> Peter
>>>
>>>
>>>
>>> -----Original Message-----
>>> From:
peterd96@...
>>> To:
user@...
>>> Sent: Mon, 25 Feb 2008 9:57 am
>>> Subject: [jruby-user] tomcat and jruby rc2
>>>
>>> Ok,
>>>
>>> I have not logged a bug about this because I think it's probably some
>>> configuration issue; I am hoping you guys can just point me in the right
>>> direction. I start out with a working application that I can run just
>>> fine
>>> using jruby rc2 with webrick. I then attempt to create a war with
>>> warbler; I
>>> am pulling my hair out try to get it to work under tomcat 6.0.
>>>
>>> Rails fails to find custom gems : INFO: Failed to load Rails: no such
>>> file to
>>> load -- ruport
>>> file:/C:/Program Files/Apache Software Foundation/Tomcat
>>> 6.0/webapps/my-app/WEB-INF/lib/jruby-complete-1.1RC2.jar!/META-INF/jruby.hom
>>> e/
>>> lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
>>>
>>> I did manage to create a better war using just goldspike; that
>>> environment is
>>> using 'default user'. I am still having issues with static content. The
>>> app is
>>> able to find my stylesheest but not images and javascripts, especially
>>> active_scaffold related stuff. I also want to understand how tomcat
>>> decides
>>> between using jruby-complete jar versus the 'default user' directory. I
>>> am
>>> having a heck of a time getting warbler to package hpricot as well.
>>>
>>>
>>> These are my gems. We are deploying to production in 3 weeks. We don't
>>> have
>>> the time to make rails 2.0 changes.
>>> I have rails set to: RAILS_GEM_VERSION = '1.2.5'
>>>
>>> *** LOCAL GEMS ***
>>> actionmailer (2.0.2, 1.3.5)
>>> actionpack (2.0.2, 1.13.5)
>>> actionwebservice (1.2.6, 1.2.5)
>>> activerecord (2.0.2, 1.15.5)
>>> activerecord-jdbc-adapter (0.7.2)
>>> activerecord-jdbcmysql-adapter (0.7.2)
>>> activeresource (2.0.2)
>>> activesupport (2.0.2, 1.4.4)
>>> acts_as_reportable (1.0.1)
>>> archive-tar-minitar (0.5.1)
>>> color (1.4.0)
>>> fastercsv (1.2.3)
>>> glassfish (0.1.1)
>>> hoe (1.5.0)
>>> hpricot (0.6.157)
>>> jdbc-mysql (5.0.4)
>>> jrexml (0.5.3)
>>> jruby-openssl (0.1.1)
>>> json_pure (1.1.2)
>>> mailfactory (1.2.3)
>>> mime-types (1.15)
>>> pdf-writer (1.1.7)
>>> rails (2.0.2, 1.2.5)
>>> rake (0.8.1)
>>> rmagick4j (0.3.3)
>>> rspec (1.1.3)
>>> rubyforge (0.4.4)
>>> rubyzip (0.9.1)
>>> ruport (1.4.0)
>>> ruport-util (0.13.0)
>>> sources (0.0.1)
>>> transaction-simple (1.4.0)
>>> warbler (0.9.3)
>>>
>>> Thanks,
>>> Peter
>>>
>>> More new features than ever. Check out the new AOL Mail
>>> <
http://o.aolcdn.com/cdn.webmail.aol.com/mailtour/aol/en-us/text.htm?ncid=ao>>> lc
>>> mp00050000000003> !
>>>
>>> Supercharge your AIM. Get the AIM toolbar
>>> <
http://download.aim.com/client/aimtoolbar?NCID=aolcmp00300000002586>
>>> for
>>> your browser.
>>>
>>
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>
http://xircles.codehaus.org/manage_email>
>