• Post Reply Bookmark Topic Watch Topic
  • New Topic

Class Cast Exception using classLoader.getResourcerAsStream  RSS feed

 
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!