chetang/calendardateselect

cds is using Rails.root and fails on JEE containers

Opened this issue · 4 comments

What steps will reproduce the problem?
1. Create war file using warble
2. Deploy to Tomcat or Weblogic
3.  Code below fails bec. warbler places all files in WEB-INF.  Thus,
methods are not picked up properly.

if Object.const_defined?(:Rails) && File.directory?(Rails.root.to_s +
"/public")  

What is the expected output? What do you see instead?
The calendar?

What version of the product are you using? On what operating system?
1.13, 1.15. Windows XP. Jruby 1.1.6RC1.

Please provide any additional information below.

Original issue reported on code.google.com by bahaw...@gmail.com on 21 Feb 2009 at 3:39

[deleted comment]
[deleted comment]
Here is a fix proposition.
Sorry, I have no unit test for it...

Original comment by mike.a...@gmail.com on 2 Mar 2009 at 10:10

Attachments:

Does not work.  Suggest rewriting the entire gem.  This is quite a major 
drawback as it only works in webrick or glassfish3 and definitely not in any 
form of war file.

Unfortunately warbler is the only gem available which allows packaging rails in 
a war file that I know of....................

Original comment by petc...@gmail.com on 8 May 2012 at 6:56