So I have this servlet :
@WebServlet(name = \"StudentRegistrationUsn\", urlPatterns = {\"/university/student/registration\"})
@MultipartConfig(maxFileSiz
The <servlet-class> is missing in web.xml. This exception is basically caused because the name of the to-be-loaded class is null.
In fact, you need to redefine everything, including the URL patterns.
<servlet>
<servlet-name>StudentRegistrationUsn</servlet-name>
<servlet-class>com.example.StudentRegistrationUsn</servlet-class>
<multipart-config>
<max-file-size>10485760</max-file-size>
<max-request-size>20971520</max-request-size>
<file-size-threshold>5242880</file-size-threshold>
</multipart-config>
</servlet>
<servlet-mapping>
<servlet-name>StudentRegistrationUsn</servlet-name>
<url-pattern>/university/student/registration</url-pattern>
</servlet-mapping>