From nicksieger at gmail.com Thu Mar 1 23:32:52 2007 From: nicksieger at gmail.com (Nick Sieger) Date: Thu, 1 Mar 2007 22:32:52 -0600 Subject: [Jruby-extras-devel] Release time In-Reply-To: <45E3111A.2070804@sun.com> References: <45E3111A.2070804@sun.com> Message-ID: On 2/26/07, Charles Oliver Nutter wrote: > So as some of you may have gathered, we're looking at having a JRuby > release in about a week's time. It would be truly excellent if we could > get some coordinating releases with a few JRuby extras projects. > Specifically > > ActiveRecord-JDBC (Nick said he'll handle this, but if anyone has > additions or fixes that should be included, talk to him) > Rails-Integration (What's needed to get a general-purpose release of > this out?) Charlie, Ola, or Tom, can one of you make me a project admin -- I don't know for sure but I'm guessing I'll need this in order to make the release. Thanks, /Nick From charles.nutter at sun.com Fri Mar 2 22:26:00 2007 From: charles.nutter at sun.com (Charles Oliver Nutter) Date: Fri, 02 Mar 2007 21:26:00 -0600 Subject: [Jruby-extras-devel] rails-integration progress In-Reply-To: <45D26727.7000900@sun.com> References: <45D15F8B.5010408@cs.auckland.ac.nz> <45D2093C.1090803@sun.com> <45D243EB.3020604@sun.com> <45D24D2B.8080303@sun.com> <45D25D75.2010008@sun.com> <45D2635D.9000507@sun.com> <45D26727.7000900@sun.com> Message-ID: <45E8EAC8.6050708@sun.com> Ashish Sahni wrote: > Looks like the breakpoint thingy is still an issue :( > Hey, I know now why I was confused about the breakpoint thing...shouldn't a WAR-based Rails app be deployed in production mode? This would obviously affect performance pretty severely. Is there some flag I should be passing? Is there a reason you'd want to make a development-mode WAR file? - Charlie From robert at cs.auckland.ac.nz Fri Mar 2 23:18:36 2007 From: robert at cs.auckland.ac.nz (Robert Egglestone) Date: Sat, 03 Mar 2007 17:18:36 +1300 Subject: [Jruby-extras-devel] rails-integration progress In-Reply-To: <45E8EAC8.6050708@sun.com> References: <45D15F8B.5010408@cs.auckland.ac.nz> <45D2093C.1090803@sun.com> <45D243EB.3020604@sun.com> <45D24D2B.8080303@sun.com> <45D25D75.2010008@sun.com> <45D2635D.9000507@sun.com> <45D26727.7000900@sun.com> <45E8EAC8.6050708@sun.com> Message-ID: <45E8F71C.9010504@cs.auckland.ac.nz> Good point! Up until now we'd only really been running it in dev mode. I've added an option for setting the environment easily now. The servlet defaults to development, for consistency with other Rails servers. When run from the rake task, the plugin will include an option in web.xml overriding this and setting it to production mode. Cheers, Robert Charles Oliver Nutter wrote: > Ashish Sahni wrote: > >> Looks like the breakpoint thingy is still an issue :( >> >> > > Hey, I know now why I was confused about the breakpoint > thing...shouldn't a WAR-based Rails app be deployed in production mode? > This would obviously affect performance pretty severely. Is there some > flag I should be passing? Is there a reason you'd want to make a > development-mode WAR file? > > - Charlie > _______________________________________________ > Jruby-extras-devel mailing list > Jruby-extras-devel at rubyforge.org > http://rubyforge.org/mailman/listinfo/jruby-extras-devel > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/jruby-extras-devel/attachments/20070303/b74a8305/attachment.html From charles.nutter at sun.com Sat Mar 3 11:18:45 2007 From: charles.nutter at sun.com (Charles Oliver Nutter) Date: Sat, 03 Mar 2007 10:18:45 -0600 Subject: [Jruby-extras-devel] Release time In-Reply-To: References: <45E3111A.2070804@sun.com> Message-ID: <45E99FE5.8000803@sun.com> Nick Sieger wrote: > On 2/26/07, Charles Oliver Nutter wrote: >> So as some of you may have gathered, we're looking at having a JRuby >> release in about a week's time. It would be truly excellent if we could >> get some coordinating releases with a few JRuby extras projects. >> Specifically >> >> ActiveRecord-JDBC (Nick said he'll handle this, but if anyone has >> additions or fixes that should be included, talk to him) >> Rails-Integration (What's needed to get a general-purpose release of >> this out?) > > Charlie, Ola, or Tom, can one of you make me a project admin -- I > don't know for sure but I'm guessing I'll need this in order to make > the release. Done. And attn ROBERT EGGLESTONE...I made you an admin as well, since you seem to be the primary spokeman for the rails-integration stuff. - Charlie From superchrisnelson at gmail.com Sun Mar 4 18:33:28 2007 From: superchrisnelson at gmail.com (Chris Nelson) Date: Sun, 4 Mar 2007 18:33:28 -0500 Subject: [Jruby-extras-devel] RailsServletTest Message-ID: Robert, Nice work on adding a test case for RailsServlet. However, right now it is failing for me. From what it's telling me, it looks like I need to have a JRuby with Rails 1.1.6 gem installed (and 1.2.2 also presumably?). Does this sound right? Is there anyway to make this test case self contained? Thanks, Chris From robert at cs.auckland.ac.nz Sun Mar 4 18:42:48 2007 From: robert at cs.auckland.ac.nz (Robert Egglestone) Date: Mon, 05 Mar 2007 12:42:48 +1300 Subject: [Jruby-extras-devel] RailsServletTest In-Reply-To: References: Message-ID: <45EB5978.9030404@cs.auckland.ac.nz> We can include the gems under the rails-integration resources. For the mean time, it can be specified by setting the gem.home system property, for example: mvn -Dgem.home=/usr/local/lib/ruby/gems/1.8 install Cheers, Robert Chris Nelson wrote: > Robert, > > Nice work on adding a test case for RailsServlet. However, right now > it is failing for me. From what it's telling me, it looks like I need > to have a JRuby with Rails 1.1.6 gem installed (and 1.2.2 also > presumably?). Does this sound right? Is there anyway to make this > test case self contained? > > Thanks, > > Chris > _______________________________________________ > Jruby-extras-devel mailing list > Jruby-extras-devel at rubyforge.org > http://rubyforge.org/mailman/listinfo/jruby-extras-devel > From superchrisnelson at gmail.com Sun Mar 4 19:28:21 2007 From: superchrisnelson at gmail.com (Chris Nelson) Date: Sun, 4 Mar 2007 19:28:21 -0500 Subject: [Jruby-extras-devel] Problem with new rails project Message-ID: I am able to run helloworld-1.2.2 using rake war:standalone:run without a problem, so I think I must have things set up correctly. I then tried creating a brand new project with rails and then copied the war subdirectory of rails-integration/plugins into my new project's vendor/plugins directory. When I then run rake war:standalone:run in my new project, I see the messages about downloading everything, builiding the webapp, adding gems, etc, etc. When Jetty starts up and I go to http://localhost:8080// I get the same old error: HTTP ERROR: 500 Could not load Rails, please check that your Ruby home is set correctly, and that you have Rails installed. See the logs for more details. RequestURI=/rails_integration_test/ Caused by: javax.servlet.ServletException: Could not load Rails, please check that your Ruby home is set correctly, and that you have Rails installed. See the logs for more details. at org.jruby.webapp.RailsFactory.makeObject(RailsFactory.java:113) at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:840) at org.jruby.webapp.AbstractRailsServlet.serviceRequest(AbstractRailsServlet.java:194) at org.jruby.webapp.AbstractRailsServlet.service(AbstractRailsServlet.java:181) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:491) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:367) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:185) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:689) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:391) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:285) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:457) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:751) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:500) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:357) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:329) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475) Can anyone else confirm this should work? Am I missing something obvious? Thanks in advance, Chris From robert at cs.auckland.ac.nz Sun Mar 4 20:07:14 2007 From: robert at cs.auckland.ac.nz (Robert Egglestone) Date: Mon, 05 Mar 2007 14:07:14 +1300 Subject: [Jruby-extras-devel] Problem with new rails project In-Reply-To: References: Message-ID: <45EB6D42.30404@cs.auckland.ac.nz> At the moment there are some problems around modifications to jruby-complete that I'm waiting for clarification on to figure out how to keep things working with rails-integration. This may cause issues with finding the rubygems library. Cheers, Robert Chris Nelson wrote: > I am able to run helloworld-1.2.2 using rake war:standalone:run > without a problem, so I think I must have things set up correctly. I > then tried creating a brand new project with rails and > then copied the war subdirectory of rails-integration/plugins into my > new project's vendor/plugins directory. When I then run rake > war:standalone:run in my new project, I see the messages about > downloading everything, builiding the webapp, adding gems, etc, etc. > When Jetty starts up and I go to http://localhost:8080// > I get the same old error: > > HTTP ERROR: 500 > > Could not load Rails, please check that your Ruby home is set > correctly, and that you have Rails installed. See the logs for more > details. > > RequestURI=/rails_integration_test/ > Caused by: > > javax.servlet.ServletException: Could not load Rails, please check > that your Ruby home is set correctly, and that you have Rails > installed. See the logs for more details. > at org.jruby.webapp.RailsFactory.makeObject(RailsFactory.java:113) > at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:840) > at org.jruby.webapp.AbstractRailsServlet.serviceRequest(AbstractRailsServlet.java:194) > at org.jruby.webapp.AbstractRailsServlet.service(AbstractRailsServlet.java:181) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) > at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:491) > at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:367) > at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:185) > at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) > at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:689) > at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:391) > at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) > at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) > at org.mortbay.jetty.Server.handle(Server.java:285) > at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:457) > at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:751) > at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:500) > at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209) > at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:357) > at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:329) > at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475) > > Can anyone else confirm this should work? Am I missing something obvious? > > Thanks in advance, > > Chris > _______________________________________________ > Jruby-extras-devel mailing list > Jruby-extras-devel at rubyforge.org > http://rubyforge.org/mailman/listinfo/jruby-extras-devel > From superchrisnelson at gmail.com Sun Mar 4 20:35:02 2007 From: superchrisnelson at gmail.com (Chris Nelson) Date: Sun, 4 Mar 2007 20:35:02 -0500 Subject: [Jruby-extras-devel] Problem with new rails project In-Reply-To: <45EB6D42.30404@cs.auckland.ac.nz> References: <45EB6D42.30404@cs.auckland.ac.nz> Message-ID: Ok... sounds like that might be it. I was able to bring up helloworld-1.2.2 initially but then when I ran tmp:war:clean it didn't work anymore. If you could let me know when things are back in working order (or if I can do anything to help out with that) I'll try again then. Thanks, Chris On 3/4/07, Robert Egglestone wrote: > At the moment there are some problems around modifications to > jruby-complete that I'm waiting for clarification on to figure out how > to keep things working with rails-integration. > > This may cause issues with finding the rubygems library. > > Cheers, > Robert > > > Chris Nelson wrote: > > I am able to run helloworld-1.2.2 using rake war:standalone:run > > without a problem, so I think I must have things set up correctly. I > > then tried creating a brand new project with rails and > > then copied the war subdirectory of rails-integration/plugins into my > > new project's vendor/plugins directory. When I then run rake > > war:standalone:run in my new project, I see the messages about > > downloading everything, builiding the webapp, adding gems, etc, etc. > > When Jetty starts up and I go to http://localhost:8080// > > I get the same old error: > > > > HTTP ERROR: 500 > > > > Could not load Rails, please check that your Ruby home is set > > correctly, and that you have Rails installed. See the logs for more > > details. > > > > RequestURI=/rails_integration_test/ > > Caused by: > > > > javax.servlet.ServletException: Could not load Rails, please check > > that your Ruby home is set correctly, and that you have Rails > > installed. See the logs for more details. > > at org.jruby.webapp.RailsFactory.makeObject(RailsFactory.java:113) > > at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:840) > > at org.jruby.webapp.AbstractRailsServlet.serviceRequest(AbstractRailsServlet.java:194) > > at org.jruby.webapp.AbstractRailsServlet.service(AbstractRailsServlet.java:181) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) > > at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:491) > > at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:367) > > at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:185) > > at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) > > at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:689) > > at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:391) > > at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) > > at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) > > at org.mortbay.jetty.Server.handle(Server.java:285) > > at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:457) > > at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:751) > > at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:500) > > at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209) > > at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:357) > > at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:329) > > at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475) > > > > Can anyone else confirm this should work? Am I missing something obvious? > > > > Thanks in advance, > > > > Chris > > _______________________________________________ > > Jruby-extras-devel mailing list > > Jruby-extras-devel at rubyforge.org > > http://rubyforge.org/mailman/listinfo/jruby-extras-devel > > > _______________________________________________ > Jruby-extras-devel mailing list > Jruby-extras-devel at rubyforge.org > http://rubyforge.org/mailman/listinfo/jruby-extras-devel > From nicksieger at gmail.com Sun Mar 4 21:25:17 2007 From: nicksieger at gmail.com (Nick Sieger) Date: Sun, 4 Mar 2007 20:25:17 -0600 Subject: [Jruby-extras-devel] Problem with new rails project In-Reply-To: <45EB6D42.30404@cs.auckland.ac.nz> References: <45EB6D42.30404@cs.auckland.ac.nz> Message-ID: On 3/4/07, Robert Egglestone wrote: > At the moment there are some problems around modifications to > jruby-complete that I'm waiting for clarification on to figure out how > to keep things working with rails-integration. > > This may cause issues with finding the rubygems library. Robert, see my comments in the ticket you filed. Basically, Rubygems needs to be on the filesystem, or at least I haven't seen a way that it can be embedded yet. So you need to either install the gems you need ahead of time, which will extract itself from the complete jar into ~/.jruby, or run the extract itself. If this doesn't serve the needs of rails-integration then let's figure out what needs to be done in order to include gems in a rails-integration war. /Nick From robert at cs.auckland.ac.nz Mon Mar 5 00:55:08 2007 From: robert at cs.auckland.ac.nz (Robert Egglestone) Date: Mon, 05 Mar 2007 18:55:08 +1300 Subject: [Jruby-extras-devel] Problem with new rails project In-Reply-To: References: <45EB6D42.30404@cs.auckland.ac.nz> Message-ID: <45EBB0BC.7060707@cs.auckland.ac.nz> As a temporary work around I've set rails-integration add site_ruby to its classpath. It should be working again. Cheers, Robert Chris Nelson wrote: > Ok... sounds like that might be it. I was able to bring up > helloworld-1.2.2 initially but then when I ran tmp:war:clean it didn't > work anymore. If you could let me know when things are back in > working order (or if I can do anything to help out with that) I'll try > again then. > > Thanks, > > Chris > > On 3/4/07, Robert Egglestone wrote: > >> At the moment there are some problems around modifications to >> jruby-complete that I'm waiting for clarification on to figure out how >> to keep things working with rails-integration. >> >> This may cause issues with finding the rubygems library. >> >> Cheers, >> Robert >> >> >> Chris Nelson wrote: >> >>> I am able to run helloworld-1.2.2 using rake war:standalone:run >>> without a problem, so I think I must have things set up correctly. I >>> then tried creating a brand new project with rails and >>> then copied the war subdirectory of rails-integration/plugins into my >>> new project's vendor/plugins directory. When I then run rake >>> war:standalone:run in my new project, I see the messages about >>> downloading everything, builiding the webapp, adding gems, etc, etc. >>> When Jetty starts up and I go to http://localhost:8080// >>> I get the same old error: >>> >>> HTTP ERROR: 500 >>> >>> Could not load Rails, please check that your Ruby home is set >>> correctly, and that you have Rails installed. See the logs for more >>> details. >>> >>> RequestURI=/rails_integration_test/ >>> Caused by: >>> >>> javax.servlet.ServletException: Could not load Rails, please check >>> that your Ruby home is set correctly, and that you have Rails >>> installed. See the logs for more details. >>> at org.jruby.webapp.RailsFactory.makeObject(RailsFactory.java:113) >>> at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:840) >>> at org.jruby.webapp.AbstractRailsServlet.serviceRequest(AbstractRailsServlet.java:194) >>> at org.jruby.webapp.AbstractRailsServlet.service(AbstractRailsServlet.java:181) >>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) >>> at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:491) >>> at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:367) >>> at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:185) >>> at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) >>> at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:689) >>> at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:391) >>> at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) >>> at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) >>> at org.mortbay.jetty.Server.handle(Server.java:285) >>> at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:457) >>> at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:751) >>> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:500) >>> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209) >>> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:357) >>> at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:329) >>> at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475) >>> >>> Can anyone else confirm this should work? Am I missing something obvious? >>> >>> Thanks in advance, >>> >>> Chris >>> _______________________________________________ >>> Jruby-extras-devel mailing list >>> Jruby-extras-devel at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/jruby-extras-devel >>> >>> >> _______________________________________________ >> Jruby-extras-devel mailing list >> Jruby-extras-devel at rubyforge.org >> http://rubyforge.org/mailman/listinfo/jruby-extras-devel >> >> > _______________________________________________ > Jruby-extras-devel mailing list > Jruby-extras-devel at rubyforge.org > http://rubyforge.org/mailman/listinfo/jruby-extras-devel > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/jruby-extras-devel/attachments/20070305/44f5740f/attachment.html From robert at cs.auckland.ac.nz Tue Mar 6 04:40:51 2007 From: robert at cs.auckland.ac.nz (Robert Egglestone) Date: Tue, 06 Mar 2007 22:40:51 +1300 Subject: [Jruby-extras-devel] rails-integration Message-ID: <45ED3723.4040607@cs.auckland.ac.nz> Hey all, I've just committed a number of changes allowing rails-integration to make use of the jruby.home extractor that Nick has added into JRuby. This should finally have rails-integration working properly with jruby-complete. I'd appreciate it if someone could fire up the latest rails-integration with JRuby 0.9.8 to see if it's all ok in other environments. I'd like to release rails-integration in the next day or two, but it would be really great if someone else could have a check of it first. Cheers, Robert From daveadams at gmail.com Tue Mar 6 14:56:10 2007 From: daveadams at gmail.com (Dave Adams) Date: Tue, 6 Mar 2007 14:56:10 -0500 Subject: [Jruby-extras-devel] rails-integration In-Reply-To: <45ED3723.4040607@cs.auckland.ac.nz> References: <45ED3723.4040607@cs.auckland.ac.nz> Message-ID: <87af9a490703061156o510e6e63i769dad7622f11b46@mail.gmail.com> I've been playing with this lately. I checked out the JRuby 0.9.8 tag but I had to change the version element in each of the pom.xml files in order to get it to install the jars in the right place. Anyway, once I got that addressed, I was able to build rails-integration, but I get this warning, not sure if it's worth worrying about or if I'm doing something wrong: [WARNING] POM for 'org.jruby:jruby-complete:pom:0.9.8:compile' is invalid. It will be ignored for artifact resolution. Reason: Failed to validate POM Finally, I've been able to run Rails apps as WARs generated by the WAR plugin inside Tomcat as recently as a couple of weeks ago, but when I build a new war now, it will run fine in Jetty, but in Tomcat, I get "org.jruby.webapp.JRubyException: cannot load Java class org.apache.catalina.connector.RequestFacade$GetSessionPrivilegedAction". This is in a trivial Rails app with no special functionality. Any ideas? I've been trying to track down the svn revs of the combination of JRuby and Rails-Integration that worked for me in the past with no luck so far, but it takes a while to test, so I've not gotten far. -dave On 3/6/07, Robert Egglestone wrote: > Hey all, > > I've just committed a number of changes allowing rails-integration to > make use of the jruby.home extractor that Nick has added into JRuby. > This should finally have rails-integration working properly with > jruby-complete. > > I'd appreciate it if someone could fire up the latest rails-integration > with JRuby 0.9.8 to see if it's all ok in other environments. I'd like > to release rails-integration in the next day or two, but it would be > really great if someone else could have a check of it first. > > Cheers, > Robert > _______________________________________________ > Jruby-extras-devel mailing list > Jruby-extras-devel at rubyforge.org > http://rubyforge.org/mailman/listinfo/jruby-extras-devel > From nicksieger at gmail.com Tue Mar 6 16:05:04 2007 From: nicksieger at gmail.com (Nick Sieger) Date: Tue, 6 Mar 2007 15:05:04 -0600 Subject: [Jruby-extras-devel] rails-integration In-Reply-To: <87af9a490703061156o510e6e63i769dad7622f11b46@mail.gmail.com> References: <45ED3723.4040607@cs.auckland.ac.nz> <87af9a490703061156o510e6e63i769dad7622f11b46@mail.gmail.com> Message-ID: On 3/6/07, Dave Adams wrote: > I've been playing with this lately. I checked out the JRuby 0.9.8 tag > but I had to change the version element in each of the pom.xml files > in order to get it to install the jars in the right place. > > Anyway, once I got that addressed, I was able to build > rails-integration, but I get this warning, not sure if it's worth > worrying about or if I'm doing something wrong: > > [WARNING] POM for 'org.jruby:jruby-complete:pom:0.9.8:compile' is > invalid. It will be ignored for artifact resolution. Reason: Failed to > validate POM > I deployed 0.9.8 binaries of the jruby-complete jar to the codehaus repository today, and it looks like they've made it out to the main maven repository. Can you try just building rails-integration with the 0.9.8 version of jruby-complete and let us know what your problems are there? /Nick From robert at cs.auckland.ac.nz Tue Mar 6 19:39:20 2007 From: robert at cs.auckland.ac.nz (Robert Egglestone) Date: Wed, 07 Mar 2007 13:39:20 +1300 Subject: [Jruby-extras-devel] rails-integration In-Reply-To: <87af9a490703061156o510e6e63i769dad7622f11b46@mail.gmail.com> References: <45ED3723.4040607@cs.auckland.ac.nz> <87af9a490703061156o510e6e63i769dad7622f11b46@mail.gmail.com> Message-ID: <45EE09B8.2090307@cs.auckland.ac.nz> I've been able to reproduce the problem with the latest builds, although I'm not sure how to fix it yet. We create a Rails session using HttpSession, and I suspect at some point either Rails or JRuby is inspecting the object, which hits classes that Tomcat protects using separate class loaders. As a work-around you could try either disabling sessions, or using one of the other Rails session stores. Cheers, Robert Dave Adams wrote: > I've been playing with this lately. I checked out the JRuby 0.9.8 tag > but I had to change the version element in each of the pom.xml files > in order to get it to install the jars in the right place. > > Anyway, once I got that addressed, I was able to build > rails-integration, but I get this warning, not sure if it's worth > worrying about or if I'm doing something wrong: > > [WARNING] POM for 'org.jruby:jruby-complete:pom:0.9.8:compile' is > invalid. It will be ignored for artifact resolution. Reason: Failed to > validate POM > > Finally, I've been able to run Rails apps as WARs generated by the WAR > plugin inside Tomcat as recently as a couple of weeks ago, but when I > build a new war now, it will run fine in Jetty, but in Tomcat, I get > "org.jruby.webapp.JRubyException: cannot load Java class > org.apache.catalina.connector.RequestFacade$GetSessionPrivilegedAction". > This is in a trivial Rails app with no special functionality. > > Any ideas? I've been trying to track down the svn revs of the > combination of JRuby and Rails-Integration that worked for me in the > past with no luck so far, but it takes a while to test, so I've not > gotten far. > > -dave > > On 3/6/07, Robert Egglestone wrote: > >> Hey all, >> >> I've just committed a number of changes allowing rails-integration to >> make use of the jruby.home extractor that Nick has added into JRuby. >> This should finally have rails-integration working properly with >> jruby-complete. >> >> I'd appreciate it if someone could fire up the latest rails-integration >> with JRuby 0.9.8 to see if it's all ok in other environments. I'd like >> to release rails-integration in the next day or two, but it would be >> really great if someone else could have a check of it first. >> >> Cheers, >> Robert >> _______________________________________________ >> Jruby-extras-devel mailing list >> Jruby-extras-devel at rubyforge.org >> http://rubyforge.org/mailman/listinfo/jruby-extras-devel >> >> > _______________________________________________ > Jruby-extras-devel mailing list > Jruby-extras-devel at rubyforge.org > http://rubyforge.org/mailman/listinfo/jruby-extras-devel > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/jruby-extras-devel/attachments/20070307/4000a738/attachment-0001.html From daveadams at gmail.com Wed Mar 7 10:39:32 2007 From: daveadams at gmail.com (Dave Adams) Date: Wed, 7 Mar 2007 10:39:32 -0500 Subject: [Jruby-extras-devel] rails-integration In-Reply-To: References: <45ED3723.4040607@cs.auckland.ac.nz> <87af9a490703061156o510e6e63i769dad7622f11b46@mail.gmail.com> Message-ID: <87af9a490703070739n1d11753aib6cc19893ad64bbf@mail.gmail.com> Thanks guys for your help so far. Here's what I did this time: * Deleted ~/.m2, rails-integration working copy, all instances of jruby to start from scratch * Downloaded JRuby 0.9.8 binary, installed Rails 1.2.2, ActiveRecord-JDBC gems * link jgem to jruby gem, jrake to jruby rake, jrails to jruby rails * svn co svn://rubyforge.org/var/svn/jruby-extras/trunk/rails-integration # revision 338 * cd rails-integration; mvn install -Dmaven.test.skip=true At this step, all the JARs including jruby-complete-0.9.8 download into my m2 repo, but I get three of these warnings: "[WARNING] POM for 'org.jruby:jruby-complete:pom:0.9.8:compile' is invalid. It will be ignored for artifact resolution. Reason: Failed to validate POM" Anyway, continuing on: * cd samples/helloworld-1.2.2 * jrake war:standalone:run * runs fine in Jetty * jrake war:standalone:create * copy war to barebones tomcat webapps directory; start tomcat * localhost:8080/helloworld-1.2.2/welcome/index gives: And in catalina.out, this is the stacktrace: from /Users/nicksieger/Projects/jruby/jruby-0_9_8/src/builtin/javasupport.rb:87:in `each' from /Users/nicksieger/Projects/jruby/jruby-0_9_8/src/builtin/javasupport.rb:162:in `setup_inner_classes' from /Users/nicksieger/Projects/jruby/jruby-0_9_8/src/builtin/javasupport.rb:87:in `setup' from /Users/nicksieger/Projects/jruby/jruby-0_9_8/src/builtin/javasupport.rb:472:in `get_proxy_class' from /Users/nicksieger/Projects/jruby/jruby-0_9_8/src/builtin/javasupport.rb:530:in `synchronized' from /Users/nicksieger/Projects/jruby/jruby-0_9_8/src/builtin/javasupport.rb:475:in `get_proxy_class' from /Users/nicksieger/Projects/jruby/jruby-0_9_8/src/builtin/javasupport.rb:530:in `wrap' from