Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

problem in initiating pojo class  RSS feed

sachin yadav
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,

I am building a small demo application in hibernate, tomcat, mysql and jsp/servlets. my application structure is as follows -

demo_jsp(folder)----------->WEB_INF(folder)------->classes(folder)--------->src(folder),hibernate.cfg, check.class

demo_jsp(folder)----------->WEB_INF(folder)------->classes(folder)--------->src(folder)-----> Emp.class, emp.hmb

my chek servlet is as follows ---->

my web.xml is----

Now the error which tomcat is giving -----

I think my servelt is not recognising the Emp class in source folder, and i am also not sure that creating an instance of Emp in check servlet is fine or not. While compiling also i have to put manually the src/Emp in classpath otherwise check was giving me an error while compiling that can't import src/Emp.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!