Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes JBoss/WildFly and the fly likes Jboss When run as service not able to access local system path Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Jboss When run as service not able to access local system path" Watch "Jboss When run as service not able to access local system path" New topic
Author

Jboss When run as service not able to access local system path

krishnaMohank Reddy
Greenhorn

Joined: Aug 20, 2010
Posts: 1
I am running Jboss as service using local user account, from my bussiness logic I am trying to access(read) file on local system on C drive. I am getting " java.io.IOException: The system cannot find the path specified".

But when configure JBoss service to logon with an administrator account did work in that case. So i guess the problem is with Jboss Service using local user account, it is not having enough rights to access file.

So if the files are on the local machine on C drive, the local system account should work, what configuaration shall I change to make it work.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

krishnaMohank, welcome to Java Ranch!

Did my suggestions in the other forum help? If not, let's continue the discussion there and just post the final solution here - I don't want to have two duplicate conversations going on at the same time.


JBoss In Action
Stijn de Witt
Greenhorn

Joined: Jul 29, 2010
Posts: 3
Link to the 'other forum' would help Googlers like me to find the rest of the discussion...
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9960
    
163

Stijn de Witt wrote:Link to the 'other forum' would help Googlers like me to find the rest of the discussion...


Here https://community.jboss.org/thread/155601

[My Blog] [JavaRanch Journal]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jboss When run as service not able to access local system path
 
Similar Threads
Not able to access Network Drive
Access Network drive through Java Application running as a service
file.canread()
Writing a file in Mapped Network drive using java running as Windows service
Is it possible to use Struts2 file upload tag to display content of a shared drive directory: