1

I have a class that is in a package za.co.mix.servlet.Security. it is defined in the web.xml as:

<filter>
  <filter-name>Security</filter-name>
  <filter-class>za.co.mix.servlet.SecurityCheck</filter-class>
</filter>

<filter-mapping>
  <filter-name>Security</filter-name>
  <url-pattern>/secure/*</url-pattern>
</filter-mapping>

The problem is that whenever the server starts up I get:

SEVERE: Exception starting filter Security java.lang.NoClassDefFoundError: za/co/mix/servlet/Security (wrong name: za/co/admin/servlet/Security)

the wrong path that it is trying to use it the old package name. I am using intellij and refactored the coded but somewhere and for some reason the old path is still being used. can anyone suggest what I should do. Thanks in advance

4

1 回答 1

0

尝试重新部署您的部署描述符 (web.xml)。

于 2013-10-08T08:52:49.983 回答