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.
Summary: | Missing classes at run-time | ||
---|---|---|---|
Product: | apisupport | Reporter: | simpatico |
Component: | Maven | Assignee: | David Simonek <dsimonek> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | jglick |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | Shows that the local repository artifact contains FileUtil.class |
Description
simpatico
2010-08-09 18:26:48 UTC
Created attachment 101279 [details]
Shows that the local repository artifact contains FileUtil.class
Release69 makes no difference. Yet the same code works if i include the ide cluster. And now even this: java.lang.ClassNotFoundException: au.com.bytecode.opencsv.CSVReader at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:262) Caused: java.lang.ClassNotFoundException: au.com.bytecode.opencsv.CSVReader starting from ModuleCL@2db6235b[com.mysimpatico.MemoPlatform.Persistence] with possible defining loaders [ModuleCL@6e37d490[com.mysimpatico.MemoPlatform.PersistenceUI]] and declared parents [ModuleCL@5867df9[org.netbeans.api.progress], ModuleCL@79fcf790[org.netbeans.modules.settings], ModuleCL@418a9fc8[org.openide.actions], ModuleCL@9642bd6[org.openide.windows], ModuleCL@14a8e586[org.openide.explorer], ModuleCL@338e18a3[org.openide.nodes], ModuleCL@6b541147[org.openide.awt], ModuleCL@318efaea[org.openide.loaders], org.netbeans.MainImpl$BootClassLoader@1fff7a1e] at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:264) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) Caused: java.lang.NoClassDefFoundError: au/com/bytecode/opencsv/CSVReader at com.mysimpatico.memoplatform.entities.input.ImportMeanings.importWords(ImportMeanings.java:83) at com.mysimpatico.memoplatform.entities.input.ImportMeanings.access$000(ImportMeanings.java:31) [catch] at com.mysimpatico.memoplatform.entities.input.ImportMeanings$1.run(ImportMeanings.java:62) Sounds like you are missing some dependency. Cannot evaluate without steps to reproduce. I don't know the exact steps to re-produce the bug. I know that my project shows this error and it seems incorrect since: 1. It builds with dependencies correctly. 2. It Run (so after runtime dependency check). 3. The dependencies are set in the pom.xml 4. I could find the missing class in maven local repo. It used to work until I was having ide cluster, I think. When I removed the ide cluster dependency, and supplanted it with the specific packages I need I got the error. You could checkout the code at https://memorizeasy.googlecode.com/svn/trunk/MemoPlatform no, even adding the ide cluster won't solve the issue. okay, the problem was having the following in Manifest.mf: OpenIDE-Module-Module-Dependencies: org.netbeans.modules.editor.settings.storage/1 > 1.20 Poor documentation! (In reply to comment #8) > Poor documentation! I'm not sure exactly where you got the documentation from - nbm-maven-plugin site? - but please file an issue for the maintainer of that documentation if you feel something is missing or inaccurate. |