Solved

Permissions for script to write in the folder

Posted on 2010-08-18
9
733 Views
Last Modified: 2013-12-15
I have recently moved from windows xp to windows 7 64bit. This resulted in big problem for me as jee developer: My IDE (Eclipse) can't longer write/delete/overwrite files in applications server's folder (local). I tried to set up all known to me permissions but still no success. The script responsible for replacing compiled resources simply says 'can't write to xxxxxx.war directory'.

The issue is not connected to IDE version, I tried with last working version and the problem is the same.
0
Comment
Question by:szczecin
  • 5
  • 4
9 Comments
 
LVL 5

Expert Comment

by:xdomains
ID: 33462450
Are you able to manually write into that folder?
0
 

Author Comment

by:szczecin
ID: 33462777
yes, I am able to do everything I want with this folder (for example using Total Commander or windows explorer) - I use account with administrator's permissions.

The issue is:

I got directory of my application server:   d:/jboss/deploy

IF my IDE builds the code as archive file named MyWebApplication.war it can remove it/override - but it's not enough for me. So I create a FOLDER named MyWebApplication.war and script will try to copy files into this folder instead of creating archive. And then I get "Access is denied". Perhaps this is the issue? THat I create this folder myself? But I can't do it another way, and this way it worked in WinXP.
0
 
LVL 5

Accepted Solution

by:
xdomains earned 500 total points
ID: 33466914
If this is being done by the web app, you need to make sure it has the same privileges as the user who created it.
0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 

Author Comment

by:szczecin
ID: 33472395
It's done by IDE, not web app. Anyway how to set priviliges for application? Google did not help me..
0
 
LVL 5

Expert Comment

by:xdomains
ID: 33472402
Can you try launching the IDE using 'Run as Admin' or after disabling UAC?
This will give us some idea on how to proceed.
0
 

Author Comment

by:szczecin
ID: 33472632
Unfortunatelly it did not help. UAC is disabled, my IDE launched as admin, I also set up the process that IDE starts when deploying my web app to full control access. Still the same problem. I will keep trying to proceed this way, perhaps there's another subprocess responsible for coping content of archive to folder.
0
 

Author Comment

by:szczecin
ID: 33473127
ok, I have solved my problem by modyfing ant script that copies the content of archive. Thanks to your tip regarding application and user who created folder privileges I could understand why the access is denied. Thanks a lot.
0
 

Author Closing Comment

by:szczecin
ID: 33473131
I modified the script to create folder himself and this way the folder and the script were created/executed with same privileges resulting in 'access is denied' error disappeared.
0
 
LVL 5

Expert Comment

by:xdomains
ID: 33473160
Good to know that you could solve the issue! Thanks for the rating...:)
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Windows login to server issues 1 33
How to change the path of My Documents 2 29
mysqli_connect error on wamp but not on remote server 8 37
is freezing possible in ssd? 4 43
You may have a outside contractor who comes in once a week or seasonal to do some work in your office but you only want to give him access to the programs and files he needs and keep privet all other documents and programs, can you do this on a loca…
A quick guide on how to use Group Policy to create a custom power plan and set it active on Windows 7.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.
This Micro Tutorial will give you basic overview of the control panel section on Windows 7. It will depth in Network and Internet, Hardware and Sound, etc. This will be demonstrated using Windows 7 operating system.

840 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