[prev in list] [next in list] [prev in thread] [next in thread] 

List:       slide-user
Subject:    Re: login config JAAS problem 2.1b2 mac osx / linux
From:       Oliver Zeigermann <oliver.zeigermann () gmail ! com>
Date:       2004-10-30 9:03:11
Message-ID: 9da4f4520410300203452b7c62 () mail ! gmail ! com
[Download RAW message or body]

Hi Tim,

would you send the correct versions of catalina.sh and startup.sh to
the list so we all can benefit from it and take it over for the next
Slide release?

Thanks in advance,

Oliver


On Fri, 29 Oct 2004 15:15:14 -0400, Tim Frank
<tfrank@registrar.uoguelph.ca> wrote:
> I just fought with this, among other things, today. After reading this
> information:
> 
> http://jakarta.apache.org/slide/howto-jaas.html
> 
> I ended up putting the export portion in the catalina.sh file just under
> the line where it checks/sets the CATALINA_HOME variable.
> 
> CATALINA_OPTS=-Djava.security.auth.login.config=$CATALINA_HOME/conf/jaas.config
> export CATALINA_OPTS
> 
> I found that exporting the CATALINA_HOME was NOT enough to pick up the
> path to the jaas.config file.
> 
> Hope that helps you. My other problem now is that once that is setup and
> working I can't login to the Tomcat Admin/Manger consoles no matter what
> I try :) Oh, and related to that, if you did change your server.xml to
> use the old default MemoryRealm configuration it might also cause this
> problem.
> 
> Tim
> 
> Brian Lee wrote on 29/10/04 03:03 PM:
> 
> 
> > How do you set the path correctly? it seems even if I set both
> > CATALINA_HOME and BASEDIR in my .profile -it doesn't work....
> >
> >> Yes, but in startup.sh the path indeed isn't set correctly. So when
> >> you launch it on non-Windows, it really does not work :(
> >>
> >> Oliver
> >>
> >>
> >> On Fri, 29 Oct 2004 12:06:17 +0200, Unico Hommes <unico@hippo.nl> wrote:
> >>
> >>
> >>> You should launch Tomcat using 'start' instead of 'catalina run' did
> >>> you do that? The location of the login configuration is set there.
> >>>
> >>> --
> >>> Unico
> >>>
> >>>
> >>>
> >>> On 29-okt-04, at 1:59, Brian Lee wrote:
> >>>
> >>>
> >>>
> >>>> I'm having a problem with Slide 2.1 b2 that I did not have for 2.0 for
> >>>> both linux (fedora core 2) and mac osx. (This does not occur in
> >>>> windows)
> >>>> Once I start running Slide - I can't login with any of the default
> >>>> users: root, guest, john, john2
> >>>>
> >>>> I notice this error:
> >>>>
> >>>> "Oct 28, 2004 4:07:33 PM org.apache.catalina.realm.JAASRealm
> >>>> authenticate
> >>>> SEVERE: Unexpected error
> >>>> java.lang.SecurityException: Unable to locate a login configuration
> >>>>       at
> >>>> com.sun.security.auth.login.ConfigFile.<init>(ConfigFile.java:97)
> >>>>       at
> >>>> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> >>>>       at
> >>>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructor
> >>>> AccessorImpl.java:39)
> >>>>       at
> >>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCon
> >>>> structorAccessorImpl.java:27)
> >>>>       at
> >>>> java.lang.reflect.Constructor.newInstance(Constructor.java:274)
> >>>>       at java.lang.Class.newInstance0(Class.java:308)
> >>>>       at java.lang.Class.newInstance(Class.java:261)
> >>>>       at
> >>>> javax.security.auth.login.Configuration$3.run(Configuration.java:221)
> >>>>       at java.security.AccessController.doPrivileged(Native Method)
> >>>>       at
> >>>> javax.security.auth.login.Configuration.getConfiguration(Configuration.
> >>>> java:215)
> >>>>       at
> >>>> javax.security.auth.login.LoginContext$1.run(LoginContext.java:170)
> >>>>       at java.security.AccessController.doPrivileged(Native Method)
> >>>>       at
> >>>> javax.security.auth.login.LoginContext.init(LoginContext.java:167)
> >>>>       at
> >>>> javax.security.auth.login.LoginContext.<init>(LoginContext.java:404)
> >>>>       at
> >>>> org.apache.catalina.realm.JAASRealm.authenticate(JAASRealm.java:298)
> >>>>       at
> >>>> org.apache.catalina.authenticator.BasicAuthenticator.authenticate(Basic
> >>>> Authenticator.java:129)
> >>>>       at
> >>>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticato
> >>>> rBase.java:504)
> >>>>       at
> >>>> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC
> >>>> ontext.java:102)
> >>>>       at
> >>>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
> >>>> 520)
> >>>>       at
> >>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav
> >>>> a:137)
> >>>>       at
> >>>> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC
> >>>> ontext.java:104)
> >>>>       at
> >>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav
> >>>> a:118)
> >>>>       at
> >>>> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC
> >>>> ontext.java:102)
> >>>>       at
> >>>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
> >>>> 520)
> >>>>       at
> >>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve
> >>>> .java:109)
> >>>>       at
> >>>> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC
> >>>> ontext.java:104)
> >>>>       at
> >>>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
> >>>> 520)
> >>>>       at
> >>>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
> >>>>       at
> >>>> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:
> >>>> 160)
> >>>>       at
> >>>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
> >>>> 799)
> >>>>       at
> >>>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process
> >>>> Connection(Http11Protocol.java:705)
> >>>>       at
> >>>> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:
> >>>> 577)
> >>>>       at
> >>>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPoo
> >>>> l.java:683)
> >>>>       at java.lang.Thread.run(Thread.java:534)
> >>>> Caused by: java.io.IOException: Unable to locate a login configuration
> >>>>       at
> >>>> com.sun.security.auth.login.ConfigFile.init(ConfigFile.java:206)
> >>>>       at
> >>>> com.sun.security.auth.login.ConfigFile.<init>(ConfigFile.java:95)
> >>>>       ... 33 more"
> >>>>
> >>>> Does anyone have suggestions? Thanks in advance
> >>>>
> >>>> Brian
> >>>>
> >>>> ---------------------------------------------------------------------
> >>>> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> >>>> For additional commands, e-mail: slide-user-help@jakarta.apache.org
> >>>>
> >>>>
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> >>> For additional commands, e-mail: slide-user-help@jakarta.apache.org
> >>>
> >>>
> >>>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> >> For additional commands, e-mail: slide-user-help@jakarta.apache.org
> >>
> >>
> >>
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: slide-user-help@jakarta.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-user-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic