简体   繁体   English

运行Java程序的JDeveloper错误

[英]JDeveloper error running java program

I receive this error in running a Java program within JDeveloper and I have no idea what to do to fix the error: 我在JDeveloper中运行Java程序时收到此错误,但我不知道该如何解决该错误:

javax.naming.CommunicationException: Could not obtain connection to any of these urls: 160.151.120.33:999 javax.naming.CommunicationException:无法获得与以下任何URL的连接:160.151.120.33:999

I know I can change the URL and port by changing the values in a jndi.properties file. 我知道可以通过更改jndi.properties文件中的值来更改URL和端口。 I am quite new to Java, JDeveloper, EJB, and JBoss. 我对Java,JDeveloper,EJB和JBoss还是很陌生。

This is a desktop app that is failing to connect. 这是一个桌面应用程序,无法连接。 Am I supposed to deploy the EJB to a JBoss server first? 我是否应该首先将EJB部署到JBoss服务器? How does the EJB, JBoss and a desktop Java app work and communicate with each other? EJB,JBoss和桌面Java应用程序如何工作并相互通信?

如果您的应用程序尝试访问EJB,则是,您首先需要运行/部署EJB,然后才运行客户端。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM