I am getting an Access Denied on a file.

Posted on 2013-09-24
Medium Priority
Last Modified: 2013-09-27
I am getting an Access Denied on a file.
I am VPNing into a client, Remote Desktop to Windows Server, windows 7 as user x but the files were installed by user y, they are both in the same group.. ???

.FileNotFoundException (Access is denied)
C:\apexlistenerdata\apex\conf2\apex\apex\WEB-INF\standalone.jar does exist

Is this a Permissions problem?
How do I view my user's groups?

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at oracle.dbtools.jarcl.Entrypoint.main(Entrypoint.java:58)
      Caused by: java.io.FileNotFoundException: C:\apexlistenerdata\apex\conf2\apex\apex\WEB-INF\standalone.jar
      (Access is denied)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:194)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:145)
        at oracle.dbtools.standalone.Standalone.extract(Standalone.java:162)
        at oracle.dbtools.standalone.Standalone.extractWar(Standalone.java:180)
        at oracle.dbtools.standalone.Standalone.prepareWarFolder(Standalone.java:118)
        at oracle.dbtools.standalone.Standalone.execute(Standalone.java:43)
        at oracle.dbtools.common.cmds.DefaultCommand.execute(DefaultCommand.java:106)
        at oracle.dbtools.common.cmds.Commands.main(Commands.java:91)
        ... 5 more
Question by:BILL Carlisle
  • 2

Assisted Solution

SterlingMcClung earned 340 total points
ID: 39519803
Good possibility that this is permission related, if it works just fine for one user, but not another.  Permissions can be set on a per user basis, with the creator of a file/folder most definitely getting different permissions then others.  If this is in a domain environment, then you can check group membership by clicking on the Member Of tab in Active Directory Users and Computers.  If this is not a domain environment, then you can check your groups by typing

Open in new window

into the Start Menu search box, finding your user account, right click to Properties and select Member Of tab.

Assisted Solution

SterlingMcClung earned 340 total points
ID: 39519808
Another useful tool is the "Effective Permissions" tab that you can access by right-clicking on a file/folder, going to Properties, selecting the Security tab, clicking the Advanced button and then clicking the Effective Permissions tab.  After you select your user account, the entire list of what permissions you have or don't have will be populated.
LVL 15

Accepted Solution

Giovanni Heward earned 600 total points
ID: 39520111
Or from the command prompt:

To view permissions:
cacls C:\apexlistenerdata\apex\conf2\apex\apex\WEB-INF\standalone.jar

Open in new window

To grant full permissions to user being denied:
cacls C:\apexlistenerdata\apex\conf2\apex\apex\WEB-INF\standalone.jar /e /g %userdomain%\%username%:f

Open in new window

You can also verify the file is not locked by analyzing it with this program:

Author Closing Comment

by:BILL Carlisle
ID: 39528416
Got it ! Thatk you for the help and the tools..

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.
This Micro Tutorial will go in depth within Systems and Security in Windows 7 and will go into detail regarding Action Center, Windows Firewall, System, etc. This will be demonstrated using Windows 7 operating system.

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question