Solved

Permissions for script to write in the folder

Posted on 2010-08-18
9
737 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 

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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
A quick guide on how to use Group Policy to create a custom power plan and set it active on Windows 7.
This Micro Tutorial will teach you how to the overview of Microsoft Security Essentials. This is a free anti-virus software that guards your PC against viruses, spyware, worms, and other malicious software. This will be demonstrated using Windows…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses

617 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