This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Websphere and the fly likes Class Cast Exception using classLoader.getResourcerAsStream Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "Class Cast Exception using classLoader.getResourcerAsStream" Watch "Class Cast Exception using classLoader.getResourcerAsStream" New topic
Author

Class Cast Exception using classLoader.getResourcerAsStream

Hari Gundappa
Greenhorn

Joined: Sep 13, 2011
Posts: 27
Hi,

I am trying to load a properties file from the class path on WAS 6.1.
I get a classcast exception : com.ibm.ws.classloader.Handler$ZipEntryInputStream is not compatible with java.io.InputStream

Here's how my code looks



Both the above fail.

Please advise if I am missing something.

Thanks,
Hari
 
 
subject: Class Cast Exception using classLoader.getResourcerAsStream
 
Similar Threads
Parsing XML from local system's D Drive
Refer To dir & files in WAR
Reading an xml file inside a Jar
Parsing XML from local system's D Drive
Getting the InputStream for a Class