File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Spring and the fly likes Problem with the Sample Spring AOP application Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Application Frameworks » Spring
Reply Bookmark "Problem with the Sample Spring AOP application" Watch "Problem with the Sample Spring AOP application" New topic
Author

Problem with the Sample Spring AOP application

Keerthi Kumar
Ranch Hand

Joined: Apr 20, 2009
Posts: 104
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: 12612
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: 104
Hi,

I have made an entry for IBusinessLogic (which is an interface).
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12612
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: 104
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: 12612
*What* package?
Keerthi Kumar
Ranch Hand

Joined: Apr 20, 2009
Posts: 104
Hi,

It is being defined in the following package: package com.Spring.AOP.Demo;
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12612
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.
 
IntelliJ Java IDE
 
subject: Problem with the Sample Spring AOP application
 
Threads others viewed
[spring] aop config
Error while executing simple application with jdk1.5
Spring 3 with Hibernate error
Dependency injection with Wrapper classes
Spring +JAX-RPC +Operation timed out
developer file tools