4 Replies Latest reply on Jun 21, 2013 4:37 AM by wallygc

    Problem with Webbeans on jboss-5.0.1.GA

      Hi, i'm just starting to use Webbeans and i'm folowing the example from the book Apress Beginning JSF.2 APIs And JBoss Seam.
      Is justa a  basic example that just call a webbeans using the annotation @Named but for some reason my jsf page can't manage to access the webbeans.
      I'd like to inform that i'm using jboss-5.0.1.GA, Ant 1.8.2 and webbeans-1.0.0.PREVIEW1, i have already installed the webbeans and also did the Ant update as recomended by the book to establish the connection between the jboss and webbeans as well as the configuration of the JBOSS.HOME in the beans.properties from the webbeans api.
      On my stacktrace doesn't come up any error message but doesn't happen anything when i try to access the page. I did try to put a break point on the method getSubject on the class GreetingService but it doesn't stop anyhow.

      Any sugestion would be great

      This is my webbeans which i'm pretending to access:

      package hello;

      import javax.annotation.Named;
      import javax.context.RequestScoped;

      public class GreetingService {

      public String getSubject() {
      return "Gustavo Webbeans succeed!!!";

      This is my jsf page:

      <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
      <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
      <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>

      <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
      <title>Hello world!!!</title>
      <hutputLabel value="Hello, lets give it a try"/>
      <hutputLabel value="#{foo.subject}"/>

      This is the configuration of my web.xml:

      <?xml version="1.0" encoding="UTF-8"?>
      <web-app xmlnssi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">

      I'm not sure if really need to define this listener tag because when i take it off doesn't effect anything at all.

      Many Thanks...