Thanks, for your help. I created a super simple Rails app with generate scaffolding, one table with one column. On tomcat on my Win PC the app is working. On Tomcat on Solaris not. My web.xml is this:
<!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> <context-param> <param-name>jruby.max.runtimes</param-name> <param-value>1</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> As you can see is in production. I used this tutorial to create the war: http://thenice.tumblr.com/post/133345213/deploying-a-rails-application-in-tomcat-with-jruby-a I used: warble config added: config.gems += ["activerecord-jdbcmysql-adapter", "jruby-openssl"] then: warble Copied the WAR in Tomcat on my PC and and it worked, on Solaris not. The database (on MySql) as GRANT ALL *.* for 'root'@'%' it should not be a problem. The log of Tomcat: -bash-3.00$ tail /opt/tomcat/logs/catalina.2009-10-13.log 13-Oct-2009 16:57:30 org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive test.war 13-Oct-2009 16:58:10 org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8080 13-Oct-2009 16:58:11 org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 13-Oct-2009 16:58:11 org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/80 config=null 13-Oct-2009 16:58:11 org.apache.catalina.startup.Catalina start INFO: Server startup in 42982 ms The log of production.log is empty but has 777 permission. I have zero information to figure out what is going on!!! On Oct 13, 3:23 pm, Hassan Schroeder <hassan.schroe...@gmail.com> wrote: > On Tue, Oct 13, 2009 at 6:33 AM, rtacconi <rtacc...@gmail.com> wrote: > > Sorry, not litterally, it is the tipical Rails error, but it happens > > on Tomcat, we Rails deployed as WAR. There is nothing in Rails logs, > > nothing in tomcat log too! I have Tomcat on my PC and I get the same > > error. But Tomcat in my PC is running stand alone not as development > > server, I have not idea on how to use Tomcat as server. > > OK, then how are you creating the WAR? > > Regardless, once it's deployed and expanded, find WEB-INF/web.xml, > change production mode to development and restart Tomcat. > > You should at least get a usable error message then. > > -- > Hassan Schroeder ------------------------ hassan.schroe...@gmail.com > twitter: @hassan --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---