Warble 0.9.9 issues

I had a couple problems using warbler 0.9.9 to deploy a rails
application to tomcat.

The rest of my team is using 0.9.5 and does not seem to have any
problems.

First, we have a snippet in the web.xml.erb that looks like this:

<servlet-name><%= webxml.servlet_name || 'files' %></servlet-name>

If the servlet_name is not explicitly set in warbler.rb then this
produces:

<servlet-name>#<Warbler::WebxmlOpenStruct ...></servlet-name> or

something like that.

Second, while trying to load the listener
(org.jruby.webapp.RailsContextListener), tomcat throws a NoClassDefFound
while looking for org/apache/commons/pool/PoolableObjectFactory.

I still have no idea where that was coming from, but I threw
commons-pool and commons-collection in the tomcat lib and that went
away.


Ryan L. Bell


http://twitter.com/kofno


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

On Tue, Jul 8, 2008 at 8:17 AM, Ryan L. Bell [email protected]
wrote:

<servlet-name>#<Warbler::WebxmlOpenStruct ...></servlet-name> or

something like that.

Yeah, this is a limitation of how I build the attributes, with a hash
in the open struct that eagerly assigns a child WebxmlOpenStruct when
you access any field in it.

The workaround would be to write code like

<%= webxml.context_params[‘servlet_name’] || ‘files’
%>

I’ve documented this and made a partial fix on trunk: http://is.gd/OJK

Second, while trying to load the listener
(org.jruby.webapp.RailsContextListener), tomcat throws a NoClassDefFound
while looking for org/apache/commons/pool/PoolableObjectFactory.

I still have no idea where that was coming from, but I threw commons-pool
and commons-collection in the tomcat lib and that went away.

Goldspike required commons-pool, you must have it in your application
classpath somehow.

/Nick


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
Nick S. wrote:
On Tue, Jul 8, 2008 at 8:17 AM, Ryan L. Bell <[email protected]> 
wrote:
  
I had a couple problems using warbler 0.9.9 to deploy a 
rails application to
tomcat.

The rest of my team is using 0.9.5 and does not seem to have any
problems.

First, we have a snippet in the web.xml.erb that looks like this:

<servlet-name><%= webxml.servlet_name || ‘files’
%></servlet-name>

If the servlet_name is not explicitly set in warbler.rb then this
produces:
<servlet-name>#<Warbler::WebxmlOpenStruct
…></servlet-name> or
something like that.

Yeah, this is a limitation of how I build the attributes, with a hash
in the open struct that eagerly assigns a child WebxmlOpenStruct when
you access any field in it.

The workaround would be to write code like

<servlet-name><%= webxml.context_params[‘servlet_name’] ||
‘files’
%></servlet-name>

I’ve documented this and made a partial fix on trunk: http://is.gd/OJK

Second, while trying to load the listener
(org.jruby.webapp.RailsContextListener), tomcat throws a NoClassDefFound
while looking for org/apache/commons/pool/PoolableObjectFactory.

I still have no idea where that was coming from, but I threw
commons-pool
and commons-collection in the tomcat lib and that went away.

Goldspike required commons-pool, you must have it in your application
classpath somehow.

/Nick


To unsubscribe from this list, please visit:

<a class="moz-txt-link-freetext" 

href=“http://xircles.codehaus.org/manage_email”>http://xircles.codehaus.org/manage_email

Awesome. That clears it all up. Thanks

--
Ryan L. Bell
http://kofno.wordpress.com
http://twitter.com/kofno

To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs