# Tomcat-rails, using an embed tomcat to develop rails applications

**URL:** <https://www.ruby-forum.com/t/tomcat-rails-using-an-embed-tomcat-to-develop-rails-applications/170061>\
**Category:** JRuby\
**Created:** [June 11, 2009, 8:55pm UTC](https://www.ruby-forum.com/t/tomcat-rails-using-an-embed-tomcat-to-develop-rails-applications/170061 "2009-06-11T20:55:58Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![crucoba](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/e8c25b/32.png) [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Post date:** [June 11, 2009, 8:55pm UTC](https://www.ruby-forum.com/t/tomcat-rails-using-an-embed-tomcat-to-develop-rails-applications/170061/1 "2009-06-11T20:55:58Z")

</div>

First of all, apologizes for the self promotion, but the users feedback  
is  
the best way to catch bugs and get new ideas.  
I’ve released a jruby gem to use an embed Tomcat to develop rails  
applications, as we do with mongrel, webrick or jetty. The project is  
built  
in top of jruby-rack and you can grab it from github,

it’s web page is:

```
http://calavera.github.com/tomcat-rails

```

and you can take a look at the source code here:

```
http://github.com/calavera/tomcat-rails

```

Please, feel free to send me bugs, feedback, comments or whatever. At  
the  
moment the project has just been tested with a really basic application.

Cheers

---

<div class="post-metadata">

**Author:** ![crucoba](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/e8c25b/32.png) [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Post date:** [June 12, 2009, 1:24am UTC](https://www.ruby-forum.com/t/tomcat-rails-using-an-embed-tomcat-to-develop-rails-applications/170061/2 "2009-06-12T01:24:38Z")

</div>

just tried it, works great so far - thanks for making this!

Richard F.

* * *

From: David C. [[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)]  
Sent: Thursday, June 11, 2009 11:46 AM  
To: removed\_email\_address@domain.invalid  
Subject: [jruby-user] Tomcat-rails, using an embed tomcat to develop  
rails applications

First of all, apologizes for the self promotion, but the users feedback  
is the best way to catch bugs and get new ideas.

I’ve released a jruby gem to use an embed Tomcat to develop rails  
applications, as we do with mongrel, webrick or jetty. The project is  
built in top of jruby-rack and you can grab it from github,

it’s web page is:

```
http://calavera.github.com/tomcat-rails

```

and you can take a look at the source code here:

```
http://github.com/calavera/tomcat-rails

```

Please, feel free to send me bugs, feedback, comments or whatever. At  
the moment the project has just been tested with a really basic  
application.

Cheers

---

<div class="post-metadata">

**Author:** ![crucoba](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/e8c25b/32.png) [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Post date:** [June 16, 2009, 2:01am UTC](https://www.ruby-forum.com/t/tomcat-rails-using-an-embed-tomcat-to-develop-rails-applications/170061/3 "2009-06-16T02:01:10Z")

</div>

Tried with JRuby 1.3.0 and got the following error for a template  
application:

Caused by: org.jruby.exceptions.RaiseException: undefined method `new’  
for “Rack::Lock”:String  
at  
ActionController::MiddlewareStack::Middleware.build(/Users/arungupta/tools/jruby-1.3.0/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action\_controller/middleware\_stack.rb:116)  
at  
ActionController::MiddlewareStack.build(/Users/arungupta/tools/jruby-1.3.0/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action\_controller/middleware\_stack.rb:116)  
at  
Array.each(/Users/arungupta/tools/jruby-1.3.0/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action\_controller/middleware\_stack.rb:116)  
at  
Enumerable.inject(/Users/arungupta/tools/jruby-1.3.0/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action\_controller/middleware\_stack.rb:116)  
at  
ActionController::MiddlewareStack.build(/Users/arungupta/tools/jruby-1.3.0/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action\_controller/dispatcher.rb:82)

Any idea ?

-Arun

David C. wrote:

> and you can take a look at the source code here:
> 
> ```
> http://github.com/calavera/tomcat-rails
> 
> ```
> 
> Please, feel free to send me bugs, feedback, comments or whatever. At  
> the moment the project has just been tested with a really basic application.
> 
> Cheers

–  
Application Platform, Sun Microsystems, Inc.  
Blog: [http://blogs.sun.com/arungupta](http://blogs.sun.com/arungupta)

* * *

To unsubscribe from this list, please visit:

```
http://xircles.codehaus.org/manage_email

```

---

<div class="post-metadata">

**Author:** ![crucoba](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/e8c25b/32.png) [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Post date:** [June 16, 2009, 4:10pm UTC](https://www.ruby-forum.com/t/tomcat-rails-using-an-embed-tomcat-to-develop-rails-applications/170061/4 "2009-06-16T16:10:29Z")

</div>

It seems more a problem with rack or rails but I’ll take a look, perhaps  
I  
forgot to add any config parameter for rack or I missed anything.  
Thank you for the feedback.

---

<div class="post-metadata">

**Author:** ![crucoba](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/e8c25b/32.png) [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Post date:** [June 17, 2009, 12:41am UTC](https://www.ruby-forum.com/t/tomcat-rails-using-an-embed-tomcat-to-develop-rails-applications/170061/5 "2009-06-17T00:41:38Z")

</div>

Thanks!

David C. wrote:

> ```
> at
> feedback is the best way to catch bugs and get new ideas.
> 
> Application Platform, Sun Microsystems, Inc.
> 
> ```
> 
> –  
> David C.  
> [http://www.thinkincode.net](http://www.thinkincode.net)

–  
Application Platform, Sun Microsystems, Inc.  
Blog: [http://blogs.sun.com/arungupta](http://blogs.sun.com/arungupta)

* * *

To unsubscribe from this list, please visit:

```
http://xircles.codehaus.org/manage_email

```

---

<div class="post-metadata">

**Author:** ![crucoba](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/e8c25b/32.png) [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Post date:** [June 18, 2009, 3:50pm UTC](https://www.ruby-forum.com/t/tomcat-rails-using-an-embed-tomcat-to-develop-rails-applications/170061/6 "2009-06-18T15:50:02Z")

</div>

I don’t have any clue about that error, Arun, could you explain me  
anything  
about your template app or even send it to my email?

Thank you
