hhallenyang opened a new issue, #6087:
URL: https://github.com/apache/netbeans/issues/6087

   ### 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:
   <?xml version="1.0" encoding="UTF-8"?>
   <project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
       <modelVersion>4.0.0</modelVersion>
       <parent>
       <artifactId>TestGroup</artifactId>
       <groupId>com.mycompany</groupId>
       <version>1.0-SNAPSHOT</version>
     </parent>
       <groupId>com.mycompany</groupId>
       <artifactId>mavenproject3</artifactId>
       <version>1.0-SNAPSHOT</version>
       <packaging>war</packaging>
       <name>mavenproject3-1.0-SNAPSHOT</name>
       
       <properties>
           <maven.compiler.source>11</maven.compiler.source>
           <maven.compiler.target>11</maven.compiler.target>
           <endorsed.dir>${project.build.directory}/endorsed</endorsed.dir>
           <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
           <failOnMissingWebXml>false</failOnMissingWebXml>
           <jakartaee>10.0.0</jakartaee>
       </properties>
       
       <dependencies>
           <!-- 
https://mvnrepository.com/artifact/org.apache.tomee/jakartaee-api -->
           <dependency>
               <groupId>org.apache.tomee</groupId>
               <artifactId>jakartaee-api</artifactId>
               <version>10.0-M1</version>
           </dependency>
           <dependency>
               <groupId>jakarta.servlet.jsp</groupId>
               <artifactId>jakarta.servlet.jsp-api</artifactId>
               <version>3.1.0</version>
           </dependency>
           
           <!-- 
https://mvnrepository.com/artifact/jakarta.platform/jakarta.jakartaee-web-api 
-->
           <dependency>
               <groupId>jakarta.platform</groupId>
               <artifactId>jakarta.jakartaee-web-api</artifactId>
               <version>${jakartaee}</version>
               <scope>provided</scope>
           </dependency>
           
           <!-- https://mvnrepository.com/artifact/org.glassfish/jakarta.faces 
-->
           <dependency>
               <groupId>org.glassfish</groupId>
               <artifactId>jakarta.faces</artifactId>
               <version>4.0.2</version>
           </dependency>
           <!-- 
https://mvnrepository.com/artifact/jakarta.faces/jakarta.faces-api -->
           <dependency>
               <groupId>jakarta.faces</groupId>
               <artifactId>jakarta.faces-api</artifactId>
               <version>4.0.1</version>
           </dependency>
   
           <dependency>
               <groupId>jakarta.faces</groupId>
               <artifactId>j</artifactId>
               <version>4.0.1</version>
           </dependency>
                        
           <dependency>
               <groupId>jakarta.platform</groupId>
               <artifactId>jakarta.jakartaee-api</artifactId>
               <version>${jakartaee}</version>
               <scope>provided</scope>
           </dependency>
   
           <dependency>
               <groupId>jakarta.xml.bind</groupId>
               <artifactId>jakarta.xml.bind-api</artifactId>
               <version>2.3.3</version>
           </dependency>
           <dependency>
               <groupId>jakarta.persistence</groupId>
               <artifactId>jakarta.persistence-api</artifactId>
               <version>3.0.0</version>
           </dependency>
           <dependency>
               <groupId>jakarta.inject</groupId>
               <artifactId>jakarta.inject-api</artifactId>
               <version>2.0.1</version>
           </dependency>
   
   
           <dependency>
               <groupId>jakarta.ejb</groupId>
               <artifactId>jakarta.ejb-api</artifactId>
               <version>4.0.1</version>
           </dependency>
           <dependency>
               <groupId>jakarta.enterprise</groupId>
               <artifactId>jakarta.enterprise.cdi-api</artifactId>
               <version>2.0.2</version>
               <scope>provided</scope>
           </dependency>
           <dependency>
               <groupId>jakarta.enterprise</groupId>
               <artifactId>jakarta.enterprise.lang-model</artifactId>
               <version>4.0.1</version>
           </dependency>
   
           <dependency>
               <groupId>org.hibernate</groupId>
               <artifactId>hibernate-search-orm</artifactId>
               <version>5.11.12.Final</version>
           </dependency>
   
           <dependency>
               <groupId>org.eclipse.persistence</groupId>
               <artifactId>org.eclipse.persistence.core</artifactId>
               <version>3.0.3</version>
           </dependency>
           <dependency>
               <groupId>org.eclipse.persistence</groupId>
               <artifactId>org.eclipse.persistence.asm</artifactId>
               <version>9.2.0</version>
           </dependency>
           <dependency>
               <groupId>org.eclipse.persistence</groupId>
               <artifactId>org.eclipse.persistence.antlr</artifactId>
               <version>2.7.12</version>
           </dependency>
           <dependency>
               <groupId>org.eclipse.persistence</groupId>
               <artifactId>org.eclipse.persistence.jpa</artifactId>
               <version>3.0.3</version>
           </dependency>
           <dependency>
               <groupId>org.eclipse.persistence</groupId>
               <artifactId>org.eclipse.persistence.jpa.jpql</artifactId>
               <version>3.0.3</version>
           </dependency>
           <dependency>
               <groupId>org.eclipse.persistence</groupId>
               <artifactId>org.eclipse.persistence.moxy</artifactId>
               <version>3.0.3</version>
           </dependency>
           <dependency>
               <groupId>org.eclipse.persistence</groupId>
               <artifactId>jakarta.persistence</artifactId>
               <version>2.2.3</version>
           </dependency>
           <dependency>
               <groupId>org.eclipse.persistence</groupId>
               
<artifactId>org.eclipse.persistence.jpa.modelgen.processor</artifactId>
               <version>3.0.3</version>
               <scope>provided</scope>
           </dependency>
           <dependency>
               <groupId>org.glassfish.main.core</groupId>
               <artifactId>glassfish</artifactId>
               <version>6.2.5</version>
           </dependency>
           <dependency>
               <groupId>org.glassfish.main.common</groupId>
               <artifactId>glassfish-api</artifactId>
               <version>5.0</version>
           </dependency>
   
       </dependencies>
       <build>
           <plugins>
               <plugin>
                   <groupId>org.apache.maven.plugins</groupId>
                   <artifactId>maven-compiler-plugin</artifactId>
                   <version>3.8.1</version>
                   <configuration>
                       <source>11</source>
                       <target>11</target>
                       <compilerArguments>
                           <endorseddirs>${endorsed.dir}</endorseddirs>
                       </compilerArguments>
                   </configuration>
               </plugin>
               <plugin>
                   <groupId>org.apache.maven.plugins</groupId>
                   <artifactId>maven-war-plugin</artifactId>
                   <version>3.3.1</version>
                   <configuration>
                       <failOnMissingWebXml>false</failOnMissingWebXml>
                   </configuration>
               </plugin>
               <plugin>
                   <groupId>org.apache.maven.plugins</groupId>
                   <artifactId>maven-dependency-plugin</artifactId>
                   <version>2.6</version>
                   <executions>
                       <execution>
                           <phase>validate</phase>
                           <goals>
                               <goal>copy</goal>
                           </goals>
                           <configuration>
                               
<outputDirectory>${endorsed.dir}</outputDirectory>
                               <silent>true</silent>
                               <artifactItems>
                                   <artifactItem>
                                       <groupId>jakarta.platform</groupId>
                                       
<artifactId>jakarta.jakartaee-api</artifactId>
                                       <version>${jakartaee}</version>
                                       <type>jar</type>
                                   </artifactItem>
                               </artifactItems>
                           </configuration>
                       </execution>
                   </executions>
               </plugin>
           </plugins>
       </build>
   </project>
   
   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


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to