1 Reply Latest reply on Mar 16, 2010 5:55 AM by aaaaaaa aaaaaaaaa

    AccessLocalException appears after QueueConnection was started

    aaaaaaa aaaaaaaaa Newbie

      Hi, all

       

      I have experienced the following problem while using EJB&messaging under JBoss 5.1

      I have some Queue where I send messages from EJB

      My EJB is under my security domain and messaging Queue is under default security domain (called "messaging")

      Everything works fine BUT:

      after I have created a QueueConnection, start it, send a message and return to parent EJB I have AccessLocalException when try to get some another EJB local interface

       

       

      Note that under JBoss 4.x it works fine!

       

       

      Does anyone know what am I doing wrong?

       

      Thanks in advance

       

       

      My configuration:

       

      My security domain:

      <application-policy name="VTBiz-Portal">
      <authentication>
      <login-module code="com.vtsystems.vtbiz.security.VTLoginModule" flag="required">
      <module-option name="unauthenticatedIdentity">guest</module-option>
      <module-option name="dsJndiName">java:/VTPortalDS</module-option>
      <module-option name="principalsQuery">SELECT UD.password FROM UserData as UD inner join User U on U.currentData = UD.id where UD.userName=? and userAccess = 'STAFF'</module-option>
      <module-option name="rolesQuery">SELECT r.name, 'Roles' FROM UserRole as ur inner join User U on U.id = ur.user inner join Role r on r.id = ur.role inner join UserData UD on U.currentData = UD.id where ur.active=1 and UD.userName=?</module-option>
      <module-option name="userIdQuery">SELECT U.id FROM UserData as UD inner join User U on U.currentData = UD.id where UD.userName=?</module-option>
      <module-option name="hashAlgorithm">MD5</module-option>
      <module-option name="hashEncoding">hex</module-option>
      <module-option name="hashCharset">UTF-8</module-option>
      <module-option name="principalClass">com.vtsystems.vtbiz.security.VTPrincipal</module-option>
      </login-module>
      </authentication>
      </application-policy>

       

       

       

       

       

      My messaging/messaging-jboss-beans.xml :

       

      <?xml version="1.0" encoding="UTF-8"?>

       

      <!--
          Messaging beans
          $Id: messaging-jboss-beans.xml 88672 2009-05-11 20:49:47Z anil.saldhana@jboss.com $
      -->
      <deployment xmlns="urn:jboss:bean-deployer:2.0">

       

       

       

         <!-- messaging application-policy definition -->
         <application-policy xmlns="urn:jboss:security-beans:1.0" name="messaging">
            <authentication>
               <login-module code="org.jboss.security.auth.spi.DatabaseServerLoginModule" flag="required">
                  <module-option name="unauthenticatedIdentity">guest</module-option>
                  <module-option name="dsJndiName">java:/DefaultDS</module-option>
                  <module-option name="principalsQuery">SELECT PASSWD FROM JBM_USER WHERE USER_ID=?</module-option>
                  <module-option name="rolesQuery">SELECT ROLE_ID, 'Roles' FROM JBM_ROLE WHERE USER_ID=?</module-option>
               </login-module>
            </authentication>
         </application-policy>

       

         <bean name="SecurityStore" class="org.jboss.jms.server.jbosssx.JBossASSecurityMetadataStore">
            <!-- default security configuration -->
            <property name="defaultSecurityConfig">
               <![CDATA[
                  <security>
                     <role name="guest" read="true" write="true" create="true"/>
                  </security>
               ]]>
            </property>
            <property name="suckerPassword">CHANGE ME!!</property>
            <property name="securityDomain">messaging</property>
            <property name="securityManagement"><inject bean="JNDIBasedSecurityManagement"/></property>
            <!-- @JMX annotation to export the management view of this bean -->
            <annotation>@org.jboss.aop.microcontainer.aspects.jmx.JMX(name="jboss.messaging:service=SecurityStore",exposedInterface=org.jboss.jms.server.jbosssx.JBossASSecurityMetadataStoreMBean.class)</annotation>
            <!-- Password Annotation to inject the password from the common password utility
             <annotation>@org.jboss.security.integration.password.Password(securityDomain="messaging",methodName="setSuckerPassword")</annotation>
             -->
         </bean>

       

         <bean name="MessagingDeploymentTemplateInfoFactory"
            class="org.jboss.managed.plugins.factory.DeploymentTemplateInfoFactory"/>

       

         <bean name="QueueTemplate" class="org.jboss.profileservice.management.templates.JmsDestinationTemplate">
            <property name="info"><inject bean="QueueTemplateInfo"/></property>
         </bean>
         <bean name="QueueTemplateInfo"
            class="org.jboss.profileservice.management.templates.JmsDestinationTemplateInfo">
            <constructor factoryMethod="createTemplateInfo">
               <factory bean="DSDeploymentTemplateInfoFactory"/>
               <parameter class="java.lang.Class">org.jboss.profileservice.management.templates.JmsDestinationTemplateInfo</parameter>
               <parameter class="java.lang.Class">org.jboss.jms.server.destination.QueueServiceMO</parameter>
               <parameter class="java.lang.String">QueueTemplate</parameter>
               <parameter class="java.lang.String">A template for JMS queue *-service.xml deployments</parameter>
            </constructor>
            <property name="destinationType">QueueTemplate</property>
         </bean>

       

         <bean name="TopicTemplate" class="org.jboss.profileservice.management.templates.JmsDestinationTemplate">
            <property name="info"><inject bean="TopicTemplateInfo"/></property>
         </bean>
         <bean name="TopicTemplateInfo"
            class="org.jboss.profileservice.management.templates.JmsDestinationTemplateInfo">
            <constructor factoryMethod="createTemplateInfo">
               <factory bean="DSDeploymentTemplateInfoFactory"/>
               <parameter class="java.lang.Class">org.jboss.profileservice.management.templates.JmsDestinationTemplateInfo</parameter>
               <parameter class="java.lang.Class">org.jboss.jms.server.destination.TopicServiceMO</parameter>
               <parameter class="java.lang.String">TopicTemplate</parameter>
               <parameter class="java.lang.String">A template for JMS topic *-service.xml deployments</parameter>
            </constructor>
            <property name="destinationType">TopicTemplate</property>
         </bean>

       

      </deployment>

       

       

       

       

      my destinations-service.xml :

       

          <mbean code="org.jboss.jms.server.destination.QueueService" name="jboss.messaging.destination:service=Queue,name=VTBizCommManager"
              xmbean-dd="xmdesc/Queue-xmbean.xml">

       

              <attribute name="RedeliveryDelay">600000</attribute>
              <attribute name="MaxDeliveryAttempts">-1</attribute>

       

              <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
              <depends>jboss.messaging:service=PostOffice</depends>
          </mbean>

       

       

       

      my EJB :

       

      javax.naming.InitialContext initialContext = new javax.naming.InitialContext();
              try {
                  Object tmp = initialContext.lookup("ConnectionFactory");
                  QueueConnectionFactory qcf = (QueueConnectionFactory) tmp;
                  QueueConnection con= qcf.createQueueConnection();
              } finally {
                  initialContext.close();
              }

       

       

                  try {
                      QueueSession ses = con.createQueueSession(false, javax.jms.Session.AUTO_ACKNOWLEDGE);
                      Queue que = getQueue();
                      con.start();

       

                      try {
                          ses.createSender(que).send(ses.createObjectMessage(obj));
                      } finally {
                          ses.close();
                      }
                  } finally {
                      con.close();
                  }

       

       

       

       

      my ejb-jar.xml :

            <message-driven >
               <description><![CDATA[Redirects all queued messages to {@link com.vtsystems.vtbiz.process.BusinessExecutionService}]]></description>

       

               <ejb-name>VTBizCommManager</ejb-name>

       

               <ejb-class>com.vtsystems.vtbiz.service.messaging.ejb.impl.VTBizCommManagerMdb</ejb-class>

       

               <messaging-type>javax.jms.MessageListener</messaging-type>
               <transaction-type>Container</transaction-type>
               <message-destination-type>javax.jms.Queue</message-destination-type>
               <activation-config>
                 <activation-config-property>
                   <activation-config-property-name>destinationType</activation-config-property-name>
                   <activation-config-property-value>javax.jms.Queue</activation-config-property-value>
                 </activation-config-property>
                 <activation-config-property>
                   <activation-config-property-name>acknowledgeMode</activation-config-property-name>
                   <activation-config-property-value>Auto-acknowledge</activation-config-property-value>
                 </activation-config-property>
               </activation-config>

       

            </message-driven>

       

       

       

       

      my jboss.xml :

            <message-driven>
               <ejb-name>VTBizCommManager</ejb-name>                      
               <destination-jndi-name>queue/VTBizCommManager</destination-jndi-name>

       

            </message-driven>

        • 1. Re: AccessLocalException appears after QueueConnection was started
          aaaaaaa aaaaaaaaa Newbie

          My ERROR log:

           

          2010-03-16 12:50:46,350 ERROR [org.jboss.ejb.plugins.SecurityInterceptor] (http-127.0.0.1-8543-1) Error in Security Interceptor
          java.lang.SecurityException: Authentication exception, principal=emaadmin
              at org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityContext(SecurityInterceptor.java:321)
              at org.jboss.ejb.plugins.SecurityInterceptor.process(SecurityInterceptor.java:243)
              at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:205)
              at org.jboss.ejb.plugins.security.PreSecurityInterceptor.process(PreSecurityInterceptor.java:136)
              at org.jboss.ejb.plugins.security.PreSecurityInterceptor.invokeHome(PreSecurityInterceptor.java:88)
              at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:132)
              at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:107)
              at org.jboss.ejb.SessionContainer.internalInvokeHome(SessionContainer.java:639)
              at org.jboss.ejb.Container.invoke(Container.java:1046)
              at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invokeHome(BaseLocalProxyFactory.java:362)
              at org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:133)
              at $Proxy338.create(Unknown Source)
              at com.vtsystems.vtbiz.persistence.EJBLocator.getUserActionSessionBeanLocal(EJBLocator.java:511)
              at com.vtsystems.vtbiz.facade.contract.ejb.ContractSessionFacadeBean.sendMissingDocumentsMailToClient(ContractSessionFacadeBean.java:5057)
              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:597)
              at org.jboss.invocation.Invocation.performCall(Invocation.java:386)
              at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:228)
              at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:156)
              at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:173)
              at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
              at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
              at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
              at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
              at org.jboss.ejb.plugins.SecurityInterceptor.process(SecurityInterceptor.java:267)
              at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:211)
              at org.jboss.ejb.plugins.security.PreSecurityInterceptor.process(PreSecurityInterceptor.java:134)
              at org.jboss.ejb.plugins.security.PreSecurityInterceptor.invoke(PreSecurityInterceptor.java:81)
              at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
              at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)
              at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:650)
              at org.jboss.ejb.Container.invoke(Container.java:1029)
              at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:436)
              at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:103)
              at $Proxy357.sendMissingDocumentsMailToClient(Unknown Source)
              at com.vtsystems.vtbiz.ContractServiceDelegate.sendMissingDocumentsMailToClient(ContractServiceDelegate.java:1039)
              at com.vtsystems.vtbiz.portal.staff.portlet.contract.DefaultViewContractPortlet.doSendMail(DefaultViewContractPortlet.java:648)
              at com.vtsystems.vtbiz.portal.staff.portlet.contract.DefaultViewContractPortlet.processAction(DefaultViewContractPortlet.java:631)
              at com.vtsystems.vtbiz.portal.struts.StrutsGenericPortlet.execute(StrutsGenericPortlet.java:528)
              at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
              at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
              at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
              at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at com.vtsystems.vtbiz.portal.staff.filter.PostLoginFilter.doFilter(PostLoginFilter.java:49)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at com.vtsystems.vtbiz.servlet.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:171)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
              at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
              at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
              at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
              at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
              at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
              at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
              at java.lang.Thread.run(Thread.java:619)
          2010-03-16 12:50:46,366 ERROR [org.jboss.ejb.plugins.LogInterceptor] (http-127.0.0.1-8543-1) EJBException in method: public abstract void com.vtsystems.vtbiz.facade.contract.ejb.impl.ContractSessionFacadeBeanLocal.sendMissingDocumentsMailToClient(java.lang.Long,java.lang.String,java.lang.String,java.lang.String) throws javax.ejb.EJBException,com.cmsforex.exceptions.SecurityException, causedBy:
          java.lang.SecurityException: Authentication exception, principal=emaadmin
              at org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityContext(SecurityInterceptor.java:321)
              at org.jboss.ejb.plugins.SecurityInterceptor.process(SecurityInterceptor.java:243)
              at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:205)
              at org.jboss.ejb.plugins.security.PreSecurityInterceptor.process(PreSecurityInterceptor.java:136)
              at org.jboss.ejb.plugins.security.PreSecurityInterceptor.invokeHome(PreSecurityInterceptor.java:88)
              at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:132)
              at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:107)
              at org.jboss.ejb.SessionContainer.internalInvokeHome(SessionContainer.java:639)
              at org.jboss.ejb.Container.invoke(Container.java:1046)
              at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invokeHome(BaseLocalProxyFactory.java:362)
              at org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:133)
              at $Proxy338.create(Unknown Source)
              at com.vtsystems.vtbiz.persistence.EJBLocator.getUserActionSessionBeanLocal(EJBLocator.java:511)
              at com.vtsystems.vtbiz.facade.contract.ejb.ContractSessionFacadeBean.sendMissingDocumentsMailToClient(ContractSessionFacadeBean.java:5057)
              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:597)
              at org.jboss.invocation.Invocation.performCall(Invocation.java:386)
              at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:228)
              at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:156)
              at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:173)
              at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
              at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
              at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
              at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
              at org.jboss.ejb.plugins.SecurityInterceptor.process(SecurityInterceptor.java:267)
              at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:211)
              at org.jboss.ejb.plugins.security.PreSecurityInterceptor.process(PreSecurityInterceptor.java:134)
              at org.jboss.ejb.plugins.security.PreSecurityInterceptor.invoke(PreSecurityInterceptor.java:81)
              at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
              at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)
              at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:650)
              at org.jboss.ejb.Container.invoke(Container.java:1029)
              at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:436)
              at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:103)
              at $Proxy357.sendMissingDocumentsMailToClient(Unknown Source)
              at com.vtsystems.vtbiz.ContractServiceDelegate.sendMissingDocumentsMailToClient(ContractServiceDelegate.java:1039)
              at com.vtsystems.vtbiz.portal.staff.portlet.contract.DefaultViewContractPortlet.doSendMail(DefaultViewContractPortlet.java:648)
              at com.vtsystems.vtbiz.portal.staff.portlet.contract.DefaultViewContractPortlet.processAction(DefaultViewContractPortlet.java:631)
              at com.vtsystems.vtbiz.portal.struts.StrutsGenericPortlet.execute(StrutsGenericPortlet.java:528)
              at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
              at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
              at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
              at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at com.vtsystems.vtbiz.portal.staff.filter.PostLoginFilter.doFilter(PostLoginFilter.java:49)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at com.vtsystems.vtbiz.servlet.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:171)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
              at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
              at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
              at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
              at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
              at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
              at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
              at java.lang.Thread.run(Thread.java:619)
          2010-03-16 12:50:46,366 WARN  [org.apache.struts.util.PropertyMessageResources] (http-127.0.0.1-8543-1)   Resource org/apache/struts/action/ActionResources_ru_RU.properties Not Found.
          2010-03-16 12:50:46,366 WARN  [org.apache.struts.util.PropertyMessageResources] (http-127.0.0.1-8543-1)   Resource org/apache/struts/action/ActionResources_ru.properties Not Found.
          2010-03-16 12:50:46,381 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[staffportalvirtualhost].[/].[action]] (http-127.0.0.1-8543-1) Servlet.service() for servlet action threw exception
          javax.ejb.AccessLocalException: SecurityException; CausedByException is:
              Authentication exception, principal=emaadmin
              at org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.java:384)
              at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:136)
              at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:107)
              at org.jboss.ejb.SessionContainer.internalInvokeHome(SessionContainer.java:639)
              at org.jboss.ejb.Container.invoke(Container.java:1046)
              at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invokeHome(BaseLocalProxyFactory.java:362)
              at org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:133)
              at $Proxy338.create(Unknown Source)
              at com.vtsystems.vtbiz.persistence.EJBLocator.getUserActionSessionBeanLocal(EJBLocator.java:511)
              at com.vtsystems.vtbiz.facade.contract.ejb.ContractSessionFacadeBean.sendMissingDocumentsMailToClient(ContractSessionFacadeBean.java:5057)
              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:597)
              at org.jboss.invocation.Invocation.performCall(Invocation.java:386)
              at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:228)
              at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:156)
              at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:173)
              at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
              at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
              at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
              at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
              at org.jboss.ejb.plugins.SecurityInterceptor.process(SecurityInterceptor.java:267)
              at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:211)
              at org.jboss.ejb.plugins.security.PreSecurityInterceptor.process(PreSecurityInterceptor.java:134)
              at org.jboss.ejb.plugins.security.PreSecurityInterceptor.invoke(PreSecurityInterceptor.java:81)
              at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
              at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)
              at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:650)
              at org.jboss.ejb.Container.invoke(Container.java:1029)
              at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:436)
              at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:103)
              at $Proxy357.sendMissingDocumentsMailToClient(Unknown Source)
              at com.vtsystems.vtbiz.ContractServiceDelegate.sendMissingDocumentsMailToClient(ContractServiceDelegate.java:1039)
              at com.vtsystems.vtbiz.portal.staff.portlet.contract.DefaultViewContractPortlet.doSendMail(DefaultViewContractPortlet.java:648)
              at com.vtsystems.vtbiz.portal.staff.portlet.contract.DefaultViewContractPortlet.processAction(DefaultViewContractPortlet.java:631)
              at com.vtsystems.vtbiz.portal.struts.StrutsGenericPortlet.execute(StrutsGenericPortlet.java:528)
              at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
              at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
              at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
              at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at com.vtsystems.vtbiz.portal.staff.filter.PostLoginFilter.doFilter(PostLoginFilter.java:49)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at com.vtsystems.vtbiz.servlet.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:171)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
              at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
              at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
              at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
              at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
              at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
              at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
              at java.lang.Thread.run(Thread.java:619)
          java.lang.SecurityException: Authentication exception, principal=emaadmin
              at org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityContext(SecurityInterceptor.java:321)
              at org.jboss.ejb.plugins.SecurityInterceptor.process(SecurityInterceptor.java:243)
              at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:205)
              at org.jboss.ejb.plugins.security.PreSecurityInterceptor.process(PreSecurityInterceptor.java:136)
              at org.jboss.ejb.plugins.security.PreSecurityInterceptor.invokeHome(PreSecurityInterceptor.java:88)
              at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:132)
              at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:107)
              at org.jboss.ejb.SessionContainer.internalInvokeHome(SessionContainer.java:639)
              at org.jboss.ejb.Container.invoke(Container.java:1046)
              at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invokeHome(BaseLocalProxyFactory.java:362)
              at org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:133)
              at $Proxy338.create(Unknown Source)
              at com.vtsystems.vtbiz.persistence.EJBLocator.getUserActionSessionBeanLocal(EJBLocator.java:511)
              at com.vtsystems.vtbiz.facade.contract.ejb.ContractSessionFacadeBean.sendMissingDocumentsMailToClient(ContractSessionFacadeBean.java:5057)
              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:597)
              at org.jboss.invocation.Invocation.performCall(Invocation.java:386)
              at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:228)
              at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:156)
              at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:173)
              at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
              at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
              at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
              at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
              at org.jboss.ejb.plugins.SecurityInterceptor.process(SecurityInterceptor.java:267)
              at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:211)
              at org.jboss.ejb.plugins.security.PreSecurityInterceptor.process(PreSecurityInterceptor.java:134)
              at org.jboss.ejb.plugins.security.PreSecurityInterceptor.invoke(PreSecurityInterceptor.java:81)
              at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
              at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)
              at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:650)
              at org.jboss.ejb.Container.invoke(Container.java:1029)
              at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:436)
              at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:103)
              at $Proxy357.sendMissingDocumentsMailToClient(Unknown Source)
              at com.vtsystems.vtbiz.ContractServiceDelegate.sendMissingDocumentsMailToClient(ContractServiceDelegate.java:1039)
              at com.vtsystems.vtbiz.portal.staff.portlet.contract.DefaultViewContractPortlet.doSendMail(DefaultViewContractPortlet.java:648)
              at com.vtsystems.vtbiz.portal.staff.portlet.contract.DefaultViewContractPortlet.processAction(DefaultViewContractPortlet.java:631)
              at com.vtsystems.vtbiz.portal.struts.StrutsGenericPortlet.execute(StrutsGenericPortlet.java:528)
              at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
              at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
              at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
              at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at com.vtsystems.vtbiz.portal.staff.filter.PostLoginFilter.doFilter(PostLoginFilter.java:49)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at com.vtsystems.vtbiz.servlet.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:171)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
              at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
              at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
              at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
              at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
              at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
              at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
              at java.lang.Thread.run(Thread.java:619)
          2010-03-16 12:51:08,270 INFO  [org.jboss.bootstrap.microcontainer.ServerImpl] (JBoss Shutdown Hook) Runtime shutdown hook called, forceHalt: true