问题标签 [ibm-was]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
2199 浏览

websphere - 如何从 wsadmin 终止 websphere 应用程序服务器实例?

我有一个 jython 脚本,它停止和启动 websphere 应用程序服务器 v7 实例。我通常使用 AdminControl.stopServer 命令来停止,但有时实例会挂起,请求线程会超时。然后我必须从 Web 控制台终止实例。有没有办法让实例立即“终止”,而不是等待优雅的停止?我基本上希望 wsadmn 中的 Web 控制台终止按钮功能。

0 投票
1 回答
219 浏览

websphere-portal - 如何在 Websphere Portal 中启用 PortalAdminHome?

我在使用 PumaAdminHome 对象的 jsp 页面中有以下代码,但在访问它时出现“java.lang.IllegalStateException:PortalAdminHome 未启用”错误。我已经遵循了这个解决方法,但没有帮助。

我的代码-

我最初的要求是在使用 jsp 的 Web 应用程序中使用 PUMA API 和 WCM API。由于我无法使用 PumaHome 对象获取用户的信息,因此我在点击此链接后切换到 PumaAdminHome - https://www.ibm.com/developerworks/community/forums/html/topic?id=77777777-0000- 0000-0000-000014798289。请帮我。我怎么解决这个问题?我坚持这一点,没有得到任何线索。

0 投票
1 回答
834 浏览

java - 安装 WAS 8.5 插件后 Eclipse 市场无法正常工作

我的电脑上运行着 Eclipse Kepler。从市场安装 IBM Websphere 8.5 插件并重新启动我的 Kepler 后,我无法重新打开市场。

正在显示一个进度条,上面写着“从http://marketplace.eclipse.org检索数据”超过30 分钟。

当我卸载插件时,市场工作正常。

为什么会这样?任何人都可以帮我弄清楚吗?

感谢你的帮助。

PS:从浏览器访问链接时没有问题。

谢谢,马杜。

更新
单击“安装新软件”时会记录以下错误

更新

我才发现原因。在 Eclipse 中创建 WAS 8.5 服务器时,有一个名为“在此服务器上启用了安全性”的选项,我们通常会检查安全模式。这会妨碍 eclipse 的市场连接设置,从而阻止它运行。我唯一不明白的是这两者是如何相关的以及如何克服这个问题。

希望有人能解释一下:)

0 投票
1 回答
2910 浏览

java - GC 在 99% 的堆内存后运行

每当堆内存达到 90% 时,我们就会从 Websphere Application Server 7.0.25 收到警报,但此时垃圾收集没有运行。我们监控内存,发现只有在堆内存使用率达到 99% 后才会运行 GC。JVM参数设置为:

初始堆内存 - 128MB

最大堆内存 - 512MB

请建议无论如何,GC 在达到 90% 或低于堆内存利用率后开始。

0 投票
1 回答
364 浏览

java - 在 Struts 2.x 中的索引页面上填充下拉列表

1.  我正在制作一个 Web 应用程序,我需要在其中与数据库交互并获取值列表并将它们填充到下拉列表中(这是 index.jsp 中的表单元素)。我的表单有一个下拉列表,我打算用区号填充它,这些区号又出现在数据库表中。我想知道我是否可以将动作作为初始打击?即我可以在 web.xml 中作为欢迎列表的一部分触发一个动作吗?

2.  另外,我遇​​到一个问题,当我在 Websphere 应用程序服务器上部署应用程序并以 服务器名称/项目名称访问链接时 - 它给出了一个错误说明

所以我被迫以 servername/projectname/index.jsp的身份访问应用程序 - 运行良好!我无法理解这个问题,因为它没有出现在我的本地机器上,只有当我将它部署在服务器上时。请在下面找到我的 web.xml

和我的 struts.xml :

请注意,我确实在我的包声明中添加了 namepace="/"。请帮助 :D 在此先感谢

0 投票
1 回答
806 浏览

websphere - 在 WebSphere App Server (WAS) 中,线程池线程和消息侦听器会话有什么区别?

在 WebSphere Application Server 中,以下指定的线程池中的线程有什么区别:

应用程序服务器>服务器>消息侦听器服务>线程池,线程

和消息侦听器上的会话

应用程序服务器>服务器>消息侦听器服务>侦听器端口>侦听器,最大会话数/最大消息数

?

0 投票
1 回答
558 浏览

jakarta-ee - CWWJP0009E 创建持久性单元时出错

在 IBM WebSphere Application Server WAS 7 中启动我的 Java EE 应用程序时,我遇到了以下错误。

JPAPUnitInfo E CWWJP0009E: 服务器无法从文件:/C:/ PATH/TO/APPLICATION /target/classes/ 模块中的 org.hibernate.ejb.HibernatePersistence 提供程序为NAME_OF_THE_PERSISTENCE_UNIT持久单元创建 EntityManagerFactory 工厂。

您的持久性单元的定义肯定有问题。您可以在persistence.xml文件中找到配置。要获得更详细的信息,您必须启用对服务器 JPA 支持的跟踪。

0 投票
1 回答
547 浏览

jakarta-ee - 将资源引用映射到 WAS6 中的资源

在包含 WEB 模块和 EJB 模块的 EAR 中,我尝试使用 ibm-ejb-jar-bnd.xmi 在 WAS6 中映射 EJB 资源。在安装 EAR 时,它会在Map resource reference to resources中要求数据源映射。在此处输入图像描述我的问题是在安装 EAR 时,如果我给出不同的 JNDI 名称,那么它会改变ibm-ejb-jar-bnd.xmi 的内容吗?同样在安装 EAR 时,如果我做了一些设置或配置更改,我可以看到它们,即路径 {WAS_INSTALL_ROOT}/config 或?提前致谢。

0 投票
2 回答
2571 浏览

ibm-was - jython wasadmin script gives com.ibm.websphere.management.exception.ConfigServiceException

I was having difficulty in running jython wsadmin script. Following error happens when i try to invoke "AdminConfig.save()" in the script. Its was able to install the application successfully but when it tries the save the configuration, it gives following error.

[exec] ADMA5017I: Uninstallation of TestApp started. [exec] ADMA5104I: The server index entry for WebSphere:cell=WASD01VWNode04Cell,node=WASD01VWNode04 is updated successfully. [exec] ADMA5102I: The configuration data for IEApp from the configuration repository is deleted successfully. [exec] ADMA5011I: The cleanup of the temp directory for application IEApp is complete. [exec] ADMA5106I: Application TestApp uninstalled successfully. [exec] ADMA5016I: Installation of TestApp started. [exec] ADMA5058I: Application and module versions are validated with versions of deployment targets. [exec] ADMA5005I: The application TestApp is configured in the WebSphere Application Server repository. [exec] ADMA5005I: The application TestApp is configured in the WebSphere Application Server repository. [exec] ADMA5081I: The bootstrap address for client module is configured in the WebSphere Application Server repository. [exec] ADMA5053I: The library references for the installed optional package are created. [exec] ADMA5005I: The application TestApp is configured in the WebSphere Application Server repository. [exec] ADMA5005I: The application TestApp is configured in the WebSphere Application Server repository. [exec] SECJ0400I: Successfully updated the application TestApp with the appContextIDForSecurity information. [exec] ADMA5005I: The application TestApp is configured in the WebSphere Application Server repository. [exec] ADMA5005I: The application TestApp is configured in the WebSphere Application Server repository. [exec] ADMA5113I: Activation plan created successfully. [exec] ADMA5011I: The cleanup of the temp directory for application IEApp is complete. [exec] ADMA5013I: Application TestApp installed successfully. [exec] WASX7017E: Exception received while running file "mywasadmin.py"; exception information: com.ibm.websphere.management.exception.ConfigServiceException [exec] com.ibm.websphere.management.exception.ConnectorException [exec] org.apache.soap.SOAPException: [SOAPException: faultCode=SOAP-ENV:Client; msg=Read timed out; targetException=java.net.SocketTimeoutException: Read timed out] [exec] [exec] WASX7341W: No "save" was performed before the interactive scripting session exited; configuration changes will not be saved

We are using WebSphere application 8.5.0 version. This is a standalone instance.

I also increased soap timeout parameter(com.ibm.SOAP.requestTimeout=4000) in the WAS application server /properties/soap.client.prop. But its of no use.

Any thoughts on this issue?

0 投票
1 回答
2297 浏览

ibm-mq - IBM WAS7 队列工厂配置到 MQ 集群

我正在尝试配置连接到集群 MQ 的集群 websphere 应用程序服务器。

但是,我所拥有的信息是属于同一 MQ 集群名称的具有不同主机名、服务器通道和队列管理器的两个 MQ 实例的详细信息。

在 websphere 控制台上,我可以看到主机名、队列管理器和服务器通道的输入字段,我找不到可以指定多个 MQ 详细信息的任何内容。

如果我选择 MQ 详细信息之一,MQ 集群仍然有效吗?如果没有,根据我的详细信息,我将如何启用 MQ 集群?