Win a copy of OCP Oracle Certified Professional Java SE 11 Developer Practice Tests this week in the OCP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Ron McLeod
  • Tim Cooke
Sheriffs:
  • Devaka Cooray
  • paul wheaton
  • Mark Herschberg
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
  • Jj Roberts
Bartenders:
  • Carey Brown
  • salvin francis
  • Piet Souris

CannotLoadBeanClassException

 
Ranch Hand
Posts: 629
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
ranger
Posts: 17346
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 17346
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 17346
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic