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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content