By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,913 Members | 1,305 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,913 IT Pros & Developers. It's quick & easy.

ServletContext.getResourceAsStream() in WAS5 and WAS6

P: 58
Hi All,

I am facing a strange issue. I am migrating my application EAR from WAS5 to WAS6. This EAR works perfectly fine in WAS 5 but while the same EAR is deployed in WAS 6, it throwing an exception at the below line (in bold) of code:

String fileName =

try { is =

The fileName is calculated as null (both in WAS5 and 6) but was5 executes fine the code line in bold while was6 throws null pointer exception.

Please note "ctx" above is the servletcontext instance.

Feb 16 '11 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.