2013-05-31 2 views
0

정말 짧은 이야기 : 나는이 문제에 의해 믿을 수 없을만큼 좌절 해요JRuby를/금/글래스 피쉬 - (나가서 설명하자면 NameError) 초기화되지 않은 상수와 ApplicationController :: SessionsHelper


짧은 이야기 : A와 JRuby를-1.7.2 건물 warfler (1.3.8)를 사용하여 glassfish v3 서버에 배포합니다. 내 컴퓨터에서 빌드 할 수 있지만 모든 Jenkins 빌드하려고하면 첫 페이지를로드 할 때 전쟁을 다음과 같은 오류가 발생합니다.

org.jruby.exceptions.RaiseException : (NameError)

#path to rvm 
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" 
# Use the correct ruby 
rvm use "[email protected]" 
# Set "fail on error" in bash 
set -e 
# build 
bundle update 
warble compiled war 

: 초기화되지 않은 상수와 ApplicationController :: SessionsHelper


긴 이야기 : 우리의 젠킨스 서버 빌드 스크립트

글래스 피시의 오류 로그 .... 정보가 충분하기를 바랍니다.

[# | 2013-05-31T17 : 10 : 14.634-0400 | 정보 | glassfish3.1.2 | javax.enterprise.system.container.web.com.sun.enterprise.web | _ThreadID = 19; _ThreadName = Thread -2] | PWC1412 : WebModule [null] ServletContext.log() : INFO : 풀이 비어 있음 - 새 응용 프로그램 인스턴스를 얻는 중 | #]

[# | 2013-05-31T17 : 10 : 25.181-0400 | JRuby에서 예외가 발생했습니다. glassfish3.1.2 | javax.enterprise.system.container.web.com.sun.enterprise.web | _ThreadID = 19; _ThreadName = Thread-2; | PWC1412 : WebModule [null] ServletContext.log() : JRuby -Rack startup 초기화되지 않은 상수 ApplicationController :: SessionsHelper --- 시스템 jruby 1.7.4 (1.9.3p392) 2013-05-16 OpenJDK 64 비트 서버 VM 1.6.0_27-b27 [linux-am D64] 시간 : 2013년 5월 31일 17시 10분 25초 -0400 서버 : 글래스 피쉬 서버 오픈 소스 버전 3.1.2.2 jruby.home : 클래스 경로 : /META-INF/jruby.home

--- 컨텍스트 초기화 파라미터 : com.sun.faces.forceLoadConfiguration = 사실 com.sun.faces.validateXml = 사실 public.root =/ rails.env = 생산

--- 역 추적 나가서 설명하자면 NameError : 초기화되지 않은 상수와 ApplicationController :: 세션 안녕하세요

--- RubyGems Gem.dir :/opt/glassfish3/glassfish/domains/myDomain/applications/web-admin/WEB-INF/gem Gem.path : /opt/glassfish3/glassfish/domains/myDomain/applications/web-admin/WEB-INF는/보석 활성화 보석을 : 들러-1.3.5 레이크 - 10.0.4 국제화-0.6.1 multi_json-1.7.4 activesupport-3.2.13 빌더 3.0.4 activemodel - 3.2. 13 erubis-2.7.0 여행-1.0.4 랙 1.4.5 랙 캐시 1.2 랙 테스트 0.6.2 인상-1.2.2 기울기 S 1.4.1 prockets-2.2.2 actionpack-3.2.13 mime-types-1.23 polyglot-0.3.3 treetop-1.4.12 mail-2.5.4 actionmailer-3.2.13 arel- tzinfo 3.0.2 - 0.3.37 액티브 - 3.2.13 activeresource-3.2.13 gyoku-1.0.0 노코 기리-1.5.9 자바 akami-1.2. 0 bcrypt-루비 3.0.1 자바 사스-3.2.9 스트랩-사스-2.3.1.2 will_paginate-3.0.4 스트랩-will_paginate-0.0.9 탄력-성 자바 1.5.0147 coffee-script-source-1.6.2 execjs-1.4.0 coffee-script-2.2.0 rack-ssl-1.3.3 json-1.8.0-java r 문서-3.12.2 토르 - 0.18.1 railties-3.2.13 커피 레일-3.2.2 사기꾼-1.1.2 httpi-2.0.2 JQuery와 레일 - 2.2.2 JRuby를[email protected]로 0.8.8 노리-2.1.0 - 3.2.13 레일 사스 레일-3.2.6 와사비 3.1.0 savon-2.2.0 therubyrhino_jar-1.7.4 therubyrhino-2.0.2 uglifier- 1.0.4 uuidtools-2.1.4

--- Bundler Bundler.bundle_path :/opt/glassfish3/glassfish/domains/myDomai 응용 프로그램/웹 관리자/WEB-INF/gem Bundler.root :/opt/glassfish3/glassfish/domains/myDomain/applications/web-admin/WEB-INF Gemfile :/opt/glassfish3/glassfish/domains/myDomain/applications/web-admin/WEB-INF/Gemfile 설정하지 않음 = 개발 : 테스트 : 자산 gemfile =/opt/glassfish3/glassfish/bin_path = /opt/glassfish3/glassfish/domains/myDomain/applications/web-admin/WEB-INF/gems/gems/bundler-1.3.5/bin/bundle

--- JRuby를 랙 구성 compat_version = default_logger = [email protected] 같음 = 01 23,516,ERR = com[email protected]7a21bdb8 filter_adds_html = 사실 filter_verifies_resource = 거짓 ignore_environment = 거짓 initial_memory_buffer_size = initial_runtimes = jms_connection_factory = jms_jndi_properties = 로거 = org.jruby.rack .logging.ServletContextLogger @ 19a2312c logger_class_name = SERVLET_CONTEXT logger_name = jruby.rack maximum_memory_buffer_size = maximum_runtimes = num_initializer_threads = 밖으로 = com.sun.common.util.logging.LoggingOutputStream $ LoggingPri ntStream @ 52f8d395 rackup = rackup_path = rewindable = 사실 runtime_arguments = runtime_environment = runtime_timeout_seconds = serial_initialization = 거짓 SERVLET_CONTEXT = [email protected] throw_init_exception = 거짓 | #]

[# | 2013-05-31T17 : 10 : 25.182-0400 | 정보 | glassfish3.1.2 | javax.enterprise.system.container.web.com.sun.enterprise.web | _ThreadID = 19; _ThreadName = Thread-2 PWC1412 : WebModule [null] ServletContext.log() : DEBUG : 예외로 인한 랙 응답 재설정 | #]

답변

0

소스 코드 제어에 문제가 있음을 알 수 있습니다. 제 헬퍼 디렉토리가 추가되지 않아서 젠킨스가 빌드에 포함되지 않았습니다. 항상 분명하지 않은지 먼저 확인하십시오.