0 Replies Latest reply on Mar 8, 2005 5:37 PM by Ron Smith

    I'm doing something wrong...

    Ron Smith Newbie

      I'm sure I'm doing something wrong but darned if I know what.
      I just want my message bean to get a message out of the queue but it looks like there is some permissions crap I have to deal with.
      I can't find anything about setting permissions for JMS queues in the docs and I've tried googling on the error messages.
      I'd appreciate any help -- I'm trying to get a demo working for a VP which just proves once again that your chance of failure is directly proportional to the rank of the person viewing the demo.

      16:14:14,733 INFO [] blah.blah.MyMessageBean: Processing result message
      16:14:15,132 ERROR [JMSContainerInvoker] Exception in JMSCI message listener
      java.security.AccessControlException: access denied (java.lang.RuntimePermission setContextClassLoader)
       at java.security.AccessControlContext.checkPermission(AccessControlContext.java:269)
       at java.security.AccessController.checkPermission(AccessController.java:401)
       at java.lang.SecurityManager.checkPermission(SecurityManager.java:524)
       at java.lang.Thread.setContextClassLoader(Thread.java:1230)
       at org.jboss.ejb.plugins.jms.JMSContainerInvoker$5.run(JMSContainerInvoker.java:1456)
       at java.security.AccessController.doPrivileged(Native Method)
       at org.jboss.ejb.plugins.jms.JMSContainerInvoker$2.setContextClassLoader(JMSContainerInvoker.java:1452)
       at org.jboss.ejb.plugins.jms.JMSContainerInvoker$TCLAction$UTIL.setContextClassLoader(JMSContainerInvoker.java:1392)
       at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvoker.java:971)
       at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onMessage(JMSContainerInvoker.java:1253)
       at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:256)
       at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:904)
       at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:159)
       at org.jboss.mq.SpySession.run(SpySession.java:351)
       at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:180)
       at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743)
       at java.lang.Thread.run(Thread.java:552)
      16:14:17,033 ERROR [AbstractDeploymentScanner$ScannerThread] Scanning failed; continuing
      java.security.AccessControlException: access denied (javax.management.MBeanPermission org.jboss.mx.modelmbean.XMBean#SuffixOrder[jboss.system:service=MainDeployer] getAttribute)
       at java.security.AccessControlContext.checkPermission(AccessControlContext.java:269)
       at java.security.AccessController.checkPermission(AccessController.java:401)
       at java.lang.SecurityManager.checkPermission(SecurityManager.java:524)
       at org.jboss.mx.server.MBeanServerImpl.checkMBeanPermission(MBeanServerImpl.java:1691)
       at org.jboss.mx.server.MBeanServerImpl.getAttribute(MBeanServerImpl.java:534)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:115)
       at $Proxy10.getSuffixOrder(Unknown Source)
       at org.jboss.deployment.scanner.URLDeploymentScanner.updateSorter(URLDeploymentScanner.java:516)
       at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:359)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:204)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:215)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:194)
      16:14:18,605 WARN [Log4jService$URLWatchTimerTask] Failed to check URL: resource:log4j.xml
      java.security.AccessControlException: access denied (java.io.FilePermission /Developer/Java/jboss-4.0.1sp1/server/default/conf/log4j.xml read)
       at java.security.AccessControlContext.checkPermission(AccessControlContext.java:269)
       at java.security.AccessController.checkPermission(AccessController.java:401)
       at java.lang.SecurityManager.checkPermission(SecurityManager.java:524)
       at java.lang.SecurityManager.checkRead(SecurityManager.java:863)
       at java.io.File.lastModified(File.java:771)
       at org.jboss.net.protocol.file.FileURLConnection.getLastModified(FileURLConnection.java:149)
       at org.jboss.net.protocol.DelegatingURLConnection.getLastModified(DelegatingURLConnection.java:89)
       at org.jboss.logging.Log4jService$URLWatchTimerTask.run(Log4jService.java:554)
       at java.util.TimerThread.mainLoop(Timer.java:432)
       at java.util.TimerThread.run(Timer.java:382)
      16:14:19,254 INFO [STDOUT] java.security.AccessControlException: access denied (java.lang.RuntimePermission setContextClassLoader)
      16:14:19,254 INFO [STDOUT] at java.security.AccessControlContext.checkPermission(AccessControlContext.java:269)
      16:14:19,255 INFO [STDOUT] at java.security.AccessController.checkPermission(AccessController.java:401)
      16:14:19,255 INFO [STDOUT] at java.lang.SecurityManager.checkPermission(SecurityManager.java:524)
      16:14:19,255 INFO [STDOUT] at java.lang.Thread.setContextClassLoader(Thread.java:1230)
      16:14:19,255 INFO [STDOUT] at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1623)
      16:14:19,255 INFO [STDOUT] at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1608)
      16:14:19,255 INFO [STDOUT] at java.lang.Thread.run(Thread.java:552)