Skip to content

3.2.4 - plugin views are not resolved when running jar/war #10384

New issue

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

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

Already on GitHub? Sign in to your account

Closed
3 of 4 tasks
zyro23 opened this issue Jan 2, 2017 · 3 comments
Closed
3 of 4 tasks

3.2.4 - plugin views are not resolved when running jar/war #10384

zyro23 opened this issue Jan 2, 2017 · 3 comments
Assignees
Milestone

Comments

@zyro23
Copy link
Contributor

zyro23 commented Jan 2, 2017

Task List

  • Steps to reproduce provided
  • Stacktrace (if present) provided
  • Example that reproduces the problem uploaded to Github
  • Full description of the issue provided (see below)

Steps to Reproduce

  1. create an empty 3.2.4 app
  2. install any plugin with a view (e.g. console):
// build.gradle
dependencies {
    ...
    compile "org.grails.plugins:grails-console:2.0.8"
}
  1. pin tomcat to 8.5.5 while Grails 3.2.4 standalone war failed to start  #10377 is unresolved
// build.gradle
ext {
	set "tomcat.version", "8.5.5"
}
  1. ./gradlew assemble
  2. cd build/libs
  3. java -Dgrails.env=development -jar myapp-0.1.war
  4. http://localhost:8080/console

Expected Behaviour

plugin view should be rendered correctly

Actual Behaviour

Error 500: Internal Server Error
URI
    /console/index
Class
    javax.servlet.ServletException
Message
    Could not resolve view with name '/console/index' in servlet with name 'grailsDispatcherServlet'
Line | Method
->> 1237 | render                in org.springframework.web.servlet.DispatcherServlet
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
|   1037 | processDispatchResult in     ''
|    980 | doDispatch . . . . .  in     ''
|    897 | doService             in     ''
|    970 | processRequest . . .  in org.springframework.web.servlet.FrameworkServlet
|    861 | doGet                 in     ''
|    622 | service . . . . . . . in javax.servlet.http.HttpServlet
|    846 | service               in org.springframework.web.servlet.FrameworkServlet
|    729 | service . . . . . . . in javax.servlet.http.HttpServlet
|    230 | internalDoFilter      in org.apache.catalina.core.ApplicationFilterChain
|    165 | doFilter . . . . . .  in     ''
|     52 | doFilter              in org.apache.tomcat.websocket.server.WsFilter
|    192 | internalDoFilter . .  in org.apache.catalina.core.ApplicationFilterChain
|    165 | doFilter              in     ''
|     55 | doFilterInternal . .  in org.springframework.boot.web.filter.ApplicationContextHeaderFilter
|    107 | doFilter              in org.springframework.web.filter.OncePerRequestFilter
|    192 | internalDoFilter . .  in org.apache.catalina.core.ApplicationFilterChain
|    165 | doFilter              in     ''
|    105 | doFilterInternal . .  in org.springframework.boot.actuate.trace.WebRequestTraceFilter
|    107 | doFilter              in org.springframework.web.filter.OncePerRequestFilter
|    192 | internalDoFilter . .  in org.apache.catalina.core.ApplicationFilterChain
|    165 | doFilter              in     ''
|     77 | doFilterInternal . .  in org.grails.web.servlet.mvc.GrailsWebRequestFilter
|    107 | doFilter              in org.springframework.web.filter.OncePerRequestFilter
|    192 | internalDoFilter . .  in org.apache.catalina.core.ApplicationFilterChain
|    165 | doFilter              in     ''
|     67 | doFilterInternal . .  in org.grails.web.filters.HiddenHttpMethodFilter
|    107 | doFilter              in org.springframework.web.filter.OncePerRequestFilter
|    192 | internalDoFilter . .  in org.apache.catalina.core.ApplicationFilterChain
|    165 | doFilter              in     ''
|    197 | doFilterInternal . .  in org.springframework.web.filter.CharacterEncodingFilter
|    107 | doFilter              in org.springframework.web.filter.OncePerRequestFilter
|    192 | internalDoFilter . .  in org.apache.catalina.core.ApplicationFilterChain
|    165 | doFilter              in     ''
|     96 | doFilterInternal . .  in org.springframework.web.filter.CorsFilter
|    107 | doFilter              in org.springframework.web.filter.OncePerRequestFilter
|    192 | internalDoFilter . .  in org.apache.catalina.core.ApplicationFilterChain
|    165 | doFilter              in     ''
|    107 | doFilterInternal . .  in org.springframework.boot.actuate.autoconfigure.MetricsFilter
|    192 | internalDoFilter      in org.apache.catalina.core.ApplicationFilterChain
|    165 | doFilter . . . . . .  in     ''
|    198 | invoke                in org.apache.catalina.core.StandardWrapperValve
|    108 | invoke . . . . . . .  in org.apache.catalina.core.StandardContextValve
|    472 | invoke                in org.apache.catalina.authenticator.AuthenticatorBase
|    140 | invoke . . . . . . .  in org.apache.catalina.core.StandardHostValve
|     79 | invoke                in org.apache.catalina.valves.ErrorReportValve
|     87 | invoke . . . . . . .  in org.apache.catalina.core.StandardEngineValve
|    349 | service               in org.apache.catalina.connector.CoyoteAdapter
|    784 | service . . . . . . . in org.apache.coyote.http11.Http11Processor
|     66 | process               in org.apache.coyote.AbstractProcessorLight
|    802 | process . . . . . . . in org.apache.coyote.AbstractProtocol$ConnectionHandler
|   1410 | doRun                 in org.apache.tomcat.util.net.NioEndpoint$SocketProcessor
|     49 | run . . . . . . . . . in org.apache.tomcat.util.net.SocketProcessorBase
|     -1 | runWorker             in java.util.concurrent.ThreadPoolExecutor
|     61 | run . . . . . . . . . in org.apache.tomcat.util.threads.TaskThread$WrappingRunnable
^     -1 | run                   in java.lang.Thread

same error with inline plugins packaged into as jars into the main app war file.

Environment Information

  • Operating System: win x64
  • Grails Version: 3.2.4
  • JDK Version: 8.x
  • Container Version (If Applicable): n/a

Example Application

  • n/a

misc

Leward added a commit to Leward/splatoon that referenced this issue Jan 30, 2017
@graemerocher graemerocher added this to the grails-3.2.5 milestone Jan 30, 2017
@graemerocher
Copy link
Contributor

Same cause as #10377 fixed by upgrade to Spring Boot 1.4.4

See that issue for a workaround.

@zyro23
Copy link
Contributor Author

zyro23 commented Jan 30, 2017

i applied the workaround pinning tomcat to 8.5.5 - see op. still saw this behavior. did it work for you after upgrading to boot-1.4.4? if so, i am fine with waiting for 3.2.5 ofc.

@graemerocher
Copy link
Contributor

Seems to be another change in behaviour with Tomcat as it is no longer resolving relative resources like it did before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants