[英]GlassFish Error : class java.lang.RuntimeException
I configured the glassfish server with Eclipse Luna .我使用 Eclipse Luna 配置了 glassfish 服务器。 I downloaded the GlassFish from the market place and configure it correctly .
我从市场上下载了 GlassFish 并正确配置了它。 Now when i click Destination Resrouce under the JMS Resource .
现在,当我单击 JMS Resource 下的 Destination Resrouce 时。 When I click New it throws me this exception
当我单击“新建”时,它会向我抛出此异常
class java.lang.RuntimeException类 java.lang.RuntimeException
and I am not able to add new Destination Resource , same for Connection Factories .并且我无法添加新的 Destination Resource ,对于 Connection Factories 也是如此。 Can anyone tell me how to troubleshoot this
谁能告诉我如何解决这个问题
Thanks谢谢
I got the same error and I used CLI to create a new JMS Resources:我遇到了同样的错误,我使用 CLI 创建了一个新的 JMS 资源:
use asadmin utility in path\\glassfish4\\glassfish\\bin在 path\\glassfish4\\glassfish\\bin 中使用 asadmin 实用程序
in any command prompt.在任何命令提示符下。
To create JMS Connection Factories创建 JMS 连接工厂
asadmin> create-jms-resource --restype javax.jms.ConnectionFactory --description "connection factory for XXX" jms/ConnectionFactory
asadmin> create-jms-resource --restype javax.jms.ConnectionFactory --description “XXX 的连接工厂” jms/ConnectionFactory
To Create JMS Destination Resources创建 JMS 目标资源
asadmin> create-jms-resource --restype javax.jms.Queue --property Name=PhysicalDestination jms/MyQueue
asadmin> create-jms-resource --restype javax.jms.Queue --property Name=PhysicalDestination jms/MyQueue
Follow this Link https://docs.oracle.com/cd/E18930_01/html/821-2416/ablkb.html for more info.点击此链接https://docs.oracle.com/cd/E18930_01/html/821-2416/ablkb.html了解更多信息。
使用以下创建队列连接工厂。
create-jms-resource --restype javax.jms.ConnectionFactory --description "my connection factory for Task6" jms/QueueConnectionFactory
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.