Hi, I'm using JBOSS 4.0, JDK 1.5 & mysql 5. When I'm trying to get the context from my JSP pages I have no problems. But when I try to do it from an applet I get the following error:
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 com.imagine.em.QOD_GW.charts.BitRateChartApplet.init(BitRateChartApplet.java:64) at sun.applet.AppletPanel.run(Unknown Source) at java.lang.Thread.run(Unknown Source) The code I'm using is: javax.naming.InitialContext ctx = new InitialContext(); | portMgr = (PortManagerRemote) | ctx.lookup("imagineManagment/PortManagerBean/remote"); I tried to add all the jars to my CLASSPATH but it didn't help. Anybody has any idea? Thanks a lot, Efrat View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3931299#3931299 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3931299 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user