Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

getRealPath() issue

 
Naveen puttu
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • 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
 
Kumar Raja
Ranch Hand
Posts: 547
2
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic