EJB 3.0 Stateful Session Bean Example

Discussion in 'Java' started by gowrin_m, Dec 22, 2008.

  1. gowrin_m

    gowrin_m New Member

    Joined:
    Dec 22, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hi,
    I have tried out the example available at thread 4212

    using JBOSS 4.2.2 GA as webserver and MyEclipse as IDE. I got the following error. Can you please guide me on this?

    Exception in thread "main" javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
    at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
    at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
    at javax.naming.InitialContext.getURLOrDefaultInitCtx(Unknown Source)
    at javax.naming.InitialContext.lookup(Unknown Source)
    at org.jboss.tutorial.stateless.client.Client.main(Client.java:15)


    Thanks
    Gowri
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice