0 Replies Latest reply on Mar 13, 2008 11:49 AM by Gautam Dey

    Not able to lookup ejb with role using Jboss Security model

    Gautam Dey Newbie

      Hi everybody,
      I am very new to Jboss. please forgive my ignorance on some of the stuff in Jboss, I was trying to use Jboss Security model to make a ejb role based.
      I have added a application policy in the login-config.xml

      <application-policy name ="sapphire">
       <authentication>
       <login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule" flag="required">
       <module-option name="usersProperties">props/sapphire-users.properties</module-option>
       <module-option name="rolesProperties">props/sapphire-roles.properties</module-option>
       <module-option name="unauthenticatedIdentity">anonymous</module-option>
       </login-module>
       </authentication>
      </application-policy>

      I have also edited my Jboss.xml in the ejb module

      <jboss>
      
       <security-domain>java:/jaas/jmx-console</security-domain>
       <enterprise-beans>
       <session>
       <ejb-name>Hello</ejb-name>
       <local-jndi-name>Hello</local-jndi-name>
       </session>
       </enterprise-beans>
      </jboss>


      The ejb.jar looks like this
      <ejb-jar>
       <enterprise-beans>
       <session id="Hello">
       <ejb-name>Hello</ejb-name>
       <home>test.Hello1Home</home>
       <remote>test.Hello1</remote>
       <ejb-class>test.Hello1Bean</ejb-class>
       <session-type>Stateless</session-type>
       <transaction-type>Container</transaction-type>
       </session>
       </enterprise-beans>
       <assembly-descriptor>
       <security-role>
       <role-name>testrole</role-name>
       </security-role>
       <method-permission>
       <role-name>testrole</role-name>
       <method>
       <ejb-name>Hello</ejb-name>
       <method-name>*</method-name>
       </method>
       </method-permission>
       </assembly-descriptor>
      </ejb-jar>

      I have created a jsp page and a pojo from where I am accessing the ejb
      the pojo looks like
      public class pojo1 {
       public String callHello1Ejb(){
       String hellostr = "";
       try {
       Properties props = new Properties();
       props.put( Context.PROVIDER_URL, "jnp://localhost:1099" );
       props.put( Context.SECURITY_PRINCIPAL, "admin" );
       props.put( Context.SECURITY_CREDENTIALS, "admin" );
       Context initialContext = new InitialContext( props );
       Object objRef = initialContext.lookup( "Hello" );
       Hello1Home home = (Hello1Home)PortableRemoteObject.narrow( objRef, Hello1Home.class );
       Hello1 hello = home.create();
      
       hellostr = hello.getHelloMessage();
       }
       catch ( NamingException e ) {
       System.out.println("error:: "+e.getMessage());
       e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
       }
       catch ( RemoteException e ) {
       System.out.println("error:: "+e.getMessage());
       e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
       }
       catch ( CreateException e ) {
       System.out.println("error:: "+e.getMessage());
       e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
       }
       finally{
       return hellostr;
       }
       }
      }


      I have created two prop files under
      props/sapphire-roles.properties
      props/sapphire-users.properties

      the conents are
      # A sample roles.properties file for use with the UsersRolesLoginModule
      admin=testrole

      and
      # A sample users.properties file for use with the UsersRolesLoginModule
      admin=admin
      respectively

      When I am deploying it and trying it I am getting the an exception. The exception caused because the authentication failed

      The stackstrace is

      1] DEBUG org.jboss.security.auth.spi.UsersRolesLoginModule - Loaded properties, users=[admin]
      2008-03-13 11:05:09,125 [http-127.0.0.1-8080-1] DEBUG org.jboss.security.auth.spi.UsersRolesLoginModule - Loaded properties, users=[admin]
      2008-03-13 11:05:09,125 [http-127.0.0.1-8080-1] DEBUG org.jboss.security.auth.spi.UsersRolesLoginModule - Bad password for username=null
      2008-03-13 11:05:09,125 [http-127.0.0.1-8080-1] INFO STDOUT - error:: SecurityException; nested exception is:
      javax.security.auth.login.FailedLoginException: Password Incorrect/Password Required
      2008-03-13 11:05:09,125 [http-127.0.0.1-8080-1] ERROR STDERR - java.rmi.AccessException: SecurityException; nested exception is:
      javax.security.auth.login.FailedLoginException: Password Incorrect/Password Required
      2008-03-13 11:05:09,125 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.java:388)
      2008-03-13 11:05:09,125 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:136)
      2008-03-13 11:05:09,125 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:107)
      2008-03-13 11:05:09,125 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.ejb.SessionContainer.internalInvokeHome(SessionContainer.java:637)
      2008-03-13 11:05:09,125 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.ejb.Container.invoke(Container.java:981)
      2008-03-13 11:05:09,125 [http-127.0.0.1-8080-1] ERROR STDERR - at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2008-03-13 11:05:09,125 [http-127.0.0.1-8080-1] ERROR STDERR - at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      2008-03-13 11:05:09,125 [http-127.0.0.1-8080-1] ERROR STDERR - at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      2008-03-13 11:05:09,125 [http-127.0.0.1-8080-1] ERROR STDERR - at java.lang.reflect.Method.invoke(Method.java:585)
      2008-03-13 11:05:09,125 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:169)
      2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118)
      2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:209)
      2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:195)
      2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
      2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)
      2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:184)
      2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
      2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at $Proxy138.create(Unknown Source)
      2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at test.pojo1.callHello1Ejb(pojo1.java:47)
      2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.jsp.hello1_jsp._jspService(hello1_jsp.java:66)
      2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
      2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
      2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
      2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
      2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
      2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
      2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
      2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
      2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
      2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
      2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
      2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at java.lang.Thread.run(Thread.java:595)
      2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - Caused by: javax.security.auth.login.FailedLoginException: Password Incorrect/Password Required
      2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.security.auth.spi.UsernamePasswordLoginModule.login(UsernamePasswordLoginModule.java:213)
      2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.security.auth.spi.UsersRolesLoginModule.login(UsersRolesLoginModule.java:152)
      2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at java.lang.reflect.Method.invoke(Method.java:585)
      2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
      2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
      2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
      2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at java.security.AccessController.doPrivileged(Native Method)
      2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
      2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
      2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecurityManager.java:603)
      2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.security.plugins.JaasSecurityManager.authenticate(JaasSecurityManager.java:537)
      2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:344)
      2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityAssociation(SecurityInterceptor.java:211)
      2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:135)
      2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:132)
      2008-03-13 11:05:09,140 [http-127.0.0.1-8080-1] ERROR STDERR - ... 47 more
      2008-03-13 11:05:47,296 [http-127.0.0.1-8080-1] DEBUG org.jboss.security.auth.spi.UsersRolesLoginModule - Loaded properties, users=[admin]
      2008-03-13 11:05:47,296 [http-127.0.0.1-8080-1] DEBUG org.jboss.security.auth.spi.UsersRolesLoginModule - Loaded properties, users=[admin]
      2008-03-13 11:05:47,296 [http-127.0.0.1-8080-1] DEBUG org.jboss.security.auth.spi.UsersRolesLoginModule - Bad password for username=null
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] INFO STDOUT - error:: SecurityException; nested exception is:
      javax.security.auth.login.FailedLoginException: Password Incorrect/Password Required
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - java.rmi.AccessException: SecurityException; nested exception is:
      javax.security.auth.login.FailedLoginException: Password Incorrect/Password Required
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.java:388)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:136)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:107)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.ejb.SessionContainer.internalInvokeHome(SessionContainer.java:637)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.ejb.Container.invoke(Container.java:981)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at java.lang.reflect.Method.invoke(Method.java:585)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:169)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:209)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:195)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:184)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at $Proxy138.create(Unknown Source)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at test.pojo1.callHello1Ejb(pojo1.java:49)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.jsp.hello1_jsp._jspService(hello1_jsp.java:65)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at java.lang.Thread.run(Thread.java:595)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - Caused by: javax.security.auth.login.FailedLoginException: Password Incorrect/Password Required
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.security.auth.spi.UsernamePasswordLoginModule.login(UsernamePasswordLoginModule.java:213)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.security.auth.spi.UsersRolesLoginModule.login(UsersRolesLoginModule.java:152)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at java.lang.reflect.Method.invoke(Method.java:585)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at java.security.AccessController.doPrivileged(Native Method)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecurityManager.java:603)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.security.plugins.JaasSecurityManager.authenticate(JaasSecurityManager.java:537)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:344)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityAssociation(SecurityInterceptor.java:211)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:135)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:132)
      2008-03-13 11:05:57,500 [http-127.0.0.1-8080-1] ERROR STDERR - ... 47 more

      I have been breaking my head to get through it without any success , It will be of great help to me if you guys guide me to the solution.
      thanks in advace
      gautam