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 6672135
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:28:21+00:00 2026-05-26T03:28:21+00:00

I have a WAR file with the following structure: The JSF managed bean BusinessObjectTypeListController

  • 0

I have a WAR file with the following structure:

enter image description here

The JSF managed bean BusinessObjectTypeListController is located in commons-web-1.0.jar in /WEB-INF/lib and referenced in BusinessObjectTypeListView.xhtml. When I run my web application and I call that view, I get the following error:

javax.servlet.ServletException: /view/common/businessObjectTypeListView.xhtml @34,94 listener=”#{businessObjectTypeListController.selectData}”: Target Unreachable, identifier ‘businessObjectTypeListController’ resolved to null

Why isn’t the controller class found? It should be in the classpath, is it?

  • 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-05-26T03:28:21+00:00Added an answer on May 26, 2026 at 3:28 am

    You need to have a JSF 2.0 compliant /META-INF/faces-config.xml file in the commons-web-1.0.jar file in order to get JSF to scan the JAR file for classes with JSF annotations like @ManagedBean and auto-register them.

    <?xml version="1.0" encoding="UTF-8"?>
    <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">
    </faces-config>
    

    JSF does namely not scan every class of every single JAR file in the classpath, that would have been too expensive. Only JARs with the above /META-INF/faces-config.xml file will be scanned.

    You should also ensure that you do not have the metadata-complete="true" attribute in the <faces-config> declaration of webapp’s own /WEB-INF/faces-config.xml file, otherwise JSF will assume that this faces config is complete and therefore won’t auto-scan JAR files for annotations.

    If none of those conditions are (or can be) met, then you need to manually register the bean as <managed-bean> in webapp’s own /WEB-INF/faces-config.xml instead of relying on annotations.

    See also chapter 11.4.2 of JSF 2.0 specification (emphasis mine).

    11.4.2 Application Startup Behavior

    …

    This algorithm provides considerable flexibility for developers that are assembling the components of a JSF-based web
    application. For example, an application might include one or more custom UIComponent implementations, along with
    associated Renderers, so it can declare them in an application resource named “/WEB-INF/faces-config.xml”
    with no need to programmatically register them with Application instance. In addition, the application might choose
    to include a component library (packaged as a JAR file) that includes a “META-INF/faces-config.xml” resource.
    The existence of this resource causes components, renderers, and other JSF implementation classes that are stored in this
    library JAR file to be automatically registered, with no action required by the application.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a EAR application with following structure: app.ear |-- app.war `-- META-INF `--
I have war file. It contains the following files: Applet1.class jna-3.2.3.jar SomeClass.class Applet1 class
I have a jar file (kept in jboss-home/server/default/lib) and a war file (kept in
I am working on a legacy application which have a .war with following structure
With following structure, how can I make Eclipse build the WAR file correctly? I
I have following script which is aim to make a war file. def ant
I have the css-validator.war file provided by W3C running locally on JBoss . I
I have a jsp file in the root of .war file. and then I
Within my service I have an mbean which is accessed by my war file.
How do I create a grails war file so that it doesn't have the

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.