Tomcat 7 does not allow trailing semicolon in JSP import directive

Solution Verified - Updated -

Issue

  • Our application deploys successfully in the community version of Tomcat 7, but when deploying on JWS 2 or 3, some JSp pages fail to render. They have a semicolon at the end of a page import declaration:
<%@page import="com.example.MyClass;"%>
  • tomcat deployment issue when having ; with page import declaration.

Environment

  • JBoss Web Server 2 or 3
  • Tomcat 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.