Getting Rid of soap4r

Hello,

I’m maintaining a legacy app that crashes when I remove the “gem
soap4r” line from boot.rb. As far as I can tell, nothing in this app
uses soap. The app doesn’t complain when I switch the Rails gem to
1.1.6 from 1.2.6. Does anyone know how I can find out what is needing
the soap4r gem so I can get rid of it? Here’s the error I get when
mongrel tries to start under 1.2.6:

** Starting Mongrel listening at 0.0.0.0:3000
** Starting Rails with development environment…
/var/lib/gems/1.8/gems/activesupport-1.4.4/lib/active_support/
dependencies.rb:477:in const_missing': uninitialized constant XSD::NS::KNOWN_TAG (NameError) from /var/lib/gems/1.8/gems/soap4r-1.5.8/lib/soap/ns.rb:18 from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:ingem_original_require’
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in require' from /var/lib/gems/1.8/gems/activesupport-1.4.4/lib/active_support/ dependencies.rb:495:inrequire’
from /var/lib/gems/1.8/gems/activesupport-1.4.4/lib/active_support/
dependencies.rb:342:in new_constants_in' from /var/lib/gems/1.8/gems/activesupport-1.4.4/lib/active_support/ dependencies.rb:495:inrequire’
from /var/lib/gems/1.8/gems/soap4r-1.5.8/lib/soap/generator.rb:10
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in
gem_original_require' ... 58 levels... from /var/lib/gems/1.8/gems/mongrel-1.1.4/bin/../lib/mongrel/ command.rb:212:inrun’
from /var/lib/gems/1.8/gems/mongrel-1.1.4/bin/mongrel_rails:281
from /var/lib/gems/1.8/bin/mongrel_rails:16:in `load’
from /var/lib/gems/1.8/bin/mongrel_rails:16

If you’re not using activewebservice, just get rid of that library and
it should clear out this error.

Jason

Unfortunately we run another app that does use soap4r, so I can’t just
remove it from my system. I do want to get it off this particular app
though. Any other ideas?

I think what he meant was to remove it in environment.rb:

config.frameworks -= :action_web_service

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs