Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ClassNotFound using Compass + Spring...

 
Nina Anderson
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

I'm tring to configure Compass in my Spring applicationContext.xml file. However, when I trying to bring up the server, I keep getting a ConfigurationException indicating that my data model class is not found (Even though it is in the classpath).

So, I'm wondering what I'm doing wrong here.

ApplicationContext.xml:



Exception:

 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think, if that xml file is like Hibernate's hibernate.cfg.xml file, then I don't hink it belongs in the web-inf root directory, but in the root of your classpath. So if you have say web-inf/classes/com/... then put it in the web-inf/classes directory.

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic