Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8152207
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T15:38:40+00:00 2026-06-06T15:38:40+00:00

jboss-as-7.1.1, dynamic web module 3.0, JSF 2.0 (Mojarra), Eclipse Indigo sr2 I have an

  • 0

jboss-as-7.1.1, dynamic web module 3.0, JSF 2.0 (Mojarra), Eclipse Indigo sr2

I have an EAR, Ynale.ear, which contains a YnaleImpl.jar and a Ynale.war:

Ynale.ear
  |-YnaleWeb.war
  |   |-META-INF
  |   |   |-MANIFEST.MF:
  |   |         Manifest-Version: 1.0
  |   |         Class-Path: deployment.Ynale.ear.YnaleImpl
  |   |
  |   |-WEB-INF
  |   |   |-beans.xml
  |   |   |       (empty)
  |   |   |
  |   |   |-faces-config.xml:
  |   |   |       <?xml version="1.0" encoding="UTF-8"?>
  |   |   |       <faces-config version="2.0" 
  |   |   |           xmlns="http://java.sun.com/xml/ns/javaee"
  |   |   |           xmlns:xi="http://www.w3.org/2001/XInclude"
  |   |   |           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">
  |   |   |        </faces-config>
  |   |   |
  |   |   |-web.xml:
  |   |          <?xml version="1.0" encoding="UTF-8"?>
  |   |          <web-app version="3.0" 
  |   |              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-app_3_0.xsd">
  |   |              <display-name>YnaleWeb</display-name>
  |   |              <context-param>
  |   |                  <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
  |   |                  <param-value>server</param-value>
  |   |              </context-param>
  |   |              <context-param>
  |   |                  <param-name>primefaces.THEME</param-name>
  |   |                  <param-value>redmond</param-value>
  |   |              </context-param>
  |   |              <servlet>
  |   |                  <servlet-name>Faces Servlet</servlet-name>
  |   |                  <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
  |   |                  <load-on-startup>1</load-on-startup>
  |   |              </servlet>
  |   |              <servlet-mapping>
  |   |                  <servlet-name>Faces Servlet</servlet-name>
  |   |                  <url-pattern>*.jsf</url-pattern>
  |   |              </servlet-mapping>
  |   |              <servlet-mapping>
  |   |                  <servlet-name>Faces Servlet</servlet-name>
  |   |                  <url-pattern>*.xhtml</url-pattern>
  |   |              </servlet-mapping>
  |   |              <session-config>
  |   |                  <session-timeout>300</session-timeout>
  |   |                  <cookie-config>
  |   |                      <name>JSESSIONID</name>
  |   |                  </cookie-config>
  |   |                  <tracking-mode>COOKIE</tracking-mode>
  |   |              </session-config>
  |   |         </web-app>
  |   |
  |   |-Login.xhtml
  |            <!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:h="http://java.sun.com/jsf/html"
  |                xmlns:f="http://java.sun.com/jsf/core"
  |                xmlns:ui="http://java.sun.com/jsf/facelets">
  |            <h:head>
  |                <title>YNALE Log in page</title>
  |            </h:head>
  |            <f:view>
  |                <body>   
  |                    <div>#{textValue.value()}</div>
  |                </body>
  |            </f:view>
  |            </html>
  |
  |-lib
      |-META_INF
      |      jboss-deployment-structure.xml:
      |          <jboss-deployment-structure>
      |              <ear-subdeployments-isolated>false</ear-subdeployments-isolated>
      |              <deployment>
      |                  <dependecies>
      |                      <module name="deployment.Ynale.ear.YnaleImpl" export="true"/>
      |                  </dependencies>
      |              </deployment>
      |              <module name="deployment.Ynale.ear.YnaleImpl" >
      |                  <resources>
      |                      <resource-root path="lib/YnaleImpl.jar" />
      |                  </resources>
      |              </module>
      |          </jboss-deployment-structure>
      |
      |-YnaleImpl.jar:
          |-META-INF
          |     beans.xml:
          |         (empty)
          |     MANIFEST.MF:
          |         Manifest-Version: 1.0
          |
          |-org
              |-ynale
                  |-utils
                      |-TextValue.class
                                package org.ynale.utils;

                                import javax.faces.bean.ManagedBean;
                                import javax.faces.bean.RequestScoped;

                                @ManagedBean
                                @RequestScoped
                                public class TextValue {
                                    public TextValue() {}

                                    public String value() {
                                        return "TextValue";
                                    }
                                }

The Utility.jar has a beans.xml, and on start up the WELD system finds it and logs:

WELD-000106 Bean: Managed Bean [class org.ynale.utils.TextValue] with qualifiers [@Any @Default]

In the Web.war I have login.xhtml which has:

#{textValue.value()}

I get no errors in the log (outputting down to FIN/DEBUG) but textValue.value() is never called. I get no output on my page.

Any ideas?

EDIT: Managed Beans defined inside the WAR itself work fine.

EDIT 2: Sorry, I do have one and forgot to include in the post:

<?xml version="1.0"?>
    <faces-config version="2.0" xmlns="http://java.sun.com/xml/ns/javaee"
        xmlns:xi="http://www.w3.org/2001/XInclude"
        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"/>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T15:38:43+00:00Added an answer on June 6, 2026 at 3:38 pm

    Weld, which is a CDI implementation, doesn’t scan for JSF 2 specific annotations, it only scans for CDI specific annotations like @Named. You have there a JSF 2 specific @ManagedBean annotation instead. For that you need to have a JSF 2 compatible /META-INF/faces-config.xml in the JAR in order to get a JSF 2 web application to scan for classes with JSF 2 specific annotations in the JAR file which is placed in /WEB-INF/lib.

    See also:

    • How to reference JSF managed beans which are provided in a JAR file?
    • Structure for multiple JSF projects with shared code
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Given a web application built using Jboss seam with following details: dynamic web module:
I am using Eclipse (J2EE Galileo) and have created a dynamic web project and
I'm using JBoss AS 7.1 and Hibernate in Eclipse 3.7.2 to build a Dynamic
Under JBoss 4.0.1SP1, I have a servlet that makes multiple, concurrent calls to web
I am running Eclipse 3.5 and JBoss 5.1. I want to create a JSF
I changed my project to use maven2 (from just plain eclipse dynamic web project)
I have installed the latest JBoss AS 7 (7.0.2) and installed the eclipse tools
I'm currently using jboss/maven/eclipse to debug a web app. I've enabled remote debugging in
I have installed Jboss tools for eclipse helios. but when I try to get
I made a Dynamic web project in Eclipse using tomcat 7 (and I used

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.