开发者

How does JRuby resolve gem paths in a jar file?

开发者 https://www.devze.com 2023-01-17 16:17 出处:网络
I\'ve packaged a custom gem into a jar file which is being referenced by a JRuby script. I\'m getting the following error:

I've packaged a custom gem into a jar file which is being referenced by a JRuby script.

I'm getting the following error:

org.jruby.rack.RackInitializationException: JAR entry gems/sinatra-linkedin-auth-0.0.1开发者_Go百科-java/lib/sinatra/linkedin-auth.rb not found in /Users/bhaidri/code/nextgen-ui/dist/darwin-war/exploded-war/WEB-INF/lib/linkedin-gems-0.0.1.jar

When I inspect my jar file, the linkedin-auth.rb script is indeed there in the correct location. Why is it not being correctly loaded?

Thanks, Baq


If anybody runs into this situation, please try restarting Tomcat. That resolved the problem for me.

0

精彩评论

暂无评论...
验证码 换一张
取 消