Does Grails 3 run on any major servers?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
29 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Re: Does Grails 3 run on any major servers?

Grails Dev Discuss mailing list
I have a process to duplicate this in a new app. I will create an issue for it. 


On Friday, May 13, 2016 at 1:11:33 PM UTC-7, DAC wrote:
Hi Jeff,

OK, more specific information on our mapping issues. Maybe these are not actually mapping issues, but whatever the case JBoss cannot find the files.

Grails 3.1.6 profile = web, features = asset-pipeline, hibernate, and jsonViews. We have Hibernate4 configured. Works on localhost. JBoss EAP <a href="http://6.4.0.GA" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F6.4.0.GA\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFSYJSR6hlJuuVc83hn_i6xPdb6yA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F6.4.0.GA\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFSYJSR6hlJuuVc83hn_i6xPdb6yA&#39;;return true;">6.4.0.GA has following issues:

1. If we have a main controller but no main directory in our view folder and instead we put index.gsp in the view root, and then in MainController.groovy we have the following: 
render view:"../index", model:[user:[id:"default"]]
This works on localhost, but on JBoss EAP it results in this error:
2016-05-13 10:11:30,148 ERROR [org.springframework.boot.context.web.ErrorPageFilter] (http-/[redacted]) Forwarding to error page from request [/] due to exception [Could not resolve view with name '/main/../index' in servlet with name 'grailsDispatcherServlet']: javax.servlet.ServletException: Could not resolve view with name '/main/../index' in servlet with name 'grailsDispatcherServlet'
The above also works in Grails 2 when deployed to JBoss EAP, but not the Grails 3 project that I specified above. In fact anything that we try to render using the ".." notation to go up one in the relative path fails. This breaks all global templates or _template.gson files that are supposed to be shared by multiple controllers/views. 

2. All json views that use a json view template from a different controller/view fail. On localhost we have to do the following relative paths or we get a template not found error. As I remember the json view documentation says that specifying the relative path to a .gson template file is not necessary, and that the it will be found by name alone, but that is not what we've found, we have to specify the relative path even on localhost. The following works on localhost but breaks on JBoss EAP.

DayTypeController.groovy:
            render view: 'dayTypeList', model: [dayTypes: dayTypeService.getDayTypesByDistrictNbr(cmd.districtNbr)]

dayTypeList.gson:
        model{
            ArrayList<DayType> dayTypes
        }
        json{
            rows g.render(template:"dayType", collection:dayTypes, var:'dayType')
        }

_dayType.gson:
        import Color
        import DayType
        
        model {
            DayType dayType
        }
        json{
            id dayType.id
            version dayType.version
            description dayType.description
            code dayType.code
            workingFlag dayType.workdayFlag
            activeFlag dayType.activeFlag
            district g.render(template:"../districtList", model:[district:dayType.district])
            color g.render(template:"../system/color", model:[color:(Color) dayType.color])
            category g.render(template:"../dayType/dayTypeCategory", model:[dayTypeCategory:dayType.category])
        }


But when we get to JBoss EAP these all break, presumably because of the .. in the relative path.

We get the following error message in the JBoss EAP log file:
2016-05-13 12:52:28,027 ERROR [org.springframework.boot.context.web.ErrorPageFilter] ([redacted]) Forwarding to error page from request [/dayType/getDayTypesByDistrictNbr] due to exception [javax/servlet/http/HttpUpgradeHandler]: java.lang.NoClassDefFoundError: javax/servlet/http/HttpUpgradeHandler
at java.lang.Class.getDeclaredMethods0(Native Method) [rt.jar:1.8.0_60]
at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) [rt.jar:1.8.0_60]
at java.lang.Class.privateGetPublicMethods(Class.java:2902) [rt.jar:1.8.0_60]
at java.lang.Class.getMethods(Class.java:1615) [rt.jar:1.8.0_60]
at java.beans.Introspector.getPublicDeclaredMethods(Introspector.java:1336) [rt.jar:1.8.0_60]
at java.beans.Introspector.getTargetMethodInfo(Introspector.java:1197) [rt.jar:1.8.0_60]
at java.beans.Introspector.getBeanInfo(Introspector.java:426) [rt.jar:1.8.0_60]
at java.beans.Introspector.getBeanInfo(Introspector.java:173) [rt.jar:1.8.0_60]
at groovy.lang.MetaClassImpl$15.run(MetaClassImpl.java:3289) [groovy-2.4.6.jar:2.4.6]
at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.8.0_60]
at groovy.lang.MetaClassImpl.addProperties(MetaClassImpl.java:3287) [groovy-2.4.6.jar:2.4.6]
at groovy.lang.MetaClassImpl.initialize(MetaClassImpl.java:3263) [groovy-2.4.6.jar:2.4.6]
at org.codehaus.groovy.reflection.ClassInfo.getMetaClassUnderLock(ClassInfo.java:254) [groovy-2.4.6.jar:2.4.6]
at org.codehaus.groovy.reflection.ClassInfo.getMetaClass(ClassInfo.java:285) [groovy-2.4.6.jar:2.4.6]
at grails.views.mvc.GenericGroovyTemplateView$HttpViewRequest.$getStaticMetaClass(GenericGroovyTemplateView.groovy) [views-core-1.0.9.jar:]
at grails.views.mvc.GenericGroovyTemplateView$HttpViewRequest.<init>(GenericGroovyTemplateView.groovy) [views-core-1.0.9.jar:]
at grails.views.mvc.GenericGroovyTemplateView.prepareWritable(GenericGroovyTemplateView.groovy:96) [views-core-1.0.9.jar:]
at grails.views.mvc.GenericGroovyTemplateView.renderMergedOutputModel(GenericGroovyTemplateView.groovy:59) [views-core-1.0.9.jar:]
at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:303) [spring-webmvc-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1243) [spring-webmvc-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1027) [spring-webmvc-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:971) [spring-webmvc-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:893) [spring-webmvc-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:968) [spring-webmvc-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:870) [spring-webmvc-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-2.jar:1.0.2.Final-redhat-2]
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:844) [spring-webmvc-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-2.jar:1.0.2.Final-redhat-2]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.springframework.boot.actuate.autoconfigure.EndpointWebMvcAutoConfiguration$ApplicationContextHeaderFilter.doFilterInternal(EndpointWebMvcAutoConfiguration.java:237) [spring-boot-actuator-1.3.3.RELEASE.jar:1.3.3.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.springframework.boot.actuate.trace.WebRequestTraceFilter.doFilterInternal(WebRequestTraceFilter.java:112) [spring-boot-actuator-1.3.3.RELEASE.jar:1.3.3.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.grails.web.servlet.mvc.GrailsWebRequestFilter.doFilterInternal(GrailsWebRequestFilter.java:75) [grails-web-mvc-3.1.6.jar:3.1.6]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.grails.web.filters.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:67) [grails-web-mvc-3.1.6.jar:3.1.6]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:121) [spring-web-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.springframework.boot.actuate.autoconfigure.MetricsFilter.doFilterInternal(MetricsFilter.java:103) [spring-boot-actuator-1.3.3.RELEASE.jar:1.3.3.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.springframework.boot.context.web.ErrorPageFilter.doFilter(ErrorPageFilter.java:120) [spring-boot-1.3.3.RELEASE.jar:1.3.3.RELEASE]
at org.springframework.boot.context.web.ErrorPageFilter.access$000(ErrorPageFilter.java:61) [spring-boot-1.3.3.RELEASE.jar:1.3.3.RELEASE]
at org.springframework.boot.context.web.ErrorPageFilter$1.doFilterInternal(ErrorPageFilter.java:95) [spring-boot-1.3.3.RELEASE.jar:1.3.3.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.boot.context.web.ErrorPageFilter.doFilter(ErrorPageFilter.java:113) [spring-boot-1.3.3.RELEASE.jar:1.3.3.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:231) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:150) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:344) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:854) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:926) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_60]
Caused by: java.lang.ClassNotFoundException: javax.servlet.http.HttpUpgradeHandler from [Module "deployment.GalaxyEta.war:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213) [jboss-modules.jar:1.3.6.Final-redhat-1]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.6.Final-redhat-1]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.6.Final-redhat-1]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.6.Final-redhat-1]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.6.Final-redhat-1]
... 72 more

Here's our mappings-report, but as you said, I don't think this is related:

        Dynamic Mappings
         |    *     | ERROR: 500                                        | View:   /error           |
         |    *     | /${controller}/${action}?/${id}?(.${format)?      | Action: (default action) |
        
        Controller: main
         |    *     | /                                                 | Action: index            |
        
        
Hope this helps. Thanks again for everyone's help.



On Thursday, May 12, 2016 at 5:30:53 PM UTC-7, Jeff Scott Brown wrote:

> On May 12, 2016, at 4:40 PM, 'DAC' via Grails Dev Discuss <[hidden email]> wrote:
>
>  It ran fine on localhost but on the latest version of JBoss EAP we had multiple .gson view files that did not get the correct URL mapping. I'll try to find time to checkout back to that version and get a URL mapping report and post it.

That would be helpful.

I don’t know what "we had multiple .gson view files that did not get the correct URL mapping” means.  .gson view files generally don’t get URL mappings.  If you can provide an app that demonstrates the problem, or describe it in a way that we can recreate it, we will take a look.

Thanks for the feedback.



JSB

Jeff Scott Brown
Principal Software Engineer
Grails Development Team
Object Computing Inc.
<a href="http://www.ociweb.com/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.ociweb.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGmJq4FzWg40kVUyr9KFZMiSj7t1Q&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.ociweb.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGmJq4FzWg40kVUyr9KFZMiSj7t1Q&#39;;return true;">http://www.ociweb.com/

Autism Strikes 1 in 166
Find The Cause ~ Find The Cure
<a href="http://www.autismspeaks.org/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.autismspeaks.org%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHLOilSQBYB1lzLN6Ms6K6DtQY5DQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.autismspeaks.org%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHLOilSQBYB1lzLN6Ms6K6DtQY5DQ&#39;;return true;">http://www.autismspeaks.org/

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/39f1df1f-986c-48c6-868b-9f0cc442a5ff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Does Grails 3 run on any major servers?

Grails Dev Discuss mailing list
I have created issue 9931 and pushed an example project to github.


On Friday, May 13, 2016 at 1:33:22 PM UTC-7, DAC wrote:
I have a process to duplicate this in a new app. I will create an issue for it. 


On Friday, May 13, 2016 at 1:11:33 PM UTC-7, DAC wrote:
Hi Jeff,

OK, more specific information on our mapping issues. Maybe these are not actually mapping issues, but whatever the case JBoss cannot find the files.

Grails 3.1.6 profile = web, features = asset-pipeline, hibernate, and jsonViews. We have Hibernate4 configured. Works on localhost. JBoss EAP <a href="http://6.4.0.GA" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F6.4.0.GA\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFSYJSR6hlJuuVc83hn_i6xPdb6yA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F6.4.0.GA\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFSYJSR6hlJuuVc83hn_i6xPdb6yA&#39;;return true;">6.4.0.GA has following issues:

1. If we have a main controller but no main directory in our view folder and instead we put index.gsp in the view root, and then in MainController.groovy we have the following: 
render view:"../index", model:[user:[id:"default"]]
This works on localhost, but on JBoss EAP it results in this error:
2016-05-13 10:11:30,148 ERROR [org.springframework.boot.context.web.ErrorPageFilter] (http-/[redacted]) Forwarding to error page from request [/] due to exception [Could not resolve view with name '/main/../index' in servlet with name 'grailsDispatcherServlet']: javax.servlet.ServletException: Could not resolve view with name '/main/../index' in servlet with name 'grailsDispatcherServlet'
The above also works in Grails 2 when deployed to JBoss EAP, but not the Grails 3 project that I specified above. In fact anything that we try to render using the ".." notation to go up one in the relative path fails. This breaks all global templates or _template.gson files that are supposed to be shared by multiple controllers/views. 

2. All json views that use a json view template from a different controller/view fail. On localhost we have to do the following relative paths or we get a template not found error. As I remember the json view documentation says that specifying the relative path to a .gson template file is not necessary, and that the it will be found by name alone, but that is not what we've found, we have to specify the relative path even on localhost. The following works on localhost but breaks on JBoss EAP.

DayTypeController.groovy:
            render view: 'dayTypeList', model: [dayTypes: dayTypeService.getDayTypesByDistrictNbr(cmd.districtNbr)]

dayTypeList.gson:
        model{
            ArrayList<DayType> dayTypes
        }
        json{
            rows g.render(template:"dayType", collection:dayTypes, var:'dayType')
        }

_dayType.gson:
        import Color
        import DayType
        
        model {
            DayType dayType
        }
        json{
            id dayType.id
            version dayType.version
            description dayType.description
            code dayType.code
            workingFlag dayType.workdayFlag
            activeFlag dayType.activeFlag
            district g.render(template:"../districtList", model:[district:dayType.district])
            color g.render(template:"../system/color", model:[color:(Color) dayType.color])
            category g.render(template:"../dayType/dayTypeCategory", model:[dayTypeCategory:dayType.category])
        }


But when we get to JBoss EAP these all break, presumably because of the .. in the relative path.

We get the following error message in the JBoss EAP log file:
2016-05-13 12:52:28,027 ERROR [org.springframework.boot.context.web.ErrorPageFilter] ([redacted]) Forwarding to error page from request [/dayType/getDayTypesByDistrictNbr] due to exception [javax/servlet/http/HttpUpgradeHandler]: java.lang.NoClassDefFoundError: javax/servlet/http/HttpUpgradeHandler
at java.lang.Class.getDeclaredMethods0(Native Method) [rt.jar:1.8.0_60]
at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) [rt.jar:1.8.0_60]
at java.lang.Class.privateGetPublicMethods(Class.java:2902) [rt.jar:1.8.0_60]
at java.lang.Class.getMethods(Class.java:1615) [rt.jar:1.8.0_60]
at java.beans.Introspector.getPublicDeclaredMethods(Introspector.java:1336) [rt.jar:1.8.0_60]
at java.beans.Introspector.getTargetMethodInfo(Introspector.java:1197) [rt.jar:1.8.0_60]
at java.beans.Introspector.getBeanInfo(Introspector.java:426) [rt.jar:1.8.0_60]
at java.beans.Introspector.getBeanInfo(Introspector.java:173) [rt.jar:1.8.0_60]
at groovy.lang.MetaClassImpl$15.run(MetaClassImpl.java:3289) [groovy-2.4.6.jar:2.4.6]
at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.8.0_60]
at groovy.lang.MetaClassImpl.addProperties(MetaClassImpl.java:3287) [groovy-2.4.6.jar:2.4.6]
at groovy.lang.MetaClassImpl.initialize(MetaClassImpl.java:3263) [groovy-2.4.6.jar:2.4.6]
at org.codehaus.groovy.reflection.ClassInfo.getMetaClassUnderLock(ClassInfo.java:254) [groovy-2.4.6.jar:2.4.6]
at org.codehaus.groovy.reflection.ClassInfo.getMetaClass(ClassInfo.java:285) [groovy-2.4.6.jar:2.4.6]
at grails.views.mvc.GenericGroovyTemplateView$HttpViewRequest.$getStaticMetaClass(GenericGroovyTemplateView.groovy) [views-core-1.0.9.jar:]
at grails.views.mvc.GenericGroovyTemplateView$HttpViewRequest.<init>(GenericGroovyTemplateView.groovy) [views-core-1.0.9.jar:]
at grails.views.mvc.GenericGroovyTemplateView.prepareWritable(GenericGroovyTemplateView.groovy:96) [views-core-1.0.9.jar:]
at grails.views.mvc.GenericGroovyTemplateView.renderMergedOutputModel(GenericGroovyTemplateView.groovy:59) [views-core-1.0.9.jar:]
at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:303) [spring-webmvc-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1243) [spring-webmvc-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1027) [spring-webmvc-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:971) [spring-webmvc-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:893) [spring-webmvc-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:968) [spring-webmvc-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:870) [spring-webmvc-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-2.jar:1.0.2.Final-redhat-2]
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:844) [spring-webmvc-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-2.jar:1.0.2.Final-redhat-2]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.springframework.boot.actuate.autoconfigure.EndpointWebMvcAutoConfiguration$ApplicationContextHeaderFilter.doFilterInternal(EndpointWebMvcAutoConfiguration.java:237) [spring-boot-actuator-1.3.3.RELEASE.jar:1.3.3.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.springframework.boot.actuate.trace.WebRequestTraceFilter.doFilterInternal(WebRequestTraceFilter.java:112) [spring-boot-actuator-1.3.3.RELEASE.jar:1.3.3.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.grails.web.servlet.mvc.GrailsWebRequestFilter.doFilterInternal(GrailsWebRequestFilter.java:75) [grails-web-mvc-3.1.6.jar:3.1.6]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.grails.web.filters.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:67) [grails-web-mvc-3.1.6.jar:3.1.6]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:121) [spring-web-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.springframework.boot.actuate.autoconfigure.MetricsFilter.doFilterInternal(MetricsFilter.java:103) [spring-boot-actuator-1.3.3.RELEASE.jar:1.3.3.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.springframework.boot.context.web.ErrorPageFilter.doFilter(ErrorPageFilter.java:120) [spring-boot-1.3.3.RELEASE.jar:1.3.3.RELEASE]
at org.springframework.boot.context.web.ErrorPageFilter.access$000(ErrorPageFilter.java:61) [spring-boot-1.3.3.RELEASE.jar:1.3.3.RELEASE]
at org.springframework.boot.context.web.ErrorPageFilter$1.doFilterInternal(ErrorPageFilter.java:95) [spring-boot-1.3.3.RELEASE.jar:1.3.3.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.boot.context.web.ErrorPageFilter.doFilter(ErrorPageFilter.java:113) [spring-boot-1.3.3.RELEASE.jar:1.3.3.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:231) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:150) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:344) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:854) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:926) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_60]
Caused by: java.lang.ClassNotFoundException: javax.servlet.http.HttpUpgradeHandler from [Module "deployment.GalaxyEta.war:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213) [jboss-modules.jar:1.3.6.Final-redhat-1]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.6.Final-redhat-1]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.6.Final-redhat-1]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.6.Final-redhat-1]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.6.Final-redhat-1]
... 72 more

Here's our mappings-report, but as you said, I don't think this is related:

        Dynamic Mappings
         |    *     | ERROR: 500                                        | View:   /error           |
         |    *     | /${controller}/${action}?/${id}?(.${format)?      | Action: (default action) |
        
        Controller: main
         |    *     | /                                                 | Action: index            |
        
        
Hope this helps. Thanks again for everyone's help.



On Thursday, May 12, 2016 at 5:30:53 PM UTC-7, Jeff Scott Brown wrote:

> On May 12, 2016, at 4:40 PM, 'DAC' via Grails Dev Discuss <[hidden email]> wrote:
>
>  It ran fine on localhost but on the latest version of JBoss EAP we had multiple .gson view files that did not get the correct URL mapping. I'll try to find time to checkout back to that version and get a URL mapping report and post it.

That would be helpful.

I don’t know what "we had multiple .gson view files that did not get the correct URL mapping” means.  .gson view files generally don’t get URL mappings.  If you can provide an app that demonstrates the problem, or describe it in a way that we can recreate it, we will take a look.

Thanks for the feedback.



JSB

Jeff Scott Brown
Principal Software Engineer
Grails Development Team
Object Computing Inc.
<a href="http://www.ociweb.com/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.ociweb.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGmJq4FzWg40kVUyr9KFZMiSj7t1Q&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.ociweb.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGmJq4FzWg40kVUyr9KFZMiSj7t1Q&#39;;return true;">http://www.ociweb.com/

Autism Strikes 1 in 166
Find The Cause ~ Find The Cure
<a href="http://www.autismspeaks.org/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.autismspeaks.org%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHLOilSQBYB1lzLN6Ms6K6DtQY5DQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.autismspeaks.org%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHLOilSQBYB1lzLN6Ms6K6DtQY5DQ&#39;;return true;">http://www.autismspeaks.org/

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/d1eab2fb-4838-42bc-b5fe-6fb8c556b131%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Does Grails 3 run on any major servers?

Jeff Brown
In reply to this post by Grails Dev Discuss mailing list
I am not setup to test it right now but the problem might be related to specifying a path relative to a directory that doesn't exist. Do you know if it works after replacing "render view: '../index'" with "render view: '/index'"?

Thanks for the feedback. 



JSB

Sent from my iPhone

On May 13, 2016, at 1:11 PM, 'DAC' via Grails Dev Discuss <[hidden email]> wrote:

Hi Jeff,

OK, more specific information on our mapping issues. Maybe these are not actually mapping issues, but whatever the case JBoss cannot find the files.

Grails 3.1.6 profile = web, features = asset-pipeline, hibernate, and jsonViews. We have Hibernate4 configured. Works on localhost. JBoss EAP 6.4.0.GA has following issues:

1. If we have a main controller but no main directory in our view folder and instead we put index.gsp in the view root, and then in MainController.groovy we have the following: 
render view:"../index", model:[user:[id:"default"]]
This works on localhost, but on JBoss EAP it results in this error:
2016-05-13 10:11:30,148 ERROR [org.springframework.boot.context.web.ErrorPageFilter] (http-/[redacted]) Forwarding to error page from request [/] due to exception [Could not resolve view with name '/main/../index' in servlet with name 'grailsDispatcherServlet']: javax.servlet.ServletException: Could not resolve view with name '/main/../index' in servlet with name 'grailsDispatcherServlet'
The above also works in Grails 2 when deployed to JBoss EAP, but not the Grails 3 project that I specified above. In fact anything that we try to render using the ".." notation to go up one in the relative path fails. This breaks all global templates or _template.gson files that are supposed to be shared by multiple controllers/views. 

2. All json views that use a json view template from a different controller/view fail. On localhost we have to do the following relative paths or we get a template not found error. As I remember the json view documentation says that specifying the relative path to a .gson template file is not necessary, and that the it will be found by name alone, but that is not what we've found, we have to specify the relative path even on localhost. The following works on localhost but breaks on JBoss EAP.

DayTypeController.groovy:
            render view: 'dayTypeList', model: [dayTypes: dayTypeService.getDayTypesByDistrictNbr(cmd.districtNbr)]

dayTypeList.gson:
        model{
            ArrayList<DayType> dayTypes
        }
        json{
            rows g.render(template:"dayType", collection:dayTypes, var:'dayType')
        }

_dayType.gson:
        import Color
        import DayType
        
        model {
            DayType dayType
        }
        json{
            id dayType.id
            version dayType.version
            description dayType.description
            code dayType.code
            workingFlag dayType.workdayFlag
            activeFlag dayType.activeFlag
            district g.render(template:"../districtList", model:[district:dayType.district])
            color g.render(template:"../system/color", model:[color:(Color) dayType.color])
            category g.render(template:"../dayType/dayTypeCategory", model:[dayTypeCategory:dayType.category])
        }


But when we get to JBoss EAP these all break, presumably because of the .. in the relative path.

We get the following error message in the JBoss EAP log file:
2016-05-13 12:52:28,027 ERROR [org.springframework.boot.context.web.ErrorPageFilter] ([redacted]) Forwarding to error page from request [/dayType/getDayTypesByDistrictNbr] due to exception [javax/servlet/http/HttpUpgradeHandler]: java.lang.NoClassDefFoundError: javax/servlet/http/HttpUpgradeHandler
at java.lang.Class.getDeclaredMethods0(Native Method) [rt.jar:1.8.0_60]
at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) [rt.jar:1.8.0_60]
at java.lang.Class.privateGetPublicMethods(Class.java:2902) [rt.jar:1.8.0_60]
at java.lang.Class.getMethods(Class.java:1615) [rt.jar:1.8.0_60]
at java.beans.Introspector.getPublicDeclaredMethods(Introspector.java:1336) [rt.jar:1.8.0_60]
at java.beans.Introspector.getTargetMethodInfo(Introspector.java:1197) [rt.jar:1.8.0_60]
at java.beans.Introspector.getBeanInfo(Introspector.java:426) [rt.jar:1.8.0_60]
at java.beans.Introspector.getBeanInfo(Introspector.java:173) [rt.jar:1.8.0_60]
at groovy.lang.MetaClassImpl$15.run(MetaClassImpl.java:3289) [groovy-2.4.6.jar:2.4.6]
at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.8.0_60]
at groovy.lang.MetaClassImpl.addProperties(MetaClassImpl.java:3287) [groovy-2.4.6.jar:2.4.6]
at groovy.lang.MetaClassImpl.initialize(MetaClassImpl.java:3263) [groovy-2.4.6.jar:2.4.6]
at org.codehaus.groovy.reflection.ClassInfo.getMetaClassUnderLock(ClassInfo.java:254) [groovy-2.4.6.jar:2.4.6]
at org.codehaus.groovy.reflection.ClassInfo.getMetaClass(ClassInfo.java:285) [groovy-2.4.6.jar:2.4.6]
at grails.views.mvc.GenericGroovyTemplateView$HttpViewRequest.$getStaticMetaClass(GenericGroovyTemplateView.groovy) [views-core-1.0.9.jar:]
at grails.views.mvc.GenericGroovyTemplateView$HttpViewRequest.<init>(GenericGroovyTemplateView.groovy) [views-core-1.0.9.jar:]
at grails.views.mvc.GenericGroovyTemplateView.prepareWritable(GenericGroovyTemplateView.groovy:96) [views-core-1.0.9.jar:]
at grails.views.mvc.GenericGroovyTemplateView.renderMergedOutputModel(GenericGroovyTemplateView.groovy:59) [views-core-1.0.9.jar:]
at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:303) [spring-webmvc-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1243) [spring-webmvc-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1027) [spring-webmvc-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:971) [spring-webmvc-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:893) [spring-webmvc-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:968) [spring-webmvc-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:870) [spring-webmvc-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-2.jar:1.0.2.Final-redhat-2]
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:844) [spring-webmvc-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-2.jar:1.0.2.Final-redhat-2]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.springframework.boot.actuate.autoconfigure.EndpointWebMvcAutoConfiguration$ApplicationContextHeaderFilter.doFilterInternal(EndpointWebMvcAutoConfiguration.java:237) [spring-boot-actuator-1.3.3.RELEASE.jar:1.3.3.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.springframework.boot.actuate.trace.WebRequestTraceFilter.doFilterInternal(WebRequestTraceFilter.java:112) [spring-boot-actuator-1.3.3.RELEASE.jar:1.3.3.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.grails.web.servlet.mvc.GrailsWebRequestFilter.doFilterInternal(GrailsWebRequestFilter.java:75) [grails-web-mvc-3.1.6.jar:3.1.6]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.grails.web.filters.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:67) [grails-web-mvc-3.1.6.jar:3.1.6]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:121) [spring-web-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.springframework.boot.actuate.autoconfigure.MetricsFilter.doFilterInternal(MetricsFilter.java:103) [spring-boot-actuator-1.3.3.RELEASE.jar:1.3.3.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.springframework.boot.context.web.ErrorPageFilter.doFilter(ErrorPageFilter.java:120) [spring-boot-1.3.3.RELEASE.jar:1.3.3.RELEASE]
at org.springframework.boot.context.web.ErrorPageFilter.access$000(ErrorPageFilter.java:61) [spring-boot-1.3.3.RELEASE.jar:1.3.3.RELEASE]
at org.springframework.boot.context.web.ErrorPageFilter$1.doFilterInternal(ErrorPageFilter.java:95) [spring-boot-1.3.3.RELEASE.jar:1.3.3.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.boot.context.web.ErrorPageFilter.doFilter(ErrorPageFilter.java:113) [spring-boot-1.3.3.RELEASE.jar:1.3.3.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:231) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:150) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:344) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:854) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:926) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_60]
Caused by: java.lang.ClassNotFoundException: javax.servlet.http.HttpUpgradeHandler from [Module "deployment.GalaxyEta.war:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213) [jboss-modules.jar:1.3.6.Final-redhat-1]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.6.Final-redhat-1]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.6.Final-redhat-1]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.6.Final-redhat-1]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.6.Final-redhat-1]
... 72 more

Here's our mappings-report, but as you said, I don't think this is related:

        Dynamic Mappings
         |    *     | ERROR: 500                                        | View:   /error           |
         |    *     | /${controller}/${action}?/${id}?(.${format)?      | Action: (default action) |
        
        Controller: main
         |    *     | /                                                 | Action: index            |
        
        
Hope this helps. Thanks again for everyone's help.



On Thursday, May 12, 2016 at 5:30:53 PM UTC-7, Jeff Scott Brown wrote:

> On May 12, 2016, at 4:40 PM, 'DAC' via Grails Dev Discuss <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="_eUbzYR6JgAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">grails-de...@googlegroups.com> wrote:
>
>  It ran fine on localhost but on the latest version of JBoss EAP we had multiple .gson view files that did not get the correct URL mapping. I'll try to find time to checkout back to that version and get a URL mapping report and post it.

That would be helpful.

I don’t know what "we had multiple .gson view files that did not get the correct URL mapping” means.  .gson view files generally don’t get URL mappings.  If you can provide an app that demonstrates the problem, or describe it in a way that we can recreate it, we will take a look.

Thanks for the feedback.



JSB

Jeff Scott Brown
Principal Software Engineer
Grails Development Team
Object Computing Inc.
<a href="http://www.ociweb.com/" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.ociweb.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGmJq4FzWg40kVUyr9KFZMiSj7t1Q';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.ociweb.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGmJq4FzWg40kVUyr9KFZMiSj7t1Q';return true;">http://www.ociweb.com/

Autism Strikes 1 in 166
Find The Cause ~ Find The Cure
<a href="http://www.autismspeaks.org/" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.autismspeaks.org%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHLOilSQBYB1lzLN6Ms6K6DtQY5DQ';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.autismspeaks.org%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHLOilSQBYB1lzLN6Ms6K6DtQY5DQ';return true;">http://www.autismspeaks.org/

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/37eef486-0f9b-4987-b05e-1f4c163dc2d7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/B18A7937-8339-4603-884C-E0033EBC062D%40ociweb.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Does Grails 3 run on any major servers?

Grails Dev Discuss mailing list
Hi Jeff,

Thank you. OK, so it was not just the /main/index view but every view in the application that attempted to use the "../" path. So if I removed all of those across the entire application, now, my index page will come up on JBoss EAP. So thanks very much for that. However, now that I got that far, now I can see that none of the Jason Views will render at all. I get the below stacktrace when attempting to render a Jason View (.gson file).

So I guess I need to upload a demo app for that to GitHub and open an issue for that also. I will try to find time to do that. 


2016-05-16 13:29:34,103 ERROR [org.springframework.boot.context.web.ErrorPageFilter] ([redacted]) Forwarding to error page from request [/calendar/getCalendar] due to exception [javax/servlet/http/HttpUpgradeHandler]: java.lang.NoClassDefFoundError: javax/servlet/http/HttpUpgradeHandler
at java.lang.Class.getDeclaredMethods0(Native Method) [rt.jar:1.8.0_60]
at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) [rt.jar:1.8.0_60]
at java.lang.Class.privateGetPublicMethods(Class.java:2902) [rt.jar:1.8.0_60]
at java.lang.Class.getMethods(Class.java:1615) [rt.jar:1.8.0_60]
at java.beans.Introspector.getPublicDeclaredMethods(Introspector.java:1336) [rt.jar:1.8.0_60]
at java.beans.Introspector.getTargetMethodInfo(Introspector.java:1197) [rt.jar:1.8.0_60]
at java.beans.Introspector.getBeanInfo(Introspector.java:426) [rt.jar:1.8.0_60]
at java.beans.Introspector.getBeanInfo(Introspector.java:173) [rt.jar:1.8.0_60]
at groovy.lang.MetaClassImpl$15.run(MetaClassImpl.java:3289) [groovy-2.4.6.jar:2.4.6]
at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.8.0_60]
at groovy.lang.MetaClassImpl.addProperties(MetaClassImpl.java:3287) [groovy-2.4.6.jar:2.4.6]
at groovy.lang.MetaClassImpl.initialize(MetaClassImpl.java:3263) [groovy-2.4.6.jar:2.4.6]
at org.codehaus.groovy.reflection.ClassInfo.getMetaClassUnderLock(ClassInfo.java:254) [groovy-2.4.6.jar:2.4.6]
at org.codehaus.groovy.reflection.ClassInfo.getMetaClass(ClassInfo.java:285) [groovy-2.4.6.jar:2.4.6]
at grails.views.mvc.GenericGroovyTemplateView$HttpViewRequest.$getStaticMetaClass(GenericGroovyTemplateView.groovy) [views-core-1.0.9.jar:]
at grails.views.mvc.GenericGroovyTemplateView$HttpViewRequest.<init>(GenericGroovyTemplateView.groovy) [views-core-1.0.9.jar:]
at grails.views.mvc.GenericGroovyTemplateView.prepareWritable(GenericGroovyTemplateView.groovy:96) [views-core-1.0.9.jar:]
at grails.views.mvc.GenericGroovyTemplateView.renderMergedOutputModel(GenericGroovyTemplateView.groovy:59) [views-core-1.0.9.jar:]
at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:303) [spring-webmvc-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1243) [spring-webmvc-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1027) [spring-webmvc-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:971) [spring-webmvc-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:893) [spring-webmvc-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:968) [spring-webmvc-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:859) [spring-webmvc-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:734) [jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-2.jar:1.0.2.Final-redhat-2]
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:844) [spring-webmvc-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-2.jar:1.0.2.Final-redhat-2]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.springframework.boot.actuate.autoconfigure.EndpointWebMvcAutoConfiguration$ApplicationContextHeaderFilter.doFilterInternal(EndpointWebMvcAutoConfiguration.java:237) [spring-boot-actuator-1.3.3.RELEASE.jar:1.3.3.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.springframework.boot.actuate.trace.WebRequestTraceFilter.doFilterInternal(WebRequestTraceFilter.java:112) [spring-boot-actuator-1.3.3.RELEASE.jar:1.3.3.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.grails.web.servlet.mvc.GrailsWebRequestFilter.doFilterInternal(GrailsWebRequestFilter.java:75) [grails-web-mvc-3.1.6.jar:3.1.6]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.grails.web.filters.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:67) [grails-web-mvc-3.1.6.jar:3.1.6]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:121) [spring-web-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.springframework.boot.actuate.autoconfigure.MetricsFilter.doFilterInternal(MetricsFilter.java:103) [spring-boot-actuator-1.3.3.RELEASE.jar:1.3.3.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.springframework.boot.context.web.ErrorPageFilter.doFilter(ErrorPageFilter.java:120) [spring-boot-1.3.3.RELEASE.jar:1.3.3.RELEASE]
at org.springframework.boot.context.web.ErrorPageFilter.access$000(ErrorPageFilter.java:61) [spring-boot-1.3.3.RELEASE.jar:1.3.3.RELEASE]
at org.springframework.boot.context.web.ErrorPageFilter$1.doFilterInternal(ErrorPageFilter.java:95) [spring-boot-1.3.3.RELEASE.jar:1.3.3.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.boot.context.web.ErrorPageFilter.doFilter(ErrorPageFilter.java:113) [spring-boot-1.3.3.RELEASE.jar:1.3.3.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:231) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:150) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:344) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:854) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:926) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_60]
Caused by: java.lang.ClassNotFoundException: javax.servlet.http.HttpUpgradeHandler from [Module "deployment.[redacted].war:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213) [jboss-modules.jar:1.3.6.Final-redhat-1]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.6.Final-redhat-1]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.6.Final-redhat-1]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.6.Final-redhat-1]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.6.Final-redhat-1]
... 72 more


On Saturday, May 14, 2016 at 8:13:00 AM UTC-7, Jeff Scott Brown wrote:
I am not setup to test it right now but the problem might be related to specifying a path relative to a directory that doesn't exist. Do you know if it works after replacing "render view: '../index'" with "render view: '/index'"?

Thanks for the feedback. 



JSB

Sent from my iPhone

On May 13, 2016, at 1:11 PM, 'DAC' via Grails Dev Discuss <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="9JU7gDz5JgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">grails-de...@googlegroups.com> wrote:

Hi Jeff,

OK, more specific information on our mapping issues. Maybe these are not actually mapping issues, but whatever the case JBoss cannot find the files.

Grails 3.1.6 profile = web, features = asset-pipeline, hibernate, and jsonViews. We have Hibernate4 configured. Works on localhost. JBoss EAP <a href="http://6.4.0.GA" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F6.4.0.GA\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFSYJSR6hlJuuVc83hn_i6xPdb6yA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F6.4.0.GA\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFSYJSR6hlJuuVc83hn_i6xPdb6yA&#39;;return true;">6.4.0.GA has following issues:

1. If we have a main controller but no main directory in our view folder and instead we put index.gsp in the view root, and then in MainController.groovy we have the following: 
render view:"../index", model:[user:[id:"default"]]
This works on localhost, but on JBoss EAP it results in this error:
2016-05-13 10:11:30,148 ERROR [org.springframework.boot.context.web.ErrorPageFilter] (http-/[redacted]) Forwarding to error page from request [/] due to exception [Could not resolve view with name '/main/../index' in servlet with name 'grailsDispatcherServlet']: javax.servlet.ServletException: Could not resolve view with name '/main/../index' in servlet with name 'grailsDispatcherServlet'
The above also works in Grails 2 when deployed to JBoss EAP, but not the Grails 3 project that I specified above. In fact anything that we try to render using the ".." notation to go up one in the relative path fails. This breaks all global templates or _template.gson files that are supposed to be shared by multiple controllers/views. 

2. All json views that use a json view template from a different controller/view fail. On localhost we have to do the following relative paths or we get a template not found error. As I remember the json view documentation says that specifying the relative path to a .gson template file is not necessary, and that the it will be found by name alone, but that is not what we've found, we have to specify the relative path even on localhost. The following works on localhost but breaks on JBoss EAP.

DayTypeController.groovy:
            render view: 'dayTypeList', model: [dayTypes: dayTypeService.getDayTypesByDistrictNbr(cmd.districtNbr)]

dayTypeList.gson:
        model{
            ArrayList<DayType> dayTypes
        }
        json{
            rows g.render(template:"dayType", collection:dayTypes, var:'dayType')
        }

_dayType.gson:
        import Color
        import DayType
        
        model {
            DayType dayType
        }
        json{
            id dayType.id
            version dayType.version
            description dayType.description
            code dayType.code
            workingFlag dayType.workdayFlag
            activeFlag dayType.activeFlag
            district g.render(template:"../districtList", model:[district:dayType.district])
            color g.render(template:"../system/color", model:[color:(Color) dayType.color])
            category g.render(template:"../dayType/dayTypeCategory", model:[dayTypeCategory:dayType.category])
        }


But when we get to JBoss EAP these all break, presumably because of the .. in the relative path.

We get the following error message in the JBoss EAP log file:
2016-05-13 12:52:28,027 ERROR [org.springframework.boot.context.web.ErrorPageFilter] ([redacted]) Forwarding to error page from request [/dayType/getDayTypesByDistrictNbr] due to exception [javax/servlet/http/HttpUpgradeHandler]: java.lang.NoClassDefFoundError: javax/servlet/http/HttpUpgradeHandler
at java.lang.Class.getDeclaredMethods0(Native Method) [rt.jar:1.8.0_60]
at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) [rt.jar:1.8.0_60]
at java.lang.Class.privateGetPublicMethods(Class.java:2902) [rt.jar:1.8.0_60]
at java.lang.Class.getMethods(Class.java:1615) [rt.jar:1.8.0_60]
at java.beans.Introspector.getPublicDeclaredMethods(Introspector.java:1336) [rt.jar:1.8.0_60]
at java.beans.Introspector.getTargetMethodInfo(Introspector.java:1197) [rt.jar:1.8.0_60]
at java.beans.Introspector.getBeanInfo(Introspector.java:426) [rt.jar:1.8.0_60]
at java.beans.Introspector.getBeanInfo(Introspector.java:173) [rt.jar:1.8.0_60]
at groovy.lang.MetaClassImpl$15.run(MetaClassImpl.java:3289) [groovy-2.4.6.jar:2.4.6]
at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.8.0_60]
at groovy.lang.MetaClassImpl.addProperties(MetaClassImpl.java:3287) [groovy-2.4.6.jar:2.4.6]
at groovy.lang.MetaClassImpl.initialize(MetaClassImpl.java:3263) [groovy-2.4.6.jar:2.4.6]
at org.codehaus.groovy.reflection.ClassInfo.getMetaClassUnderLock(ClassInfo.java:254) [groovy-2.4.6.jar:2.4.6]
at org.codehaus.groovy.reflection.ClassInfo.getMetaClass(ClassInfo.java:285) [groovy-2.4.6.jar:2.4.6]
at grails.views.mvc.GenericGroovyTemplateView$HttpViewRequest.$getStaticMetaClass(GenericGroovyTemplateView.groovy) [views-core-1.0.9.jar:]
at grails.views.mvc.GenericGroovyTemplateView$HttpViewRequest.<init>(GenericGroovyTemplateView.groovy) [views-core-1.0.9.jar:]
at grails.views.mvc.GenericGroovyTemplateView.prepareWritable(GenericGroovyTemplateView.groovy:96) [views-core-1.0.9.jar:]
at grails.views.mvc.GenericGroovyTemplateView.renderMergedOutputModel(GenericGroovyTemplateView.groovy:59) [views-core-1.0.9.jar:]
at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:303) [spring-webmvc-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1243) [spring-webmvc-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1027) [spring-webmvc-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:971) [spring-webmvc-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:893) [spring-webmvc-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:968) [spring-webmvc-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:870) [spring-webmvc-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-2.jar:1.0.2.Final-redhat-2]
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:844) [spring-webmvc-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-2.jar:1.0.2.Final-redhat-2]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.springframework.boot.actuate.autoconfigure.EndpointWebMvcAutoConfiguration$ApplicationContextHeaderFilter.doFilterInternal(EndpointWebMvcAutoConfiguration.java:237) [spring-boot-actuator-1.3.3.RELEASE.jar:1.3.3.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.springframework.boot.actuate.trace.WebRequestTraceFilter.doFilterInternal(WebRequestTraceFilter.java:112) [spring-boot-actuator-1.3.3.RELEASE.jar:1.3.3.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.grails.web.servlet.mvc.GrailsWebRequestFilter.doFilterInternal(GrailsWebRequestFilter.java:75) [grails-web-mvc-3.1.6.jar:3.1.6]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.grails.web.filters.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:67) [grails-web-mvc-3.1.6.jar:3.1.6]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:121) [spring-web-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.springframework.boot.actuate.autoconfigure.MetricsFilter.doFilterInternal(MetricsFilter.java:103) [spring-boot-actuator-1.3.3.RELEASE.jar:1.3.3.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.springframework.boot.context.web.ErrorPageFilter.doFilter(ErrorPageFilter.java:120) [spring-boot-1.3.3.RELEASE.jar:1.3.3.RELEASE]
at org.springframework.boot.context.web.ErrorPageFilter.access$000(ErrorPageFilter.java:61) [spring-boot-1.3.3.RELEASE.jar:1.3.3.RELEASE]
at org.springframework.boot.context.web.ErrorPageFilter$1.doFilterInternal(ErrorPageFilter.java:95) [spring-boot-1.3.3.RELEASE.jar:1.3.3.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.boot.context.web.ErrorPageFilter.doFilter(ErrorPageFilter.java:113) [spring-boot-1.3.3.RELEASE.jar:1.3.3.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:231) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:150) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:344) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:854) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:926) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_60]
Caused by: java.lang.ClassNotFoundException: javax.servlet.http.HttpUpgradeHandler from [Module "deployment.[redacted]war:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213) [jboss-modules.jar:1.3.6.Final-redhat-1]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.6.Final-redhat-1]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.6.Final-redhat-1]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.6.Final-redhat-1]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.6.Final-redhat-1]
... 72 more

Here's our mappings-report, but as you said, I don't think this is related:

        Dynamic Mappings
         |    *     | ERROR: 500                                        | View:   /error           |
         |    *     | /${controller}/${action}?/${id}?(.${format)?      | Action: (default action) |
        
        Controller: main
         |    *     | /                                                 | Action: index            |
        
        
Hope this helps. Thanks again for everyone's help.



On Thursday, May 12, 2016 at 5:30:53 PM UTC-7, Jeff Scott Brown wrote:

> On May 12, 2016, at 4:40 PM, 'DAC' via Grails Dev Discuss <[hidden email]> wrote:
>
>  It ran fine on localhost but on the latest version of JBoss EAP we had multiple .gson view files that did not get the correct URL mapping. I'll try to find time to checkout back to that version and get a URL mapping report and post it.

That would be helpful.

I don’t know what "we had multiple .gson view files that did not get the correct URL mapping” means.  .gson view files generally don’t get URL mappings.  If you can provide an app that demonstrates the problem, or describe it in a way that we can recreate it, we will take a look.

Thanks for the feedback.



JSB

Jeff Scott Brown
Principal Software Engineer
Grails Development Team
Object Computing Inc.
<a href="http://www.ociweb.com/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.ociweb.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGmJq4FzWg40kVUyr9KFZMiSj7t1Q&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.ociweb.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGmJq4FzWg40kVUyr9KFZMiSj7t1Q&#39;;return true;">http://www.ociweb.com/

Autism Strikes 1 in 166
Find The Cause ~ Find The Cure
<a href="http://www.autismspeaks.org/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.autismspeaks.org%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHLOilSQBYB1lzLN6Ms6K6DtQY5DQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.autismspeaks.org%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHLOilSQBYB1lzLN6Ms6K6DtQY5DQ&#39;;return true;">http://www.autismspeaks.org/

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="9JU7gDz5JgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">grails-dev-discuss+unsubscribe@....
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="9JU7gDz5JgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">grails-de...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/grails-dev-discuss/37eef486-0f9b-4987-b05e-1f4c163dc2d7%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/grails-dev-discuss/37eef486-0f9b-4987-b05e-1f4c163dc2d7%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/grails-dev-discuss/37eef486-0f9b-4987-b05e-1f4c163dc2d7%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/grails-dev-discuss/37eef486-0f9b-4987-b05e-1f4c163dc2d7%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/d8edf97d-919a-445b-baac-76b1392d3b7e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Does Grails 3 run on any major servers?

Jeff Brown

> On May 16, 2016, at 3:58 PM, 'DAC' via Grails Dev Discuss <[hidden email]> wrote:
>
> Hi Jeff,
>
> Thank you. OK, so it was not just the /main/index view but every view in the application that attempted to use the "../" path. So if I removed all of those across the entire application, now, my index page will come up on JBoss EAP. So thanks very much for that.

No problem.  I saw your comment earlier in the thread…

“...after having two senior people dedicated to this for over a week, we're giving up…”

I am sorry that we didn’t have the details sooner.  As soon as I saw your description of the problem, that relative path issue jumped out at me.  In any case, I am glad that issue is worked out now.



> However, now that I got that far, now I can see that none of the Jason Views will render at all. I get the below stacktrace when attempting to render a Jason View (.gson file).
>
> So I guess I need to upload a demo app for that to GitHub and open an issue for that also. I will try to find time to do that.
>
>
> 2016-05-16 13:29:34,103 ERROR [org.springframework.boot.context.web.ErrorPageFilter] ([redacted]) Forwarding to error page from request [/calendar/getCalendar] due to exception [javax/servlet/http/HttpUpgradeHandler]: java.lang.NoClassDefFoundError: javax/servlet/http/HttpUpgradeHandler

This is usually because of a dependency version incompatibility.  Which version of the servlet api are you using?



JSB


Jeff Scott Brown
Principal Software Engineer
Grails Development Team
Object Computing Inc.
http://www.ociweb.com/

Autism Strikes 1 in 166
Find The Cause ~ Find The Cure
http://www.autismspeaks.org/

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/E95D6053-847D-4A2B-BF46-2AE209C84C3C%40ociweb.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Does Grails 3 run on any major servers?

Grails Dev Discuss mailing list
Hi Jeff,

Thanks again. 

JBoss EAP 6 uses Java Servlet 3.0
https://access.redhat.com/articles/113373

In a side note, while checking that I just noticed that JBoss EAP 7 is in release now. 

On Monday, May 16, 2016 at 3:36:06 PM UTC-7, Jeff Scott Brown wrote:

> On May 16, 2016, at 3:58 PM, 'DAC' via Grails Dev Discuss <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="epunKRulAAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">grails-de...@googlegroups.com> wrote:
>
> Hi Jeff,
>
> Thank you. OK, so it was not just the /main/index view but every view in the application that attempted to use the "../" path. So if I removed all of those across the entire application, now, my index page will come up on JBoss EAP. So thanks very much for that.

No problem.  I saw your comment earlier in the thread…

“...after having two senior people dedicated to this for over a week, we're giving up…”

I am sorry that we didn’t have the details sooner.  As soon as I saw your description of the problem, that relative path issue jumped out at me.  In any case, I am glad that issue is worked out now.



> However, now that I got that far, now I can see that none of the Jason Views will render at all. I get the below stacktrace when attempting to render a Jason View (.gson file).
>
> So I guess I need to upload a demo app for that to GitHub and open an issue for that also. I will try to find time to do that.
>
>
> 2016-05-16 13:29:34,103 ERROR [org.springframework.boot.context.web.ErrorPageFilter] ([redacted]) Forwarding to error page from request [/calendar/getCalendar] due to exception [javax/servlet/http/HttpUpgradeHandler]: java.lang.NoClassDefFoundError: javax/servlet/http/HttpUpgradeHandler

This is usually because of a dependency version incompatibility.  Which version of the servlet api are you using?



JSB


Jeff Scott Brown
Principal Software Engineer
Grails Development Team
Object Computing Inc.
<a href="http://www.ociweb.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.ociweb.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGmJq4FzWg40kVUyr9KFZMiSj7t1Q&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.ociweb.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGmJq4FzWg40kVUyr9KFZMiSj7t1Q&#39;;return true;">http://www.ociweb.com/

Autism Strikes 1 in 166
Find The Cause ~ Find The Cure
<a href="http://www.autismspeaks.org/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.autismspeaks.org%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHLOilSQBYB1lzLN6Ms6K6DtQY5DQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.autismspeaks.org%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHLOilSQBYB1lzLN6Ms6K6DtQY5DQ&#39;;return true;">http://www.autismspeaks.org/

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/c8a18e52-b5b6-4cb8-8b46-56ff2331cfcf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Does Grails 3 run on any major servers?

Jeff Brown

> On May 17, 2016, at 10:34 AM, 'DAC' via Grails Dev Discuss <[hidden email]> wrote:
>
> Hi Jeff,
>
> Thanks again.
>
> JBoss EAP 6 uses Java Servlet 3.0
> https://access.redhat.com/articles/113373
>

The HttpUpgradeHandler issue is likely because you are compiling your GSON views against Servlet 3.1 but deploying against a container that supports only Servlet 3.0.  If you correct the project dependencies, I expect that will solve the issue.




JSB

Jeff Scott Brown
Principal Software Engineer
Grails Development Team
Object Computing Inc.
http://www.ociweb.com/

Autism Strikes 1 in 166
Find The Cause ~ Find The Cure
http://www.autismspeaks.org/

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/CD8F783F-AD58-4818-B1BF-0B0BB60D1575%40ociweb.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Does Grails 3 run on any major servers?

Grails Dev Discuss mailing list
I tried this: gspCompile "javax.servlet:javax.servlet-api:3.0.1" but got other errors. The dependency-report only lists the servlet-api in the gspCompile configuration, so I assumed that was only place to change it. I also tried compile "javax.servlet:javax.servlet-api:3.0.1", but did not succeed with that either. Am I configuring it wrong?

On Tuesday, May 17, 2016 at 8:49:08 AM UTC-7, Jeff Scott Brown wrote:

> On May 17, 2016, at 10:34 AM, 'DAC' via Grails Dev Discuss <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="TMZ_gnrdAAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">grails-de...@googlegroups.com> wrote:
>
> Hi Jeff,
>
> Thanks again.
>
> JBoss EAP 6 uses Java Servlet 3.0
> <a href="https://access.redhat.com/articles/113373" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Faccess.redhat.com%2Farticles%2F113373\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNE-hDeE0Edmx1yd_P-qlFYwCSaMtQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Faccess.redhat.com%2Farticles%2F113373\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNE-hDeE0Edmx1yd_P-qlFYwCSaMtQ&#39;;return true;">https://access.redhat.com/articles/113373
>

The HttpUpgradeHandler issue is likely because you are compiling your GSON views against Servlet 3.1 but deploying against a container that supports only Servlet 3.0.  If you correct the project dependencies, I expect that will solve the issue.




JSB

Jeff Scott Brown
Principal Software Engineer
Grails Development Team
Object Computing Inc.
<a href="http://www.ociweb.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.ociweb.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGmJq4FzWg40kVUyr9KFZMiSj7t1Q&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.ociweb.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGmJq4FzWg40kVUyr9KFZMiSj7t1Q&#39;;return true;">http://www.ociweb.com/

Autism Strikes 1 in 166
Find The Cause ~ Find The Cure
<a href="http://www.autismspeaks.org/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.autismspeaks.org%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHLOilSQBYB1lzLN6Ms6K6DtQY5DQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.autismspeaks.org%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHLOilSQBYB1lzLN6Ms6K6DtQY5DQ&#39;;return true;">http://www.autismspeaks.org/

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/cd3da9d5-33de-4d8b-bc08-d9662f3c416f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Does Grails 3 run on any major servers?

jasenj1
In reply to this post by Grails Dev Discuss mailing list
Grails 3.1.9 doesn't work with EAP 7. I have a 3.1.9 app I'd like to deploy to EAP and can't get it to work. I've Googled and found Graeme's blog posts about deploying to Wildfly, and other tips, but nothing has worked.

- Jasen.

On Tuesday, May 17, 2016 at 11:34:29 AM UTC-4, DAC wrote:
Hi Jeff,

Thanks again. 

JBoss EAP 6 uses Java Servlet 3.0
<a href="https://access.redhat.com/articles/113373" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Faccess.redhat.com%2Farticles%2F113373\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNE-hDeE0Edmx1yd_P-qlFYwCSaMtQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Faccess.redhat.com%2Farticles%2F113373\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNE-hDeE0Edmx1yd_P-qlFYwCSaMtQ&#39;;return true;">https://access.redhat.com/articles/113373

In a side note, while checking that I just noticed that JBoss EAP 7 is in release now. 



--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/0d9963e0-8da8-4fc0-8333-1d231e5e7ee7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
12