Quantcast

Upgrading to Grails 2.0.4 - Tomcat plugin, Groovy bug...?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Upgrading to Grails 2.0.4 - Tomcat plugin, Groovy bug...?

Andrew Goodspeed
[Sorry if I missed relevant posts.]

-- Tomcat plugin and JNDI environment variables

AFAIK there is no support for configuring JNDI environment variables in Tomcat for a Grails development environment out of the box. Does anyone know differently? I had devised a way to accomplish this in Grails 1.3.5 (http://6by9.wordpress.com/2010/12/10/grails-1-3-5-tomcat-plugin-and-jndi-environment-variables/) but it has gotten much more involved now that I am looking at going to Grails 2.0.4.

The relevant code has now been moved into a compiled class (org.grails.plugins.tomcat.InlineExplodedTomcatServer) which makes it more difficult to implement my previous approach. There also seems to be a different implementation of something similar in _GrailsBootstrap.groovy (to support the Grails console and shell?) that uses org.codehaus.groovy.grails.cli.support.JndiBindingSupport. I guess I need to handle this in both places now.

Does anyone have something helpful to contribute on this?

-- Groovy bug

I understand that the current version of Groovy (1.8.6) embedded in Grails 2.0.4 has a significant problem that inhibits debuggers (http://jira.codehaus.org/browse/GROOVY-5208) that will not be corrected until Groovy 1.8.7/2.0.1, and an undisclosed version of Grails. Does anyone have an opinion on how big a deal this is and whether it is worth foregoing the upgrade from Grails 1.3.5 because of it?

-- ...?

Are there other significant considerations in deciding whether to upgrade to Grails 2.0.4 that anyone would care to volunteer?


Thanks!
-Andy Goodspeed

"How *reliable* [is he]? How shallow is the ocean? How cold is the sun?" -Douglas Adams (Arthur Dent)
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Upgrading to Grails 2.0.4 - Tomcat plugin, Groovy bug...?

Ian Roberts
On 28/06/2012 18:00, [hidden email] wrote:
> [Sorry if I missed relevant posts.]
>
> -- Tomcat plugin and JNDI environment variables
>
> AFAIK there is no support for configuring JNDI environment variables in
> Tomcat for a Grails development environment out of the box. Does anyone
> know differently?

http://grails.org/doc/latest/guide/conf.html#JNDIDataSources

grails.naming.entries in Config.groovy.

Ian

--
Ian Roberts               | Department of Computer Science
[hidden email]  | University of Sheffield, UK

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Upgrading to Grails 2.0.4 - Tomcat plugin, Groovy bug...?

Andrew Goodspeed
Thanks Ian, but I am not talking about data sources. Those are resource entries (<Resource ...> in context.xml) that map to instances of org.apache.catalina.deploy.ContextResource in the Tomcat configuration and I know that they work just fine.

What I am referring to is the equivalent of an environment context.xml entry like:

<Environment name="appServerInstance" value="My server" type="java.lang.String" override="false"/>

These map to instances of org.apache.catalina.deploy.ContextEnvironment and are unsupported by the Grails Tomcat plugin as far as I have been able to determine.

> > -- Tomcat plugin and JNDI environment variables
> >
> > AFAIK there is no support for configuring JNDI environment variables in
> > Tomcat for a Grails development environment out of the box. Does anyone
> > know differently?
>
>
http://grails.org/doc/latest/guide/conf.html#JNDIDataSources
>
> grails.naming.entries in Config.groovy.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Grails 2.0.4 Tomcat plugin and JNDI environment variables - update

Andrew Goodspeed
In reply to this post by Andrew Goodspeed
For anyone that needs this capability, I have documented my solution at http://6by9.wordpress.com/2012/06/29/grails-2-0-4-tomcat-plugin-and-jndi-environment-variables-31/.

-Andy
Loading...