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.

Bug 202569 - imported eclipse web project and deploy on save
Summary: imported eclipse web project and deploy on save
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Tomcat (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-23 14:57 UTC by medeag
Modified: 2011-10-15 14:50 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
my sample web application after being import in netbeans (13.60 KB, application/octet-stream)
2011-09-23 14:59 UTC, medeag
Details

Note You need to log in before you can comment on or make changes to this bug.
Description medeag 2011-09-23 14:57:25 UTC
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
Comment 1 medeag 2011-09-23 14:59:01 UTC
Created attachment 111106 [details]
my sample web application after being  import in netbeans
Comment 2 David Konecny 2011-09-25 20:36:05 UTC
(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.
Comment 3 medeag 2011-09-26 05:57:16 UTC
 I was testing this feature in debug mode...

Thanks,
Medea
Comment 4 David Konecny 2011-09-26 21:51:17 UTC
(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.
Comment 5 medeag 2011-09-27 11:14:46 UTC
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
Comment 6 David Konecny 2011-10-10 01:17:27 UTC
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.
Comment 7 Petr Hejl 2011-10-14 12:36:01 UTC
Fixed in web-main 799a776da686.
Comment 8 Quality Engineering 2011-10-15 14:50:20 UTC
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