• Post Reply Bookmark Topic Watch Topic
  • New Topic

Getting an inputstream-Difference  RSS feed

 
A Kumar
Ranch Hand
Posts: 980
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I had a code running in a server environment...

In my local system,

When i code it as...Classloader.getResourceAsStream("..."); it throws an error..but when i code it as ..
Thread.currentThread().getContextloader().getResourceAsStream("..."); it works fine...


In my prod environment,
Classloader.getResourceAsStream("..."); executes fine...

I am not able to find the reason of this behaviour...

Regards
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is a bit advanced for beginners. I'm promoting this topic to the intermediate forum.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!