• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Not getting context on Weblogic

 
Ranch Hand
Posts: 279
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We have a Java web application deployed on Tomcat. In the Action class, I have written the following line

String strFilePath = getPageContext().getServletContext().getRealPath(File.separator);

This line works absolutely fine.

But when I deploy the same application on Weblogic, the above line returns null. Till a few days back it was working fine. Now suddenly it has stopped working.

Can someone please give some clue as to what could be the problem.

Thank you
 
Bartender
Posts: 6663
5
MyEclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It will not stop working suddenly. Perhaps the URL passed is incorrect ? How are you trying to retrieve this file name and for what purpose ?
 
reply
    Bookmark Topic Watch Topic
  • New Topic