• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

URLClassLoader's ClassNotFoundException

 
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 have written a spring xml file which load's an external property file to a class's variable on server startup. Everything look good on server start up and its working fine too. The problem is, every time I do a clean build from my RAD IDE, I get ClassNotFoundException for the class specified in the spring file. Its happening during publishing the changes to the EAR. If I remove the EAR project from the server and do a clean build, I don't get the exception. Anybody knows how I can resolve this? I am using RAD 7.5 IDE with WAS 7.0 Application server.

Below's the stack trace



Thanks
 
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
Anybody? Please?

Thanks
 
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
Ok, this is weird. I kept doing clean build multiple times to see if its happening every time and apparently its happening only when the classes are not put in the WEB-INF/classes folder. The URL class loader seems to try to load the classes even before the .class files are created. Will this be any issue anytime during server start up too? Can anybody help me resolve this? I am doing some research on my side too.

Thanks
 
If you are using a rototiller, you are doing it wrong. Even on this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic