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.
I don't know whose responsibility is this but there is missing javadoc in code completion for Java EE 6/5 APIs. To reproduce: - create Java EE 6 web project - select GlassFish V3 as target server - ceate anything: servlet, web service, session bean - the CC works but javadoc is missing Note: javadoc in CC is working when Tomcat or GlassFish V2 is selected.
Seems like GFv3 is adding a library "Java-EE-GlassFish-v3". Query for javadoc hits this library, but the library does not have any associated javadoc. At least this what I saw in debugger.
I see this issue also when I don't have v3 registered, and create an app against Tomcat.
I have no problem with Tomcat, at least CC with javadoc works for javax.servlet API.
When you look into NB_USER_DIR/config/org-netbeans-api-project-libraries/Libraries/Java-EE-GlassFish-v3.xml there is no javadoc specified
Hmm. ok. this is easy to fix. I am a bit surprised that the javadoc search would stop at the first hit... null or not... which is what this implies. oh well.
Integrated into 'main-golden', will be available in build *200909241442* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/b8682e1c1575 User: vince kraemer <vkraemer@netbeans.org> Log: #172851 and #172866: library issues
in the nightly
*** Issue 172515 has been marked as a duplicate of this issue. ***
I tried verifying this in RC1, but it still wasn't working for me. To reproduce what I'm trying to do: HttpSession session = null; session. After the '.' wait a second and autocomplete will show the methods available. Click on one of the ones that pertains to HttpSession (not just Object) and the Javadoc should be shown. I get "Javadoc not found". I checked the Java-EE-GlassFish-v3.xml in my .netbeas/6.8rc1/... folder and it had this entry: <volume> <type>javadoc</type> <resource>jar:file:/C:/Program%20Files/NetBeans%20Dev%20200911220201/enterprise6/docs/javaee6-doc-api.zip!/</resource> </volume> At the time I first ran RC1, I did have that build installed, but I had deleted everything out of my .netbeans folder first. I tried changing the entry to jar:file:/C:/Program%20Files/NetBeans%206.8%20RC1/enterprise6/docs/javaee6-doc-api.zip!/ with no effect. Next I uninstalled every build except for RC1, deleted everything out of my .netbeans folder and started NB again; the entry changed back to jar:file:/C:/Program%20Files/NetBeans%20Dev%20200911220201/enterprise6/docs/javaee6-doc-api.zip!/. Finally I deleted the .netbeans folder completely, uninstalled every build, searched the registry for "netbeans" and reinstalled RC1. This time I didn't import my options in. The entry is now <resource>jar:file:/C:/Program%20Files/NetBeans%206.8%20RC1/enterprise6/docs/javaee6-doc-api.zip!/</resource>, which should be correct, and the doc file is present. It still doesn't work. Messages.log doesn't show much except a warning: WARNING [org.openide.text.CloneableEditorSupport]: org.netbeans.modules.xml.text.TextEditorSupport should override asynchronousOpen(). See http://bits.netbeans.org/dev/javadoc/org-openide-text/apichanges.html#CloneableEditorSupport.asynchronousOpen
Perhaps there is something wrong with your project classpath. Can you share the project? Can you test with clean userdir & new project?
I just pulled from release68 and did a build. I started the ide with a clean userdir I registered v3 b74. I created a java EE 6 web app that targets v3. I did the test described in https://netbeans.org/bugzilla/show_bug.cgi?id=172851#c9 and could not reproduce the issue. I am on Solaris though... so that might contribute to my success.
Try with 12/02 build and cound't reproduce the problem/ Created a Servlet -> add HttpSession and was able view the java Doc for any methods I select.
I just did some testing on Windows Vista with 6.8 rc1... and I am still not able to replicate the issue. Please update the issue with the info that phejl requested.
pushing up a level to see if other folks can reproduce this
I can confirm this issue on Polish version on Windows XP and NetBeans 6.8. Editor can't find JavaDoc for some libraries (javax tree of libs for example). I am new to Java world and I am not sure how could I help to find this bug.
Need reliable steps to reproduce, currently can not reproduce - marking as INCOMPLETE. If anyone can provide reliable steps, please attach them here and reopen. Thanks.