Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run-app fails using Tomcat 8 with JNDI resources #14

Closed
joosth opened this issue Jan 21, 2016 · 1 comment
Closed

run-app fails using Tomcat 8 with JNDI resources #14

joosth opened this issue Jan 21, 2016 · 1 comment

Comments

@joosth
Copy link

joosth commented Jan 21, 2016

Run-app fails on Tomcat8 when JNDI resources are defined in Config.groovy (grails.naming.entries) with the message below.
It appears InlineExplodedTomcatServer.groovy tries to load a org.apache.catalina.deploy.ContextResource (in line 191) which is nowhere to be found in Tomcat 8.
The problem does not occur using Tomcat 7 in which this class is present.

The stacktrace is:

| Running Grails application
| Error Server failed to start: org.apache.catalina.deploy.ContextResource (NOTE: Stack trace has been filtered. Use --verbose to see entire trace.)
java.lang.ClassNotFoundException: org.apache.catalina.deploy.ContextResource
at org.grails.plugins.tomcat.InlineExplodedTomcatServer.loadInstance(InlineExplodedTomcatServer.groovy:168)
at org.grails.plugins.tomcat.InlineExplodedTomcatServer$_preStart_closure2.doCall(InlineExplodedTomcatServer.groovy:191)
at org.grails.plugins.tomcat.InlineExplodedTomcatServer.preStart(InlineExplodedTomcatServer.groovy:182)
at org.grails.plugins.tomcat.InlineExplodedTomcatServer.doStart(InlineExplodedTomcatServer.groovy:107)
at org.grails.plugins.tomcat.TomcatServer.start(TomcatServer.groovy:146)
at grails.web.container.EmbeddableServer$start.call(Unknown Source)
at _GrailsRun$_run_closure1.doCall(_GrailsRun.groovy:60)
at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)
at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy:185)
at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy)
at org.codehaus.gant.GantBinding.withTargetEvent(GantBinding.groovy:90)
at org.codehaus.gant.GantBinding.this$4$withTargetEvent(GantBinding.groovy)
at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy:185)
at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy)
at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)
at RunApp$_run_closure1.doCall(RunApp:33)
at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)
at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy:185)
at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy)
at org.codehaus.gant.GantBinding.withTargetEvent(GantBinding.groovy:90)
at org.codehaus.gant.GantBinding.this$4$withTargetEvent(GantBinding.groovy)
at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy:185)
at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy)
at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:381)
at gant.Gant$_dispatch_closure7.doCall(Gant.groovy:415)
at gant.Gant$_dispatch_closure7.doCall(Gant.groovy)
at gant.Gant.withBuildListeners(Gant.groovy:427)
at gant.Gant.this$2$withBuildListeners(Gant.groovy)
at gant.Gant.dispatch(Gant.groovy:415)
at gant.Gant.this$2$dispatch(Gant.groovy)
at gant.Gant.invokeMethod(Gant.groovy)
at gant.Gant.executeTargets(Gant.groovy:591)
at gant.Gant.executeTargets(Gant.groovy:590)
| Error Server failed to start: org.apache.catalina.deploy.ContextResource

burtbeckwith added a commit that referenced this issue May 1, 2016
burtbeckwith added a commit that referenced this issue May 1, 2016
@burtbeckwith
Copy link
Member

fixed in 8.0.33 and 9.0.0.M4.1

ZachosDogkanos pushed a commit to ZachosDogkanos/grails-tomcat-plugin that referenced this issue Apr 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants