Rails 3.0 on Windows2K8/Tomcat 6 will not run as a service.
-----------------------------------------------------------

                 Key: JRUBY-5237
                 URL: http://jira.codehaus.org/browse/JRUBY-5237
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.5.2
         Environment: Windows 2008, Tomcat 6.0.29, Java 1.6.0_21, Rails 3.0.0, 
Bundler 1.0.0, jruby-jars-1.5.5, jruby-rack-1.0.3, rack-1.2.1, rack-mount-0.6.13
            Reporter: John G
            Assignee: Thomas E Enebo


I'm at my wit's end with this issue. I've posed this [issue on 
Stackoverflow|http://stackoverflow.com/questions/4216509/issues-with-running-tomcat-as-a-service-on-windows-but-works-fine-with-startup-ba]
 to no avail.

To be brief, I'm deploying my application on Tomcat 6 on a Win2K8 server. When 
I run Tomcat as a service, I get an error. When I run Tomcat as a user process 
(i.e., using {{startup.bat}}), it runs fine. From what I can see in my log, it 
looks like Bundle slips into an endless loop when 
{{JRuby::Rack::RailsBooter::Rails3Environment.load_environment}} is called. 
Bundler keeps hopping back and forth beween {{resolver.rb:295}} and 
{{resolver.rb:343}}.

Here's the code starting at Line 294 of {{resolver.rb}}

{code}
matching_versions.reverse_each do |spec_group|
  conflict = resolve_requirement(spec_group, current, reqs.dup, activated.dup)
  conflicts << conflict if conflict
end
{code}

Here's the code around {{resolver.rb:343}}. I added a {{puts}} statement to see 
what was going on.
{code}
puts "*** #{requirement.name}"
@stack << requirement.name
retval = catch(requirement.name) do
  resolve(req, activated)
end
{code}

Here's my full [Tomcat.log|http://pastie.org/1308566].

When running Tomcat using {{startup.bat}}, I see the following in the Tomcat 
STDOUT window:
{code}
*** rails
*** jruby-openssl
*** activerecord-oracle_enhanced-adapter
*** warbler
*** devise
*** devise_ldap_authenticatable
*** cancan
*** net-ldap
*** haml
*** factory_girl_rails
*** forgery
*** actionmailer
*** actionpack
*** activerecord
*** activeresource
*** activesupport
*** railties
*** bouncy-castle-java
*** jruby-jars
*** jruby-rack
*** rake
*** rubyzip
*** bcrypt-ruby
*** warden
*** factory_girl
*** mail
*** activemodel
*** builder
*** erubis
*** i18n
*** rack
*** rack-mount
*** rack-test
*** tzinfo
*** arel
*** thor
*** mime-types
*** treetop
*** abstract
*** polyglot
{code}

When running Tomcat as service, I see the following in my {{stdout}} log:
{code}
*** rails
*** jruby-openssl
*** activerecord-oracle_enhanced-adapter
*** warbler
*** devise
*** devise_ldap_authenticatable
*** cancan
*** net-ldap
*** haml
*** factory_girl_rails
*** forgery
*** actionmailer
*** actionpack
*** activerecord
*** activeresource
*** activesupport
*** railties
*** bouncy-castle-java
*** jruby-jars
*** jruby-rack
*** rake
*** rubyzip
*** bcrypt-ruby
*** warden
*** factory_girl
*** mail
*** activemodel
*** builder
*** erubis
*** i18n
*** rack 
*** rack-mount
{code}

This is as far as I've gone in my investigation. If you look at the two 
outputs, it seems to coughing up around {{rack-mount}}.

I would greatly appreciate any help. Thanks in advance!

-- 
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


Reply via email to