Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tomcat source files, opened from Tomcat server source folder, are littered with “cannot find symbol” error #7209

Open
stevaber opened this issue Mar 30, 2024 · 0 comments
Labels
Ant [ci] enable "build tools" tests kind:bug Bug report or fix needs:triage Requires attention from one of the committers

Comments

@stevaber
Copy link

Apache NetBeans version

Apache NetBeans 21

What happened

I registered Tomcat 9 server into NetBeans 21. I added source folder during server registration. Source folder is "java" folder extracted from Tomcat source code distributions zip file. I create Ant based web project with JSF 2.2 library (javax.faces-2.2.20.jar). In debugger I can open java source files through call stack , also I can open java source files through Libraries folder in NetBeans Project window. In debugger brake point and steps through the code are synchronized with Tomcat source files, meaning that debugger finds rights source files. The problem is that all the class references in those Tomcat source files which refers to symbols(class’s) from other Tomcat files in same source folder reports with “cannot find symbol”. Also, which is more annoying, shortcut “go to source” does not work for every class reference in the same Tomcat source folder.

NetBaans source bug

Tomcat registration

Language / Project Type / NetBeans Component

Java Ant Web project

How to reproduce

Install NetBeans from file “Apache-NetBeans-21-bin-windows-x64.exe”. Extract Tomcat 9 server from “apache-tomcat-9.0.86.zip” into windows user root folder e.g. “C:\Users\Stevan\apache-tomcat-9.0.86”. Extract “java” folder from “apache-tomcat-9.0.86-src.zip” into Tomcat server folder e.g. “C:\Users\Stevan\apache-tomcat-9.0.86\java”. Register Tomcat 9 web server into NetBeans with adding source folder e.g. “C:\Users\Stevan\apache-tomcat-9.0.86\java”.

Did this work correctly in an earlier version?

Apache NetBeans 20

Operating System

Windows 10 Pro, AMD 64, 32GB ram, 22H2 os build 19045.4170

JDK

jdk-17_windows-x64_bin Java HotSpot(TM) 64-Bit Server VM (build 17.0.9+11-LTS-201, mixed mode, sharing)

Apache NetBeans packaging

Apache NetBeans provided installer

Anything else

Problem occurs immidiately

Are you willing to submit a pull request?

No

@stevaber stevaber added kind:bug Bug report or fix needs:triage Requires attention from one of the committers labels Mar 30, 2024
@mbien mbien added the Ant [ci] enable "build tools" tests label May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ant [ci] enable "build tools" tests kind:bug Bug report or fix needs:triage Requires attention from one of the committers
Projects
None yet
Development

No branches or pull requests

2 participants