[100]连接weblogic server出现的CommunicationException
启动weblogic服务器没有报错
catch到的Exception:
Error: javax.naming.CommunicationException [Root exception is java.net.ConnectException: t3://localhost:7001: Destination unreachable; nested exception is:
java.net.ConnectException: Connection refused: connect; No available router to destination]
出错的关键代码:
Hashtable ht=new Hashtable();
ht.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
ht.put(Context.PROVIDER_URL,"t3://localhost:7001");
try {
Context ctx = new InitialContext(ht);
.....
连这样简单的事情我都做不了, 看来人生无望...
请各位不吝提典