Cannot be generated because EJB Lite classes are not available on project classpath.
- 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
After successfully created Entity classes from Database, I try to create New JSF Pages from Entity Classes. I can see the Entity Classes and I could move them to the Selected Entity Classes panel. I need to select Finish command to create the JSF Pages. However, Finish command is disabled. I see this error message "Cannot be generated because EJB Lite classes are not available on project classpath." in red at the bottom.
### How to reproduce
Step 1: Create a new web application project by clicking "Java with Maven" -> "Web Application", then select project name and location as usual. In Setting, select GlassFish server version 7.0.5 and Java EE 10 web. Then I created the project. After that, I added dependencies in POM file as below.
Step 2:
4.0.0
TestGroup
com.mycompany
1.0-SNAPSHOT
com.mycompany
mavenproject3
1.0-SNAPSHOT
war
mavenproject3-1.0-SNAPSHOT
11
11
${project.build.directory}/endorsed
UTF-8
false
10.0.0
org.apache.tomee
jakartaee-api
10.0-M1
jakarta.servlet.jsp
jakarta.servlet.jsp-api
3.1.0
jakarta.platform
jakarta.jakartaee-web-api
${jakartaee}
provided
org.glassfish
jakarta.faces
4.0.2
jakarta.faces
jakarta.faces-api
4.0.1
jakarta.faces
j
4.0.1
jakarta.platform
jakarta.jakartaee-api
${jakartaee}
provided
jakarta.xml.bind
jakarta.xml.bind-api
2.3.3
jakarta.persistence
jakarta.persistence-api
3.0.0
jakarta.inject
jakarta.inject-api
2.0.1
jakarta.ejb
jakarta.ejb-api
4.0.1
jakarta.enterprise
jakarta.enterprise.cdi-api
2.0.2
provided
jakarta.enterprise
jakarta.enterprise.lang-model
4.0.1
org.hibernate
hibernate-search-orm
5.11.12.Final
org.eclipse.persistence
org.eclipse.persistence.core
3.0.3
org.eclipse.persistence
org.eclipse.persistence.asm
9.2.0
org.eclipse.persistence
org.eclipse.persistence.antlr
2.7.12
org.eclipse.persistence
org.eclipse.persistence.jpa
3.0.3
org.eclipse.persistence
org.eclipse.persistence.jpa.jpql
3.0.3
org.eclipse.persistence
org.eclipse.persistence.moxy
3.0.3
org.eclipse.persistence
jakarta.persistence
2.2.3
org.eclipse.persistence
org.eclipse.persistence.jpa.modelgen.processor
3.0.3
provided
org.glassfish.main.core
glassfish
6.2.5
org.glassfish.main.common
glassfish-api
5.0
org.apache.maven.plugins
maven-compiler-plugin
3.8.1
11
11
${endorsed.dir}
org.apache.maven.plugins
maven-war-plugin
3.3.1
false
org.apache.maven.plugins
maven-dependency-plugin
2.6
validate
copy
${endorsed.dir}
true
jakarta.platform
jakarta.jakartaee-api
${jakartaee}
jar
Step 3:
Connect to MySQL database and created entity classes from my database successfully.
Step 4:
I want to create JSF pages from Entity Classes but I could not do it because of the error message I mentioned.
### Did this work correctly in an earlier version?
No / Don't know
### Operating System
Windows 10
### JDK
Open JDK17
### Apache NetBeans packaging
Apache NetBeans provided installer
### Anything else
THis happen everytime.
### Are you willing to submit a pull request?
No
Contributor guide
Research direction
Start at the New JSF Pages from Entity Classes wizard and trace the EJB Lite availability check for the reported Maven Java EE 10 project. Reproduce the disabled Finish command with the supplied dependencies; done means the wizard recognizes the required classes and creates the JSF pages.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100