Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

class not found exception

 
maganti surya
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi i am getting the following error. I am not understanding how to resolve it.


ERROR IS



CODE IS

applicationContext.xml (its in WEBINF folder)



All other hbm files are loading. I have added new hbm file i.e., PtmFile.hbm.xml and its not working. I am not understanding why its not loading ?

 
jatan bhavsar
Ranch Hand
Posts: 299
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Maganti,

I found this in stack trace "Caused by: java.io.FileNotFoundException: class path resource [map/PtmFile.hbm.xml] cannot be opened because it does not exist"

Please put the hbm file in class path or particular location and redeploy the application.. As its says file not found...

 
Bill Gorder
Bartender
Posts: 1682
7
Android IntelliJ IDE Linux Mac OS X Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in addition to what jatan said make sure the servlet-api depedency in your POM is scoped to provided. Your application should not include this jar when it is built as its Tomcat has its own.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic