Re: Static deployment/EAR with 2 WARs

2017-12-07 Thread Romain Manni-Bucau
You have jaxrs api in your app. Just remove it. Le 7 déc. 2017 21:49, "awmurray" a écrit : > I put the EAR in the /apps folder and made the fix in tomee.xml: > > > It deployed OK. > > Now I'm having a mystery error when trying to use the app. > > I'm getting

Re: Static deployment/EAR with 2 WARs

2017-12-07 Thread awmurray
I put the EAR in the /apps folder and made the fix in tomee.xml: It deployed OK. Now I'm having a mystery error when trying to use the app. I'm getting killed in the EEFilter class: javax.servlet.ServletException: Filter execution threw an exception at

Re: Static deployment/EAR with 2 WARs

2017-12-07 Thread awmurray
I put the EAR in the /apps folder and made the fix in tomee.xml: It deployed OK. Now I'm having a mystery error when trying to use the app. I'm getting killed in the EEFilter class: javax.servlet.ServletException: Filter execution threw an exception at

Re: injecting httpservletrequest in timer

2017-12-07 Thread Matthew Broadhead
yes it worked On 07/12/2017 11:48, Romain Manni-Bucau wrote: scope a wrapper? Romain Manni-Bucau @rmannibucau | Blog | Old Blog | Github | LinkedIn 2017-12-07 11:21 GMT+01:00 Matthew Broadhead : I couldn't scope it because otherwise couldn't return null On

Re: injecting httpservletrequest in timer

2017-12-07 Thread Romain Manni-Bucau
scope a wrapper? Romain Manni-Bucau @rmannibucau | Blog | Old Blog | Github | LinkedIn 2017-12-07 11:21 GMT+01:00 Matthew Broadhead : > I couldn't scope it because otherwise couldn't return null > > > On 07/12/2017 09:55, Romain Manni-Bucau wrote: >> >> if you

Re: injecting httpservletrequest in timer

2017-12-07 Thread Matthew Broadhead
I couldn't scope it because otherwise couldn't return null On 07/12/2017 09:55, Romain Manni-Bucau wrote: if you scope this producer you would have a lazy instance and in the context of the timer you wouldnt call it so you wouldnt have this NPE Romain Manni-Bucau @rmannibucau | Blog | Old

Re: injecting httpservletrequest in timer

2017-12-07 Thread Romain Manni-Bucau
if you scope this producer you would have a lazy instance and in the context of the timer you wouldnt call it so you wouldnt have this NPE Romain Manni-Bucau @rmannibucau | Blog | Old Blog | Github | LinkedIn 2017-12-07 9:49 GMT+01:00 Matthew Broadhead : > i

injecting httpservletrequest in timer

2017-12-07 Thread Matthew Broadhead
i have this method to @Produces KeycloakSecurityContext @Produces     @Default     @Dependent     public KeycloakSecurityContext keycloakSecurityContext() {         try {             if (httpServletRequest instanceof KeycloakPrincipal) {                 KeycloakPrincipal keycloakPrincipal =