Skip to content

on jboss wildfly when starting a rack application: stat unsupported or native support failed to load #2173

@mkristian

Description

@mkristian
12:04:42,292 ERROR [io.undertow.servlet] (MSC service thread 1-6) ERROR: initialization failed: org.jruby.rack.RackInitializationException: stat unsupported or native support failed to load
    from org/jruby/RubyFileTest.java:131:in `file?'
    from classpath:/META-INF/jruby.home/lib/ruby/shared/rubygems/defaults/jruby.rb:84:in `dirs'
    from org/jruby/RubyArray.java:2407:in `collect'
    from classpath:/META-INF/jruby.home/lib/ruby/shared/rubygems/defaults/jruby.rb:82:in `dirs'
    from classpath:/META-INF/jruby.home/lib/ruby/shared/rubygems/specification.rb:705:in `stubs'
    from classpath:/META-INF/jruby.home/lib/ruby/shared/rubygems/specification.rb:897:in `find_inactive_by_path'
    from classpath:/META-INF/jruby.home/lib/ruby/shared/rubygems.rb:183:in `try_activate'

when running the server there is a native jffi lib in /tmp

to reproduce it checkout
https://github.com/mkristian/hellowarld/tree/wildfly
and run

rmvn wildfly:run 

could not reproduce it without wildfly. but it produces the same result when setting jruby.home to uri:classloader://META-INF/jruby.home

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions