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 CannotLoadBeanClassException 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 "CannotLoadBeanClassException" Watch "CannotLoadBeanClassException" New topic
Author

CannotLoadBeanClassException

Arjun Reddy
Ranch Hand

Joined: Nov 10, 2007
Posts: 627
Hi All,

I am getting the above exception every time I do a clean build from my RAD IDE. The class its referring to is specified in a spring xml file. On server start up everything is fine. It happens only when I do a clean build. Anybody knows why?

Thanks.


Be Humble... Be Nice.
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Sorry for this remark.

It is because you are using RAD.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Arjun Reddy
Ranch Hand

Joined: Nov 10, 2007
Posts: 627
Mark Spritzler wrote:Sorry for this remark.

It is because you are using RAD.

Mark



Thanks for the reply Mark. Can you tell me why its because of RAD? Is there no way I can avoid this? Problem seems to be with java.net.URLClassLoader.findClass. Below is the stack trace



Thanks
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Rad is an IBM product that is tightly coupled to IBM way of thinking. It is very difficult to install the Spring Eclipse plugins.

Therefore the configuration of the die makes itmtough to get it to play nicelymwith things that are not IBM products.

Download Spring Toolsuite instead and use it.

Mark
Arjun Reddy
Ranch Hand

Joined: Nov 10, 2007
Posts: 627
Mark,

Thanks for the reply. I am not using any spring eclipse plugins. I am just using a spring.jar. I will try spring tool suite and see.

Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Arjun Reddy wrote:Mark,

Thanks for the reply. I am not using any spring eclipse plugins. I am just using a spring.jar. I will try spring tool suite and see.



So basically, the IDE doesn't know about anything Spring and therefore the IDE will show errors. but your server had the jar file and runtime loads the correct files to work.

Mark
Arjun Reddy
Ranch Hand

Joined: Nov 10, 2007
Posts: 627
Thanks for the reply Mark. I made the class defined in spring xml file a jar and its working fine now.

 
 
subject: CannotLoadBeanClassException
 
Similar Threads
Netbeans... projects just randomly dont work...
JFileChooser problems
maven clean output directory
Failed to deploy servlet in netbeans 6.7
Accessing Persistence Unit from Servlets