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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Spring
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: 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

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

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

*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

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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Problem with the Sample Spring AOP application
 
Similar Threads
Spring +JAX-RPC +Operation timed out
[spring] aop config
Error while executing simple application with jdk1.5
Dependency injection with Wrapper classes
Spring 3 with Hibernate error