This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • 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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!