Hello,
I currently work a JRails application.
I used to setup my project including the following dependencies :
org.jruby
jruby-complete
1.1
<dependency>
<groupId>opensymphony</groupId>
<artifactId>quartz</artifactId>
<version>1.6.0</version>
<scope>compile</scope>
</dependency>
<!-- Quartz 1.6.0 depends on commons collections -->
<dependency>
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
<version>3.2</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.1</version>
<scope>runtime</scope>
</dependency>
<!-- Quartz 1.6.0 requires JTA in non J2EE environments -->
<dependency>
<groupId>javax.transaction</groupId>
<artifactId>jta</artifactId>
<version>1.0.1b</version>
<scope>runtime</scope>
</dependency>
I currently have installed in the WEB-INF/gems Rails 2.0.2
I use a plugin : quartz_rails (jar is deployed in the WEB-INF/lib)
In the packaged War , i have :
63966 Tue Nov 04 16:28:04 CET 2008
WEB-INF/lib/avalon-framework-4.1.3.jar
358085 Tue Nov 04 16:28:00 CET 2008 WEB-INF/lib/log4j-1.2.12.jar
646552 Tue Oct 28 10:50:10 CET 2008
WEB-INF/lib/mysql-connector-java-5.1.3.jar
52915 Tue Nov 04 16:27:58 CET 2008 WEB-INF/lib/commons-logging-1.1.jar
8809 Tue Oct 28 10:49:14 CET 2008 WEB-INF/lib/jta-1.0.1b.jar
6257268 Wed Nov 05 16:06:24 CET 2008 WEB-INF/lib/jruby-complete-1.1.jar
72150 Tue Nov 04 16:28:02 CET 2008 WEB-INF/lib/logkit-1.0.1.jar
77977 Mon Oct 20 13:03:44 CEST 2008 WEB-INF/lib/servlet-api-2.3.jar
62983 Thu Oct 02 10:09:48 CEST 2008 WEB-INF/lib/activation-1.1.jar
62086 Tue Oct 28 10:49:02 CET 2008 WEB-INF/lib/commons-pool-1.3.jar
35084 Tue Oct 28 10:47:10 CET 2008 WEB-INF/lib/goldspike-1.6.jar
571259 Tue Oct 28 10:49:14 CET 2008
WEB-INF/lib/commons-collections-3.2.jar
421601 Tue Oct 28 10:49:08 CET 2008 WEB-INF/lib/quartz-1.6.0.jar
4430 Tue Nov 04 16:20:46 CET 2008 WEB-INF/lib/quartz_rails-1.0.jar
I do not get any error in the log, but in my browser window, when
calling
the action “index” ( calling a MyObject.find(:all) to show the list) i
have
:
stack level too deep
RAILS_ROOT:
/tmp/Jetty_0_0_0_0_8080_autostore.filewatcher.war__autostore.filewatcher__iauco7/webapp/WEB-INF/rails
http://localhost:8080/autostore-filewatcher/observed_paths#
/tmp/Jetty_0_0_0_0_8080_autostore.filewatcher.war__autostore.filewatcher__iauco7/webapp/WEB-INF/gems/gems/activerecord-2.0.2/lib/active_record/base.rb:532:in
select_all_with_query_cache' /tmp/Jetty_0_0_0_0_8080_autostore.filewatcher.war__autostore.filewatcher__iauco7/webapp/WEB-INF/gems/gems/activerecord-2.0.2/lib/active_record/base.rb:532:in
find_by_sql’
/tmp/Jetty_0_0_0_0_8080_autostore.filewatcher.war__autostore.filewatcher__iauco7/webapp/WEB-INF/gems/gems/activerecord-2.0.2/lib/active_record/base.rb:1231:in
find_every' /tmp/Jetty_0_0_0_0_8080_autostore.filewatcher.war__autostore.filewatcher__iauco7/webapp/WEB-INF/gems/gems/activerecord-2.0.2/lib/active_record/base.rb:503:in
find’
app/controllers/observed_paths_controller.rb:5:in `index’
app/controllers/observed_paths_controller.rb:8:in `index’
I tried other configurations with JRuby 1.1.4 + Rails 2.1.2 but get
other
errors while loading Rails app so i should downgrade to this
combination.
Thanks for your advice
Laurent