Ruby on rails 已编译的Jruby应用程序实例变量错误

Ruby on rails 已编译的Jruby应用程序实例变量错误,ruby-on-rails,tomcat,jruby,jrubyonrails,warbler,Ruby On Rails,Tomcat,Jruby,Jrubyonrails,Warbler,如何在jruby编译的应用程序中使用实例变量? 这里是使用instace变量的地方 def index @samaple = ["It's works"] render json: @samaple end 它在部署时显示以下错误: Internal Server Error (500) Request Method: GET Request URL: http://localhost:8080/blog1/ /opt/tomcat/webapps/unbxd_jrub

如何在jruby编译的应用程序中使用实例变量?

这里是使用instace变量的地方

def index
  @samaple = ["It's works"]
  render json: @samaple
end
它在部署时显示以下错误:

Internal Server Error (500)
Request Method:     GET
Request URL:    http://localhost:8080/blog1/

/opt/tomcat/webapps/unbxd_jruby/WEB-INF/app/controllers/webapp/WEB-INF/app/controllers/home_controller.class is not compiled Ruby; use java_import to load normal classes...
jruby应用程序的编译代码,显示使用instace变量时的错误