History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-18973
Type: Usability Problem Usability Problem
Status: Open Open
Assignee: Nikolay Chashnikov
Reporter: Grant Gochnauer
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

IntelliJ locks deployment folder

Created: 04 Aug 08 21:04   Updated: 16 Sep 08 20:05
Component/s: Compiling Project

File Attachments: 1. File accu-chek.se-webNG.iml (5 kb)
2. File cwpwebcodebaseNG.iml (3 kb)
3. File preferences-ejbClient.iml (1 kb)
4. File RocheCWP.ipr (112 kb)

Image Attachments:

1. screenshot-1.jpg
(22 kb)

2. screenshot-2.jpg
(49 kb)
Environment: Windows Vista X64

Build: 8,637
Severity: High


 Description  « Hide
I'm in a situation where I deploy using Maven to a WAS 6.1 server and I use IntelliJ to compile my web apps directly into the exploded WAR folders on the local WAS 6.1 server.

The problem is that IntelliJ seems to lock the WAR folders as well as the JARs so that if I need to redeploy the EAR while IntelliJ is running, the deployment fails because WAS cannot delete the exploded folder. IntelliJ seems to have a lock on the entire folder once I do a compile. It never releases the lock.

I have to exit IntelliJ anytime I need to redeploy using the WAS admin tool.



 All   Comments   Work Log   Change History      Sort Order:
Grant Gochnauer - 14 Aug 08 23:56
Attaching error message I get after I try to manually delete a deploy folder. This only happens after doing a build where IDEA deploys to an exploded WAR file. After closing IDEA, I can delete the folder fine

Grant Gochnauer - 20 Aug 08 17:45
Do you think this would be a quick fix? Everytime I compile my exploded WAR I have to restart IDEA since many times RSA needs to change folders in the same exploded folder in my specific scenario.

Thanks!


Grant Gochnauer - 04 Sep 08 14:58
Any chance this can make it into Diana? Thanks! This requires me to restart IDEA every time I do a build currently

Nikolay Chashnikov - 05 Sep 08 12:55
I cannot reproduce the problem. Please attach ipr and iml-files of your project.

Nikolay Chashnikov - 05 Sep 08 13:29
Is the problem reproduce if WAS isn't started? Will you be able to remove exploded war folder if you start IDEA and build your project without starting WebSphere server?

Grant Gochnauer - 08 Sep 08 14:55
Hello Nikolay –

It turns out I don't have to run WAS/RSA at all to reproduce this error.

I'll attach my IPR and IML for this module. All I have to do is deploy to a folder in IDEA, then try to delete the folder. The folder is completely locked until I shut down IDEA.

Right now my module deploys to:
C:\Program Files (x86)\IBM\SDP70\runtimes\base_v61\profiles\AppSrv01\installedApps\BeastNode01Cell\EMEA2NG.ear\accu-chek.se-webNG.war\

When I do a build, I cannot delete the "EMEA2NG.ear" folder. RSA/WAS is not running at all.

-Grant


Grant Gochnauer - 08 Sep 08 14:57
One thing to note that might be different than a normal test case for you is that I am using path variables for my deployment folder.

I have a path variable in IDEA defined as:
WAS61_DEPLOY_FOLDER with a value of: C:\Program Files (x86)\IBM\SDP70\runtimes\base_v61\profiles\AppSrv01\installedApps\BeastNode01Cell


Nikolay Chashnikov - 09 Sep 08 21:24
I've reproduced the problem. As a workaround you can try to delete WAR directory and then delete its parent EAR directory.

Grant Gochnauer - 12 Sep 08 14:48
Interesting.. I seem to be able to reproduce this issue off and on now... I'm glad you were able to reproduce it... Does it have to do with the fact I'm using path variables?

Thanks


Nikolay Chashnikov - 12 Sep 08 15:18
No, it isn't related to path variables.

Actually the problem is causes by FileWatcher.dll library used by IDEA to watch changes in the exploded war directory. FileWatcher locks the parent directory of the exploded war directory but if you delete the exploded war directory the parent directory will be unlocked so you will be able to remove it too.


Grant Gochnauer - 12 Sep 08 15:20
Nikolay –

That makes sense. Your work-around does work so that's good news!

Grant


Grant Gochnauer - 16 Sep 08 20:05
I just ran into this again and it seems deleting the exploded web folder did not help. The only thing running right now is IDEA. I shut down WAS/RSA and I still cannot delete the folder. After shutting down IDEA, the folder could be removed.

Grant Gochnauer - 16 Sep 08 20:05
This was on build 8802.