Discussion:
Own SecurityService ignored migrating from TomEE Plus 1.7.1 to 1.7.5
renz
2018-05-21 17:04:29 UTC
Permalink
Hi Chongma, I've edited my first post.
Thanks.



--
Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html
Romain Manni-Bucau
2018-05-21 18:23:06 UTC
Permalink
Hi

did you check your impl was instantiated?
if no I suspect it is already available in the SystemInstance at
https://github.com/apache/tomee/blob/5e75f652cf96e1d95e3a5504f27306f6d6fb85f2/container/openejb-core/src/main/java/org/apache/openejb/assembler/classic/Assembler.java#L3455
but we still use the same loading mecanism. If you can share you setup we
can maybe have a deeper look.

Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> | Blog
<https://rmannibucau.metawerx.net/> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
<https://www.packtpub.com/application-development/java-ee-8-high-performance>
Post by renz
Hi Chongma, I've edited my first post.
Thanks.
--
http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html
renz
2018-05-30 09:04:35 UTC
Permalink
Hi Romain,

Sorry for my late reply.
I'm not sure to understand your message.

How can i check that my Imp is instatied?
Below an extract of Tomee's startup logs :


and



Which part of my setup do you need?

Thank you.




--
Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html
Romain Manni-Bucau
2018-05-30 14:01:44 UTC
Permalink
Hi,

it seems some mail client (not sure it is yours or mine) ate the log
you pasted (= I cant read it).
The easiest is likely to check the log which should say which security
service it creates but you can also just put a breakpoint in your
instance to check.

Romain Manni-Bucau
@rmannibucau | Blog | Old Blog | Github | LinkedIn | Book
Post by renz
Hi Romain,
Sorry for my late reply.
I'm not sure to understand your message.
How can i check that my Imp is instatied?
and
Which part of my setup do you need?
Thank you.
--
Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html
renz
2018-05-30 14:08:49 UTC
Permalink
I've edited my previous post.
I'm using nabble and I had the same issue with my first message (maybe it's
du to the preview).



--
Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html
Romain Manni-Bucau
2018-05-30 14:26:17 UTC
Permalink
Looks good,

maybe give a try to some debugging, hopefully it is some signature
change you dont have in your impl.

Romain Manni-Bucau
@rmannibucau | Blog | Old Blog | Github | LinkedIn | Book
Post by renz
I've edited my previous post.
I'm using nabble and I had the same issue with my first message (maybe it's
du to the preview).
--
Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html
renz
2018-05-31 09:08:02 UTC
Permalink
How can I debug it?



--
Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html
Romain Manni-Bucau
2018-05-31 09:17:17 UTC
Permalink
You can launch tomee in remote debug mode (export JPDA_SUSPEND=y &&
export JPDA_ADDRESS=5005 in setenv.sh) , then connect to tomee through
an IDE: you have the option in the run configurations.

Romain Manni-Bucau
@rmannibucau | Blog | Old Blog | Github | LinkedIn | Book
Post by renz
How can I debug it?
--
Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html
renz
2018-05-31 11:21:50 UTC
Permalink
I'm sorry. I don't understand when and how to set a breakpoint.




--
Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html
renz
2018-05-31 12:11:44 UTC
Permalink
I've found how to set breakpoints, it was as simple as with a local app.

My problem was that I've left my old SecurityService jar in tomee/lib.
I delete it, and now everything is allright.

For people how have trouble with SecurityService migrating from 1.7.1 to
1.7.5, you have to implement "public UUID login(String realmName, String
username, String password, final long accessTimeout) throws LoginException".
With 1.7.1, there was no "accessTimeout".

Thank you very much for your help!!!



--
Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html
Loading...