无法将sinatra web app部署到weblogic 12

无法将sinatra web app部署到weblogic 12,sinatra,weblogic,jruby,jruby-rack,Sinatra,Weblogic,Jruby,Jruby Rack,我的处境和你一样 但在西纳特拉的Hello world的例子中。网络逻辑12。修改后的weblogic.xml对我没有帮助: ####<Oct 9, 2014 12:24:39 PM UZT> <Info> <Deployer> <dorlov-Inspiron-3721> <DefaultServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Defau

我的处境和你一样

但在西纳特拉的Hello world的例子中。网络逻辑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

直接从更新的wiki:


这应该是12年前WebLogic版本的替代方案,这看起来确实很奇怪。。。原因与引用的q-WL的joda.jar相同,而JRuby也打包了它自己的版本,并且由于web应用程序的CL在默认情况下会委托服务器的.jar。也许你需要分享JRuby机架版本的更多细节,以及.war是如何解决的。jruby.*jruby.*我们能否查看完整的weblogic.xml描述符,以便为后代更新wiki?如果你能回答你的问题那就太好了。。。真的org.jruby.*jruby.*谢谢,我为你发布了答案。我有点惊讶它是这样工作的,但我想我明白为什么。但最重要的一点似乎是org.joda。*仅此一点就足够了。。。如果我错了,请告诉我。
<?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>