javax.naming.NoInitialContextException: Need to specify class name in environmen t or system property, or as an applet parameter, or in an application resource f ile: java.naming.factory.initial


Solutions on the web878

Solution icon of coderanch
via Coderanch by Timothy Sam, 1 year ago
Need to specify class name in environmen t or system property, or as an applet parameter, or in an application resource f ile: java.naming.factory.initial

Solution icon of coderanch
via Coderanch by Gowher Naik, 10 months ago
Need to specify class name in environmen t or system property, or as an applet parameter, or in an application resource f ile: java.naming.factory.initial

Solution icon of oraclecommunity
via Oracle Community by 843833, 3 months ago
Need to specify class name in environmen t or system property, or as an applet parameter, or in an application resource f ile: java.naming.factory.initial

Solution icon of coderanch
via Coderanch by Deep Chand, 10 months ago
Need to specify class name in environmen t or system property, or as an applet parameter, or in an application resource f ile: java.naming.factory.initial

Solution icon of coderanch
via Coderanch by Chinmay Bajikar, 10 months ago
Need to specify class name in environmen t or system property, or as an applet parameter, or in an application resource f ile: java.naming.factory.initial

Solution icon of coderanch
Need to specify class name in environmen t or system property, or as an applet parameter, or in an application resource f ile: java.naming.factory.initial

Solution icon of oraclecommunity
via Oracle Community by 843830, 3 months ago
Need to specify class name in environmen t or system property, or as an applet parameter, or in an application resource f ile: java.naming.factory.initial

Solution icon of coderanch
via Coderanch by Jayant Kulkarni, 10 months ago
Need to specify class name in environmen t or system property, or as an applet parameter, or in an application resource f ile: java.naming.factory.initial

Solution icon of coderanch
via Coderanch by Morgan Bath, 10 months ago
Need to specify class name in environmen t or system property, or as an applet parameter, or in an application resource f ile: java.naming.factory.initial

Solution icon of oraclecommunity
via Oracle Community by 843793, 3 months ago
Need to specify class name in environmen t or system property, or as an applet parameter, or in an application resource f ile: java.naming.factory.initial

Stack trace

javax.naming.NoInitialContextException: Need to specify class name in environmen
t or system property, or as an applet parameter, or in an application resource f
ile:  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 dk.zmag.http.dao.ConnectionPoolManager.getConnectionFromPool(ConnectionPoolManager.java:43)
	at dk.zmag.http.dao.DAOEssentials.acquireConnection(DAOEssentials.java:19)
	at dk.zmag.http.dao.mysql.MySQLMagazineDAO.selectAllMagazineFromDB(MySQLMagazineDAO.java:251)
	at dk.zmag.http.process.DailyUpdate.makeUpdate(DailyUpdate.java:45)
	at dk.zmag.http.process.DailyUpdate.main(DailyUpdate.java:95)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
53 more bugmates