把ejb部署在weblogic上
再见建立一个ejb客户端看样子是不是jndi没配好
再见建立一个ejb客户端看样子是不是jndi没配好
解决方案 »
- build.xml文件BUILD FAILED
- 急,急,急,测试碰到了个问题
- tomcat5.0+spring2.5,
- @Entity ,@Table(..) ,@Column是什么意思
- 有人做过CMS吗,新人求助~~
- 请教大家有关hibernate的问题
- java中的dom4j包有没有验证xml文件是否符合schma文件定义的功能()
- 关于Hibernate在MySQL中的简单问题
- 100分,请大家帮帮忙给点建议哈,迷茫中。。。。
- jQuery中的load()Failed to load resource: the server responded with a status of 404
- xsl与javascript的问题
- hibernate问题:为什么抛出net.sf.hibernate.MappingException: Error reading resource: com/huafu/dayplan/bean/basic/Zone.hbm.xml异
"换成Weblogic的类weblogic.jndi.WLInitialContextFactory试试"
是什么意思啊,详细一点可以吗(抱歉,我是初学者)Weblogic7是不是不支持jndi啊
是不是这样子啊
env.put("java.naming.factory.initial",
"weblogic.jndi.WLInitialContextFactory");
env.put("java.naming.provider.url", "nds://NCLTREE/");
DirContext ctx = new InitialDirContext(env);
可是出现以下的红字:
Search failed: javax.naming.ServiceUnavailableException [Root exception is java.net.UnknownHostException: NCLTREE]
晕,难道执行一个EJB的程序就这么难吗。
env.put(Context.PROVIDER_URL, "t3://localhost:7001");
还是不行,感觉应该是缺什么东西
看看这篇文章估计对你比较有用
http://www.developer.com/java/ent/print.php/10933_2215571_4
Unable to connect server t3://pzjeah:7001 as user installadministrator.
Reason: javax.naming.CommunicationException [Root exception is java.net.ConnectException: t3://pzjeah:7001: Destination unreachable; nested exception is: java.net.ConnectException: Connection refused: connect; No available router to destination] Check option -adminurl, -user and -password.我在配weblogic时,用户名是:installadministrator 密码是:pzjeah String url = "t3://pzjeah:7001";
String user = "installadministrator";
String password = "pzjeah";
Properties properties = null;properties = new Properties();
properties.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
properties.put(Context.PROVIDER_URL, url);
if (user != null) {
properties.put(Context.SECURITY_PRINCIPAL, "installadministrator");
properties.put(Context.SECURITY_CREDENTIALS,
password == null ? "" : password); }对index.jsp执行run using default,总出现刚刚提到的错误????
我很菜,请大家给点耐心,万分感谢!