You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Chema <de...@gmail.com> on 2011/07/01 16:22:22 UTC

Access to manager webapp (JAAS exception)

Hi:

I've just installed ( unzipped ) Tomcat 7.0.14 and I'm trying to
access to manager web application.

So,

http://127.0.0.1:8080/manager/html

and popup a browser logging form.

My conf/tomcat-users.xml is

<tomcat-users>
 <role rolename="manager-gui"/>
 <user username="tomcat" password="tomcat" roles="manager-gui"/>
</tomcat-users>


But, when I try to log in, an exception occurs:

01-jul-2011 16:10:51 org.apache.catalina.realm.JAASRealm authenticate
java.lang.SecurityException:
	at com.sun.security.auth.login.ConfigFile.<init>(Unknown Source)


Why ? There isnt configured in my server to use JAAS.
Indeed , conf/server.xml has

 <GlobalNamingResources>
    <Resource auth="Container"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
name="UserDatabase" pathname="conf/tomcat-users.xml"
type="org.apache.catalina.UserDatabase"/>
  </GlobalNamingResources>

Any ideas ?

Thanks and regards

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


Re: Access to manager webapp (JAAS exception)

Posted by Chema <de...@gmail.com>.
> 01-jul-2011 17:23:55 org.apache.catalina.realm.JAASRealm setContainer
> INFO: Set JAAS app name Catalina

>> I don't see a log error, only an INFO message.

Right. I just said that I didnt understand this message , because I
dont have configurated any JAASRealm
I've dowloaded 7.0.16 release and this INFO message doesnt appear. I
don't know why.

And now, access to manager webapp works fine.

Thanks !!

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


Re: Access to manager webapp (JAAS exception)

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chema,

On 7/1/2011 11:26 AM, Chema wrote:
> 2011/7/1 Mark Thomas <ma...@apache.org>:
>> On 01/07/2011 15:22, Chema wrote:
>>> Hi:
>>>
>>> I've just installed ( unzipped ) Tomcat 7.0.14 and I'm trying to
>>> access to manager web application.
>>
>> What else did you change?
>>
> 
> I think nothing.
> There is a log when server starts that I dont understand :
> 
> 01-jul-2011 17:23:55 org.apache.catalina.realm.JAASRealm setContainer
> INFO: Set JAAS app name Catalina
> 
> any idea ?
> 
> I've downloaded 7.0.16 release and  this log doesnt occur when server starts
> I don`t know if I changed something on former installation ( 7.0.14 )  ...

I don't see a log error, only an INFO message.

Stop Tomcat. Delete all logs. Launch Tomcat. Attempt to login.

If it works, congratulations: continued procrastination has paid off.

If it doesn't work: post all logs and tomcat-users.xml files /in their
entirety/.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk4OFSEACgkQ9CaO5/Lv0PBz3ACdEOHHNgVdb7ifm04YXdjja6JP
FNAAoJ85T4S20uZEJ1NXC/PUBoOOLeTI
=OuDn
-----END PGP SIGNATURE-----

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


Re: Access to manager webapp (JAAS exception)

Posted by Mark Thomas <ma...@apache.org>.
On 01/07/2011 16:26, Chema wrote:
> 2011/7/1 Mark Thomas <ma...@apache.org>:
>> On 01/07/2011 15:22, Chema wrote:
>>> Hi:
>>>
>>> I've just installed ( unzipped ) Tomcat 7.0.14 and I'm trying to
>>> access to manager web application.
>>
>> What else did you change?
>>
> 
> 
> I think nothing.
> There is a log when server starts that I dont understand :
> 
> 01-jul-2011 17:23:55 org.apache.catalina.realm.JAASRealm setContainer
> INFO: Set JAAS app name Catalina
> 
> any idea ?
> 
> I've downloaded 7.0.16 release and  this log doesnt occur when server starts
> I don`t know if I changed something on former installation ( 7.0.14 )  ...

So, you don't know if you changed anything but it doesn't work. Hmm. How
on earth do you expect people on this list to be able to help if you
can't tell them what you have done?

Time to start again with a clean installation and this time keep some notes.

Mark



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


Re: Access to manager webapp (JAAS exception)

Posted by Chema <de...@gmail.com>.
2011/7/1 Mark Thomas <ma...@apache.org>:
> On 01/07/2011 15:22, Chema wrote:
>> Hi:
>>
>> I've just installed ( unzipped ) Tomcat 7.0.14 and I'm trying to
>> access to manager web application.
>
> What else did you change?
>


I think nothing.
There is a log when server starts that I dont understand :

01-jul-2011 17:23:55 org.apache.catalina.realm.JAASRealm setContainer
INFO: Set JAAS app name Catalina

any idea ?

I've downloaded 7.0.16 release and  this log doesnt occur when server starts
I don`t know if I changed something on former installation ( 7.0.14 )  ...


Thanks








> Mark
>
>>
>> So,
>>
>> http://127.0.0.1:8080/manager/html
>>
>> and popup a browser logging form.
>>
>> My conf/tomcat-users.xml is
>>
>> <tomcat-users>
>>  <role rolename="manager-gui"/>
>>  <user username="tomcat" password="tomcat" roles="manager-gui"/>
>> </tomcat-users>
>>
>>
>> But, when I try to log in, an exception occurs:
>>
>> 01-jul-2011 16:10:51 org.apache.catalina.realm.JAASRealm authenticate
>> java.lang.SecurityException:
>>       at com.sun.security.auth.login.ConfigFile.<init>(Unknown Source)
>>
>>
>> Why ? There isnt configured in my server to use JAAS.
>> Indeed , conf/server.xml has
>>
>>  <GlobalNamingResources>
>>     <Resource auth="Container"
>> factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
>> name="UserDatabase" pathname="conf/tomcat-users.xml"
>> type="org.apache.catalina.UserDatabase"/>
>>   </GlobalNamingResources>
>>
>> Any ideas ?
>>
>> Thanks and regards
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

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


Re: Access to manager webapp (JAAS exception)

Posted by Mark Thomas <ma...@apache.org>.
On 01/07/2011 15:22, Chema wrote:
> Hi:
> 
> I've just installed ( unzipped ) Tomcat 7.0.14 and I'm trying to
> access to manager web application.

What else did you change?

Mark

> 
> So,
> 
> http://127.0.0.1:8080/manager/html
> 
> and popup a browser logging form.
> 
> My conf/tomcat-users.xml is
> 
> <tomcat-users>
>  <role rolename="manager-gui"/>
>  <user username="tomcat" password="tomcat" roles="manager-gui"/>
> </tomcat-users>
> 
> 
> But, when I try to log in, an exception occurs:
> 
> 01-jul-2011 16:10:51 org.apache.catalina.realm.JAASRealm authenticate
> java.lang.SecurityException:
> 	at com.sun.security.auth.login.ConfigFile.<init>(Unknown Source)
> 
> 
> Why ? There isnt configured in my server to use JAAS.
> Indeed , conf/server.xml has
> 
>  <GlobalNamingResources>
>     <Resource auth="Container"
> factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
> name="UserDatabase" pathname="conf/tomcat-users.xml"
> type="org.apache.catalina.UserDatabase"/>
>   </GlobalNamingResources>
> 
> Any ideas ?
> 
> Thanks and regards
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 




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