Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Duplicate class definition error

Can anyone help resolve this?

15:02:06,698 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
java.lang.LinkageError: loader (instance of  org/apache/jasper/servlet/JasperLoader): attempted  duplicate class definition for name: "org/apache/jsp/tag/web/divBox_tag"

[geronimo 2.1, struts 1.2 ]

like image 310
Mark W Avatar asked Aug 24 '11 14:08

Mark W


People also ask

What is the error duplicate class?

This may be due to an unsuccessfull name change of the module. In such a case, the module is copied in the javasource folder in the app directory with a new name and the old folder is kept, resulting in two identical folders with different names.

What does duplicate class mean?

The "duplicate class" error can also occur when the class is named the same with the same package naming hierarchy, even if one of the classes exists in a directory structure with directory names different than the package names.


1 Answers

Try cleaning the deploy directory of whatever server you're using.

Try cleaning your project/s in the IDE you're using (try F5 the project/s, restart the IDE).

Try cleaning the project/s with the build tool you're using.

like image 83
karla Avatar answered Oct 09 '22 11:10

karla