java.net.MalformedURLException: no protocol: 5.0/webapps/ra/WEB-INF/classes/]异常处理

 

Tomcat+jboss分布式程序中,在访问ejb时出现如下异常:

java.net.MalformedURLException: no protocol:

2008 - 05 - 22   11 : 17 : 25  ERROR [http - 8080 - Processor23] ( ? : ? -  javax.naming.CommunicationException [Root exception is java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: 
    java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: 
    java.net.MalformedURLException: no protocol: 
5.0 / webapps / ra / WEB - INF / classes / ]
javax.naming.CommunicationException [Root exception is java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: 
    java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: 
    java.net.MalformedURLException: no protocol: 
5.0 / webapps / ra / WEB - INF / classes / ]
    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:
663 )
    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:
520 )
    at javax.naming.InitialContext.lookup(InitialContext.java:
347 )
    at com.ccit.nwca.webapp.proxy.RemoteServiceLocator.getHome(Unknown Source)
    at com.ccit.nwca.webapp.proxy.CertTabProxy.getCertByCertSn(Unknown Source)

 

开始以为是服务器端的问题,细看错误protocol: 后的 5.0/webapps/ra/WEB-INF/classes/],和我的服务目录相同,但少了5.0前的tomcat.我的tomcat目录为:d:/tomcat 5.0.然后将5.0前的空格去掉,重试之后问题解决。原来是目录中有空格造成的。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值