javax.naming.InvalidNameException: java:comp/env/jdbc/SAPDEV [Root exception is java.net.MalformedURLException: unknown protocol: java] at com.sun.jndi.fscontext.FSContextFactory.getFileNam eFromURLString(FSContextFactory.java:119) at com.sun.jndi.fscontext.RefFSContextFactory.createC ontext(RefFSContextFactory.java:41) at com.sun.jndi.fscontext.RefFSContextFactory.createC ontextAux(RefFSContextFactory.java:47) at com.sun.jndi.fscontext.FSContextFactory.getInitial Context(FSContextFactory.java:49) at javax.naming.spi.NamingManager.getInitialContext(N amingManager.java:667) at javax.naming.InitialContext.getDefaultInitCtx(Init ialContext.java:288) at javax.naming.InitialContext.init(InitialContext.ja va:223) at javax.naming.InitialContext.<init>(InitialContext. java:197)

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via javaprogrammingforums.com by Unknown author, 1 year ago
:49) at javax.naming.spi.NamingManager.getInitialContext(N amingManager.java:667) at javax.naming.InitialContext.getDefaultInitCtx(Init ialContext.java:288) at javax.naming.InitialContext.init(InitialContext.ja va:223) at javax.naming.InitialContext.<init>(InitialContext. java:197)
javax.naming.InvalidNameException: java:comp/env/jdbc/SAPDEV [Root exception is java.net.MalformedURLException: unknown protocol: java] at com.sun.jndi.fscontext.FSContextFactory.getFileNam eFromURLString(FSContextFactory.java:119) at com.sun.jndi.fscontext.RefFSContextFactory.createC ontext(RefFSContextFactory.java:41) at com.sun.jndi.fscontext.RefFSContextFactory.createC ontextAux(RefFSContextFactory.java:47) at com.sun.jndi.fscontext.FSContextFactory.getInitial Context(FSContextFactory.java:49) at javax.naming.spi.NamingManager.getInitialContext(N amingManager.java:667) at javax.naming.InitialContext.getDefaultInitCtx(Init ialContext.java:288) at javax.naming.InitialContext.init(InitialContext.ja va:223) at javax.naming.InitialContext.<init>(InitialContext. java:197)
at java.net.URL.(URL.java:574)
at java.net.URL.(URL.java:464)
at java.net.URL.(URL.java:413)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 month ago
Once, 7 months ago
Once, 10 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
100 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.