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:[EMAIL PROTECTED]
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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to