| Author |
Problem with the Sample Spring AOP application
|
Keerthi Kumar
Ranch Hand
Joined: Apr 20, 2009
Posts: 105
|
|
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
|
Cheers,
Keerthi Kumar N
|
 |
David Newton
Author
Rancher
Joined: Sep 29, 2008
Posts: 12617
|
posted

0
|
Caused by: java.lang.IllegalArgumentException: Cannot find class [IBusinessLogic]. Root cause: java.lang.ClassNotFoundException: IBusinessLogic
Where's that class?
|
 |
Keerthi Kumar
Ranch Hand
Joined: Apr 20, 2009
Posts: 105
|
|
Hi,
I have made an entry for IBusinessLogic (which is an interface).
|
 |
David Newton
Author
Rancher
Joined: Sep 29, 2008
Posts: 12617
|
posted

0
|
|
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
Joined: Apr 20, 2009
Posts: 105
|
|
Hi,
Yes. I had defined that java file in the same package. Also injected in the springConfig.xml too.
|
 |
David Newton
Author
Rancher
Joined: Sep 29, 2008
Posts: 12617
|
posted

0
|
|
*What* package?
|
 |
Keerthi Kumar
Ranch Hand
Joined: Apr 20, 2009
Posts: 105
|
|
Hi,
It is being defined in the following package: package com.Spring.AOP.Demo;
|
 |
David Newton
Author
Rancher
Joined: Sep 29, 2008
Posts: 12617
|
posted

0
|
|
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.
|
 |
 |
|
|
subject: Problem with the Sample Spring AOP application
|
|
|