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 88158 - No code completion available for classes in tomcat common/lib
Summary: No code completion available for classes in tomcat common/lib
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Editor (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-27 15:43 UTC by Erno Mononen
Modified: 2007-01-08 12:54 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 Erno Mononen 2006-10-27 15:43:34 UTC
5.5 RC2

Code completion does not work for libs that are placed in the common/lib 
directory under Tomcat. 

Steps:
1. Copy a jar file to common/lib
2. Create a web app 
3. Create a class and try to use any class from the jar file => there are no 
errors shown and code compiles, but code completion is not available. Note that 
if you attach sources to the jar file, CC seems to work.
Comment 1 Erno Mononen 2006-12-08 15:53:35 UTC
5.5 FCS, GlassFish v1 b13

This seems to apply for GlassFish as well, i.e. if you have a jar file in 
[glassfish_dir]/lib there is no code completion available for classes in that 
jar. What's worse is that usages are shown as errors and that code doesn't 
compile. To reproduce:
1. add a jar file to [glassfish_dir]/lib
2. create a web app, target server GF
3. create a servlet
4. try to use a class from the jar file in the servlet => code doesn't compile

Restarting the IDE doesn't seem to help. 
Comment 2 Marek Fukala 2007-01-08 10:53:53 UTC
Errno, do you mean code completion in JSPs? Does the jar library show in the
project libraries node when the tomcat is set as target server? Is this really
P2? ;-)
Comment 3 Erno Mononen 2007-01-08 11:32:30 UTC
No, I mean in regular Java classes, maybe in JSPs as well (haven't tried). The 
library is shown correctly in the project libraries. About this not being a P2, 
I would definitely agree on upgrading this to P1 (that's what you meant, 
right?:))
Comment 4 Marek Fukala 2007-01-08 12:17:24 UTC
It works for me now, probably fixed by Retouche. I just spotted one think ... I
had to restart IDE after copying the jar file into the commons/lib, without this
it didn't appear in the librarieas and was not on compilation classpath. Maybe
Stepan already knows about this...
Comment 5 Sherold Dev 2007-01-08 12:54:01 UTC
Yes, I know about it, there is an issue filed for it.