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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T21:52:52+00:00 2026-05-13T21:52:52+00:00

My SFSB Seam component is bound to JNDI on deployment, as evidenced by this

  • 0

My SFSB Seam component is bound to JNDI on deployment, as evidenced by this log message:

Component: example, scope: CONVERSATION, type: STATEFUL_SESSION_BEAN,
class:com.purecharger.action.ExampleAction, JNDI: purecharger/ExampleAction/local

My interface:

@Local
public interface Example {    
    public List<String> getExample();
    public void destroy();
}

and my implementation:

@Stateful
@Scope(ScopeType.CONVERSATION)
@Name("example")
@Restrict("#{identity.loggedIn}")
public class ExampleAction implements Example, Serializable {

    ....
}

However, when I access the voting component in an xhtml page like, I get the following error:

javax.el.ELException: /home.xhtml: Could not instantiate Seam component: example
....
Caused by: javax.naming.NameNotFoundException: ExampleAction not bound

If Seam was smart enough to install my component using the JNDI pattern in components.xml (purecharger/#{ejbName}/local), why does it not also apply the pattern when looking up components?

Thank you.

UPDATE:
Looking at the JNDIView in JBoss, the name purecharger/ExampleAction/local is not bound anywhere. So I guess my question now becomes, why is Seam not adding this SFSB to JNDI?

  • 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-13T21:52:53+00:00Added an answer on May 13, 2026 at 9:52 pm

    Why is Seam not adding this SFSB to JNDI ?

    Well,

    As shown in your question, i think you have a ear application, because of its JNDI global address

    purecharger/ExampleAction/local
    

    which is mapped according to

    <EAR_APPLICATION>/<STATEFUL_BEAN>/local
    

    When you deploy a single EJB module, its JNDI global address in JBoss looks like

    <STATEFUL_BEAN>/local
    

    Bacause you have a ear application, each EJB module should be declared in application.xml (The file that describes your ear) as follows

    So your ear app looks like

    pureCharger.ear
    
        META-INF
            application.xml
        pureCharger-ejb.jar
        pureCharger-war.war
        jboss-seam.jar
        lib
            // libraries shared by your modules goes here
    

    And your application.xml

    <?xml version="1.0" encoding="UTF-8"?>
    <application version="5" 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/application_5.xsd">
        <display-name>pureCharger</display-name>
        <module>
            <ejb>pureCharger-ejb.jar</ejb>
        </module>
        <module>
            <ejb>jboss-seam.jar</ejb>
        </module>
        <module>
            <web>
                <web-uri>pureCharger-war.war</web-uri>
                <context-root>pureCharger</context-root>
            </web>
        </module>
    </application>
    

    Notice jboss-seam.jar is a EJB module, so it should also be declared in application.xml file

    If possible, use Seam-gen to generate your project. It takes care includes all libraries needed by your project and can be opened without restriction in NetBeans, for instance.

    regards,

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

Sidebar

Related Questions

I am having some trouble accessing a stateful session bean (SFSB) from an application
I'm learning EJB3 and I'm just curious when it's convenient to use SFSB? I
I have a Stateful Session Bean (SFSB) which acts as authentication module. In the
I know that a Stateful EJB can be accessed concurrently by a particular client.
I'm using JBoss6.1.Final, JSF 2.0 (Mojarra), Weld CDI, MyFaces CODI 1.0.5 (for view-access-scoped) I'm
We have an application that needs to access a database that is owned by
I have a stateful session bean with the following annotations: @Stateful @Name(fooBar) public class
I am having some problems devoloping an application based on EJB 3 technology. I
I was going through an EJB 3.1 book (O'Reilly, Andrew Lee Rubinger and Bill
We have a stateful session bean which is working perfectly. The stateful session bean

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.