简体   繁体   English

GlassFish 错误:类 java.lang.RuntimeException

[英]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.

相关问题 java.lang.RuntimeException:无效的资源Glassfish,Java,Jpa,EclipseLink - java.lang.RuntimeException: Invalid resource Glassfish, Java, Jpa, EclipseLink java.lang.RuntimeException:虚假序列化错误 - java.lang.RuntimeException: Spurious serialisation error Android java.lang.RuntimeException错误 - Android java.lang.RuntimeException error Maven 构建错误 java.lang.RuntimeException - maven build error java.lang.RuntimeException Android 应用程序 java.lang.RuntimeException 错误 - Android app java.lang.RuntimeException error Jarsigner错误:java.lang.RuntimeException - Jarsigner error: java.lang.RuntimeException 错误:java.lang.RuntimeException:java.lang.ClassNotFoundException:类WordCountExample $ Map未找到 - Error: java.lang.RuntimeException: java.lang.ClassNotFoundException: Class WordCountExample$Map not found hadoop,java.lang.RuntimeException:java.lang.ClassNotFoundException错误 - hadoop, java.lang.RuntimeException: java.lang.ClassNotFoundException error 获取java.lang.runtimeexception - getting java.lang.runtimeexception java.lang.runtimeexception 如何修复 java.lang.RuntimeException:创建扩展解析器时出错 class:null 错误在 Z2ADAE5435458DFZAE? - How to fix java.lang.RuntimeException: Error creating extended parser class: null error in Jenkins?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM