I'm getting JMSAdminException when I call list-jmsdest. To start
with, here's the top of stack trace/root cause:
java.net.MalformedURLException: Service URL must start with service:jmx:
at javax.management.remote.JMXServiceURL.<init>(JMXServiceURL.java:143)
at
org.glassfish.jms.admin.cli.MQJMXConnectorInfo.getMQMBeanServerConnection(MQJMXConnectorInfo.java:120)
at
org.glassfish.jms.admin.cli.CreateJMSDestination.createJMSDestination(CreateJMSDestination.java:152)
at
org.glassfish.jms.admin.cli.CreateJMSDestination.execute(CreateJMSDestination.java:135)
What I do to get this error is:
asadmin create-instance --node localhost in1
asadmin start-instance in1
asadmin create-jmsdest --target in1 --desttype topic myJmsDest
After I issue the create-jsmdest, the JMS broker is started, putting
this (which I've trimmed a bit) in the logs, right before the exception
above:
com.sun.enterprise.connectors.jms.system.ActiveJmsResourceAdapter|_ThreadID=18;_ThreadName=Thread-1;|ADDRESSLIST
in setJmsServiceProvider mq://localhost:7676/|#]
com.sun.enterprise.connectors.jms.system.ActiveJmsResourceAdapter|_ThreadID=18;_ThreadName=Thread-1;|JMS
Service Connection URL is :mq://localhost:7676/|#]
org.hibernate.validator.engine.resolver.DefaultTraversableResolver|_ThreadID=18;_ThreadName=Thread-1;|Instantiated
an instance of
org.hibernate.validator.engine.resolver.JPATraversableResolver.|#]
javax.resourceadapter.mqjmsra.lifecycle|_ThreadID=18;_ThreadName=Thread-1;|MQJMSRA_RA1101:
SJSMQ JMS Resource Adapter starting: DIRECT|#]
javax.resourceadapter.mqjmsra.lifecycle|_ThreadID=18;_ThreadName=Thread-1;|MQJMSRA_RA1101:
SJSMQ JMSRA Started:DIRECT|#]
javax.resourceadapter.mqjmsra.lifecycle|_ThreadID=18;_ThreadName=Thread-1;|MQJMSRA_RA4001:
getJMXServiceURLList:Exception:Message=Caught exception when parsing
address: mq://localhost:${JMS_PROVIDER_PORT}/|#]
What am I doing wrong?
--
Jason Lee
Senior Member of Technical Staff
GlassFish Administration Console
Oracle Corporation
Phone +1 405-216-3193
Blog http://blogs.steeplesoft.com