I have created rails application in jruby(LINUX).

I have used following version

1.Jruby 1.0.3 (in /usr/local/)
2.Rails 2.0.2
3.Tomcat 6
4.JDK 1.6
5.MYSQL connector 5.0.6.jar in $JRUBY_HOME/lib
6.Activerecord-jdbc-adapter

I have also update $JRUBY_HOME and $PATH in /etc/profile .

i also add following line in environment.rb

if RUBY_PLATFORM =~ /java/
   require 'rubygems'
   gem 'ActiveRecord-JDBC'
   require 'jdbc_adapter'
end


To create War file i am using both goldspike and warble.Both folder
structure are different.

Rails appication is run in webrick.

When run application in tomcat it shows ruby on rails default
page(http://localhost:8080/application_name) but it doesn't run

after i enter the controller name next to application
name(http://localhost:8080/application_name/controller_name).


when using goldspike war file  in tomcat it shows error "server
overload......"

when using warble war file it shows error in 500.html file.

Whole thing is it does not redirect to controller page.

web.xml file(in Warbler jar):

<!DOCTYPE web-app PUBLIC
  "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
  "http://java.sun.com/dtd/web-app_2_3.dtd";>
<web-app>

  <context-param>
    <param-name>rails.env</param-name>
    <param-value>production</param-value>
  </context-param>

  <context-param>
    <param-name>public.root</param-name>
    <param-value>/</param-value>
  </context-param>


  <filter>
    <filter-name>RackFilter</filter-name>
    <filter-class>org.jruby.rack.RackFilter</filter-class>
  </filter>
  <filter-mapping>
    <filter-name>RackFilter</filter-name>
    <url-pattern>/*</url-pattern>
  </filter-mapping>

  <listener>
    
<listener-class>org.jruby.rack.rails.RailsServletContextListener</listener-class>
  </listener>


</web-app>

 I referred websites:

   http://www.developer.com/db/article.php/3691716
http://jairrillo.wordpress.com/2008/07/24/deploying-jruby-application-on-tomcat-glassfish-and-websphere-61/
   http://wiki.jruby.org/wiki/Jruby_on_Rails_on_Tomcat

how to solve this problem ?
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Deploying Rails" group.
To post to this group, send email to rubyonrails-deployment@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-deployment?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to