This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Websphere and the fly likes URLClassLoader's ClassNotFoundException Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » Websphere
Reply Bookmark "URLClassLoader Watch "URLClassLoader New topic
Author

URLClassLoader's ClassNotFoundException

Arjun Reddy
Ranch Hand

Joined: Nov 10, 2007
Posts: 622
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


Be Humble... Be Nice.
Arjun Reddy
Ranch Hand

Joined: Nov 10, 2007
Posts: 622
Anybody? Please?

Thanks
Arjun Reddy
Ranch Hand

Joined: Nov 10, 2007
Posts: 622
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
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: URLClassLoader's ClassNotFoundException
 
Similar Threads
Problem with classloader with jaxb, spring, websphere
Questions related to commons-chain.jar after upgrading from Struts 1.2 to Struts 1.3
Migrating to Websphere app server 7 and RAD 7.5 from WSAD
CannotLoadBeanClassException
Application throwing exception