I am having some issues getting an application to work and it seems to be down to problems with Apache Tiles.
The odd thing, and the basis of my question is that when I deploy through STS to the 2 tomcats using the same java versions the app works, yet when I take the war files built with maven (same version of java as tomcat is using) and then deploy them manually to either of the tomcats the application doesnt work.
I am building with maven through STS using jdk1.7.0_09
I am deploying through to STS to tomcat 7.0.32 using jdk1.7.0_09 - this works
deploying manually to tomcat webapps tomcat 7.0.32 using jdk1.7.0_09 - error:
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.apache.tiles.request.render.CannotRenderException: ServletException including path '/WEB-INF/tiles/layout.jsp'.
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 1 in the generated java file
The type java.util.Map$Entry cannot be resolved. It is indirectly referenced from required .class files
I am deploying through to STS to tomcat 7.0.53 using jdk1.7.0_09 - this works
deploying manually to tomcat webapps tomcat 7.0.53 using jdk1.7.0_09 - error:
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.apache.tiles.request.render.CannotRenderException: ServletException including path '/WEB-INF/tiles/layout.jsp'.
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 1 in the generated java file
The type java.util.Map$Entry cannot be resolved. It is indirectly referenced from required .class files
I dont understand why it works when I deploy it to the same tomcats via Eclipse?
Finally when I try to deploy to the test server (classes still built with jdk1.7.0_09) which is set up using:
tomcat 8.2.0.23 jdk1.8.0_11
I get a different error (500 internal server error) trying to resolve the tiles view:
javax.servlet.ServletException: Could not resolve view with name 'base/dashboard/view' in servlet with name 'appServlet'
I am pretty stuck on this and its taken me a while to get to where I am but now I seem to have completely hit a brick wall, I just dont understand how the app can work in tomcat when deployed through STS but then not work when deployed manually to tomcat webapps.
Can anyone help shed some light on whats going on here?
Thanks