将Jar文件部署到weblogic 12.1.3时出错

时间:2016-05-23 15:06:07

标签: java weblogic weblogic12c

这是异常导致的错误日志。我不确定在部署期间导致它失败的原因

2016-05-23 10:19:57,656 INFO [com.sdars.util.EJBUtil]: {java.naming.provider.url=t3:/localhost:7001, java.naming.factory.initial=weblogic.jndi.WLInitialContextFactory, weblogic.jndi.enableServerAffinity=true}
    2016-05-23 10:19:57,656 INFO [com.sdars.util.EJBUtil]: javax.naming.ConfigurationException: t3:/localhost:7001 [Root exception is java.net.MalformedURLException: t3:/localhost:7001]
                    at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:36)
                    at weblogic.jndi.WLInitialContextFactoryDelegate.toNamingException(WLInitialContextFactoryDelegate.java:808)
                    at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:365)
                    at weblogic.jndi.Environment.getContext(Environment.java:319)
                    at weblogic.jndi.Environment.getContext(Environment.java:288)
                    at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:117)
                    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:684)
                    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:313)
                    at javax.naming.InitialContext.init(InitialContext.java:244)
                    at javax.naming.InitialContext.<init>(InitialContext.java:216)

                Caused by: java.net.MalformedURLException: t3:/localhost:7001
                    at weblogic.protocol.ServerURL.parseURL(ServerURL.java:486)
                    at weblogic.protocol.ServerURL.<init>(ServerURL.java:104)
                    at weblogic.rjvm.ServerURL.<init>(ServerURL.java:49)
                    at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:335)
                    ... 37 more

2 个答案:

答案 0 :(得分:1)

我认为错误是由于java.naming.provider.url属性值中的微不足道错误造成的。缺少网址中的/

更改自:t3:/localhost:7001
致:t3://localhost:7001

您可以从oracle的文档中查看示例here

答案 1 :(得分:1)

你得到的例外是 根异常是java.net.MalformedURLException:t3:/ localhost:7001。标准的weblogic网址格式如下。

t3://ip:port

您的网址配置中似乎缺少/

t3://localhost:7001