Solved

Permissions for script to write in the folder

Posted on 2010-08-18
9
729 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
 

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
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

I recently purchased an HP EliteBook 2540p notebook/laptop. It has two video ports on it – VGA and DisplayPort. HP offers an optional docking station for the 2540p that also has both a VGA port and a DisplayPort. There are numerous online reports do…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
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.

760 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now