[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

getRealPath() returning null

Asked by ank9 in Java Programming Language, New to Java Programming, J2EE

I have Tomcat installed in Windows XP. In my web application deployed in tomcat, I have the following code line in my action class

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

this gives me the value

C:\cvs_repo\Documentum\webtop\src\

Now this same application I have deployed on Weblogic (hosted on windows 2003 server). On this server, the above code line returns null

Now this same application is deployed on Weblogic (hosted on AIX box). On this machine this code line returns the correct file path.

Can somone please let me know why it is returning null on windows 2003 Weblogic.

Thank you
[+][-]11/04/09 01:34 AM, ID: 25737659Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/04/09 01:35 AM, ID: 25737665Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/04/09 01:37 AM, ID: 25737675Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091021-EE-VQP-81 - Hierarchy / EE_QW_3_20080625