Friday July 31, 2009
If you are using Warbler to create a WAR file of your application and
deploying on GlassFish
or any other Servlet container, then you are likely seeing the
following error during deployment:
| [#|2009-07-30T15:29:50.788-0700|SEVERE|sun-appserver2.1|javax.enterprise.system.container.web|_ThreadID=17; _ThreadName=httpWorkerThread-4848-0;_RequestID=1d7e8f18-1c9a-4924-bd0b-6a07eba425ba;|WebModule [/session]unable to create shared application instance org.jruby.rack.RackInitializationException: undefined method `new' for "Rack::Lock":String from /Users/arungupta/tools/glassfish/v2.1/glassfish/domains/domain1/applications/j2ee-modules/session/WEB-INF/gems/gems/actionpack-2.3.2/lib/ action_controller/middleware_stack.rb:116:in `inject' from /Users/arungupta/tools/glassfish/v2.1/glassfish/domains/domain1/applications/j2ee-modules/session/WEB-INF/gems/gems/actionpack-2.3.2/lib/ action_controller/middleware_stack.rb:116:in `build' from /Users/arungupta/tools/glassfish/v2.1/glassfish/domains/domain1/applications/j2ee-modules/session/WEB-INF/gems/gems/actionpack-2.3.2/lib/ action_controller/dispatcher.rb:82:in `initialize' . . . |
| # Additional Java .jar files to include.
Note that if .jar files are placed # in lib (and not otherwise excluded) then they need not be mentioned here. # JRuby and JRuby-Rack are pre-loaded in this list. Be sure to include your # own versions if you directly set the value # config.java_libs += FileList["lib/java/*.jar"] config.java_libs.delete_if {|f| f =~ /jruby-rack/ } config.java_libs += FileList["lib/jruby-rack*.jar"] |
| # Additional Java .jar files to include.
Note that if .jar files are placed # in lib (and not otherwise excluded) then they need not be mentioned here. # JRuby and JRuby-Rack are pre-loaded in this list. Be sure to include your # own versions if you directly set the value # config.java_libs += FileList["lib/java/*.jar"] config.java_libs.delete_if {|f| f =~ /jruby-rack/ || f =~ /jruby-complete/ } config.java_libs += FileList["lib/jruby-complete*.jar"] config.java_libs += FileList["lib/jruby-rack*.jar"] |
Posted by Arun Gupta in web2.0 | Comments[7]
|
|
|
|
|
Today's Page Hits: 1125
Total # blog entries: 1002
Great job on figuring this out. I'm glad you're on top of things, Arun!
Posted by Eric Berry on July 31, 2009 at 07:57 AM PDT #
Arun,
Glad to see that fix helped. Hope you had a good time at the house warming ceremony!
Gary
http://stufftohelpyouout.blogspot.com/2009/06/how-to-get-warbler-to-include-custom.html
Posted by Gary S. Weaver on July 31, 2009 at 10:09 AM PDT #
wow, very nice and incredible post.
http://www.johnvcaruana.com/
Posted by company formation malta on August 02, 2009 at 11:15 AM PDT #
We at reliable hosts appreciate the
knowledge the blog owner has about this topic.
Posted by web hosting on August 04, 2009 at 12:05 AM PDT #
Posted by Arun Gupta's Blog on August 12, 2009 at 06:11 AM PDT #
Posted by Arun Gupta's Blog on August 12, 2009 at 09:15 AM PDT #
Great..very nice and incredible post about GlassFish.
i visited many blogs but couldn't find
such valuable info. i will definetly add
this to my blogroll.
Posted by Ohio SEO on August 24, 2009 at 04:20 AM PDT #