3 Replies Latest reply on Sep 14, 2009 11:35 AM by Rajkumar Chandran

    Tomcat server - Portal Login error - java.lang.SecurityExcep

    Rajkumar Chandran Newbie

      I have downloaded the Gatein 3.0 tomcat version (GateIn-3.0.0-Beta01-tomcat)..

      After starting the tomcat server, when I try to login to the portal, I'm getting this following message.

      Not able to login into the Gatein portal..

      Can you help me in resolving this issue..?

      INFO: The portlet portal#classic:/web/FooterPortlet/footer doesn't support the e
      vent : NewAccountAdded
      Sep 11, 2009 5:03:06 PM org.apache.catalina.realm.JAASRealm authenticate
      SEVERE: Cannot find message associated with key jaasRealm.unexpectedError
      java.lang.SecurityException: Unable to locate a login configuration
      at com.sun.security.auth.login.ConfigFile.(ConfigFile.java:93)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
      orAccessorImpl.java:39)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
      onstructorAccessorImpl.java:27)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      at java.lang.Class.newInstance0(Class.java:355)
      at java.lang.Class.newInstance(Class.java:308)
      at javax.security.auth.login.Configuration$3.run(Configuration.java:246)

      at java.security.AccessController.doPrivileged(Native Method)
      at javax.security.auth.login.Configuration.getConfiguration(Configuratio
      n.java:241)
      at javax.security.auth.login.LoginContext$1.run(LoginContext.java:237)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.security.auth.login.LoginContext.init(LoginContext.java:234)
      at javax.security.auth.login.LoginContext.(LoginContext.java:403)
      at org.apache.catalina.realm.JAASRealm.authenticate(JAASRealm.java:383)
      at org.apache.catalina.realm.JAASRealm.authenticate(JAASRealm.java:323)
      at org.apache.catalina.authenticator.FormAuthenticator.authenticate(Form
      Authenticator.java:258)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica
      torBase.java:417)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
      ava:128)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
      ava:102)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
      ve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
      a:293)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
      :849)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
      ss(Http11Protocol.java:583)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:45
      4)
      at java.lang.Thread.run(Thread.java:619)
      Caused by: java.io.IOException: Unable to locate a login configuration
      at com.sun.security.auth.login.ConfigFile.init(ConfigFile.java:250)
      at com.sun.security.auth.login.ConfigFile.(ConfigFile.java:91)
      ... 25 more

        • 1. Re: Tomcat server - Portal Login error - java.lang.SecurityE
          Rajkumar Chandran Newbie

           

          "crajkumarbe" wrote:
          I have downloaded the Gatein 3.0 tomcat version (GateIn-3.0.0-Beta01-tomcat)..

          After starting the tomcat server, when I try to login to the portal, I'm getting this following message.

          Not able to login into the Gatein portal..

          Can you help me in resolving this issue..?

          INFO: The portlet portal#classic:/web/FooterPortlet/footer doesn't support the e
          vent : NewAccountAdded
          Sep 11, 2009 5:03:06 PM org.apache.catalina.realm.JAASRealm authenticate
          SEVERE: Cannot find message associated with key jaasRealm.unexpectedError
          java.lang.SecurityException: Unable to locate a login configuration
          at com.sun.security.auth.login.ConfigFile.<init>(ConfigFile.java:93)
          at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

          at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
          orAccessorImpl.java:39)
          at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
          onstructorAccessorImpl.java:27)
          at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
          at java.lang.Class.newInstance0(Class.java:355)
          at java.lang.Class.newInstance(Class.java:308)
          at javax.security.auth.login.Configuration$3.run(Configuration.java:246)

          at java.security.AccessController.doPrivileged(Native Method)
          at javax.security.auth.login.Configuration.getConfiguration(Configuratio
          n.java:241)
          at javax.security.auth.login.LoginContext$1.run(LoginContext.java:237)
          at java.security.AccessController.doPrivileged(Native Method)
          at javax.security.auth.login.LoginContext.init(LoginContext.java:234)
          at javax.security.auth.login.LoginContext.<init>(LoginContext.java:403)
          at org.apache.catalina.realm.JAASRealm.authenticate(JAASRealm.java:383)
          at org.apache.catalina.realm.JAASRealm.authenticate(JAASRealm.java:323)
          at org.apache.catalina.authenticator.FormAuthenticator.authenticate(Form
          Authenticator.java:258)
          at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica
          torBase.java:417)
          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
          ava:128)
          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
          ava:102)
          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
          ve.java:109)
          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
          a:293)
          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
          :849)
          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
          ss(Http11Protocol.java:583)
          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:45
          4)
          at java.lang.Thread.run(Thread.java:619)
          Caused by: java.io.IOException: Unable to locate a login configuration
          at com.sun.security.auth.login.ConfigFile.init(ConfigFile.java:250)
          at com.sun.security.auth.login.ConfigFile.<init>(ConfigFile.java:91)
          ... 25 more


          • 2. Re: Tomcat server - Portal Login error - java.lang.SecurityE
            Thomas Heute Master

            Did you start Tomcat using gatein.sh script ?

            • 3. Re: Tomcat server - Portal Login error - java.lang.SecurityE
              Rajkumar Chandran Newbie

              Thanks for the clarification. I have used gatein.bat in windows with run as parameter and it started working.

              Example: gatein run