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/01/17 10:29:02 UTC

SimpleCRUD username/password rejected (JAAS+JPA)

After we correcly fixed the problems in "Bean not instantiated" discussion
(more info avaible also at
http://stackoverflow.com/questions/21017979/bean-not-instantiated )

The login webpage started working, so the JavaServerFaces begun reacting...
Now the problem is that the webpage rejects all username/password, even if
they are correct. The JPA connection should be okay (I remember I tested
it), I only have dubts in JAAS infrastructure...
Could it be a synthom of a bad configured JAAS?
I attached all infos in question
http://stackoverflow.com/questions/21162117/simplecrud-rejects-user-password

Thank you for your time

Re: SimpleCRUD username/password rejected (JAAS+JPA)

Posted by Romain Manni-Bucau <rm...@gmail.com>.
You should miss sthg, reproduce it in a runnable sample (through mvn
clean package tomee:run) and we'll have a look otherwise hard to find
what you did wrong
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau



2014-01-26 Caterpillar <ca...@gmail.com>:
> Il 20/01/2014 19:14, Romain Manni-Bucau ha scritto:
>> hi
>>
>> Set system prop in catalina_opts
>>
>>
> I added
> export
> CATALINA_OPTS="-Djava.security.auth.login.config=$CATALINA_BASE/conf/login.config
> start"
> at the bottom of TomEE dir/bin/startup.sh file but the result is the same...

Re: SimpleCRUD username/password rejected (JAAS+JPA)

Posted by Caterpillar <ca...@gmail.com>.
Il 20/01/2014 19:14, Romain Manni-Bucau ha scritto:
> hi
>
> Set system prop in catalina_opts
>
>
I added
export
CATALINA_OPTS="-Djava.security.auth.login.config=$CATALINA_BASE/conf/login.config
start"
at the bottom of TomEE dir/bin/startup.sh file but the result is the same...

Re: SimpleCRUD username/password rejected (JAAS+JPA)

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

Set system prop in catalina_opts

Le lundi 20 janvier 2014, Caterpillar <ca...@gmail.com> a écrit :
> Il 17/01/2014 15:34, Romain Manni-Bucau ha scritto:
>> -Djava.security.auth.login.config=/xxx/tomee/conf/loging.config
>> Romain Manni-Bucau
>> Twitter: @rmannibucau
>> Blog: http://rmannibucau.wordpress.com/
>> LinkedIn: http://fr.linkedin.com/in/rmannibucau
>> Github: https://github.com/rmannibucau
> Hi, I did the following attempts, but all of them failed
>
> -Djava.security.auth.login.config=$CATALINA_BASE/conf/login.config start
>
>
-Djava.security.auth.login.config="/home/caterpillar/Universita/Programmazione/Java
> EE/apache-tomee-plus-1.6.0-JAAS/conf/login.config" start
>
>
-Djava.security.auth.login.config=/home/caterpillar/Universita/Programmazione/Java
> EE/apache-tomee-plus-1.6.0-JAAS/conf/login.config start
>
>

-- 
*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau
<http://fr.linkedin.com/in/rmannibucau>*
*Github: https://github.com/rmannibucau <https://github.com/rmannibucau>*

Re: SimpleCRUD username/password rejected (JAAS+JPA)

Posted by Caterpillar <ca...@gmail.com>.
Il 17/01/2014 15:34, Romain Manni-Bucau ha scritto:
> -Djava.security.auth.login.config=/xxx/tomee/conf/loging.config
> Romain Manni-Bucau
> Twitter: @rmannibucau
> Blog: http://rmannibucau.wordpress.com/
> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> Github: https://github.com/rmannibucau
Hi, I did the following attempts, but all of them failed

-Djava.security.auth.login.config=$CATALINA_BASE/conf/login.config start

-Djava.security.auth.login.config="/home/caterpillar/Universita/Programmazione/Java
EE/apache-tomee-plus-1.6.0-JAAS/conf/login.config" start

-Djava.security.auth.login.config=/home/caterpillar/Universita/Programmazione/Java
EE/apache-tomee-plus-1.6.0-JAAS/conf/login.config start


Re: SimpleCRUD username/password rejected (JAAS+JPA)

Posted by Romain Manni-Bucau <rm...@gmail.com>.
-Djava.security.auth.login.config=/xxx/tomee/conf/loging.config
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau



2014/1/17 Caterpillar <ca...@gmail.com>:
> 2014/1/17 Romain Manni-Bucau <rm...@gmail.com>
>
>> Hi
>>
>> did you try debugging a bit?
>>
>>
>> btw jaas need either a system prop to point to the loging.config
>> (absolute path) or the new property in server.xml tomcat added
>>
>> maybe try the system property one
>>
> I am not yet familiar with Java EE / TomEE debugging, but I have to start
> learning about it.
> What do you mean for system property?

Re: SimpleCRUD username/password rejected (JAAS+JPA)

Posted by Caterpillar <ca...@gmail.com>.
2014/1/17 Romain Manni-Bucau <rm...@gmail.com>

> Hi
>
> did you try debugging a bit?
>
>
> btw jaas need either a system prop to point to the loging.config
> (absolute path) or the new property in server.xml tomcat added
>
> maybe try the system property one
>
I am not yet familiar with Java EE / TomEE debugging, but I have to start
learning about it.
What do you mean for system property?

Re: SimpleCRUD username/password rejected (JAAS+JPA)

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

did you try debugging a bit?


btw jaas need either a system prop to point to the loging.config
(absolute path) or the new property in server.xml tomcat added

maybe try the system property one
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau



2014/1/17 Caterpillar <ca...@gmail.com>:
> After we correcly fixed the problems in "Bean not instantiated" discussion
> (more info avaible also at
> http://stackoverflow.com/questions/21017979/bean-not-instantiated )
>
> The login webpage started working, so the JavaServerFaces begun reacting...
> Now the problem is that the webpage rejects all username/password, even if
> they are correct. The JPA connection should be okay (I remember I tested
> it), I only have dubts in JAAS infrastructure...
> Could it be a synthom of a bad configured JAAS?
> I attached all infos in question
> http://stackoverflow.com/questions/21162117/simplecrud-rejects-user-password
>
> Thank you for your time