2 Replies Latest reply on Jan 26, 2005 2:41 AM by jzhuo

    How can I start JBossMQ alone?

    jzhuo

      I want use JBoss as a JMS server without other J2EE services.

      I do my job as following:
      (1) copy minimal directory to a new directory named myconfig. it contains minimal definitions to start JBoss Server.
      (2) copy default/deploy/jms to myconfig/deploy/jms, and only left two xml files, including jbossmq-destinations-service.xml to defined some default destination and jbossmq-service.xml defined JBossMQ services properties.
      (3) copy default/conf/jbossmq-state.xml to mydefault/conf/jbossmq-state.xml that defined some rols and users.

      I started JBoss Server with new configuration, it done normally without errors.

      but when I run a demo program(the first sample in Chapter 6 of Administrator Book), it report following exception:

      09:36:47,281 WARN [OILServerILService] Client request resulted in a server exception:
      javax.jms.IllegalStateException: SecurityManager only works with a SubjectSecurityManager
       at org.jboss.mq.security.SecurityManager.authenticate(SecurityManager.java:185)
       at org.jboss.mq.security.ServerSecurityInterceptor.authenticate(ServerSecurityInterceptor.java:51)
       at org.jboss.mq.server.TracingInterceptor.authenticate(TracingInterceptor.java:650)
       at org.jboss.mq.server.JMSServerInvoker.authenticate(JMSServerInvoker.java:288)
       at org.jboss.mq.il.oil.OILServerILService$Client.run(OILServerILService.java:328)
       at java.lang.Thread.run(Thread.java:534)


      Did I make some faults? By other way, I try to copy default/conf/login-config.xml to myconfig/conf/login-config.xml, but not OK too.

      Thank you for your help.

      Jack