aspose file tools
The moose likes Servlets and the fly likes getRealPath() issue Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "getRealPath() issue" Watch "getRealPath() issue" New topic
Author

getRealPath() issue

Naveen puttu
Ranch Hand

Joined: Sep 15, 2009
Posts: 88
Hi



The above line returns the filepath as

It should ideally be

Why is that extra dot coming in the path

Cheers
Naveen
Kumar Raja
Ranch Hand

Joined: Mar 18, 2010
Posts: 457

Hi,

Please read this.. As per this, the real path returns you the absolute path and it depends on the computer and also the container.

The issue which you have is due to the way JBoss is handling the deployment. You may need to refer JBoss documentation or move this to JBoss forum, for better answer.

I tried the example on both JBoss and GlassFish and I see the problem in JBoss but not on Glassfish.

Regards
KumarRaja

 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: getRealPath() issue
 
Similar Threads
Can the properties file be maintained as part of the EAR or WAR, instead of in \conf (ie. seprately)
Jboss Server
How to deploy in external directory in jboss5
Help with creating basic Session Beans (Struts + JBoss 3.2.3)
error while invoking jndi list in jmx - console