Opps!!!, Sorry for the previous posting with typos.. Are u using Jndi.properties file for the name server details and context factory settings, if that's the case then make sure its in the .war file of the servlet.
Otherwise first hardcode those in yr servlet code and test it and put it jndi.propteries file. private InitialContext getContext() throws NamingException { | Hashtable props = new Hashtable(); | | props.put( | InitialContext.INITIAL_CONTEXT_FACTORY, | "org.jnp.interfaces.NamingContextFactory"); | props.put(InitialContext.PROVIDER_URL, "jnp://127.0.0.1:1099"); | | InitialContext initialContext = new InitialContext(props); | return initialContext; | } | I hope this hleps. Vishal. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3866378#3866378 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3866378 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user