• 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:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

getRealPath() issue

 
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi



The above line returns the filepath as

It should ideally be

Why is that extra dot coming in the path

Cheers
Naveen
 
Ranch Hand
Posts: 558
2
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic