tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Hardy <ahardy.str...@cyberspaceroad.com>
Subject Re: JAAS and TOMCAT 5
Date Mon, 16 Feb 2004 17:03:39 GMT
Well done. And if you want to debug it, go into your catalina.sh or .bat 
file and echo the whole execute string that the script uses to launch 
java. You'll see whether it's the JAVA_OPTS or not. I use the full path 
and not the envvar.

On 02/16/2004 04:21 PM Miller, Steve wrote:
> Success!!!
> 
> I went back and changed my JAVA_OPTS setting to use single quotes....and it
> still failed. 
> 
> However, in my login.jsp page, I added the following line at the top:
> 
> System.setProperty("java.security.auth.login.config",
> "C:/TOMACT/conf/jaas.conf");
> 
> Presto...worked beautifully. I even got the message out in the tomcat log
> that my login module was successful. I'm still very intrigued as to why
> nothing else I did worked yet setting it implicitely in my code worked. But,
> I'll worry about that later....I'm just glad it works now!! Thanks for all
> the help. :-)
> 
> Steve Miller 
> 
> -----Original Message-----
> From: Adam Hardy [mailto:ahardy.struts@cyberspaceroad.com]
> Sent: Saturday, February 14, 2004 8:38 AM
> To: Tomcat Users List
> Subject: Re: JAAS and TOMCAT 5
> 
> 
> On 02/13/2004 09:34 PM Shapira, Yoav wrote:
> 
>>>JAVA_OPTS=-
>>>Djava.security.auth.login.config=="$CATALINA_HOME"/conf/jaas.conf
>>
>>You probably want
>>JAVA_OPTS='-Djava.security.auth.login.config="$CATALINA_HOME"/conf/jaas.
>>conf'
>>(one line, single equals signs, quotes containing the whole JAVA_OPTS
>>value.
> 
> 
> I hardcode the whole path. And I set JAVA_OPTIONS to the same thing as well.
> 
> Adam


-- 
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian


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


Mime
View raw message