简体   繁体   English

两个Eclipse工作区之间的Websphere AS冲突

[英]Websphere AS conflicts between Two eclipse workspaces

I am new to Websphere. 我是Websphere的新手。 Right now, I am setting up workspace for two projects in separate eclipse workspaces in MyEclipseBlue 2016 using Websphere 8.5 Application Server. 现在,我正在使用Websphere 8.5 Application Server在MyEclipseBlue 2016的单独的Eclipse工作区中为两个项目设置工作区。 Profiles are configured separately for those projects. 这些项目分别配置了配置文件。

Need to work with both applications at the same time since one application depends on the other. 由于一个应用程序依赖于另一个应用程序,因此需要同时使用这两个应用程序。 When I deploy the applications separately by opening any one workspace, server starts without any errors. 通过打开任何一个工作区分别部署应用程序时,服务器启动时不会出现任何错误。 But when both workspaces are open, starting/stopping a server in one workspace, makes the server in other workspace to does the same and exception occurs when server starts. 但是,当两个工作区都打开时,启动/停止一个工作区中的服务器会使其他工作区中的服务器执行相同的操作,并且在服务器启动时会发生异常。

I don't know how this occurs, How both the servers in separate eclipse workspaces are integrated? 我不知道这种情况如何发生,如何将单独的Eclipse工作区中的两个服务器集成在一起?

Websphere variables under Environment in Admin console are different for both projects since they are configured with different profiles. 两个项目的管理控制台中“环境”下的Websphere变量都不同,因为它们配置了不同的配置文件。 But When deploying both the applications at the same time, Websphere variables specific to any one of the profiles gets applied for both the projects. 但是,当同时部署两个应用程序时,特定于任何一个概要文件的Websphere变量都将应用于两个项目。

Unable to find the way to deploy these two projects with different websphere profiles at the same time. 无法找到同时部署具有不同Websphere概要文件的这两个项目的方法。

Please advise. 请指教。

To be clear, you have an installation of WAS 8.5, with two profiles, say AppSvr01 and AppSvr02, and two eclipse workspaces, say ws1 and ws2, and you are using the WebSphere Application Server Developer Tools for Eclipse to manage the servers? 要明确地说,您已经安装了WAS 8.5,具有两个配置文件(例如AppSvr01和AppSvr02)和两个Eclipse工作区(例如ws1和ws2),并且您正在使用WebSphere Application Server Developer Tools for Eclipse管理服务器? And ws1 workspace is configured in WDT to use WAS profile AppSvr01 and ws2 workspace is configured to use WAS profile AppSvr02? 并在WDT中将ws1工作区配置为使用WAS概要文件AppSvr01,而将ws2工作区配置为使用WAS概要文件AppSvr02? If the interaction you describe is happening, some possibilities are 1) WDT is using the same WAS profile in both ws1 and ws2 workspaces, 2) the WAS profiles AppSvr01 and AppSvr02 have conflicting port assignments, or 3) WDT is not configured to use unique ports to communicate with the server. 如果您描述的交互正在发生,则可能是:1)WDT在ws1和ws2工作空间中都使用相同的WAS配置文件,2)WAS配置文件AppSvr01和AppSvr02具有冲突的端口分配,或者3)WDT未配置为使用唯一与服务器通信的端口。 #1 is easy to check in the WDT Server editor settings. #1易于检查WDT服务器编辑器设置。 #2 shouldn't be the case as you stated the port assignments are unique to the profiles. #2并非如此,因为您指出端口分配对于配置文件是唯一的。 #3 is also easily checked in the WDT Server editor. #3也可以在WDT服务器编辑器中轻松检查。 Examine the "Server connection types and admin ports" section for both profiles and verify they're unique to each workspace, if not, override them. 检查两个配置文件的“服务器连接类型和管理端口”部分,并验证它们对于每个工作区都是唯一的,如果不是,请覆盖它们。 If they are unique, run each workspace by itself, have WDT start the server and examine the logs to see what profile the workspace is actually starting and on what ports. 如果它们是唯一的,则单独运行每个工作区,让WDT启动服务器并检查日志,以查看工作区实际启动的配置文件和端口。

The WebSphere connectors in MyEclipse are somewhat intelligent in that they can detect if the server is running or not. MyEclipse中的WebSphere连接器有些智能,因为它们可以检测服务器是否正在运行。 When you start WebSphere in one workspace, the other will detect that it is started and show "running" status. 当您在一个工作区中启动WebSphere时,另一个将检测到它已启动并显示“正在运行”状态。 Similarly if the server is stopped. 同样,如果服务器已停止。 Although you have separate profiles, are they using the same ports? 尽管您有单独的配置文件,但它们是否使用相同的端口? If so, change the port numbers. 如果是这样,请更改端口号。 You can see the port numbers quickly by double clicking the connector in the Servers view (which brings up a configuration editor) though you'll have to change them through the WebClipse profile manager. 通过双击“服务器”视图中的连接器(将弹出一个配置编辑器),您可以快速查看端口号,尽管您必须通过WebClipse配置文件管理器进行更改。

Alternatively, use a single workspace for both projects, since one depends on the other, and use a single profile. 或者,对两个项目都使用一个工作区,因为一个项目依赖于另一个工作区,并使用一个配置文件。 You haven't said why you need to use separate profiles and workspaces (not sure how the dependency works in that case). 您尚未说过为什么需要使用单独的配置文件和工作空间(不确定在这种情况下依赖项的工作方式)。

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

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