Solved

Permissions for script to write in the folder

Posted on 2010-08-18
9
730 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
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

OfficeMate Freezes on login or does not load after login credentials are input.
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…
The viewer will learn how to implement Singleton Design Pattern in Java.
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.

920 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

15 Experts available now in Live!

Get 1:1 Help Now