Guest User

Untitled

a guest
May 1st, 2012
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.63 KB | None | 0 0
  1. JRUBY - RAILS 3 - TOMCAT 7 Deploy failed
  2. gem 'rails', '3.1.3'
  3. gem 'dynamic_form'
  4. gem 'activerecord-jdbcmysql-adapter'
  5. gem 'jruby-openssl'
  6. gem 'json'
  7. group :assets do
  8. gem 'sass', '~> 3.1.12'
  9. gem 'sass-rails', '~> 3.1.5'
  10. gem 'coffee-rails', '~> 3.1.1'
  11. gem 'uglifier', '>= 1.0.3'
  12. end
  13. gem 'jquery-rails'
  14.  
  15. # Disable Rake-environment-task framework detection by uncommenting/setting to false
  16. # Warbler.framework_detection = false
  17.  
  18. # Warbler web application assembly configuration file
  19. Warbler::Config.new do |config|
  20. # Features: additional options controlling how the jar is built.
  21. # Currently the following features are supported:
  22. # - gemjar: package the gem repository in a jar file in WEB-INF/lib
  23. # - executable: embed a web server and make the war executable
  24. # - compiled: compile .rb files to .class files
  25. # config.features = %w(gemjar)
  26.  
  27. # Application directories to be included in the webapp.
  28. config.dirs = %w(app config lib log vendor tmp)
  29.  
  30.  
  31. # Additional files/directories to include, above those in config.dirs
  32. # config.includes = FileList["db"]
  33.  
  34. # Additional files/directories to exclude
  35. # config.excludes = FileList["lib/tasks/*"]
  36.  
  37. # Additional Java .jar files to include. Note that if .jar files are placed
  38. # in lib (and not otherwise excluded) then they need not be mentioned here.
  39. # JRuby and JRuby-Rack are pre-loaded in this list. Be sure to include your
  40. # own versions if you directly set the value
  41. # config.java_libs += FileList["lib/java/*.jar"]
  42.  
  43. # Loose Java classes and miscellaneous files to be included.
  44. # config.java_classes = FileList["target/classes/**.*"]
  45. #config.java_classes = FileList["log4j.properties"]
  46.  
  47. # One or more pathmaps defining how the java classes should be copied into
  48. # the archive. The example pathmap below accompanies the java_classes
  49. # configuration above. See http://rake.rubyforge.org/classes/String.html#M000017
  50. # for details of how to specify a pathmap.
  51. # config.pathmaps.java_classes << "%{target/classes/,}p"
  52.  
  53. # Bundler support is built-in. If Warbler finds a Gemfile in the
  54. # project directory, it will be used to collect the gems to bundle
  55. # in your application. If you wish to explicitly disable this
  56. # functionality, uncomment here.
  57. # config.bundler = false
  58.  
  59. # An array of Bundler groups to avoid including in the war file.
  60. # Defaults to ["development", "test"].
  61. # config.bundle_without = []
  62.  
  63. # Other gems to be included. If you don't use Bundler or a gemspec
  64. # file, you need to tell Warbler which gems your application needs
  65. # so that they can be packaged in the archive.
  66. # For Rails applications, the Rails gems are included by default
  67. # unless the vendor/rails directory is present.
  68. # config.gems += ["activerecord-jdbcmysql-adapter", "jruby-openssl"]
  69. # config.gems << "tzinfo"
  70. config.gems += ["activerecord-jdbcmysql-adapter", "jruby-openssl"]
  71.  
  72.  
  73.  
  74. # Uncomment this if you don't want to package rails gem.
  75. # config.gems -= ["rails"]
  76.  
  77. # The most recent versions of gems are used.
  78. # You can specify versions of gems by using a hash assignment:
  79. #
  80. config.gems["rails"] = "3.2.1"
  81. # You can also use regexps or Gem::Dependency objects for flexibility or
  82. # finer-grained control.
  83. # config.gems << /^merb-/
  84. # config.gems << Gem::Dependency.new("merb-core", "= 0.9.3")
  85.  
  86. # Include gem dependencies not mentioned specifically. Default is
  87. # true, uncomment to turn off.
  88. # config.gem_dependencies = false
  89.  
  90. # Array of regular expressions matching relative paths in gems to be
  91. # excluded from the war. Defaults to empty, but you can set it like
  92. # below, which excludes test files.
  93. # config.gem_excludes = [/^(test|spec)//]
  94.  
  95. # Pathmaps for controlling how application files are copied into the archive
  96. # config.pathmaps.application = ["WEB-INF/%p"]
  97.  
  98. # Name of the archive (without the extension). Defaults to the basename
  99. # of the project directory.
  100. # config.jar_name = "mywar"
  101.  
  102. # Name of the MANIFEST.MF template for the war file. Defaults to a simple
  103. # MANIFEST.MF that contains the version of Warbler used to create the war file.
  104. # config.manifest_file = "config/MANIFEST.MF"
  105.  
  106. # When using the 'compiled' feature and specified, only these Ruby
  107. # files will be compiled. Default is to compile all .rb files in
  108. # the application.
  109. # config.compiled_ruby_files = FileList['app/**/*.rb']
  110.  
  111. # === War files only below here ===
  112.  
  113. # Path to the pre-bundled gem directory inside the war file. Default
  114. # is 'WEB-INF/gems'. Specify path if gems are already bundled
  115. # before running Warbler. This also sets 'gem.path' inside web.xml.
  116. # config.gem_path = "WEB-INF/vendor/bundler_gems"
  117.  
  118. # Files for WEB-INF directory (next to web.xml). This contains
  119. # web.xml by default. If there is an .erb-File it will be processed
  120. # with webxml-config. You may want to exclude this file via
  121. # config.excludes.
  122. # config.webinf_files += FileList["jboss-web.xml"]
  123.  
  124. # Files to be included in the root of the webapp. Note that files in public
  125. # will have the leading 'public/' part of the path stripped during staging.
  126. # config.public_html = FileList["public/**/*", "doc/**/*"]
  127.  
  128. # Pathmaps for controlling how public HTML files are copied into the .war
  129. # config.pathmaps.public_html = ["%{public/,}p"]
  130.  
  131. # Value of RAILS_ENV for the webapp -- default as shown below
  132. config.webxml.rails.env = ENV['RAILS_ENV'] || 'production'
  133.  
  134. # Application booter to use, one of :rack, :rails, or :merb (autodetected by default)
  135. # config.webxml.booter = :rails
  136.  
  137. # Set JRuby to run in 1.9 mode.
  138. # config.webxml.jruby.compat.version = "1.9"
  139.  
  140. # When using the :rack booter, "Rackup" script to use.
  141. # - For 'rackup.path', the value points to the location of the rackup
  142. # script in the web archive file. You need to make sure this file
  143. # gets included in the war, possibly by adding it to config.includes
  144. # or config.webinf_files above.
  145. # - For 'rackup', the rackup script you provide as an inline string
  146. # is simply embedded in web.xml.
  147. # The script is evaluated in a Rack::Builder to load the application.
  148. # Examples:
  149. # config.webxml.rackup.path = 'WEB-INF/hello.ru'
  150. # config.webxml.rackup = %{require './lib/demo'; run Rack::Adapter::Camping.new(Demo)}
  151. # config.webxml.rackup = require 'cgi' && CGI::escapeHTML(File.read("config.ru"))
  152.  
  153. # Control the pool of Rails runtimes. Leaving unspecified means
  154. # the pool will grow as needed to service requests. It is recommended
  155. # that you fix these values when running a production server!
  156. # config.webxml.jruby.min.runtimes = 2
  157. # config.webxml.jruby.max.runtimes = 4
  158. config.webxml.jruby.min.runtimes = 2
  159. config.webxml.jruby.max.runtimes = 4
  160.  
  161. # JNDI data source name
  162. # config.webxml.jndi = 'jdbc/rails'
  163. end
Advertisement
Add Comment
Please, Sign In to add comment