3 Replies Latest reply on Aug 25, 2010 11:13 AM by peterj

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

    krishnamohank

      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.

        • 1. Re: Jboss When run as service not able to access local system path
          peterj

          Make sure that the local user account has full access rights to the jboss_home directory (and its subdirectories) and to any other directory that your apps need access to (in case you are using some external directories).

           

          Also, what version of  Windows are you running - anything later than Server 2003 will have addtional security constraints.

          • 2. Re: Jboss When run as service not able to access local system path
            krishnamohank

            Local user account has all required rights, my OS is Windows XP

            • 3. Re: Jboss When run as service not able to access local system path
              peterj

                    >>Local user account has all required rights,

              If that were true then you would have access to the file (just like the admin account has access, as you indicated in your original post). You will have to turn on some Windows security/file logging to determine exactly what is going on and why the access is disallowed - note that this is purely a Windows configuration issue and has nothing to do with JBoss AS or Java.

               

              One thing you might try - log into Windows using the same account used by the service. Then run Jboss AS from the command line and see if the file can be accessed. If it can, then you will need to ask a Windows security expert as to what is going wrong.