pauladaniel / calendardateselect

Automatically exported from code.google.com/p/calendardateselect
Other
0 stars 0 forks source link

cds is using Rails.root and fails on JEE containers #161

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
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:

GoogleCodeExporter commented 8 years ago
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