javax.naming.InvalidNameException: url does not contain a port

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 Google Groups by Steve Ma, 2 years ago
url does not contain a port
via Oracle Community by 3004, 1 year ago
url does not contain a port
via Oracle Community by 3004, 1 year ago
url does not contain a port
via Oracle Community by 3004, 1 year ago
url does not contain a port
javax.naming.InvalidNameException: url does not contain a port
at weblogic.jndi.URLParser.parseURL(URLParser.java:204)
at weblogic.jndi.cosnaming.IIOPInitialContextFactory.createNamingContext(IIOPInitialContextFactory.java:74)
at weblogic.jndi.cosnaming.IIOPInitialContextFactory.getInitialContext(IIOPInitialContextFactory.java:66)
at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:124)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:665)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246)
at javax.naming.InitialContext.init(InitialContext.java:222)
at javax.naming.InitialContext.(InitialContext.java:198)
at com.ibm.ivj.ejb.runtime.AbstractAccessBean.getInitContext(AbstractAccessBean.java:312)
at com.ibm.ivj.ejb.runtime.AbstractAccessBean.getGlobalHome(AbstractAccessBean.java:190)
at com.ibm.ivj.ejb.runtime.AbstractAccessBean.getHome(AbstractAccessBean.java:207)
at trade.TradeAccessBean.ejbHome(TradeAccessBean.java:60)
at trade.TradeAccessBean.instantiateEJB(TradeAccessBean.java:109)
at trade.TradeAccessBean.login(TradeAccessBean.java:208)
at trade_client.TradeAction.doLogin(TradeAction.java:275)
at trade_client.TradeServletAction.doLogin(TradeServletAction.java:543)
at trade_client.TradeAppServlet.performTask(TradeAppServlet.java:112)
at trade_client.TradeAppServlet.doPost(TradeAppServlet.java:82)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:263)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2390)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

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