Error when 'Booting WEBrick'

I encountered this problem yesterday so, I decided to build the whole
/app directory over but got the same thing again. what I did- I build
the MVC files for ‘abc’, included abc.rb in /lib, appended
environment.rb with ‘require abc’ and the service worked fine. And then
I did the same for ‘xyz’ and ran the server but it failed. both abc.rb
and xyz.rb contains ‘require xmlsimple’

and this is what I get when I run, / ruby script\sever-

=> Booting WEBrick…
c:/ruby/lib/ruby/gems/1.8/gems/xml-simple-1.0.9/lib/xmlsimple.rb:275:
warning: already initialized constant KNOWN_OPTIONS
c:/ruby/lib/ruby/gems/1.8/gems/xml-simple-1.0.9/lib/xmlsimple.rb:280:
warning: already initialized constant DEF_KEY_ATTRIBUTES
c:/ruby/lib/ruby/gems/1.8/gems/xml-simple-1.0.9/lib/xmlsimple.rb:281:
warning: already initialized constant DEF_ROOT_NAME
c:/ruby/lib/ruby/gems/1.8/gems/xml-simple-1.0.9/lib/xmlsimple.rb:282:
warning: already initialized constant DEF_CONTENT_KEY
c:/ruby/lib/ruby/gems/1.8/gems/xml-simple-1.0.9/lib/xmlsimple.rb:283:
warning: already initialized constant DEF_XML_DECLARATION
c:/ruby/lib/ruby/gems/1.8/gems/xml-simple-1.0.9/lib/xmlsimple.rb:284:
warning: already initialized constant DEF_ANONYMOUS_TAG
c:/ruby/lib/ruby/gems/1.8/gems/xml-simple-1.0.9/lib/xmlsimple.rb:285:
warning: already initialized constant DEF_FORCE_ARRAY
c:/ruby/lib/ruby/gems/1.8/gems/xml-simple-1.0.9/lib/xmlsimple.rb:286:
warning: already initialized constant DEF_INDENTATION
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
require__': ./script/../config/../lib/xyz.rb:51: parse error, unexpected $, expecting kEND (SyntaxError) end ^ from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:inrequire’
from
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in
require' from ./script/../config/../config/environment.rb:56 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:inrequire’
from
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in
require' from c:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/commands/servers/webrick.rb:52 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:inrequire’
from
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in
require' from c:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/commands/server.rb:30 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:inrequire’
from
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in
`require’
from ./script\server:3
from -e:3

any help ?!? thanks,

Mikki W wrote:

c:/ruby/lib/ruby/gems/1.8/gems/xml-simple-1.0.9/lib/xmlsimple.rb:275:
warning: already initialized constant DEF_ANONYMOUS_TAG

It seems to be saying there’s a syntax error in lib/xyz.rb. Looks like
you haven’t closed a statement of some kind.