2 Replies Latest reply on Jul 22, 2013 2:58 AM by Satyanarayanan Iyer

    MyCache in JBoss 4.2.3

    Satyanarayanan Iyer Newbie

      Hi,

       

        I have compiled and deployed my program in JBoss 4.2.3 GA. However I face one problem while running the deployment. When I start the server using

       

      sh start.sh

       

      the following errors gets displayed.

       

      17:50:13,726 ERROR [STDERR] javax.naming.NameNotFoundException: MyCache not bound

      17:50:13,727 ERROR [STDERR]     at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)

      17:50:13,727 ERROR [STDERR]     at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)

      17:50:13,727 ERROR [STDERR]     at org.jnp.server.NamingServer.getObject(NamingServer.java:543)

      17:50:13,727 ERROR [STDERR]     at org.jnp.server.NamingServer.lookup(NamingServer.java:296)

      17:50:13,727 ERROR [STDERR]     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:667)

      17:50:13,727 ERROR [STDERR]     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)

      17:50:13,727 ERROR [STDERR]     at javax.naming.InitialContext.lookup(InitialContext.java:392)

      17:50:13,727 ERROR [STDERR]     at xxx.xxxxxxx.xxxxxxx.xxx.xxxxxxxxServletContextListener.contextInitialized(xxxxxxxxxxxxxxxContextListener.java:37)

      17:50:13,727 ERROR [STDERR]     at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3856)

      17:50:13,727 ERROR [STDERR]     at org.apache.catalina.core.StandardContext.start(StandardContext.java:4361)

      17:50:13,727 ERROR [STDERR]     at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:790)

      17:50:13,727 ERROR [STDERR]     at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:770)

      17:50:13,727 ERROR [STDERR]     at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)

      17:50:13,727 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      17:50:13,727 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

      17:50:13,727 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      17:50:13,727 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:597)

      17:50:13,727 ERROR [STDERR]     at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)

      17:50:13,727 ERROR [STDERR]     at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)

      17:50:13,727 ERROR [STDERR]     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

      17:50:13,727 ERROR [STDERR]     at org.apache.catalina.core.StandardContext.init(StandardContext.java:5312)

      17:50:13,727 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      17:50:13,727 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

      17:50:13,727 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      17:50:13,727 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:597)

      17:50:13,727 ERROR [STDERR]     at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)

      17:50:13,727 ERROR [STDERR]     at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)

      17:50:13,727 ERROR [STDERR]     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

      17:50:13,727 ERROR [STDERR]     at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)

      17:50:13,727 ERROR [STDERR]     at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)

      17:50:13,727 ERROR [STDERR]     at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)

      17:50:13,728 ERROR [STDERR]     at org.jboss.web.WebModule.startModule(WebModule.java:83)

      17:50:13,728 ERROR [STDERR]     at org.jboss.web.WebModule.startService(WebModule.java:61)

      17:50:13,728 ERROR [STDERR]     at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)

      17:50:13,728 ERROR [STDERR]     at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)

      17:50:13,728 ERROR [STDERR]     at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)

      17:50:13,728 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      17:50:13,728 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:597)

      17:50:13,728 ERROR [STDERR]     at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

      17:50:13,728 ERROR [STDERR]     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

      17:50:13,728 ERROR [STDERR]     at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)

      17:50:13,728 ERROR [STDERR]     at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

      17:50:13,728 ERROR [STDERR]     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

      17:50:13,728 ERROR [STDERR]     at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)

      17:50:13,728 ERROR [STDERR]     at $Proxy0.start(Unknown Source)

      17:50:13,728 ERROR [STDERR]     at org.jboss.system.ServiceController.start(ServiceController.java:417)

      17:50:13,728 ERROR [STDERR]     at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)

      17:50:13,728 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      17:50:13,728 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:597)

      17:50:13,728 ERROR [STDERR]     at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

      17:50:13,728 ERROR [STDERR]     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

      17:50:13,728 ERROR [STDERR]     at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)

      17:50:13,728 ERROR [STDERR]     at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

      17:50:13,728 ERROR [STDERR]     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

      17:50:13,728 ERROR [STDERR]     at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)

      17:50:13,728 ERROR [STDERR]     at $Proxy53.start(Unknown Source)

      17:50:13,728 ERROR [STDERR]     at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)

      17:50:13,728 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      17:50:13,728 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

      17:50:13,728 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      17:50:13,728 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:597)

      17:50:13,728 ERROR [STDERR]     at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

      17:50:13,728 ERROR [STDERR]     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

      17:50:13,728 ERROR [STDERR]     at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)

      17:50:13,728 ERROR [STDERR]     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

      17:50:13,728 ERROR [STDERR]     at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)

      17:50:13,728 ERROR [STDERR]     at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)

      17:50:13,728 ERROR [STDERR]     at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)

      17:50:13,728 ERROR [STDERR]     at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:87)

      17:50:13,729 ERROR [STDERR]     at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)

      17:50:13,729 ERROR [STDERR]     at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)

      17:50:13,729 ERROR [STDERR]     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

      17:50:13,729 ERROR [STDERR]     at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

      17:50:13,729 ERROR [STDERR]     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

      17:50:13,729 ERROR [STDERR]     at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)

      17:50:13,729 ERROR [STDERR]     at $Proxy54.start(Unknown Source)

      17:50:13,729 ERROR [STDERR]     at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)

      17:50:13,729 ERROR [STDERR]     at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)

      17:50:13,729 ERROR [STDERR]     at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)

      17:50:13,729 ERROR [STDERR]     at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)

      17:50:13,729 ERROR [STDERR]     at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)

      17:50:13,729 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      17:50:13,729 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:597)

      17:50:13,729 ERROR [STDERR]     at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

      17:50:13,729 ERROR [STDERR]     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

      17:50:13,729 ERROR [STDERR]     at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)

      17:50:13,729 ERROR [STDERR]     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

      17:50:13,729 ERROR [STDERR]     at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)

      17:50:13,729 ERROR [STDERR]     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

      17:50:13,729 ERROR [STDERR]     at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

      17:50:13,729 ERROR [STDERR]     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

      17:50:13,729 ERROR [STDERR]     at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)

      17:50:13,729 ERROR [STDERR]     at $Proxy9.deploy(Unknown Source)

      17:50:13,729 ERROR [STDERR]     at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)

      17:50:13,729 ERROR [STDERR]     at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)

      17:50:13,729 ERROR [STDERR]     at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)

      17:50:13,729 ERROR [STDERR]     at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)

      17:50:13,729 ERROR [STDERR]     at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)

      17:50:13,729 ERROR [STDERR]     at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)

      17:50:13,729 ERROR [STDERR]     at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)

      17:50:13,729 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      17:50:13,729 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:597)

      17:50:13,729 ERROR [STDERR]     at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

      17:50:13,729 ERROR [STDERR]     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

      17:50:13,729 ERROR [STDERR]     at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)

      17:50:13,729 ERROR [STDERR]     at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

      17:50:13,729 ERROR [STDERR]     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

      17:50:13,729 ERROR [STDERR]     at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)

      17:50:13,730 ERROR [STDERR]     at $Proxy0.start(Unknown Source)

      17:50:13,730 ERROR [STDERR]     at org.jboss.system.ServiceController.start(ServiceController.java:417)

      17:50:13,730 ERROR [STDERR]     at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)

      17:50:13,730 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      17:50:13,730 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:597)

      17:50:13,730 ERROR [STDERR]     at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

      17:50:13,730 ERROR [STDERR]     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

      17:50:13,730 ERROR [STDERR]     at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)

      17:50:13,730 ERROR [STDERR]     at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

      17:50:13,730 ERROR [STDERR]     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

      17:50:13,730 ERROR [STDERR]     at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)

      17:50:13,730 ERROR [STDERR]     at $Proxy4.start(Unknown Source)

      17:50:13,730 ERROR [STDERR]     at org.jboss.deployment.SARDeployer.start(SARDeployer.java:304)

      17:50:13,730 ERROR [STDERR]     at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)

      17:50:13,730 ERROR [STDERR]     at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)

      17:50:13,730 ERROR [STDERR]     at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)

      17:50:13,730 ERROR [STDERR]     at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)

      17:50:13,730 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      17:50:13,730 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

      17:50:13,730 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      17:50:13,730 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:597)

      17:50:13,730 ERROR [STDERR]     at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

      17:50:13,730 ERROR [STDERR]     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

      17:50:13,730 ERROR [STDERR]     at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)

      17:50:13,730 ERROR [STDERR]     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

      17:50:13,730 ERROR [STDERR]     at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)

      17:50:13,730 ERROR [STDERR]     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

      17:50:13,730 ERROR [STDERR]     at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

      17:50:13,730 ERROR [STDERR]     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

      17:50:13,730 ERROR [STDERR]     at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)

      17:50:13,730 ERROR [STDERR]     at $Proxy5.deploy(Unknown Source)

      17:50:13,730 ERROR [STDERR]     at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)

      17:50:13,730 ERROR [STDERR]     at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)

      17:50:13,730 ERROR [STDERR]     at org.jboss.Main.boot(Main.java:200)

      17:50:13,730 ERROR [STDERR]     at org.jboss.Main$1.run(Main.java:508)

      17:50:13,730 ERROR [STDERR]     at java.lang.Thread.run(Thread.java:662)

       

       

      Could anyone help me solve this problem? I am neither able to access the database thru the application nor validate the users!!

       

      Satya N

        • 1. Re: MyCache in JBoss 4.2.3
          Wolf-Dieter Fink Master

          Where do you reference 'MyCache' and where you define the cache and its JNDI name?

          • 2. Re: MyCache in JBoss 4.2.3
            Satyanarayanan Iyer Newbie

            I define the cache and its JNDI name in the file <JBOSS_DIRECTORY>/bin/server/all/conf/jboss-service.xml

             

            and  I reference the cache using the java source code

            TreeCacheMBean cacheMBean = (TreeCacheMBean) sc.getAttribute("MyCache");[sc is an instance of ServletContext]

             

             

            Also, I get this error

             

            ** BEGIN NESTED EXCEPTION **

            java.net.ConnectException

            MESSAGE: Connection refused

            STACKTRACE:

             

            java.net.ConnectException: Connection refused

            at java.net.PlainSocketImpl.socketConnect(Native Method)

            at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)

            at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)

            at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)

            at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)

            at java.net.Socket.connect(Socket.java:529)

            at java.net.Socket.connect(Socket.java:478)

            at java.net.Socket.(Socket.java:375)

            at java.net.Socket.(Socket.java:218)

            at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:256)

            at com.mysql.jdbc.MysqlIO.(MysqlIO.java:271)

            at com.mysql.jdbc.Connection.createNewIO(Connection.java:2771)

            at com.mysql.jdbc.Connection.(Connection.java:1555)

            at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:285)

            at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:172)

            at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:619)

            at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:264)

            at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:575)

            at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:347)

            at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:330)

            at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:402)

            at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:849)

            at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:89)

            at xxxxxxxxxxxxxxxxxxxxxx.xxxxLoginModule.getConnection(xxxxLoginModule.java:600)

            at xxxxxxxxxxxxxxxxxxxxx.xxxxLoginModule.findSchema(xxxxLoginModule.java:503)

            at xxxxxxxxxxxxxxxxxxxxx.xxxxLoginModule.login(xxxxLoginModule.java:152)

            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 javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)

            at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)

            at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)

            at java.security.AccessController.doPrivileged(Native Method)

            at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)      at javax.security.auth.login.LoginContext.login(LoginContext.java:579)

            at org.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecurityManager.java:603)

            at org.jboss.security.plugins.JaasSecurityManager.authenticate(JaasSecurityManager.java:537)

            at org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:344)

            at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.authenticate(JBossSecurityMgrRealm.java:491)

            at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:257)

            at org.jboss.web.tomcat.security.ExtendedFormAuthenticator.authenticate(ExtendedFormAuthenticator.java:86)

            at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:416)

            at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)

            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:157)

            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)

            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)

            at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)

            at java.lang.Thread.run(Thread.java:662)

             

             

            ** END NESTED EXCEPTION **

             

             

             

            Last packet sent to the server was 1 ms ago.)

            at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:190)

            at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:619)

            at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:264)

            at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:575)

            at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:347)

            at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:330)

            at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:402)

            at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:849)

            at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:89)

            at xxxxxxxxxxxxxxxxxxxxx.xxxxLoginModule.getConnection(xxxxLoginModule.java:600)

            at xxxxxxxxxxxxxxxxxxxxx.xxxxLoginModule.findSchema(xxxxLoginModule.java:503)

            at xxxxxxxxxxxxxxxxxxxxx.xxxxLoginModule.login(xxxxLoginModule.java:152)

            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 javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)

            at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)

            at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)

            at java.security.AccessController.doPrivileged(Native Method)

            at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)

            at javax.security.auth.login.LoginContext.login(LoginContext.java:579)

            at org.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecurityManager.java:603)

            at org.jboss.security.plugins.JaasSecurityManager.authenticate(JaasSecurityManager.java:537)

            at org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:344)

            at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.authenticate(JBossSecurityMgrRealm.java:491)

            at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:257)

            at org.jboss.web.tomcat.security.ExtendedFormAuthenticator.authenticate(ExtendedFormAuthenticator.java:86)

            at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:416)

            at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)

            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:157)

            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)

            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)

            at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)

            at java.lang.Thread.run(Thread.java:662)

            Caused by: com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception:

             

             

            What is this underlying exception and how can it be rectified?