Не удалось развернуть веб-приложение sinatra в weblogic 12

У меня та же ситуация, что и в Не удалось развернуть приложение rails на weblogic ....

но в примере "Привет, мир" в Синатре. Weblogic 12. Модифицированный weblogic.xml мне не помогает:(

####<Oct 9, 2014 12:24:39 PM UZT> <Info> <Deployer> <dorlov-Inspiron-3721> <DefaultServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <67bcaffe-f332-43c1-a76e-e511b3ec24ad-00000001> <1412839479333> <BEA-149059> <Module hello.war of application hello is transitioning from STATE_PREPARED to STATE_ADMIN on server DefaultServer.> 
####<Oct 9, 2014 12:24:39 PM UZT> <Info> <Deployer> <dorlov-Inspiron-3721> <DefaultServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <67bcaffe-f332-43c1-a76e-e511b3ec24ad-00000001> <1412839479336> <BEA-149060> <Module hello.war of application hello successfully transitioned from STATE_PREPARED to STATE_ADMIN on server DefaultServer.> 
####<Oct 9, 2014 12:24:39 PM UZT> <Info> <ServletContext-/hello> <dorlov-Inspiron-3721> <DefaultServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <67bcaffe-f332-43c1-a76e-e511b3ec24ad-00000001> <1412839479409> <BEA-000000> <INFO: jruby 1.7.16 (1.9.3p392) 2014-09-25 575b395 on Java HotSpot(TM) 64-Bit Server VM 1.7.0_51-b13 +jit [linux-amd64]> 
####<Oct 9, 2014 12:24:39 PM UZT> <Info> <ServletContext-/hello> <dorlov-Inspiron-3721> <DefaultServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <67bcaffe-f332-43c1-a76e-e511b3ec24ad-00000001> <1412839479411> <BEA-000000> <INFO: using a shared (threadsafe!) runtime> 
####<Oct 9, 2014 12:24:43 PM UZT> <Info> <ServletContext-/hello> <dorlov-Inspiron-3721> <DefaultServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <67bcaffe-f332-43c1-a76e-e511b3ec24ad-00000001> <1412839483193> <BEA-000000> <An exception happened during JRuby-Rack startup
no method 'getInstance' for arguments (org.joda.time.tz.CachedDateTimeZone) on Java::OrgJodaTimeChrono::GJChronology
--- System
jruby 1.7.16 (1.9.3p392) 2014-09-25 575b395 on Java HotSpot(TM) 64-Bit Server VM 1.7.0_51-b13 +jit [linux-amd64]
Time: 2014-10-09 12:24:43 +0500
Server: WebLogic Server 12.1.3.0.0 Wed May 21 18:53:34 PDT 2014 1604337 Oracle WebLogic Server Module Dependencies 12.1 Tue Mar 11 15:35:15 MDT 2014 WebLogic Jersey Server Integration 3.0 Fri Feb 21 10:55:11 UTC 2014 
jruby.home: classpath:/META-INF/jruby.home

1 ответ

Решение

Прямо из обновленной вики: https://github.com/jruby/jruby-rack/wiki/Deploying-with-WebLogic

<?xml version="1.0" encoding="UTF-8"?>
<!-- this should work with anything >= WL 10.3, make sure your xmlns is right
<weblogic-web-app xmlns="http://www.bea.com/ns/weblogic/weblogic-web-app">-->
<weblogic-web-app xmlns="http://xmlns.oracle.com/weblogic/weblogic-web-app">
  <container-descriptor>
    <prefer-web-inf-classes>false</prefer-web-inf-classes>
    <prefer-application-packages>
      <package-name>org.joda.*</package-name>
      <package-name>org.jruby.*</package-name>
    </prefer-application-packages>
  </container-descriptor>
</weblogic-web-app>

это должно быть альтернативой для этого (даже для версий WebLogic до 12)

Другие вопросы по тегам