Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"javax.servlet.jsp.tagext.SimpleTagSupport" was not found on the Java Build Path slice_new.tag

Tags:

tags

jboss

On JBoss server I have a slice_new.tag file

<%@ attribute name="action" %>
<%@ attribute name="icon" %>
<%@ attribute name="pageId" %>
<%@ attribute name="cost" %>
<%@ attribute name="co2" %>
<%@ attribute name="unit" %>
<%@ tag language="java" pageEncoding="UTF-8" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
    <meta http-equiv="Content-type" content="text/html; charset=UTF-8"/>
    <title>${action}</title>
</head>

<body> ...

But I get this compilation error

The superclass "javax.servlet.jsp.tagext.SimpleTagSupport" was not found on the Java Build Path slice_new.tag

Please help me to fix it?

like image 336
Renat Gatin Avatar asked Jul 14 '15 21:07

Renat Gatin


1 Answers

I recently solved this using the instructions from this site. Assuming you are using Eclipse: Right click on your project, select “Properties” -> “Project Facets” -> “Runtimes” , select your runtime container. Done, rebuild and refresh your project. See the link for screenshots.

like image 178
Collin Peters Avatar answered Sep 24 '22 05:09

Collin Peters