diff --git a/pom.xml b/pom.xml index 13de472..1729f88 100644 --- a/pom.xml +++ b/pom.xml @@ -1,5 +1,4 @@ - 4.0.0 com.microsoft @@ -8,39 +7,44 @@ war Sample JSF App - - - - com.sun.faces - jsf-api - 2.2.14 - - - com.sun.faces - jsf-impl - 2.2.14 - - - javax.servlet - javax.servlet-api - 3.1.0 - - - - - -ROOT - - - org.apache.maven.plugins - maven-compiler-plugin - 3.6.2 - - - 1.8 - 1.8 - - - - + + + + com.sun.faces + jsf-api + 2.2.14 + + + com.sun.faces + jsf-impl + 2.2.14 + + + javax.servlet + javax.servlet-api + 3.1.0 + + + + org.jboss.weld.servlet + weld-servlet-shaded + 3.0.5.Final + + + + + ROOT + + + org.apache.maven.plugins + maven-compiler-plugin + 3.6.2 + + + 1.8 + 1.8 + + + + diff --git a/src/main/java/bean/HelloBean.java b/src/main/java/bean/HelloBean.java index bfcc377..80b1c5d 100644 --- a/src/main/java/bean/HelloBean.java +++ b/src/main/java/bean/HelloBean.java @@ -2,17 +2,18 @@ import java.io.Serializable; -import javax.faces.bean.ManagedBean; -import javax.faces.bean.SessionScoped; +import javax.enterprise.context.SessionScoped; +import javax.inject.Named; -@ManagedBean +@Named @SessionScoped -public class HelloBean implements Serializable{ +public class HelloBean implements Serializable { private static final long serialVersionUID = -4823295172962937652L; private String message = "Your Java app is up and running on Azure"; - + + public String getMessage() { return message; } diff --git a/src/main/webapp/WEB-INF/beans.xml b/src/main/webapp/WEB-INF/beans.xml new file mode 100644 index 0000000..e69de29