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 43561 - Webmodule is not reloaded when there is a class change or a jar file is added
Summary: Webmodule is not reloaded when there is a class change or a jar file is added
Status: CLOSED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: PC All
: P1 blocker (vote)
Assignee: Pavel Buzek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-19 14:25 UTC by Marek Fukala
Modified: 2006-03-24 10:23 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marek Fukala 2004-05-19 14:25:21 UTC
[20040518]
To reproduce:
1) create a J2SE library project e.g. libprj
2) create a package and inside a class with a
static method returning a string.
3) create a new Web project
4) add the libprj project into the webproject
compilation classpath
5) create a JSP page rendering value of the static
method from the libprj
5) build the web project
6) make a change in the static class e.g. return a
different string
7) build the main web project
=> the JSP page still uses the old class version.
The library built in the libprj is correctly
copied into the
${webproject}/build/web/WEB-INF/lib, but the
webmodule is not reloaded or redeployed so the
webapp classloader still sees the old class version.
Comment 1 Marek Fukala 2004-05-20 14:52:21 UTC
The problem is even more general and serious. The webmodule is not
reloaded even if you change a class inside the project or add a new
library into. After running the project everything is properly updated
in ${webproject_home}/build/web/*, but the webmodule is not reloaded /
redeployed. So the only workaround is to perform the "Redeploy
Project" action.
Comment 2 Pavel Buzek 2004-05-26 00:58:49 UTC
Thanks for catching this.

There were problems on both sides - web module did not list its files
correctly (listed files from sources folder and with wrong relative
paths) and j2eeserver did its own enumeration of files -- also
incorrectly (also with wrong relative paths). Because of the second
problem I wonder how this could have worked in 3.6 :-(

It is fixed now.
Comment 3 Marek Fukala 2004-07-07 17:01:10 UTC
verified in #20040707