1 Reply Latest reply on Mar 25, 2005 12:53 PM by adrian.brock

    ClassCastException DynamicLoginModule on JMS

    anandnatraj

      When I tried to deploy my application which uses two simple queues, I am getting the following Exception.
      The steps I followed:
      1. Created two queues using jbossmq-destinations-service.xml - deploy/jms folder
      2. Added a local-tx-data source in oracle-ds.xml (oracle being my backend)
      3. Copied the oracle-jdbc2-service.xml to deploy/jms folder with the connection manager name as the above datasource created by me.(When deployed the tables are created in the DB. So no issue with the datasource creation).
      4. Now i started the server. NO error in the startup.
      5. now Copy my appliaction into Deploy folder. I got the following classcastException.
      17:15:30,976 ERROR [DynamicLoginModule] Failed to load DynamicSecurityManager
      java.lang.ClassCastException
      at org.jboss.mq.sm.file.DynamicLoginModule.initialize(DynamicLoginModule.java:53)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at javax.security.auth.login.LoginContext.invoke(LoginContext.java:662)
      at javax.security.auth.login.LoginContext.access$000(LoginContext.java:129)
      at javax.security.auth.login.LoginContext$4.run(LoginContext.java:610)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:607)
      at javax.security.auth.login.LoginContext.login(LoginContext.java:534)
      at org.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecurityManager.java:480)
      at org.jboss.security.plugins.JaasSecurityManager.authenticate(JaasSecurityManager.java:431)
      at org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:246)
      at org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:221)
      at org.jboss.mq.security.SecurityManager.authenticate(SecurityManager.java:199)
      at org.jboss.mq.security.ServerSecurityInterceptor.authenticate(ServerSecurityInterceptor.java:51)
      at org.jboss.mq.server.TracingInterceptor.authenticate(TracingInterceptor.java:781)
      at org.jboss.mq.server.JMSServerInvoker.authenticate(JMSServerInvoker.java:287)
      at org.jboss.mq.il.jvm.JVMServerIL.authenticate(JVMServerIL.java:301)
      at org.jboss.mq.Connection.authenticate(Connection.java:1160)
      at org.jboss.mq.Connection.(Connection.java:255)
      at org.jboss.mq.Connection.(Connection.java:332)
      at org.jboss.mq.SpyConnection.(SpyConnection.java:66)
      at org.jboss.mq.SpyConnectionFactory.createConnection(SpyConnectionFactory.java:87)
      at org.jboss.mq.SpyConnectionFactory.createQueueConnection(SpyConnectionFactory.java:124)
      at org.jboss.ejb.plugins.jms.DLQHandler.createService(DLQHandler.java:157)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:237)
      at org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:164)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSContainerInvoker.java:542)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMSContainerInvoker.java:764)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
      at sun.reflect.GeneratedMethodAccessor55.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)

      Any help is appreciated.