Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Class Cast Exception using classLoader.getResourcerAsStream

 
Hari Gundappa
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic