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 191811 - Reload in target loses dependency linked by multiple modules
Summary: Reload in target loses dependency linked by multiple modules
Status: RESOLVED INCOMPLETE
Alias: None
Product: apisupport
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.0
Hardware: PC Other
: P3 normal (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-10 16:47 UTC by simpatico
Modified: 2010-11-10 19:07 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 simpatico 2010-11-10 16:47:07 UTC
I use in several modules the Apache commons collections and lang libraries. I find it totally plumbing to have to wrap them in a seperate module. Right now each module that uses them declares a dependency on them, however if I reload a module of those in the target platform I get the following exception. Only a clean and build with dependencies of the app module will restore things.

java.io.FileNotFoundException: C:\Users\kahloutg\ws\MemoPlatform\tester\target\ext\commons-lang\commons-lang-2.5.jar (The system cannot find the path specified)
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(ZipFile.java:114)
    at java.util.jar.JarFile.<init>(JarFile.java:135)
    at java.util.jar.JarFile.<init>(JarFile.java:114)
    at org.netbeans.JarClassLoader$JarSource$1.call(JarClassLoader.java:468)
    at org.netbeans.JarClassLoader$JarSource$1.call(JarClassLoader.java:461)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at org.netbeans.JarClassLoader$JarSource.getJarFile(JarClassLoader.java:490)
    at org.netbeans.JarClassLoader$JarSource.listCoveredPackages(JarClassLoader.java:559)
    at org.netbeans.JarClassLoader.getCoveredPackages(JarClassLoader.java:821)
    at org.netbeans.JarClassLoader.<init>(JarClassLoader.java:161)
    at org.netbeans.StandardModule$OneModuleClassLoader.<init>(StandardModule.java:691)
    at org.netbeans.StandardModule.classLoaderUp(StandardModule.java:624)
    at org.netbeans.ModuleManager.enable(ModuleManager.java:831)
    at org.netbeans.core.startup.ModuleList.installNew(ModuleList.java:318)
    at org.netbeans.core.startup.ModuleList.trigger(ModuleList.java:254)
    at org.netbeans.core.startup.ModuleSystem.restore(ModuleSystem.java:286)
    at org.netbeans.core.startup.Main.getModuleSystem(Main.java:172)
    at org.netbeans.core.startup.Main.start(Main.java:302)
    at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:114)
[catch] at java.lang.Thread.run(Thread.java:619)



http://netbeans.org/bugzilla/show_bug.cgi?id=191097
Comment 1 Jesse Glick 2010-11-10 19:07:03 UTC
Do you have some steps to reproduce from scratch (e.g. ZIP of demo app)? Does the mentioned file in fact get deleted at some point, and why?