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.
Product Version: NetBeans IDE 6.0.1 (Build 080206) Java: 1.6.0-ea; Java HotSpot(TM) Client VM 11.0-b06 System: Linux version 2.6.24-7-generic running on i386; UTF-8; en_US (nb) - installed NB as deb package - installed SOA modules via UpdateCenter - istalled GlassFish+OpenESB (from full 6.0.1 NBI installer) - create SynchronousSample - try to build it BUILD SUCCESSFUL but tith many "Cannot find null" messages in log - try to deploy it deployed with same messages - try to test it Null Test: Caused an ERROR org.netbeans.modules.compapp.catd.ConfiguredTest java.lang.ClassNotFoundException: org.netbeans.modules.compapp.catd.ConfiguredTest at java.net.URLClassLoader$1.run(URLClassLoader.java:217) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:205) at java.lang.ClassLoader.loadClass(ClassLoader.java:323) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294) at java.lang.ClassLoader.loadClass(ClassLoader.java:268) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:186) Test org.netbeans.modules.compapp.catd.ConfiguredTest FAILED test-report: /home/tester/NetBeansProjects/SynchronousSample1/SynchronousSample1Application/nbproject/build-impl.xml:371: Some tests failed; see details above. BUILD FAILED (total time: 0 seconds)
Who is responsible for SOA module? I am not able to say what is wrong/why it fails. I need info what should is different between normal IDE and IDE installed from packages. Content should be the same though there is many symlinks to external libraries.
Ivan, can you please attach NetBeans log? thanks
Sergey (slunegov@netbeans.org) is the dev manager of SOA. Adding him into the CC list.
Created attachment 56508 [details] messages.log
Now it is clear. Reason for this is that in IDE we use patched resolver1.2. Ubuntu folks did not accept new package (Netbeans fork) for resolver1.2 just with our changes and in xml team there is nobody who could explain/approve that our changes can be pushed to resolver original codebase. We contacted Petr Kuzel who worked on this. Result is: 1.API change in xml resolved should be pushed into resolver upstream (original code). 2.Fix of NPE should be handled in our NetBeans code. xml module should handle this. As it is late for this to get into resolver1.2 debian package we will not support this in NB 6.0.1. xml module should handle this fro NB 6.1.
Links to relevant files in mercurial: http://hg.netbeans.org/main/file/721f72486327/o.apache.xml.resolver/external/readme.txt http://hg.netbeans.org/main/file/721f72486327/o.apache.xml.resolver/external/resolver.patch
Hi mslama, Do you mean that NB6.0.1 SOA module won't be supported on Ubuntu?
It means that SOA will not work on NB installed from Ubuntu packages. If NB is installed by regular installer it will work fine. Workaround could be to replace symlink to resolver jar in /usr/share/netbeans/ide8/modules/ext by patched resolver jar.
Of course that workaround means manual change AFTER NetBeans IDE package is installed. In such case better solution for user would be probably install IDE directly using our installer.
Hi mslama, could you please attach patched resolver jar for testing workaround
I installed NB 6.0.1 using normal installer linked /usr/share/netbeans/ide8/modules/ext/resolver-1.2.jar to the same jar in 6.0.1 istallation now I can build and deploy application without "Cannot find null" messages in log but still can't run tests with same error: Null Test: Caused an ERROR org.netbeans.modules.compapp.catd.ConfiguredTest java.lang.ClassNotFoundException: org.netbeans.modules.compapp.catd.ConfiguredTest at java.net.URLClassLoader$1.run(URLClassLoader.java:217) ....
Probably it is necessary to replace jar ide8/modules/org-netbeans-modules-xml-catalog.jar by version from normal NB 6.0.1. Because of missing API in original resolver jar I had to patch xml/catalog/src/org/netbeans/modules/xml/catalog/impl/sun/Catalog.java to be able to compile sources against original resolver. Please try and let me know result.
the same error with replaced org-netbeans-modules-xml-catalog.jar
I tried but I do not know how to start GlassFish so that it is possible to add it Services tab in IDE. Please explain. As there is CNFE I expect problem with classpath. It would be good if someone from SOA team could investigate and say what is wrong. Thanks.
Ok. We was able to reproduce problem here. Reason for this is wrong classpath: a) test expects all jars to be present in install dir, if they are in user dir like in this case they are not used/found. This should be fixed in test infrastructure IMO. Please file separate issue for it. I do not know who should handle it or if there is some simple way how to configure it in this project type. In J2SE project nbinst protocol is used to handle this ie. to find out libs in NB install dir or user dir. b) some jars from java1 cluster are missing. Our configuration is stripped so you must install additional modules from UC. (missing module dependency???? btw I had to install Glassfish plugin to be able to use GF from IDE, it was not mentioned anywhere in you report. If classpath problem could be solved in SOA we could on our side provide update to update resolver1.2.jar and org-netbeans-modules-xml-catalog.jar. So please let us know soon if we should prepare patch for UC.
Created attachment 56808 [details] Verbose ant output from test with list of missing jars
List of missing jars (full test log is attached): dropping /usr/share/netbeans/6.0.1/soa1/modules/org-netbeans-modules-compapp-manager-jbi.jar from path as it doesn't exist dropping /usr/share/netbeans/6.0.1/soa1/modules/ext/jbi/catd.jar from path as it doesn't exist dropping /usr/share/netbeans/6.0.1/soa1/modules/ext/jbi/xmlunit-1.0.jar from path as it doesn't exist dropping /usr/share/netbeans/6.0.1/java1/modules/ext/jaxws21/api/saaj-api.jar from path as it doesn't exist dropping /usr/share/netbeans/6.0.1/java1/modules/ext/jaxws21/saaj-impl.jar from path as it doesn't exist dropping /usr/share/netbeans/6.0.1/java1/modules/ext/jaxws21/FastInfoset.jar from path as it doesn't exist dropping /usr/share/netbeans/6.0.1/soa1/modules/org-netbeans-modules-compapp-manager-jbi.jar from path as it doesn't exist dropping /usr/share/netbeans/6.0.1/soa1/modules/ext/jbi/catd.jar from path as it doesn't exist dropping /usr/share/netbeans/6.0.1/soa1/modules/ext/jbi/xmlunit-1.0.jar from path as it doesn't exist dropping /usr/share/netbeans/6.0.1/java1/modules/ext/jaxws21/api/saaj-api.jar from path as it doesn't exist dropping /usr/share/netbeans/6.0.1/java1/modules/ext/jaxws21/saaj-impl.jar from path as it doesn't exist dropping /usr/share/netbeans/6.0.1/java1/modules/ext/jaxws21/FastInfoset.jar from path as it doesn't exist dropping /usr/share/netbeans/6.0.1/soa1/modules/org-netbeans-modules-compapp-manager-jbi.jar from path as it doesn't exist dropping /usr/share/netbeans/6.0.1/soa1/modules/ext/jbi/catd.jar from path as it doesn't exist dropping /usr/share/netbeans/6.0.1/soa1/modules/ext/jbi/xmlunit-1.0.jar from path as it doesn't exist dropping /usr/share/netbeans/6.0.1/java1/modules/ext/jaxws21/api/saaj-api.jar from path as it doesn't exist dropping /usr/share/netbeans/6.0.1/java1/modules/ext/jaxws21/saaj-impl.jar from path as it doesn't exist dropping /usr/share/netbeans/6.0.1/java1/modules/ext/jaxws21/FastInfoset.jar from path as it doesn't exist dropping /usr/share/netbeans/6.0.1/soa1/modules/org-netbeans-modules-compapp-manager-jbi.jar from path as it doesn't exist dropping /usr/share/netbeans/6.0.1/soa1/modules/ext/jbi/catd.jar from path as it doesn't exist dropping /usr/share/netbeans/6.0.1/soa1/modules/ext/jbi/xmlunit-1.0.jar from path as it doesn't exist dropping /usr/share/netbeans/6.0.1/java1/modules/ext/jaxws21/api/saaj-api.jar from path as it doesn't exist dropping /usr/share/netbeans/6.0.1/java1/modules/ext/jaxws21/saaj-impl.jar from path as it doesn't exist dropping /usr/share/netbeans/6.0.1/java1/modules/ext/jaxws21/FastInfoset.jar from path as it doesn't exist
All the jars being dropped are required to run the test cases in CompApp project. See CompApp project's nbproject/build-impl.xml. > test expects all jars to be present in install dir, if they are in user dir like in this case they are not used/found. Why the jars are in the user dir and not in NB install dir in the first place? Is it possible to set up symlinks from NB install dir to the user dir for all the missing jars?
>Why the jars are in the user dir and not in NB install dir in the first place? Is it possible to set up symlinks from NB >install dir to the user dir for all the missing jars? It is how autoupdate works: Packages are installed under root. Normal user does not have write access to install dir so SOA installed from UC is installed into user dir. This scenario is not specific to packages. Even if user have write access to install dir user can set if he wants to install plugin into install dir (ie. global installation) or user dir. It can be set in Settings tab in Plugin dialog (there is check box "Force install into shared directories" at bottom). Default install target is user dir. So SOA will not work if installed from UC into user dir. Creating symlinks is bad idea IMO. Who would know what symlinks to create? To do this it is necessary to have write access to install dir anyway. Better is to run UC as root and install SOA into install dir if there is no other solution.
Correct solution is to make test work when SOA is installed in user dir. This is valid scenario.
I was asked by Tonda to file separate issue against SOA samples. Issue is #127717.
The fix has been backported into the release601_fixes branch: /cvs/ide/kit/Attic/manifest.mf,v <-- manifest.mf new revision: 1.4.2.1.4.2; previous revision: 1.4.2.1.4.1 /cvs/ide/kit/nbproject/Attic/project.xml,v <-- project.xml new revision: 1.7.2.1.4.2; previous revision: 1.7.2.1.4.1 /cvs/libs/resolver/Attic/manifest.mf,v <-- manifest.mf new revision: 1.4.6.1.4.1; previous revision: 1.4.6.1 /cvs/xml/catalog/nbproject/Attic/project.properties,v <-- project.properties new revision: 1.16.4.1.4.1; previous revision: 1.16.4.1 /cvs/xml/catalog/nbproject/Attic/project.xml,v <-- project.xml new revision: 1.11.8.1; previous revision: 1.11
Created attachment 57461 [details] Diff of fix
Fix is for autoupdate to install Netbeans fork of resolver-1.2 into userdir and unpatched version of xml-catalog. This is workaround for issue #128678.
Verified. I did the following: - installed NB 6.0.1 on Ubuntu from Native packages - installed org-apache-resolver, org-netbeans-modules-xml-catalog, org-netbeans-modules-ide-kit modules - installed SOA and J2EE modules - created Sync Sample, built, deployed it without errors There is still ClassNotFound exception when running the tests - but this is a separate issue.