the stack you posted shows your installation is corrupted and this is not
linked to tomee. The setup you did prevents tomee to work but that's a side
effect of something else. Try to reproduce it with tomee-maven-plugin,
would really help.

Side note: normally you dont need PasswordAuthentication since tomee will
set it for you using the ciphered or not value in tomee.xml.


Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
<http://www.tomitribe.com> | JavaEE Factory
<https://javaeefactory-rmannibucau.rhcloud.com>

2016-05-26 22:30 GMT+02:00 paulhr <[email protected]>:

> All I want is to get access to the properties in the tomee.xml file from
> within my servlet.  I can not get the #Resource DI to work (as seen by the
> stack dump above), nor does the
>
>                 Session session = Session.getDefaultInstance(properties,
>                                 new javax.mail.Authenticator() {
>                                         protected PasswordAuthentication
> getPasswordAuthentication() {
>                                                 return new
> PasswordAuthentication("my@emailaddress","mypassword");
>                                         }
>                                 });
>
>
> work, all the values return as null.
>
> I have read 6 - 8 different web pages before posting here.  I don't
> understand what I am missing.
>
>
>
>
> --
> View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/Why-does-Resource-crash-the-start-of-TomEE-tp4678614p4678621.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>

Reply via email to