Skip to content

Netbeans Add JSF Framework not working #7685

Open

Description

@Niggy148

Apache NetBeans version

Apache NetBeans 22

What happened

I have Netbeans 22 and JDK 21 In properties framework I have selected Java Server Faces. The Ok button goes gray I am no longer able to continue Can you help?

In the Projects window, right-click your project node and choose Properties to open the Project Properties window. Select the Frameworks category and then click the Add button. Select JavaServer Faces in the Add a Framework dialog box. Click OK. I have tried the above, but the ok button isn't working

Language / Project Type / NetBeans Component

No response

How to reproduce

Already explained.

Did this work correctly in an earlier version?

No / Don't know

Operating System

Ubuntu 24.04

JDK

JDK 21

Apache NetBeans packaging

Apache NetBeans Snap Package

Anything else

No response

Are you willing to submit a pull request?

No

Activity

  1. added
    kind:bug
    needs:triage
    on Aug 18, 2024
  2. JOFINSOL commented on Aug 21, 2024

    @JOFINSOL

    The same mistake using NetBeans 22 and jdk 17 with glassfish 17.0.14 when add Java Server Faces my app don't ejecute

  3. JOFINSOL commented on Aug 21, 2024

    @JOFINSOL

    My solution: First updating maven repository into Services, option LOCAL AND CENTRAL

    1. create beans.xml into WEB-INF

    //
    //<beans xmlns="http://xmlns.jcp.org/xml/ns/javaee"
    // xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    // xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
    // http://xmlns.jcp.org/xml/ns/javaee/beans_1_1.xsd"
    // bean-discovery-mode="all">
    //

    1. my WEB.XML
    <web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
                                 http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
             version="3.1">
        <welcome-file-list>
            <welcome-file>index.xhtml</welcome-file>
      </welcome-file-list>
        
       <servlet>
       <servlet-name>FacesServlet</servlet-name>
       <servlet-class>jakarta.faces.webapp.FacesServlet</servlet-class>
       <load-on-startup>1</load-on-startup>
    </servlet>
    
    <servlet-mapping>
    <servlet-name>FacesServlet</servlet-name>
    <url-pattern>*.xhtml</url-pattern>
    <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>
      
    </web-app>
    
    1. In library add jar: JAKARTA.FACES-API-3.0.0.JAR

    Clean and build then deploy

  4. Chris2011 commented on Nov 4, 2024

    @Chris2011
    Contributor

    @Niggy148 So as I undetsand it correct, it is about JSF not JS (JavaScript), right?

  5. Niggy148 commented on Nov 4, 2024

    @Niggy148
    Author
  6. changed the title [-]Netbeans Add JS Framework not working[/-] [+]Netbeans Add JSF Framework not working[/+] on Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind:bugneeds:triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions