You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by rz...@apache.org on 2024/09/09 07:27:56 UTC

(tomee) branch main updated: Remove deprecated example with jsf managed beans and myfaces tomahawk

This is an automated email from the ASF dual-hosted git repository.

rzo1 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomee.git


The following commit(s) were added to refs/heads/main by this push:
     new ed4a0420ed Remove deprecated example with jsf managed beans and myfaces tomahawk
ed4a0420ed is described below

commit ed4a0420eda45eac5db6dc8c4df0f2b182bad7ae
Author: Richard Zowalla <rz...@apache.org>
AuthorDate: Mon Sep 9 09:27:47 2024 +0200

    Remove deprecated example with jsf managed beans and myfaces tomahawk
---
 examples/jsf-managedBean-and-ejb/README.adoc       | 292 ---------------------
 examples/jsf-managedBean-and-ejb/README_pt.adoc    | 277 -------------------
 examples/jsf-managedBean-and-ejb/pom.xml           | 133 ----------
 .../src/main/java/org/superbiz/jsf/Calculator.java |  24 --
 .../main/java/org/superbiz/jsf/CalculatorBean.java |  61 -----
 .../main/java/org/superbiz/jsf/CalculatorImpl.java |  28 --
 .../src/main/webapp/WEB-INF/faces-config.xml       |  42 ---
 .../src/main/webapp/WEB-INF/web.xml                |  48 ----
 .../src/main/webapp/calculator.xhtml               |  42 ---
 .../src/main/webapp/index.jsp                      |  22 --
 .../src/main/webapp/result.xhtml                   |  38 ---
 11 files changed, 1007 deletions(-)

diff --git a/examples/jsf-managedBean-and-ejb/README.adoc b/examples/jsf-managedBean-and-ejb/README.adoc
deleted file mode 100644
index 2007865b3f..0000000000
--- a/examples/jsf-managedBean-and-ejb/README.adoc
+++ /dev/null
@@ -1,292 +0,0 @@
-:index-group: Misc
-:jbake-type: page
-:jbake-status: status=published
-= JSF Application that uses managed-bean and ejb
-
-This is a simple web-app showing how to use dependency injection in JSF
-managed beans using TomEE.
-
-It contains a Local Stateless session bean `CalculatorImpl` which adds
-two numbers and returns the result. The application also contains a JSF
-managed bean `CalculatorBean`, which uses the EJB to add two numbers and
-display the results to the user. The EJB is injected in the managed bean
-using `@EJB` annotation.
-
-== A little note on the setup:
-
-You could run this in the latest Apache TomEE
-https://repository.apache.org/content/repositories/snapshots/org/apache/tomee/apache-tomee/[snapshot]
-
-As for the libraries, myfaces-api and myfaces-impl are provided in
-tomee/lib and hence they should not be a part of the war. In maven
-terms, they would be with scope `provided'
-
-Also note that we use servlet 2.5 declaration in web.xml
-
-[source,xml]
-----
-<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-xmlns="http://java.sun.com/xml/ns/javaee"
-xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
-xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
-http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
-version="2.5">
-----
-
-And we use 2.0 version of faces-config
-
-The complete source code is provided below but let’s break down to look
-at some smaller snippets and see how it works.
-
-We’ll first declare the `FacesServlet` in the `web.xml`
-
-[source,java]
-----
-  <servlet>
-    <servlet-name>Faces Servlet</servlet-name>
-    <servlet-class>jakarta.faces.webapp.FacesServlet</servlet-class>
-    <load-on-startup>1</load-on-startup>
-  </servlet>
-----
-
-`FacesServlet` acts as the master controller.
-
-We’ll then create the `calculator.xhtml` file.
-
-[source,java]
-----
-       <h:outputText value='Enter first number'/>
-       <h:inputText value='#{calculatorBean.x}'/>
-       <h:outputText value='Enter second number'/>
-       <h:inputText value='#{calculatorBean.y}'/>
-       <h:commandButton action="#{calculatorBean.add}" value="Add"/>
-----
-
-Notice how we’ve use the bean here. By default it is the simple class
-name of the managed bean.
-
-When a request comes in, the bean is instantiated and placed in the
-appropriate scope. By default, the bean is placed in the request scope.
-
-[source,java]
-----
-        <h:inputText value='#{calculatorBean.x}'/>
-----
-
-Here, getX() method of calculatorBean is invoked and the resulting value
-is displayed. x being a Double, we rightly should see 0.0 displayed.
-
-When you change the value and submit the form, these entered values are
-bound using the setters in the bean and then the commandButton-action
-method is invoked.
-
-In this case, `CalculatorBean#add()` is invoked.
-
-`Calculator#add()` delegates the work to the ejb, gets the result,
-stores it and then instructs what view is to be rendered.
-
-You’re right. The return value ``success'' is checked up in faces-config
-navigation-rules and the respective page is rendered.
-
-In our case, `result.xhtml` page is rendered.
-
-The request scoped `calculatorBean` is available here, and we use EL to
-display the values.
-
-== Source
-
-== Calculator
-
-[source,java]
-----
-package org.superbiz.jsf;
-
-import jakarta.ejb.Local;
-
-@Local
-public interface Calculator {
-    public double add(double x, double y);
-}
-----
-
-== CalculatorBean
-
-[source,java]
-----
-package org.superbiz.jsf;
-
-import jakarta.ejb.EJB;
-import jakarta.faces.bean.ManagedBean;
-
-@ManagedBean
-public class CalculatorBean {
-    @EJB
-    Calculator calculator;
-    private double x;
-    private double y;
-    private double result;
-
-    public double getX() {
-        return x;
-    }
-
-    public void setX(double x) {
-        this.x = x;
-    }
-
-    public double getY() {
-        return y;
-    }
-
-    public void setY(double y) {
-        this.y = y;
-    }
-
-    public double getResult() {
-        return result;
-    }
-
-    public void setResult(double result) {
-        this.result = result;
-    }
-
-    public String add() {
-        result = calculator.add(x, y);
-        return "success";
-    }
-}
-----
-
-== CalculatorImpl
-
-[source,java]
-----
-package org.superbiz.jsf;
-
-import jakarta.ejb.Stateless;
-
-@Stateless
-public class CalculatorImpl implements Calculator {
-
-    public double add(double x, double y) {
-        return x + y;
-    }
-}
-----
-
-== web.xml
-
-[source,xml]
-----
-<?xml version="1.0"?>
-
-    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-    xmlns="http://java.sun.com/xml/ns/javaee"
-    xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
-    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
-    http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
-    version="2.5">
-
-    <description>MyProject web.xml</description>
-
-    <!-- Faces Servlet -->
-    <servlet>
-        <servlet-name>Faces Servlet</servlet-name>
-        <servlet-class>jakarta.faces.webapp.FacesServlet</servlet-class>
-        <load-on-startup>1</load-on-startup>
-    </servlet>
-
-    <!-- Faces Servlet Mapping -->
-    <servlet-mapping>
-       <servlet-name>Faces Servlet</servlet-name>
-        <url-pattern>*.jsf</url-pattern>
-    </servlet-mapping>
-
-    <!-- Welcome files -->
-    <welcome-file-list>
-       <welcome-file>index.jsp</welcome-file>
-       <welcome-file>index.html</welcome-file>
-    </welcome-file-list>
-    </web-app>
-----
-
-== Calculator.xhtml
-
-[source,xml]
-----
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
-"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml"
-xmlns:f="http://java.sun.com/jsf/core"
-xmlns:h="http://java.sun.com/jsf/html">
-
-
-<h:body bgcolor="white">
-    <f:view>
-        <h:form>
-            <h:panelGrid columns="2">
-            <h:outputText value='Enter first number'/>
-           <h:inputText value='#{calculatorBean.x}'/>
-            <h:outputText value='Enter second number'/>
-            <h:inputText value='#{calculatorBean.y}'/>
-           <h:commandButton action="#{calculatorBean.add}" value="Add"/>
-            </h:panelGrid>
-        </h:form>
-   </f:view>
-</h:body>
-</html>
-----
-
-== Result.xhtml
-
-[source,xml]
-----
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
-"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml"
-xmlns:f="http://java.sun.com/jsf/core"
-xmlns:h="http://java.sun.com/jsf/html">
-
-<h:body>
-    <f:view>
-        <h:form id="mainForm">
-            <h2><h:outputText value="Result of adding #{calculatorBean.x} and #{calculatorBean.y} is #{calculatorBean.result }"/></h2>
-            <h:commandLink action="back">
-            <h:outputText value="Home"/>
-            </h:commandLink>
-        </h:form>
-    </f:view>
-</h:body>
-</html>
-----
-
-== faces-config.xml
-
-[source,xml]
-----
-<?xml version="1.0"?>
-<faces-config xmlns="http://java.sun.com/xml/ns/javaee"
-xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
-http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"
-version="2.0">
-
-<navigation-rule>
-    <from-view-id>/calculator.xhtml</from-view-id>
-    <navigation-case>
-        <from-outcome>success</from-outcome>
-        <to-view-id>/result.xhtml</to-view-id>
-    </navigation-case>
-</navigation-rule>
-
-<navigation-rule>
-    <from-view-id>/result.xhtml</from-view-id>
-    <navigation-case>
-        <from-outcome>back</from-outcome>
-        <to-view-id>/calculator.xhtml</to-view-id>
-    </navigation-case>
-</navigation-rule>
-</faces-config>
-----
diff --git a/examples/jsf-managedBean-and-ejb/README_pt.adoc b/examples/jsf-managedBean-and-ejb/README_pt.adoc
deleted file mode 100644
index 9a84e32e79..0000000000
--- a/examples/jsf-managedBean-and-ejb/README_pt.adoc
+++ /dev/null
@@ -1,277 +0,0 @@
-:index-group: Misc
-:jbake-type: page
-:jbake-status: status=published
-= Aplicação JSF que usa managed-bean e ejb
-
-Este é um aplicativo Web simples, que mostra como usar a injeção de dependência nos managed beans do JSF usando o TomEE.
-
-Ele contém um bean de sessão Stateless local `CalculatorImpl`, que adiciona dois números e retorna o resultado. O aplicativo também contém um managed beans do JSF `CalculatorBean`, que usa o EJB para adicionar dois números e exibir os resultados ao usuário. O EJB é injetado no managed beans usando a anotação `@ EJB`.
-
-== Uma pequena nota sobre a configuração:
-
-Você pode executar isso no Apache TomEE mais recente
-https://repository.apache.org/content/repositories/snapshots/org/apache/tomee/apache-tomee/[snapshot]
-
-Quanto às bibliotecas, myfaces-api e myfaces-impl são fornecidos em tomee/lib e portanto, não devem fazer parte do war. Em termos práticos, eles estariam com o escopo `provided`
-
-Observe também que usamos a declaração do servlet 2.5 no web.xml
-
-[source,xml]
-----
-<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-xmlns="http://java.sun.com/xml/ns/javaee"
-xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
-xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
-http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
-version="2.5">
-----
-
-E usamos a versão 2.0 do faces-config
-
-O código fonte completo é fornecido abaixo, mas vamos analisar alguns trechos menores e ver como ele funciona.
-
-Primeiro declararemos o `FacesServlet` no `web.xml`
-
-[source,java]
-----
-  <servlet>
-    <servlet-name>Faces Servlet</servlet-name>
-    <servlet-class>jakarta.faces.webapp.FacesServlet</servlet-class>
-    <load-on-startup>1</load-on-startup>
-  </servlet>
-----
-
-O `FacesServlet` atua como o controlador mestre.
-
-Em seguida, criaremos o arquivo `calculator.xhtml`.
-
-[source,java]
-----
-       <h:outputText value='Enter first number'/>
-       <h:inputText value='#{calculatorBean.x}'/>
-       <h:outputText value='Enter second number'/>
-       <h:inputText value='#{calculatorBean.y}'/>
-       <h:commandButton action="#{calculatorBean.add}" value="Add"/>
-----
-
-Observe como usamos o bean aqui. Por padrão, o nome do Managed Bean é o nome da classe.
-
-Quando uma requisição é recebida, o bean é instanciado e colocado no escopo apropriado. Por padrão, o bean é colocado no escopo request.
-
-[source,java]
-----
-        <h:inputText value='#{calculatorBean.x}'/>
-----
-
-Aqui, o método `getX()` de calculatorBean é chamado e o valor resultante é exibido. `x` sendo um double, corretamente duplo, com razão, devemos ver 0.0 exibidos.
-
-Quando você altera o valor e envia o formulário, esses valores inseridos são vinculados usando os setters no bean e, em seguida, o método commandButton-action é chamado.
-
-Nesse caso, `CalculatorBean#add()` é chamado.
-
-`Calculator#add()` delega o trabalho para o ejb, obtém o resultado,
-armazena e depois instrui qual visualização deve ser renderizada.
-
-Você está certo. O valor de retorno `success` é verificado nas regras de navegação faces-config e a respectiva página é renderizada.
-
-No nosso caso, a página `result.xhtml` é renderizada.
-
-O bean com escopo de request `calculatorBean` está disponível aqui e usamos EL para exibir os valores.
-
-== Fonte
-
-== Calculator
-
-[source,java]
-----
-package org.superbiz.jsf;
-
-import jakarta.ejb.Local;
-
-@Local
-public interface Calculator {
-    public double add(double x, double y);
-}
-----
-
-== CalculatorBean
-
-[source,java]
-----
-package org.superbiz.jsf;
-
-import jakarta.ejb.EJB;
-import jakarta.faces.bean.ManagedBean;
-
-@ManagedBean
-public class CalculatorBean {
-    @EJB
-    Calculator calculator;
-    private double x;
-    private double y;
-    private double result;
-
-    public double getX() {
-        return x;
-    }
-
-    public void setX(double x) {
-        this.x = x;
-    }
-
-    public double getY() {
-        return y;
-    }
-
-    public void setY(double y) {
-        this.y = y;
-    }
-
-    public double getResult() {
-        return result;
-    }
-
-    public void setResult(double result) {
-        this.result = result;
-    }
-
-    public String add() {
-        result = calculator.add(x, y);
-        return "success";
-    }
-}
-----
-
-== CalculatorImpl
-
-[source,java]
-----
-package org.superbiz.jsf;
-
-import jakarta.ejb.Stateless;
-
-@Stateless
-public class CalculatorImpl implements Calculator {
-
-    public double add(double x, double y) {
-        return x + y;
-    }
-}
-----
-
-== web.xml
-
-[source,xml]
-----
-<?xml version="1.0"?>
-
-    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-    xmlns="http://java.sun.com/xml/ns/javaee"
-    xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
-    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
-    http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
-    version="2.5">
-
-    <description>MyProject web.xml</description>
-
-    <!-- Faces Servlet -->
-    <servlet>
-        <servlet-name>Faces Servlet</servlet-name>
-        <servlet-class>jakarta.faces.webapp.FacesServlet</servlet-class>
-        <load-on-startup>1</load-on-startup>
-    </servlet>
-
-    <!-- Faces Servlet Mapping -->
-    <servlet-mapping>
-       <servlet-name>Faces Servlet</servlet-name>
-        <url-pattern>*.jsf</url-pattern>
-    </servlet-mapping>
-
-    <!-- Welcome files -->
-    <welcome-file-list>
-       <welcome-file>index.jsp</welcome-file>
-       <welcome-file>index.html</welcome-file>
-    </welcome-file-list>
-    </web-app>
-----
-
-== Calculator.xhtml
-
-[source,xml]
-----
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
-"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml"
-xmlns:f="http://java.sun.com/jsf/core"
-xmlns:h="http://java.sun.com/jsf/html">
-
-
-<h:body bgcolor="white">
-    <f:view>
-        <h:form>
-            <h:panelGrid columns="2">
-            <h:outputText value='Enter first number'/>
-           <h:inputText value='#{calculatorBean.x}'/>
-            <h:outputText value='Enter second number'/>
-            <h:inputText value='#{calculatorBean.y}'/>
-           <h:commandButton action="#{calculatorBean.add}" value="Add"/>
-            </h:panelGrid>
-        </h:form>
-   </f:view>
-</h:body>
-</html>
-----
-
-== Result.xhtml
-
-[source,xml]
-----
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
-"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml"
-xmlns:f="http://java.sun.com/jsf/core"
-xmlns:h="http://java.sun.com/jsf/html">
-
-<h:body>
-    <f:view>
-        <h:form id="mainForm">
-            <h2><h:outputText value="Result of adding #{calculatorBean.x} and #{calculatorBean.y} is #{calculatorBean.result }"/></h2>
-            <h:commandLink action="back">
-            <h:outputText value="Home"/>
-            </h:commandLink>
-        </h:form>
-    </f:view>
-</h:body>
-</html>
-----
-
-== faces-config.xml
-
-[source,xml]
-----
-<?xml version="1.0"?>
-<faces-config xmlns="http://java.sun.com/xml/ns/javaee"
-xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
-http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"
-version="2.0">
-
-<navigation-rule>
-    <from-view-id>/calculator.xhtml</from-view-id>
-    <navigation-case>
-        <from-outcome>success</from-outcome>
-        <to-view-id>/result.xhtml</to-view-id>
-    </navigation-case>
-</navigation-rule>
-
-<navigation-rule>
-    <from-view-id>/result.xhtml</from-view-id>
-    <navigation-case>
-        <from-outcome>back</from-outcome>
-        <to-view-id>/calculator.xhtml</to-view-id>
-    </navigation-case>
-</navigation-rule>
-</faces-config>
-----
diff --git a/examples/jsf-managedBean-and-ejb/pom.xml b/examples/jsf-managedBean-and-ejb/pom.xml
deleted file mode 100644
index f30f50a45b..0000000000
--- a/examples/jsf-managedBean-and-ejb/pom.xml
+++ /dev/null
@@ -1,133 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
--->
-<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/maven-v4_0_0.xsd">
-  <modelVersion>4.0.0</modelVersion>
-  <groupId>org.superbiz.jsf</groupId>
-  <artifactId>jsf-managedBean-and-ejb</artifactId>
-  <packaging>war</packaging>
-  <name>TomEE :: Web Examples :: JSF - ManangedBean and EJB</name>
-  <version>10.0.0-M3-SNAPSHOT</version>
-  <url>http://tomee.apache.org</url>
-  <properties>
-    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-    <version.myfaces-api>4.0.2</version.myfaces-api>
-  </properties>
-  <build>
-    <finalName>jsf-managedBean-and-ejb</finalName>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-compiler-plugin</artifactId>
-        <version>3.13.0</version>
-        <configuration>
-          <source>1.8</source>
-          <target>1.8</target>
-        </configuration>
-      </plugin>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-war-plugin</artifactId>
-        <version>3.4.0</version>
-        <configuration>
-          <failOnMissingWebXml>false</failOnMissingWebXml>
-        </configuration>
-      </plugin>
-      <plugin>
-        <groupId>org.apache.tomee.maven</groupId>
-        <artifactId>tomee-maven-plugin</artifactId>
-        <version>10.0.0-M3-SNAPSHOT</version>
-      </plugin>
-      
-    </plugins>
-  </build>
-  <repositories>
-    <repository>
-      <releases>
-        <enabled>false</enabled>
-      </releases>
-      <snapshots />
-      <id>apache-maven-snapshots</id>
-      <url>https://repository.apache.org/content/groups/snapshots</url>
-    </repository>
-  </repositories>
-  <dependencies>
-    <dependency>
-      <groupId>org.apache.myfaces.core</groupId>
-      <artifactId>myfaces-api</artifactId>
-      <version>${version.myfaces-api}</version>
-      <scope>compile</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.myfaces.core</groupId>
-      <artifactId>myfaces-impl</artifactId>
-      <version>${version.myfaces-api}</version>
-      <scope>provided</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.myfaces.tomahawk</groupId>
-      <artifactId>tomahawk20</artifactId>
-      <version>1.1.14</version>
-      <scope>runtime</scope>
-      <exclusions>
-        <exclusion>
-          <groupId>javax.servlet</groupId>
-          <artifactId>jstl</artifactId>
-        </exclusion>
-        <exclusion>
-          <artifactId>xmlParserAPIs</artifactId>
-          <groupId>xml-apis</groupId>
-        </exclusion>
-      </exclusions>
-    </dependency>
-    <dependency>
-      <groupId>javax.servlet</groupId>
-      <artifactId>jstl</artifactId>
-      <version>1.2</version>
-      <scope>provided</scope>
-    </dependency>
-    <dependency>
-      <groupId>junit</groupId>
-      <artifactId>junit</artifactId>
-      <version>4.13.2</version>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.tomee</groupId>
-      <artifactId>jakartaee-api</artifactId>
-      <version>10.0-M2</version>
-      <scope>provided</scope>
-    </dependency>
-  </dependencies>
-  <!--
-  This section allows you to configure where to publish libraries for sharing.
-  It is not required and may be deleted.  For more information see:
-  http://maven.apache.org/plugins/maven-deploy-plugin/
-  -->
-  <distributionManagement>
-    <repository>
-      <id>localhost</id>
-      <url>file://${basedir}/target/repo/</url>
-    </repository>
-    <snapshotRepository>
-      <id>localhost</id>
-      <url>file://${basedir}/target/snapshot-repo/</url>
-    </snapshotRepository>
-  </distributionManagement>
-</project>
diff --git a/examples/jsf-managedBean-and-ejb/src/main/java/org/superbiz/jsf/Calculator.java b/examples/jsf-managedBean-and-ejb/src/main/java/org/superbiz/jsf/Calculator.java
deleted file mode 100644
index f8a214efcb..0000000000
--- a/examples/jsf-managedBean-and-ejb/src/main/java/org/superbiz/jsf/Calculator.java
+++ /dev/null
@@ -1,24 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.superbiz.jsf;
-
-import jakarta.ejb.Local;
-
-@Local
-public interface Calculator {
-    double add(double x, double y);
-}
diff --git a/examples/jsf-managedBean-and-ejb/src/main/java/org/superbiz/jsf/CalculatorBean.java b/examples/jsf-managedBean-and-ejb/src/main/java/org/superbiz/jsf/CalculatorBean.java
deleted file mode 100644
index 8cf42935e2..0000000000
--- a/examples/jsf-managedBean-and-ejb/src/main/java/org/superbiz/jsf/CalculatorBean.java
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
-*/
-package org.superbiz.jsf;
-
-import jakarta.annotation.ManagedBean;
-import jakarta.ejb.EJB;
-
-@ManagedBean
-public class CalculatorBean {
-
-    @EJB
-    Calculator calculator;
-    private double x;
-    private double y;
-    private double result;
-
-    public double getX() {
-        return x;
-    }
-
-    public void setX(double x) {
-        this.x = x;
-    }
-
-    public double getY() {
-        return y;
-    }
-
-    public void setY(double y) {
-        this.y = y;
-    }
-
-    public double getResult() {
-        return result;
-    }
-
-    public void setResult(double result) {
-        this.result = result;
-    }
-
-    public String add() {
-        result = calculator.add(x, y);
-        return "success";
-    }
-}
\ No newline at end of file
diff --git a/examples/jsf-managedBean-and-ejb/src/main/java/org/superbiz/jsf/CalculatorImpl.java b/examples/jsf-managedBean-and-ejb/src/main/java/org/superbiz/jsf/CalculatorImpl.java
deleted file mode 100644
index 86e0deee3e..0000000000
--- a/examples/jsf-managedBean-and-ejb/src/main/java/org/superbiz/jsf/CalculatorImpl.java
+++ /dev/null
@@ -1,28 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.superbiz.jsf;
-
-import jakarta.ejb.Stateless;
-
-@Stateless
-public class CalculatorImpl implements Calculator {
-
-    public double add(double x, double y) {
-        return x + y;
-    }
-
-}
diff --git a/examples/jsf-managedBean-and-ejb/src/main/webapp/WEB-INF/faces-config.xml b/examples/jsf-managedBean-and-ejb/src/main/webapp/WEB-INF/faces-config.xml
deleted file mode 100644
index ede89f19c8..0000000000
--- a/examples/jsf-managedBean-and-ejb/src/main/webapp/WEB-INF/faces-config.xml
+++ /dev/null
@@ -1,42 +0,0 @@
-<?xml version="1.0"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
--->
-
-<faces-config xmlns="http://java.sun.com/xml/ns/javaee"
-              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-              xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
-      http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"
-              version="2.0">
-
-  <navigation-rule>
-    <from-view-id>/calculator.xhtml</from-view-id>
-    <navigation-case>
-      <from-outcome>success</from-outcome>
-      <to-view-id>/result.xhtml</to-view-id>
-    </navigation-case>
-  </navigation-rule>
-
-  <navigation-rule>
-    <from-view-id>/result.xhtml</from-view-id>
-    <navigation-case>
-      <from-outcome>back</from-outcome>
-      <to-view-id>/calculator.xhtml</to-view-id>
-    </navigation-case>
-  </navigation-rule>
-</faces-config>
\ No newline at end of file
diff --git a/examples/jsf-managedBean-and-ejb/src/main/webapp/WEB-INF/web.xml b/examples/jsf-managedBean-and-ejb/src/main/webapp/WEB-INF/web.xml
deleted file mode 100644
index 4f076eec97..0000000000
--- a/examples/jsf-managedBean-and-ejb/src/main/webapp/WEB-INF/web.xml
+++ /dev/null
@@ -1,48 +0,0 @@
-<?xml version="1.0"?>
-
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
--->
-<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-         xmlns="http://java.sun.com/xml/ns/javaee"
-         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
-      http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
-         version="2.5">
-
-  <description>MyProject web.xml</description>
-
-  <!-- Faces Servlet -->
-  <servlet>
-    <servlet-name>Faces Servlet</servlet-name>
-    <servlet-class>jakarta.faces.webapp.FacesServlet</servlet-class>
-    <load-on-startup>1</load-on-startup>
-  </servlet>
-
-  <!-- Faces Servlet Mapping -->
-  <servlet-mapping>
-    <servlet-name>Faces Servlet</servlet-name>
-    <url-pattern>*.jsf</url-pattern>
-  </servlet-mapping>
-
-  <!-- Welcome files -->
-  <welcome-file-list>
-    <welcome-file>index.jsp</welcome-file>
-    <welcome-file>index.html</welcome-file>
-  </welcome-file-list>
-
-</web-app>
diff --git a/examples/jsf-managedBean-and-ejb/src/main/webapp/calculator.xhtml b/examples/jsf-managedBean-and-ejb/src/main/webapp/calculator.xhtml
deleted file mode 100644
index 40979b1f1b..0000000000
--- a/examples/jsf-managedBean-and-ejb/src/main/webapp/calculator.xhtml
+++ /dev/null
@@ -1,42 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-* Licensed to the Apache Software Foundation (ASF) under one
-* or more contributor license agreements. See the NOTICE file
-* distributed with this work for additional information
-* regarding copyright ownership. The ASF licenses this file
-* to you under the Apache License, Version 2.0 (the
-* "License"); you may not use this file except in compliance
-* with the License. You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing,
-* software distributed under the License is distributed on an
-* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-* KIND, either express or implied. See the License for the
-* specific language governing permissions and limitations
-* under the License.
--->
-
-
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
-    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml"
-      xmlns:f="http://java.sun.com/jsf/core"
-      xmlns:h="http://java.sun.com/jsf/html">
-
-
-<h:body bgcolor="white">
-  <f:view>
-    <h:form>
-      <h:panelGrid columns="2">
-        <h:outputText value='Enter first number'/>
-        <h:inputText value='#{calculatorBean.x}'/>
-        <h:outputText value='Enter second number'/>
-        <h:inputText value='#{calculatorBean.y}'/>
-        <h:commandButton action="#{calculatorBean.add}" value="Add"/>
-      </h:panelGrid>
-    </h:form>
-  </f:view>
-</h:body>
-</html>
diff --git a/examples/jsf-managedBean-and-ejb/src/main/webapp/index.jsp b/examples/jsf-managedBean-and-ejb/src/main/webapp/index.jsp
deleted file mode 100644
index 5b2b11b6b4..0000000000
--- a/examples/jsf-managedBean-and-ejb/src/main/webapp/index.jsp
+++ /dev/null
@@ -1,22 +0,0 @@
-<!--
-* Licensed to the Apache Software Foundation (ASF) under one
-* or more contributor license agreements. See the NOTICE file
-* distributed with this work for additional information
-* regarding copyright ownership. The ASF licenses this file
-* to you under the Apache License, Version 2.0 (the
-* "License"); you may not use this file except in compliance
-* with the License. You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing,
-* software distributed under the License is distributed on an
-* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-* KIND, either express or implied. See the License for the
-* specific language governing permissions and limitations
-* under the License.
--->
-<%@ page session="false" %>
-<%
-  response.sendRedirect("calculator.jsf");
-%>
\ No newline at end of file
diff --git a/examples/jsf-managedBean-and-ejb/src/main/webapp/result.xhtml b/examples/jsf-managedBean-and-ejb/src/main/webapp/result.xhtml
deleted file mode 100644
index 02309efdae..0000000000
--- a/examples/jsf-managedBean-and-ejb/src/main/webapp/result.xhtml
+++ /dev/null
@@ -1,38 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-* Licensed to the Apache Software Foundation (ASF) under one
-* or more contributor license agreements. See the NOTICE file
-* distributed with this work for additional information
-* regarding copyright ownership. The ASF licenses this file
-* to you under the Apache License, Version 2.0 (the
-* "License"); you may not use this file except in compliance
-* with the License. You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing,
-* software distributed under the License is distributed on an
-* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-* KIND, either express or implied. See the License for the
-* specific language governing permissions and limitations
-* under the License.
--->
-
-
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
-    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml"
-      xmlns:f="http://java.sun.com/jsf/core"
-      xmlns:h="http://java.sun.com/jsf/html">
-
-<h:body>
-  <f:view>
-    <h:form id="mainForm">
-      <h2>Result of adding #{calculatorBean.x} and #{calculatorBean.y} is #{calculatorBean.result }</h2>
-      <h:commandLink action="back">
-        <h:outputText value="Home"/>
-      </h:commandLink>
-    </h:form>
-  </f:view>
-</h:body>
-</html>
\ No newline at end of file