Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Permissions for script to write in the folder

Posted on 2010-08-18
9
Medium Priority
?
741 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 2000 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
OfficeMate Freezes on login or does not load after login credentials are input.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.
Suggested Courses

783 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