4
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

エラー「jakarta.servlet.ServletException: java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagLibraryValidator」

Posted at

はじめに

Tomcat10.1で画面を表示しようとしたときに↓のエラーが出たときの解決策をメモしておく。
jakarta.servlet.ServletException: java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagLibraryValidator
タイトルなし.png

前提

  • JSTLを使ったシステムにアクセスしてエラーが出た方

NG

古いネットの記事とかだとJSTLのJARは↓から取得するように書いてあるけど、Java 11以降に対応していない。

解決策

こっちから取得する。

補足

Java 8から「JavaEE」から「JakartaEE」に名称が変更となりましたが、Tomacat10.1はJava 11以降に対応しているため、Tomcat10.1を使う方は必要に応じて読み替えてあげる必要があるようです。

4
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?