apache / apache/netbeans

Project disappeared from Netbeans project pane and failing to open when attempted

Open
#6,299 0 comments 0 reactions 0 assignees View on GitHub
kind:bug needs:triage
Dominant language
Java
Stars
3.1k
Forks
935
Avg merge
2d 3h
Merged PRs (30d)
17

Description

### Apache NetBeans version

Apache NetBeans 18

### What happened

Since tomcat server failed to restart throwing error that port 8080 is already in used, I tried killing the process id running on port 8080, using netstat command. Below are the problems occurred after that.
1. Netbeans got closed
2. When I reopened the netbeans, that particular project on which I was working, was not in the Projects pane of Netbeans.
3. When I tried opening the project by selecting the project folder from netbeans File -> open project option, the project didn't open and throwing error as - web pages folder not found. check the project properties. I check the project properties in the nbproject folder and I corrected the required properties - i.e updated the web directory value etc. and then I tried opening the project again, This time it didn't threw that web pages folder not found error, but it threw some other error as failed to execute /setup.
4. I tried all the ways people have suggested on stackoverflow. Nothing worked for me, except creating a new project and then copying the source code and dependencies from my existing project directory.

### How to reproduce

Not sure how to reproduce, But in my case the project got disappeared when I killed the tomcat process id and the netbeans got closed.
And I faced this problem 2 times.

### Did this work correctly in an earlier version?

No / Don't know

### Operating System

windows 10

### JDK

11

### Apache NetBeans packaging

Apache NetBeans provided installer

### Anything else

_No response_

### Are you willing to submit a pull request?

No

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported sequence on Windows 10 with NetBeans 18 and JDK 11: stop the process using port 8080, reopen NetBeans, and try opening the affected project. Inspect the project properties in the nbproject folder and the reported setup failure; done means the project remains available in the Projects pane and opens successfully after the server process is stopped.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.