1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

EJB 3.0 Stateful Session Bean Example

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

  1. gowrin_m

    gowrin_m New Member

    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)


Share This Page