This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Unsure if it issue or i'm missing something: I have created very basic web application (Just with one servlet) using eclipse and then tried to import it to the netbeans (File-> Import Project ->Eclipse Project) I have chosen option Import Project from workspace then selected my test project. the import completed successfully. After import the project has "Deploy on save" checked, so that should mean that if i made any change to my servlet and save, it should be compiled and deployed automatically, but it doesn't. For server i use in both cases tomcat(i.e. in eclipse and in netbeans) which comes with netbeans. Product Version: NetBeans IDE Dev (Build 201109220601), same thing for both windows 7 and snow leopard
Created attachment 111106 [details] my sample web application after being import in netbeans
(In reply to comment #0) > After import the project has "Deploy on save" checked, so that should mean > that if i made any change to my servlet and save, it should be compiled and > deployed automatically, but it doesn't. After project was imported (or created) you must deploy it and afterwards any change to project sources will be automatically recompiled and redeployed. I'm not sure whether that is what you are doing or not. It does not work without initial deployment. Please reopen the issue if I misunderstood what you are doing. Thx.
I was testing this feature in debug mode... Thanks, Medea
(In reply to comment #3) > I was testing this feature in debug mode... So you are saying that you imported project from Eclipse into NetBeans and started project in debug mode and Deploy on Save did not work. Would you mind please testing whether in regular (non-debugging) mode Deploy on Save works or not? That would help. Thanks.
no, it doesn't work either. Deploy on save seems to work only for project that created in netbeans, not for imported ones. Thanks, Medea
I can reproduce this on Tomcat and it seems to be related to value of web context which in case of your sample test project is blank. Setting web context to some non empty value resolves this problem. I tested it with GlassFish server and it works fine in both cases of empty and non-empty web context.
Fixed in web-main 799a776da686.
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/799a776da686 User: Petr Hejl <phejl@netbeans.org> Log: #202569 imported eclipse web project and deploy on save