i have simple web application working fine when had default package. when added package & moved classes them, deployment fails error :
the servlets named [fileuploaddbservlet] , [com.db.fileuploaddbservlet] both mapped url-pattern [/fileuploaddbservlet] not permitted
i tried deleting old project & creating new one. somehow old reference still exists. how can remove old references.
i using java 7, tomcat 8 & eclipse
thank help.
i identified solution problem.
in web.xml, both servlet-class
, servlet-name
should qualified :
<servlet> <servlet-name>fileuploaddbservlet</servlet-name> **<servlet-class>com.db.fileuploaddbservlet</servlet-class>** </servlet> <servlet-mapping> **<servlet-name>com.db.fileuploaddbservlet</servlet-name>** <url-pattern>/fileuploaddbservlet</url-pattern>
Comments
Post a Comment