简体   繁体   English

在 JDeveloper 中创建应用服务器连接时出错

[英]Error creating an Application Server connection in JDeveloper

Background背景

I am using the Oracle JDeveloper Studio with SOA installed as my IDE.我正在使用安装了 SOA 作为我的 IDE 的 Oracle JDeveloper Studio。 In JDeveloper I want to create a connection to a remote Weblogic server.在 JDeveloper 中,我想创建到远程 Weblogic 服务器的连接。

The remote server is running on my local machine, and I refer to it as remote to distinguish it from the Integrated Weblogic Server that comes with JDeveloper.远程服务器运行在我的本地机器上,我将其称为远程服务器,以区别于 JDeveloper 附带的集成 Weblogic 服务器

After reading this answer I attempted to add the following lines to the Windows 10 host file:阅读答案后,我尝试将以下行添加到 Windows 10 主机文件中:

#
127.0.0.10 localhost2
::1 localhost2

These two pictures show the Application Server setup in JDeveloper: Picture 1 , Picture 2这两张图显示了 JDeveloper 中的 Application Server 设置:图 1图 2

However I still receive the following error:但是我仍然收到以下错误:

Server excetion is :
Connection refused from server

When create new server on random port such as 7013 and 7014 for ssl, test connection return:在 ssl 的 7013 和 7014 等随机端口上创建新服务器时,测试连接返回:

Testing HTTP Authentication            ... failed
Connection refused: connect
Testing JSR-160 Runtime                ... failed
Cannot establish connection.
Testing JSR-160 DomainRuntime          ... skipped
Testing JSR-88                         ... skipped
Testing JSR-88-LOCAL                   ... skipped
Testing Server MBeans Model            ... skipped
Testing App Controller                 ... skipped
Testing JSR-88-DEP-MGR                 ... skipped
Testing JSR-88-DEP-MGR-LOCAL           ... skipped
Testing JNDI                           ... skipped
Testing JSR-160 Edit                   ... skipped
Testing HTTP                           ... failed
Connection refused: connect

0 of 12 tests successful.

Can anyone suggest some troubleshooting steps here?任何人都可以在这里提出一些故障排除步骤吗?

Clarification澄清

I need to clarify a few points to guide you to the correct answer.我需要澄清几点以引导您找到正确的答案。

  • Are you sure this is a separate Weblogic server running on localhost, not the Integrated Weblogic Server?您确定这是在本地主机上运行的单独 Weblogic 服务器,而不是集成 Weblogic 服务器吗?
  • Are you sure the Integrated Weblogic server is not running?您确定集成 Weblogic 服务器没有运行吗?
  • Are you sure the Weblogic server you are attempting to connect to is running?您确定您尝试连接的 Weblogic 服务器正在运行吗?

Troubleshooting故障排除

General Recommendations一般建议

  • Always run JDeveloper as Administrator始终以管理员身份运行 JDeveloper
  • Located an utilize the *-diagnostic.log file and the standard out file使用 *-diagnostic.log 文件和标准输出文件
  • Utilize the JPS utility to see if the WLS process is running使用 JPS 实用程序查看 WLS 进程是否正在运行
  • Utilize the EM console to see what interface your server is listening on利用 EM 控制台查看您的服务器正在侦听的接口

Integrated Weblogic or Standalone Weblogic集成 Weblogic 或独立 Weblogic

Firstly, because you are new to Oracle SOA I need you to clarify if you have a Weblogic server installed locally separate from your Oracle BPM Studio ( JDeveloper ) IDE.首先,因为您是 Oracle SOA 的新手,我需要您澄清一下,您是否在本地安装了Oracle BPM Studio (JDeveloper) IDE分开的 Weblogic 服务器。

When creating a local SOA environment, JDeveloper comes with an Integrated Weblogic Server pre-installed.在创建本地 SOA 环境时,JDeveloper 附带了一个预安装的集成 Weblogic 服务器。 You don't need to install the Weblogic server separately.您不需要单独安装 Weblogic 服务器。

To determine if you have a standalone Weblogic server installed on your local machine you could do a few things.要确定您的本地计算机上是否安装了独立的 Weblogic 服务器,您可以做一些事情。

  • Do a search for startWebLogic.cmd .搜索startWebLogic.cmd If that file is somewhere other than beneath %APPDATA% you likely have a standalone server如果该文件不在 %APPDATA% 下方,则您可能拥有独立服务器
  • Secondly, with 11g ( maybe 12c ) you can check Add or Remove Programs to see if the installation is listed其次,使用 11g(可能是 12c),您可以检查添加或删除程序以查看是否列出了安装
  • You could also check to see if it's running by running a jps command in command prompt.您还可以通过在命令提示符下运行jps命令来检查它是否正在运行。 This shows all Java processes currently running, and your Weblogic server runs as as a Java process.这将显示当前运行的所有 Java 进程,并且您的 Weblogic 服务器作为 Java 进程运行。 It will look something like the following它看起来像下面这样在此处输入图片说明
  • If you see a suspicious process you can run a jinfo <pid> to get more information about the process如果您看到可疑进程,您可以运行jinfo <pid>以获取有关该进程的更多信息
  • You can also check Windows Services to see if you have a Weblogic service.您还可以检查 Windows 服务以查看您是否有 Weblogic 服务。

Most likely you don't even have a local Weblogic installed separate from JDeveloper's Integrated Server.很可能您甚至没有安装独立于 JDeveloper 的集成服务器的本地 Weblogic。 In that case, please read the following section.在这种情况下,请阅读以下部分。

Integrated Weblogic Server集成网络逻辑服务器

As stated before when you download Oracle BPM Studio ( JDeveloper with all the SOA plugins ) it comes with an Integrated server.如前所述,当您下载 Oracle BPM Studio(带有所有 SOA 插件的 JDeveloper)时,它带有一个集成服务器。

You first need to create a default domain and connection to this server.您首先需要创建一个默认域并连接到此服务器。

  1. First, open the Application Server panel.首先,打开应用程序服务器面板。

    在此处输入图片说明

  2. You should now see the Application Server panel to the left side of your IDE您现在应该会在 IDE 的左侧看到 Application Server 面板

    在此处输入图片说明

Remember, generally you are not installing the server here, you are just connecting to a server that is already installed from your IDE.请记住,通常您不是在此处安装服务器,而是连接到已从 IDE 安装的服务器。 The purpose being that you can deploy composites directly to the server from JDeveloper.目的是您可以从 JDeveloper 将组合直接部署到服务器。 Configuring the Integrated Server is a bit different, but the difference doesn't need to be explained here.配置集成服务器有点不同,但这里不需要解释区别。

  1. Right click on "Application Servers" and click New Application Server .右键单击“应用程序服务器”,然后单击“新建应用程序服务器”。 This will display the following popup这将显示以下弹出窗口

项目清单

  1. Now walk through the steps of creating the default domain and server connection现在完成创建默认域和服务器连接的步骤

    在此处输入图片说明 在此处输入图片说明 在此处输入图片说明

Then test and finish.然后测试并完成。 You should not have an integrated weblogic server running.您不应该运行集成的 weblogic 服务器。 To start the server you simply run -> Start Integrated Weblogic Server要启动服务器,您只需run -> Start Integrated Weblogic Server

在此处输入图片说明

If you Windows -> log you can see the server stdout and stderr rolling.如果您使用Windows -> log您可以看到服务器 stdout 和 stderr 滚动。

On windows you can also find these logs on Windows 10 by navigating to %APPDATA%\\Roaming\\JDeveloper\\system12.2.1.3.42.170820.0914\\DefaultDomain\\servers\\DefaultServer\\logs in your system's file explorer.在 Windows 上,您还可以通过导航到系统文件资源管理器中的%APPDATA%\\Roaming\\JDeveloper\\system12.2.1.3.42.170820.0914\\DefaultDomain\\servers\\DefaultServer\\logs在 Windows 10 上找到这些日志。

Standalone Server独立服务器

If for whatever reason you aren't using the Integrated Weblogic Server and instead have a standalone installation of Weblogic on your local machine you would first need to find where your Middleware Home directory is.如果出于某种原因您没有使用集成的 Weblogic 服务器,而是在本地计算机上独立安装了 Weblogic,则首先需要找到中间件主目录的位置。

The environment variable is MW_HOME or ORACLE_HOME环境变量为 MW_HOME 或 ORACLE_HOME

Navigate to that directory and run startWeblogic.cmd .导航到该目录并运行startWeblogic.cmd Then tail the out file to see if if it starts successful.然后tail输出文件看是否启动成功。 From there, the process of creating a connection to the server in JDeveloper is no different than the steps listed above, except that you want to select "standalone" not "integrated".从这里开始,在 JDeveloper 中创建到服务器的连接的过程与上面列出的步骤没有什么不同,只是您要选择“独立”而不是“集成”。

Final Thoughts最后的想法

If you want to create the Integrated Server and have already failed several times I would try the following如果您想创建集成服务器并且已经多次失败,我会尝试以下操作

  1. Stop the Integrated Server (if its running) and delete the default domain停止集成服务器(如果它正在运行)并删除默认域在此处输入图片说明

    Starting the server again (see above) will recreate the domain.再次启动服务器(见上文)将重新创建域。

  2. If that doesn't work delete the entire server connection and recreate.如果这不起作用,请删除整个服务器连接并重新创建。 You may also want to delete the DefaultDomain folder in your %APPDATA%\\JDeveloper folder您可能还想删除%APPDATA%\\JDeveloper文件夹中的DefaultDomain文件夹

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

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