• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with the Sample Spring AOP application

 
Keerthi Kumar
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear all,

I am new to spring aop and trying to execute one sample program from the net. But I am getting the below error:



springConfig.xml:



Request you all to please help me out to resolve this issue.

Thanks,
Keerthi Kumar N
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Caused by: java.lang.IllegalArgumentException: Cannot find class [IBusinessLogic]. Root cause: java.lang.ClassNotFoundException: IBusinessLogic

Where's that class?
 
Keerthi Kumar
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have made an entry for IBusinessLogic (which is an interface).
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah, okay, but where is it? Is it in a package? Is it being deployed? Because it's not there at runtime--that's why you're getting the error message.
 
Keerthi Kumar
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Yes. I had defined that java file in the same package. Also injected in the springConfig.xml too.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
*What* package?
 
Keerthi Kumar
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

It is being defined in the following package: package com.Spring.AOP.Demo;
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okay, why wouldn't you use the fully-qualified class name in the Spring config? It's not going to *guess* where the class is.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic