Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

CannotLoadBeanClassException

 
Arjun Reddy
Ranch Hand
Posts: 629
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry for this remark.

It is because you are using RAD.

Mark
 
Arjun Reddy
Ranch Hand
Posts: 629
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 629
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 629
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply Mark. I made the class defined in spring xml file a jar and its working fine now.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic