<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: Using Ruby On Rails With Oracle And Deploying It All To Tomcat</title> <atom:link href="http://www.skorks.com/2010/02/using-ruby-on-rails-with-oracle-and-deploying-it-all-to-tomcat/feed/" rel="self" type="application/rss+xml" /><link>http://www.skorks.com/2010/02/using-ruby-on-rails-with-oracle-and-deploying-it-all-to-tomcat/</link> <description>For the betterment of the software craft...</description> <lastBuildDate>Mon, 21 Nov 2011 13:57:06 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.1.2</generator> <item><title>By: Alan Skorkin</title><link>http://www.skorks.com/2010/02/using-ruby-on-rails-with-oracle-and-deploying-it-all-to-tomcat/comment-page-1/#comment-4541</link> <dc:creator>Alan Skorkin</dc:creator> <pubDate>Tue, 06 Apr 2010 23:47:20 +0000</pubDate> <guid
isPermaLink="false">http://www.skorks.com/?p=1358#comment-4541</guid> <description>I&#039;ll try to have a look at this for you.</description> <content:encoded><![CDATA[<p>I&#8217;ll try to have a look at this for you.</p> ]]></content:encoded> </item> <item><title>By: Tod Jackson</title><link>http://www.skorks.com/2010/02/using-ruby-on-rails-with-oracle-and-deploying-it-all-to-tomcat/comment-page-1/#comment-4532</link> <dc:creator>Tod Jackson</dc:creator> <pubDate>Tue, 06 Apr 2010 14:41:18 +0000</pubDate> <guid
isPermaLink="false">http://www.skorks.com/?p=1358#comment-4532</guid> <description>Sorry, I&#039;ve been distracted...
Yes, it&#039;s using mysql and the mysql jdbc driver is in common/lib.  It&#039;s not in the blog/WEB-INF/lib directory.  I&#039;ll give that a try.
Here&#039;s the guide I followed to create the app I&#039;m talking about:  http://guides.rubyonrails.org/getting_started.html.  Once I had the app working with Webrick, mongrel and apache/phusion, I wanted to get it working with tomcat via warbler.
I&#039;m also going to try and see what jBoss thinks about the war file I&#039;ve created to see if it might shed any light on the situation.
Thanks!</description> <content:encoded><![CDATA[<p>Sorry, I&#8217;ve been distracted&#8230;</p><p>Yes, it&#8217;s using mysql and the mysql jdbc driver is in common/lib.  It&#8217;s not in the blog/WEB-INF/lib directory.  I&#8217;ll give that a try.</p><p>Here&#8217;s the guide I followed to create the app I&#8217;m talking about: <a
href="http://guides.rubyonrails.org/getting_started.html" rel="nofollow">http://guides.rubyonrails.org/getting_started.html</a>.  Once I had the app working with Webrick, mongrel and apache/phusion, I wanted to get it working with tomcat via warbler.</p><p>I&#8217;m also going to try and see what jBoss thinks about the war file I&#8217;ve created to see if it might shed any light on the situation.</p><p>Thanks!</p> ]]></content:encoded> </item> <item><title>By: Alan Skorkin</title><link>http://www.skorks.com/2010/02/using-ruby-on-rails-with-oracle-and-deploying-it-all-to-tomcat/comment-page-1/#comment-4066</link> <dc:creator>Alan Skorkin</dc:creator> <pubDate>Sat, 20 Mar 2010 02:28:28 +0000</pubDate> <guid
isPermaLink="false">http://www.skorks.com/?p=1358#comment-4066</guid> <description>Hmmm, it is a bit of a pickle. The other thought that just occurred to me, if it is just a standard app is it using mysql? If so, did you put in the mysql JDBC connector jar into your lib directory?
If this is not it, how about this, if you found the app you&#039;re using somewhere else, let me know which app and where you found it and I&#039;ll have a look at it and see if there anything wrong.</description> <content:encoded><![CDATA[<p>Hmmm, it is a bit of a pickle. The other thought that just occurred to me, if it is just a standard app is it using mysql? If so, did you put in the mysql JDBC connector jar into your lib directory?</p><p>If this is not it, how about this, if you found the app you&#8217;re using somewhere else, let me know which app and where you found it and I&#8217;ll have a look at it and see if there anything wrong.</p> ]]></content:encoded> </item> <item><title>By: Tod Jackson</title><link>http://www.skorks.com/2010/02/using-ruby-on-rails-with-oracle-and-deploying-it-all-to-tomcat/comment-page-1/#comment-4039</link> <dc:creator>Tod Jackson</dc:creator> <pubDate>Fri, 19 Mar 2010 18:33:43 +0000</pubDate> <guid
isPermaLink="false">http://www.skorks.com/?p=1358#comment-4039</guid> <description>Thanks for the reply.
Unfortunately, I&#039;m not seeing anything in the tomcat logs.  I&#039;m thinking it may not even really be &quot;getting to&quot; tomcat.  The app I&#039;m trying to use is from another tutorial I found (blog) but I will try a simpler app just to see if there could be something there.  Do you know if there are any particular versions of Tomcat that aren&#039;t supported?  I believe I&#039;ve been using a 5.x version.
As far as my WAR file, web.xml etc. I think it all looks like what I would expect if I understand what warbler does.  Here&#039;s what&#039;s under WEB-INF:
app
config
lib
web.xml (this looks okay to me)
The JRuby libraries are under the lib directory.  The app folder has all my Ruby files etc.
Here&#039;s what the root of my .war file looks like:
images
javascript
META-INF
stylesheets
WEB-INF
404.html
422.html
500.html (which is the page that&#039;s coming up for me when I try to access the app)
and a few others...
Does any of this look wrong to you?  Thanks again for the reply!</description> <content:encoded><![CDATA[<p>Thanks for the reply.</p><p>Unfortunately, I&#8217;m not seeing anything in the tomcat logs.  I&#8217;m thinking it may not even really be &#8220;getting to&#8221; tomcat.  The app I&#8217;m trying to use is from another tutorial I found (blog) but I will try a simpler app just to see if there could be something there.  Do you know if there are any particular versions of Tomcat that aren&#8217;t supported?  I believe I&#8217;ve been using a 5.x version.</p><p>As far as my WAR file, web.xml etc. I think it all looks like what I would expect if I understand what warbler does.  Here&#8217;s what&#8217;s under WEB-INF:<br
/> app<br
/> config<br
/> lib<br
/> web.xml (this looks okay to me)</p><p>The JRuby libraries are under the lib directory.  The app folder has all my Ruby files etc.</p><p>Here&#8217;s what the root of my .war file looks like:<br
/> images<br
/> javascript<br
/> META-INF<br
/> stylesheets<br
/> WEB-INF<br
/> 404.html<br
/> 422.html<br
/> 500.html (which is the page that&#8217;s coming up for me when I try to access the app)<br
/> and a few others&#8230;</p><p>Does any of this look wrong to you?  Thanks again for the reply!</p> ]]></content:encoded> </item> <item><title>By: Alan Skorkin</title><link>http://www.skorks.com/2010/02/using-ruby-on-rails-with-oracle-and-deploying-it-all-to-tomcat/comment-page-1/#comment-3956</link> <dc:creator>Alan Skorkin</dc:creator> <pubDate>Wed, 17 Mar 2010 23:10:42 +0000</pubDate> <guid
isPermaLink="false">http://www.skorks.com/?p=1358#comment-3956</guid> <description>Hi Tod,
The easiest way to diagnose is to open up the war file and manually inspect it for correctness. Does your web.xml look correct? Does your WEB-INF directory look correct, all the files in the right place etc? Try creating a simple rails app that doesn&#039;t do anything (i.e. a hello world app) and creating a war from that, does this tend to work?
Have you checked the tomcat logs, what is the actual error that is crashing your application?</description> <content:encoded><![CDATA[<p>Hi Tod,</p><p>The easiest way to diagnose is to open up the war file and manually inspect it for correctness. Does your web.xml look correct? Does your WEB-INF directory look correct, all the files in the right place etc? Try creating a simple rails app that doesn&#8217;t do anything (i.e. a hello world app) and creating a war from that, does this tend to work?</p><p>Have you checked the tomcat logs, what is the actual error that is crashing your application?</p> ]]></content:encoded> </item> <item><title>By: Tod Jackson</title><link>http://www.skorks.com/2010/02/using-ruby-on-rails-with-oracle-and-deploying-it-all-to-tomcat/comment-page-1/#comment-3947</link> <dc:creator>Tod Jackson</dc:creator> <pubDate>Wed, 17 Mar 2010 18:20:34 +0000</pubDate> <guid
isPermaLink="false">http://www.skorks.com/?p=1358#comment-3947</guid> <description>Greetings,
I&#039;ve recently needed to try this and found your article.  I&#039;ve been trying with a very simple blog app that was built via another RoR tutorial.  Works great with WEBrick, Mongrel and Apache (using Passenger).
I&#039;ve used warbler to WAR-up my app and have dropped it into an existing tomcat container.  I&#039;m getting the &quot;we&#039;re sorry but something went wrong&quot; error.  I&#039;ve tried a similar URL that I use when I&#039;m using the other web servers I mentioned (http://localhost:[port]/blog and http://localhost:[port]/blog/posts).  I&#039;m pretty new to RoR but use lots of other languages (mostly Java for the past 10 years).
No errors from Warbler, no complaints from Tomcat when I start it up and it creates the blog context for me and all.  I&#039;m wondering if I created the .war file at the right place, i.e., what is the &quot;root&quot; of my rails app?  My rails app is in [my-home-folder]/www/blog so I went to that directory and ran warbler.  That created the .war file, I dropped that into my Tomcat instance and bounced it.  I&#039;m still just using MySQL for this so I&#039;m not even messing with the Oracle stuff (yet).
Any ideas what I may be doing wrong?
Thanks in advance!</description> <content:encoded><![CDATA[<p>Greetings,</p><p>I&#8217;ve recently needed to try this and found your article.  I&#8217;ve been trying with a very simple blog app that was built via another RoR tutorial.  Works great with WEBrick, Mongrel and Apache (using Passenger).</p><p>I&#8217;ve used warbler to WAR-up my app and have dropped it into an existing tomcat container.  I&#8217;m getting the &#8220;we&#8217;re sorry but something went wrong&#8221; error.  I&#8217;ve tried a similar URL that I use when I&#8217;m using the other web servers I mentioned (<a
href="http://localhost:port/blog" rel="nofollow">http://localhost:port/blog</a> and <a
href="http://localhost:port/blog/posts" rel="nofollow">http://localhost:port/blog/posts</a>).  I&#8217;m pretty new to RoR but use lots of other languages (mostly Java for the past 10 years).</p><p>No errors from Warbler, no complaints from Tomcat when I start it up and it creates the blog context for me and all.  I&#8217;m wondering if I created the .war file at the right place, i.e., what is the &#8220;root&#8221; of my rails app?  My rails app is in [my-home-folder]/www/blog so I went to that directory and ran warbler.  That created the .war file, I dropped that into my Tomcat instance and bounced it.  I&#8217;m still just using MySQL for this so I&#8217;m not even messing with the Oracle stuff (yet).</p><p>Any ideas what I may be doing wrong?</p><p>Thanks in advance!</p> ]]></content:encoded> </item> <item><title>By: Alan Skorkin</title><link>http://www.skorks.com/2010/02/using-ruby-on-rails-with-oracle-and-deploying-it-all-to-tomcat/comment-page-1/#comment-3766</link> <dc:creator>Alan Skorkin</dc:creator> <pubDate>Tue, 02 Mar 2010 23:13:28 +0000</pubDate> <guid
isPermaLink="false">http://www.skorks.com/?p=1358#comment-3766</guid> <description>Hi Rory,
Agreed, that&#039;s very sound advice. I just couldn&#039;t be bothered working out the correct set of privileges when it came to development :).</description> <content:encoded><![CDATA[<p>Hi Rory,</p><p>Agreed, that&#8217;s very sound advice. I just couldn&#8217;t be bothered working out the correct set of privileges when it came to development :).</p> ]]></content:encoded> </item> <item><title>By: Rory McCune</title><link>http://www.skorks.com/2010/02/using-ruby-on-rails-with-oracle-and-deploying-it-all-to-tomcat/comment-page-1/#comment-3764</link> <dc:creator>Rory McCune</dc:creator> <pubDate>Tue, 02 Mar 2010 19:40:33 +0000</pubDate> <guid
isPermaLink="false">http://www.skorks.com/?p=1358#comment-3764</guid> <description>Hi,
cool information.  One thing, when you come to deploying rails/oracle for a production app, I&#039;d steer well clear of GRANT ALL PRIVILEGES, if you can at all.  It gives a lot of access to the user, that shouldn&#039;t be needed for running the app, up to and including changing the SYS and SYSTEM passwords.</description> <content:encoded><![CDATA[<p>Hi,</p><p>cool information.  One thing, when you come to deploying rails/oracle for a production app, I&#8217;d steer well clear of GRANT ALL PRIVILEGES, if you can at all.  It gives a lot of access to the user, that shouldn&#8217;t be needed for running the app, up to and including changing the SYS and SYSTEM passwords.</p> ]]></content:encoded> </item> <item><title>By: Alan Skorkin</title><link>http://www.skorks.com/2010/02/using-ruby-on-rails-with-oracle-and-deploying-it-all-to-tomcat/comment-page-1/#comment-3702</link> <dc:creator>Alan Skorkin</dc:creator> <pubDate>Sat, 27 Feb 2010 01:50:20 +0000</pubDate> <guid
isPermaLink="false">http://www.skorks.com/?p=1358#comment-3702</guid> <description>Hi Jonathan,
Yeah, tell me about it :)</description> <content:encoded><![CDATA[<p>Hi Jonathan,</p><p>Yeah, tell me about it :)</p> ]]></content:encoded> </item> <item><title>By: Jonathan Biolaz</title><link>http://www.skorks.com/2010/02/using-ruby-on-rails-with-oracle-and-deploying-it-all-to-tomcat/comment-page-1/#comment-3693</link> <dc:creator>Jonathan Biolaz</dc:creator> <pubDate>Fri, 26 Feb 2010 15:36:01 +0000</pubDate> <guid
isPermaLink="false">http://www.skorks.com/?p=1358#comment-3693</guid> <description>Thanks a lot ! I have to do it for my work (and I&#039;m not very happy with it).</description> <content:encoded><![CDATA[<p>Thanks a lot ! I have to do it for my work (and I&#8217;m not very happy with it).</p> ]]></content:encoded> </item> </channel> </rss>
