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 199712 - Unable to associate javadocs folder to oracle glassfish 3 library
Summary: Unable to associate javadocs folder to oracle glassfish 3 library
Status: RESOLVED WORKSFORME
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 7.0
Hardware: Other Linux
: P3 normal (vote)
Assignee: Vince Kraemer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-26 23:50 UTC by mk.mahfouz
Modified: 2013-04-15 13:15 UTC (History)
1 user (show)

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 mk.mahfouz 2011-06-26 23:50:43 UTC
I get a 'javadoc not found' for all java ee 6 methods and classes during auto completion, within the navigator and within the Javadoc window. I tried adding the api folder using the library manager, the entry does appear in the Java-EE-GlassFish-v3.xml configuration file, but still doesn't work. When I restart the IDE the resource tag pointing to the api folder dissapears from the configuration file, looks like the IDE overwrites it whenever it is started.

Product Version = NetBeans IDE 7.0 (Build 201104080000)
Operating System = Linux version 2.6.38-8-generic running on i386
Java; VM; Vendor = 1.6.0_24
Runtime = Java HotSpot(TM) Client VM 19.1-b02
Comment 1 Tomas Zezula 2012-05-11 09:35:01 UTC
Probably already fixed, the GS provides javadoc in library it generates.
But if it rewrites the library definition every time the IDE is started as described in the report it should be fixed.
Comment 2 TomasKraus 2012-11-20 15:22:55 UTC
I'm trying sample Java EE application with Servlet using GlassFish 3.1.2.2 and last NetBeans 7.3 build. I see Java EE related javadoc and auto completion also works fine.

Closing this issue because it seems to be already fixed in 7.3. Feel free to reopen it if you still see the problem with NetBeans 7.3 beta releases or future release.
Comment 3 t_gergely 2013-03-29 16:55:05 UTC
I'm using NetBeans 7.3 and having the same 'javadoc not found' problem.

When I add "C:/Greg/java/glassfish-3.1.2.2-ml/glassfish" as a server, the generated Java-EE-GlassFish-v3.xml has no javadoc:
"    <volume>
        <type>javadoc</type>
    </volume>"

I tried to edit is as follows, restarting, still no joy:

"    <volume>
        <type>javadoc</type>
        <resource>jar:file:/C:/Greg/java/doc/javadoc-6.0.1.jar!/</resource>
    </volume>"

I don't find the right place in NetBeans IDE to configure javadoc for GlassFish. No such tab in Tools/Servers and no "GlassFish Server 3+" in Tools/Ant Libraries.

Context help for eg. ServletContextListener:
"javax.​servlet
public interface ServletContextListener extends EventListener
Javadoc not found. Either Javadoc documentation for this item does not exist or there is no attached Javadoc to the JAR file containing this item:C:\Greg\java\glassfish-3.1.2.2-ml\glassfish\modules\javax.servlet-api.jar
Attach Javadoc..."

"Attach Javadoc..." does not work, either: I browse "C:\Greg\java\doc\javadoc-6.0.1.jar", press OK, then nothing happens. Where is it supposed to store this setting?
Comment 4 t_gergely 2013-04-15 13:15:30 UTC
(In reply to comment #3)

After removing all the Server Libraries in Ant Library Manager, javadoc works finally.