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

  • Home
  • SEARCH
  • 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 4099444
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T20:26:04+00:00 2026-05-20T20:26:04+00:00

With this maven dependency, it works : <dependency> <groupId>com.sun.faces</groupId> <artifactId>jsf-api</artifactId> <version>2.0.4-b09</version> <scope>compile</scope> </dependency> <dependency>

  • 0

With this maven dependency, it works :

    <dependency>
        <groupId>com.sun.faces</groupId>
        <artifactId>jsf-api</artifactId>
        <version>2.0.4-b09</version>
        <scope>compile</scope>
    </dependency>
    <dependency>
        <groupId>com.sun.faces</groupId>
        <artifactId>jsf-impl</artifactId>
        <version>2.0.4-b09</version>
        <scope>compile</scope>
    </dependency>

But with this, it’s not working :

    <dependency>
        <groupId>com.sun.faces</groupId>
        <artifactId>jsf-api</artifactId>
        <!--  or even this : <version>2.1.0-b09</version> -->
        <version>2.1.1-b02</version>
        <scope>compile</scope>
    </dependency>
    <dependency>
        <groupId>com.sun.faces</groupId>
        <artifactId>jsf-impl</artifactId>
        <!--  or even this : <version>2.1.0-b09</version> -->
        <version>2.1.1-b02</version>
        <scope>compile</scope>
    </dependency>

with the exception of

SEVERE: Servlet.service() for servlet [Faces Servlet] in context with path [/primebert] threw exception [Expression Error: 
Named Object: heroConverter not found.] with root cause
javax.faces.FacesException: Expression Error: Named Object: heroConverter not found.
        at com.sun.faces.application.ApplicationImpl.createConverter(ApplicationImpl.java:1311)
        at org.jboss.weld.environment.servlet.jsf.ForwardingApplication.createConverter(ForwardingApplication.java:153)
        at com.sun.faces.facelets.tag.jsf.ValueHolderRule$LiteralConverterMetadata.applyMetadata(ValueHolderRule.java:85)
        at com.sun.faces.facelets.tag.MetadataImpl.applyMetadata(MetadataImpl.java:81)
        at javax.faces.view.facelets.MetaTagHandler.setAttributes(MetaTagHandler.java:129)
        at javax.faces.view.facelets.DelegatingMetaTagHandler.setAttributes(DelegatingMetaTagHandler.java:102)
        at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.doNewComponentActions(ComponentTagHandlerDelegate
Impl.java:402)

And here’s my simple converter class :

import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.convert.Converter;
import javax.faces.convert.FacesConverter;

@FacesConverter("heroConverter")
public class HeroBeanConverter implements Converter {

    public Object getAsObject(FacesContext context, UIComponent ui, String newValue) {
        System.out.println("getting as object");
        HeroBean hero = HeroBean.findHeroBeanByName(newValue);
        System.out.println("found hero : " + hero);
        return hero;
    }

    public String getAsString(FacesContext context, UIComponent component,
            Object value) {
        System.out.println("getting as string for value " + value);
        if (value == null) return "";
        return ((HeroBean) value).getName();
    }
}

Is it a bug, or im at a mistake here ? 😀

  • 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-20T20:26:05+00:00Added an answer on May 20, 2026 at 8:26 pm

    It’s a bug. It’s related to issue 1937. This bug causes that JSF annotations aren’t been scanned on non-Glassfish containers, because they accidently included some Glassfish-specific annotation scanning code.

    The 2.1.1-b02 is also a development build. Rather use the stable builds. The latest stable is 2.0.4-b09.

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

Sidebar

Related Questions

Let's say I have one project with the following POM: <groupId>com.mine</groupId> <artifactId>coreJar</artifactId> <packaging>jar</packaging> <version>0.0.1-SNAPSHOT</version>
I have this .bat script which I use to maven package my application. Problem
With JSF 2 you should be able to do this: <h:commandButton action=#{myBean.myAction(myParameter)}/> which would
How can I tell Maven 2 to load the Servlet 3.0 API? I tried:
I've been previously managing a 3-module project as 3 seperate maven projects. As this
http://maven.apache.org/pom.html#Properties says property values are accessible anywhere within a POM. Should this read are
Since this morning Maven can not build any project that requires tomcat-maven-plugin. I tried
While I was singing the praises of Maven's dependency management, an Eclipse user told
This is a bit of a long shot, but if anyone can figure it
This is starting to vex me. I recently decided to clear out my FTP,

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.