You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by Caterpillar <ca...@gmail.com> on 2014/02/19 10:44:33 UTC

Re: JAAS configuration on TomEE

I am doing the required changes to catalina.sh and server.xml, but
everytime I run TomEE, the changes I made into catalina.sh server.xml
are lost.
Could it be caused by a my syntax error?

Thank you for your time

Re: JAAS configuration on TomEE

Posted by Caterpillar <ca...@gmail.com>.
Il 19/02/2014 12:00, Romain Manni-Bucau ha scritto:
> you start it with mvn tomee:run? if so don't update the target folder,
> it is overwritten
> Romain Manni-Bucau
>
argh, yes, I start TomEE with mvn tomee:run
So I will try to start TomEE using the  appropriate file in /bin folder
Thank you, your help has been precious.

Re: JAAS configuration on TomEE

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi

you have a ready to run sample here
http://svn.apache.org/repos/asf/tomee/tomee/trunk/examples/rest-jaas/
(config files here
http://svn.apache.org/repos/asf/tomee/tomee/trunk/examples/rest-jaas/src/main/tomee/conf/
)
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau



2014-03-23 15:36 GMT+01:00 Jean-Louis MONTEIRO <je...@gmail.com>:
> Hi,
>
> Both examples and gist look good (jaas config and server.xml).
> But something is still wrong cause it complains cause it cannot find
> "PropertiesLoginModule" configuration whereas both login.conf and serv.xml
> do not mention it?
>
> I'm at the airport right now, So I can't give it a try. But as soon as I
> have enough internet connection, I'll give it a try with the TomEE build
> joined.
>
> JLoui
>
>
> 2014-03-23 12:42 GMT+01:00 Caterpillar <ca...@gmail.com>:
>
>> I am experiencing an error in TomEE logs, after I click on "Submit" in
>> Login.xhtml webpage:
>> javax.security.auth.login.LoginException: No LoginModules configured for
>> PropertiesLoginModule
>>
>> I asked for help on StackOverflow but suggestionsit did not have success
>>
>> http://stackoverflow.com/questions/22299054/javax-security-auth-login-loginexception-no-loginmodules-configured-for-propert
>>
>> I created a TomEE installation using Maven, then I putted the war file
>> of the project inside directory tomee-demo/target/apache-tomee/webapps/
>>
>> I attached a .sql file containing the database entries I use for users
>> name and password. The database name is simplecrud_db
>>
>> I start TomEE by executing the startup.sh file in
>> tomee-demo/target/apache-tomee/bin/
>>
>> You can find the whole directory (TomEE+War inside) in
>> https://github.com/Rendering/LAI_pezzi_Login
>>
>>
>> Thank you for your time
>>
>>
>>
>
>
> --
> Jean-Louis

Re: JAAS configuration on TomEE

Posted by Caterpillar <ca...@gmail.com>.
Il 23/03/2014 15:36, Jean-Louis MONTEIRO ha scritto:
> Hi,
>
> Both examples and gist look good (jaas config and server.xml).
> But something is still wrong cause it complains cause it cannot find
> "PropertiesLoginModule" configuration whereas both login.conf and serv.xml
> do not mention it?
I updated the github project by resuming the PropertiesLoginModule
entries in login.con and server.xml. Previously I replaced them with the
application name because I missunderstood the suggestion from StackOverflow.

Il 23/03/2014 16:30, Romain Manni-Bucau ha scritto:
> Hi
>
> you have a ready to run sample here
> http://svn.apache.org/repos/asf/tomee/tomee/trunk/examples/rest-jaas/
> (config files here
> http://svn.apache.org/repos/asf/tomee/tomee/trunk/examples/rest-jaas/src/main/tomee/conf/
> )
> Romain Manni-Bucau
Hi Romain, I saw that example and I am using the same settings. I really
don't know what is wrong on my project.

Re: JAAS configuration on TomEE

Posted by Jean-Louis MONTEIRO <je...@gmail.com>.
Hi,

Both examples and gist look good (jaas config and server.xml).
But something is still wrong cause it complains cause it cannot find
"PropertiesLoginModule" configuration whereas both login.conf and serv.xml
do not mention it?

I'm at the airport right now, So I can't give it a try. But as soon as I
have enough internet connection, I'll give it a try with the TomEE build
joined.

JLoui


2014-03-23 12:42 GMT+01:00 Caterpillar <ca...@gmail.com>:

> I am experiencing an error in TomEE logs, after I click on "Submit" in
> Login.xhtml webpage:
> javax.security.auth.login.LoginException: No LoginModules configured for
> PropertiesLoginModule
>
> I asked for help on StackOverflow but suggestionsit did not have success
>
> http://stackoverflow.com/questions/22299054/javax-security-auth-login-loginexception-no-loginmodules-configured-for-propert
>
> I created a TomEE installation using Maven, then I putted the war file
> of the project inside directory tomee-demo/target/apache-tomee/webapps/
>
> I attached a .sql file containing the database entries I use for users
> name and password. The database name is simplecrud_db
>
> I start TomEE by executing the startup.sh file in
> tomee-demo/target/apache-tomee/bin/
>
> You can find the whole directory (TomEE+War inside) in
> https://github.com/Rendering/LAI_pezzi_Login
>
>
> Thank you for your time
>
>
>


-- 
Jean-Louis

Re: JAAS configuration on TomEE

Posted by Caterpillar <ca...@gmail.com>.
I am experiencing an error in TomEE logs, after I click on "Submit" in
Login.xhtml webpage:
javax.security.auth.login.LoginException: No LoginModules configured for
PropertiesLoginModule

I asked for help on StackOverflow but suggestionsit did not have success
http://stackoverflow.com/questions/22299054/javax-security-auth-login-loginexception-no-loginmodules-configured-for-propert

I created a TomEE installation using Maven, then I putted the war file
of the project inside directory tomee-demo/target/apache-tomee/webapps/

I attached a .sql file containing the database entries I use for users
name and password. The database name is simplecrud_db

I start TomEE by executing the startup.sh file in
tomee-demo/target/apache-tomee/bin/

You can find the whole directory (TomEE+War inside) in
https://github.com/Rendering/LAI_pezzi_Login


Thank you for your time



Re: JAAS configuration on TomEE

Posted by Romain Manni-Bucau <rm...@gmail.com>.
you start it with mvn tomee:run? if so don't update the target folder,
it is overwritten
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau



2014-02-19 11:58 GMT+01:00 Caterpillar <ca...@gmail.com>:
> Il 19/02/2014 11:29, Romain Manni-Bucau ha scritto:
>> Ok got it,
>>
>> you put the config in src/main/tomee/config ?
> No, I am operating changes in /target/apache-tomee/conf  folder
> Here the entire Maven project folder tree
> http://pastebin.com/xFkcB8RK
> TomEE refuses even to keep changes I make in server.xml as suggested in
> http://tomee.apache.org/tomee-jaas.html . (I mean the server.xml file
> present in /target/apache-tomee/conf folder)

Re: JAAS configuration on TomEE

Posted by Caterpillar <ca...@gmail.com>.
Il 19/02/2014 11:29, Romain Manni-Bucau ha scritto:
> Ok got it,
>
> you put the config in src/main/tomee/config ?
No, I am operating changes in /target/apache-tomee/conf  folder
Here the entire Maven project folder tree
http://pastebin.com/xFkcB8RK
TomEE refuses even to keep changes I make in server.xml as suggested in
http://tomee.apache.org/tomee-jaas.html . (I mean the server.xml file
present in /target/apache-tomee/conf folder)

Re: JAAS configuration on TomEE

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Ok got it,

you put the config in src/main/tomee/config ?

Use <args> or <systemProperties> to set this property
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau



2014-02-19 11:27 GMT+01:00 Caterpillar <ca...@gmail.com>:
> Il 19/02/2014 10:46, Romain Manni-Bucau ha scritto:
>> Hi
>>
>> what's your envrt? eclipse? mvn plugin?
>> Romain Manni-Bucau
>> Twitter: @rmannibucau
>> Blog: http://rmannibucau.wordpress.com/
>> LinkedIn: http://fr.linkedin.com/in/rmannibucau
>> Github: https://github.com/rmannibucau
>>
>>
>>
>> 2014-02-19 10:44 GMT+01:00 Caterpillar <ca...@gmail.com>:
>>> I am doing the required changes to catalina.sh and server.xml, but
>>> everytime I run TomEE, the changes I made into catalina.sh server.xml
>>> are lost.
>>> Could it be caused by a my syntax error?
>>>
>>> Thank you for your time
> I am using Maven's TomEE

Re: JAAS configuration on TomEE

Posted by Caterpillar <ca...@gmail.com>.
Il 19/02/2014 10:46, Romain Manni-Bucau ha scritto:
> Hi
>
> what's your envrt? eclipse? mvn plugin?
> Romain Manni-Bucau
> Twitter: @rmannibucau
> Blog: http://rmannibucau.wordpress.com/
> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> Github: https://github.com/rmannibucau
>
>
>
> 2014-02-19 10:44 GMT+01:00 Caterpillar <ca...@gmail.com>:
>> I am doing the required changes to catalina.sh and server.xml, but
>> everytime I run TomEE, the changes I made into catalina.sh server.xml
>> are lost.
>> Could it be caused by a my syntax error?
>>
>> Thank you for your time
I am using Maven's TomEE

Re: JAAS configuration on TomEE

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi

what's your envrt? eclipse? mvn plugin?
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau



2014-02-19 10:44 GMT+01:00 Caterpillar <ca...@gmail.com>:
> I am doing the required changes to catalina.sh and server.xml, but
> everytime I run TomEE, the changes I made into catalina.sh server.xml
> are lost.
> Could it be caused by a my syntax error?
>
> Thank you for your time