Class [ <My DTO class>] not found. Error while loading [ <my controller servlet class]

Answered

Hello Everyone.

My web project with maven and glassfish 6 was working fine till date .Suddenly it starts giving the mentioned issue in tittle .
LAst modification I did in my project is ,I create the branch and added package and my DTO class and did usual process which should be followed after doing structure level changes in project .
[Cleaned with maven ,and installed and deployed] After this issue occured.

I tried below steps :

1.cleaning and building project again with maven .
2.Also invalidated Intelij Cache.
3.restarted intelij IDEA

Below is the stack trace.

[2022-05-07T16:12:26.095+0530] [glassfish 6.1] [INFO] [] [jakarta.enterprise.system.tools.deployment.common] [tid: _ThreadID=53 _ThreadName=admin-listener(5)] [timeMillis: 1651920146095] [levelValue: 800] [[
  visiting unvisited references]]

[2022-05-07T16:12:26.923+0530] [glassfish 6.1] [INFO] [] [jakarta.enterprise.system.tools.deployment.common] [tid: _ThreadID=53 _ThreadName=admin-listener(5)] [timeMillis: 1651920146923] [levelValue: 800] [[
  visiting unvisited references]]

[2022-05-07T16:12:26.955+0530] [glassfish 6.1] [SEVERE] [] [global] [tid: _ThreadID=53 _ThreadName=admin-listener(5)] [timeMillis: 1651920146955] [levelValue: 1000] [[
[2022-05-07T16:12:26.986+0530] [glassfish 6.1] [INFO] [] [jakarta.enterprise.system.tools.deployment.common] [tid: _ThreadID=53 _ThreadName=admin-listener(5)] [timeMillis: 1651920146986] [levelValue: 800] [[
  visiting unvisited references]]

  **Class [ com/attendanceapp/DAO/UserDTO ] not found. Error while loading [ class com.attendanceapp.controller.ControllerServlet ]]]**

[2022-05-07T16:12:26.986+0530] [glassfish 6.1] [INFO] [] [jakarta.enterprise.system.tools.deployment.common] [tid: _ThreadID=53 _ThreadName=admin-listener(5)] [timeMillis: 1651920146986] [levelValue: 800] [[
  visiting unvisited references]]

[2022-05-07T16:12:27.017+0530] [glassfish 6.1] [INFO] [] [jakarta.enterprise.system.tools.deployment.common] [tid: _ThreadID=53 _ThreadName=admin-listener(5)] [timeMillis: 1651920147017] [levelValue: 800] [[
  visiting unvisited references]]

[2022-05-07T16:12:27.017+0530] [glassfish 6.1] [INFO] [] [jakarta.enterprise.system.tools.deployment.common] [tid: _ThreadID=53 _ThreadName=admin-listener(5)] [timeMillis: 1651920147017] [levelValue: 800] [[
  visiting unvisited references]]

[2022-05-07T16:12:27.017+0530] [glassfish 6.1] [INFO] [] [jakarta.enterprise.system.tools.deployment.common] [tid: _ThreadID=53 _ThreadName=admin-listener(5)] [timeMillis: 1651920147017] [levelValue: 800] [[
  visiting unvisited references]]

[2022-05-07T16:12:27.017+0530] [glassfish 6.1] [INFO] [] [jakarta.enterprise.system.tools.deployment.common] [tid: _ThreadID=53 _ThreadName=admin-listener(5)] [timeMillis: 1651920147017] [levelValue: 800] [[
  visiting unvisited references]]

[2022-05-07T16:12:27.033+0530] [glassfish 6.1] [INFO] [] [jakarta.enterprise.system.tools.deployment.common] [tid: _ThreadID=53 _ThreadName=admin-listener(5)] [timeMillis: 1651920147033] [levelValue: 800] [[
  visiting unvisited references]]

[2022-05-07T16:12:27.033+0530] [glassfish 6.1] [INFO] [] [jakarta.enterprise.system.tools.deployment.common] [tid: _ThreadID=53 _ThreadName=admin-listener(5)] [timeMillis: 1651920147033] [levelValue: 800] [[
  visiting unvisited references]]

[2022-05-07T16:12:27.033+0530] [glassfish 6.1] [INFO] [] [jakarta.enterprise.system.tools.deployment.common] [tid: _ThreadID=53 _ThreadName=admin-listener(5)] [timeMillis: 1651920147033] [levelValue: 800] [[
  visiting unvisited references]]

[2022-05-07T16:12:27.033+0530] [glassfish 6.1] [INFO] [] [jakarta.enterprise.system.tools.deployment.common] [tid: _ThreadID=53 _ThreadName=admin-listener(5)] [timeMillis: 1651920147033] [levelValue: 800] [[
  visiting unvisited references]]

[2022-05-07T16:12:27.033+0530] [glassfish 6.1] [INFO] [] [jakarta.enterprise.system.tools.deployment.common] [tid: _ThreadID=53 _ThreadName=admin-listener(5)] [timeMillis: 1651920147033] [levelValue: 800] [[
  visiting unvisited references]]

[2022-05-07T16:12:27.033+0530] [glassfish 6.1] [INFO] [] [jakarta.enterprise.system.tools.deployment.common] [tid: _ThreadID=53 _ThreadName=admin-listener(5)] [timeMillis: 1651920147033] [levelValue: 800] [[
  visiting unvisited references]]

[2022-05-07T16:12:27.048+0530] [glassfish 6.1] [INFO] [] [jakarta.enterprise.system.tools.deployment.common] [tid: _ThreadID=53 _ThreadName=admin-listener(5)] [timeMillis: 1651920147048] [levelValue: 800] [[
  visiting unvisited references]]

[2022-05-07T16:12:27.048+0530] [glassfish 6.1] [INFO] [] [jakarta.enterprise.system.tools.deployment.common] [tid: _ThreadID=53 _ThreadName=admin-listener(5)] [timeMillis: 1651920147048] [levelValue: 800] [[
  visiting unvisited references]]

[2022-05-07T16:12:27.048+0530] [glassfish 6.1] [INFO] [] [jakarta.enterprise.system.tools.deployment.common] [tid: _ThreadID=53 _ThreadName=admin-listener(5)] [timeMillis: 1651920147048] [levelValue: 800] [[
  visiting unvisited references]]

[2022-05-07T16:12:27.048+0530] [glassfish 6.1] [INFO] [] [jakarta.enterprise.system.tools.deployment.common] [tid: _ThreadID=53 _ThreadName=admin-listener(5)] [timeMillis: 1651920147048] [levelValue: 800] [[
  visiting unvisited references]]

[2022-05-07T16:12:27.048+0530] [glassfish 6.1] [INFO] [] [jakarta.enterprise.system.tools.deployment.common] [tid: _ThreadID=53 _ThreadName=admin-listener(5)] [timeMillis: 1651920147048] [levelValue: 800] [[
  visiting unvisited references]]

[2022-05-07T16:12:27.048+0530] [glassfish 6.1] [INFO] [] [jakarta.enterprise.system.tools.deployment.common] [tid: _ThreadID=53 _ThreadName=admin-listener(5)] [timeMillis: 1651920147048] [levelValue: 800] [[
  visiting unvisited references]]

[2022-05-07T16:12:27.048+0530] [glassfish 6.1] [INFO] [] [jakarta.enterprise.system.tools.deployment.common] [tid: _ThreadID=53 _ThreadName=admin-listener(5)] [timeMillis: 1651920147048] [levelValue: 800] [[
  visiting unvisited references]]

[2022-05-07T16:12:27.064+0530] [glassfish 6.1] [INFO] [] [jakarta.enterprise.system.tools.deployment.common] [tid: _ThreadID=53 _ThreadName=admin-listener(5)] [timeMillis: 1651920147064] [levelValue: 800] [[
  visiting unvisited references]]

[2022-05-07T16:12:27.064+0530] [glassfish 6.1] [INFO] [] [jakarta.enterprise.system.tools.deployment.common] [tid: _ThreadID=53 _ThreadName=admin-listener(5)] [timeMillis: 1651920147064] [levelValue: 800] [[
  visiting unvisited references]]

[2022-05-07T16:12:27.064+0530] [glassfish 6.1] [INFO] [] [jakarta.enterprise.system.tools.deployment.common] [tid: _ThreadID=53 _ThreadName=admin-listener(5)] [timeMillis: 1651920147064] [levelValue: 800] [[
  visiting unvisited references]]

[2022-05-07T16:12:27.064+0530] [glassfish 6.1] [INFO] [] [jakarta.enterprise.system.tools.deployment.common] [tid: _ThreadID=53 _ThreadName=admin-listener(5)] [timeMillis: 1651920147064] [levelValue: 800] [[
  visiting unvisited references]]

[2022-05-07T16:12:27.486+0530] [glassfish 6.1] [INFO] [AS-WEB-GLUE-00172] [jakarta.enterprise.web] [tid: _ThreadID=53 _ThreadName=admin-listener(5)] [timeMillis: 1651920147486] [levelValue: 800] [[
  Loading application [AttendanceApp] at [/AttendanceApp]]]

[2022-05-07T16:12:27.908+0530] [glassfish 6.1] [INFO] [] [jakarta.enterprise.system.core] [tid: _ThreadID=53 _ThreadName=admin-listener(5)] [timeMillis: 1651920147908] [levelValue: 800] [[
  AttendanceApp was successfully deployed in 5,408 milliseconds.]]

Kindly help me to resolve it .

1 comment
Comment actions Permalink

Could you please prepare and provide a small sample project illustrating the problem? 

The files can be uploaded at https://uploads.jetbrains.com (do not forget to specify the UploadID)

Try to delete the target directory manually and rebuild the artifact.

0

Please sign in to leave a comment.