failing to start tomee

2017-07-12 Thread Matthew Broadhead
i am getting a strange error trying to start TomEE 7.0.3. I have restarted the IDE (eclipse). I have the latest version of Java 8.0_131. # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x0001043259ee, pid=58242, tid=0x1307 # # JRE v

IntelliJ IDE

2017-07-12 Thread Matthew Broadhead
I am thinking of switching from Eclipse to IntelliJ community edition but I am still unclear how to deploy multiple projects to TomEE. In eclipse i can open multiple projects and then drag them to a server to deploy them. The server has a single shared configuration folder where i can manage

Re: IntelliJ IDE

2017-07-12 Thread Matthew Broadhead
t; | LinkedIn <https://www.linkedin.com/in/rmannibucau> | JavaEE Factory <https://javaeefactory-rmannibucau.rhcloud.com> 2017-07-12 14:38 GMT+02:00 Matthew Broadhead : I am thinking of switching from Eclipse to IntelliJ community edition but I am still unclear how to deploy multi

Re: failing to start tomee

2017-07-13 Thread Matthew Broadhead
<https://blog-rmannibucau.rhcloud.com> | Old Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rmannibucau> | JavaEE Factory <https://javaeefactory-rmannibucau.rhcloud.com> 2017-07-12 14:32 GMT+02:

JSF 2.3 + bootsfaces

2017-08-11 Thread Matthew Broadhead
The BootsFaces (https://www.bootsfaces.net/) team are wanting to test JSF 2.3 as there have been some issues reported with Mojarra. Are there any timescales on release of TomEE 8 Plus? I know MyFaces have only just released a beta of 2.3 but are there any nightly builds to test with?

Re: JSF 2.3 + bootsfaces

2017-08-11 Thread Matthew Broadhead
com/rmannibucau> | Blog <https://blog-rmannibucau.rhcloud.com> | Old Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rmannibucau> | JavaEE Factory <https://javaeefactory-rmannibucau.rhcloud.com>

Re: JSF 2.3 + bootsfaces

2017-08-11 Thread Matthew Broadhead
:-) Cheers Jon On Fri, Aug 11, 2017 at 3:08 PM, Matthew Broadhead < matthew.broadh...@nbmlaw.co.uk> wrote: Hi Romain, Is it ok to subscribe to the dev list to follow that discussion? On 11/08/2017 13:43, Romain Manni-Bucau wrote: Hi Matthew, we are discussing it at http://tomee-o

Re: calling rest service from postconstruct in managed bean

2017-09-16 Thread Matthew Broadhead
are you using JSF?  if so have you tried using the below in the xhtml:         you can call a bean method (e.g. myBean.onload) then you don't need @PostConstruct.  you can also pass parameters if you have a setter on the @ManagedBean.  also consider switching to from EJB @ManagedBean to CDI

Re: TomEE -Java EE 8 compatible or certified ?

2017-09-27 Thread Matthew Broadhead
i am using TomEE 7.0.3 Plus with OpenJPA in production and haven't had any problems although i get your point that it is only JPA 2.0. Romain Manni-Bucau and Mark Struberg have been great with support when I made the transition from EclipseLink to OpenJPA.  I also thought I heard the other day

Re: TomEE -Java EE 8 compatible or certified ?

2017-09-27 Thread Matthew Broadhead
).  everyone will have their own preference but in my case working with JSF, CDI, CXF etc i now feel comfortable with OpenJPA. On 27/09/2017 11:23, Maxim Solodovnik wrote: Hello Matthew, sorry for off-topic ... why have you migrated from EclipseLink? On Wed, Sep 27, 2017 at 4:22 PM, Matthew

freezing on CentOS 7

2017-10-10 Thread Matthew Broadhead
i am currently stuck on Java release java-1.8.0-openjdk-1.8.0.131-11.b12.el7.x86_64 on CentOS 7 with TomEE 7.0.3 updating CentOS to Version : 1.8.0.144 Release : 0.b01.el7_4 results in random freezes with no error in catalina.out back story: the system automatically updated to 1.8.0.144.

Re: freezing on CentOS 7

2017-10-10 Thread Matthew Broadhead
you can run it on, and grab the output from jstack and jmap when it happens? How long do the freezes last - does the system ever recover? Do you see increases in active threads or CPU? Many thanks Jon On Tue, Oct 10, 2017 at 9:52 AM, Matthew Broadhead < matthew.broadh...@nbmlaw.co.uk> wrote:

Re: freezing on CentOS 7

2017-10-10 Thread Matthew Broadhead
e JDK version or were there any other changes? I note you posted on the 7.0.4 vote on dev@ - does this only happen on 7.0.4 or are you seeing it with 7.0.3 as well? Cheers Jon On Tue, Oct 10, 2017 at 10:06 AM, Matthew Broadhead < matthew.broadh...@nbmlaw.co.uk> wrote: I am not sure if

Re: @PostConstruct called twice on @javax.inject.Singleton

2017-10-10 Thread Matthew Broadhead
you could consider using a rest interface to get shared data across webapps?  i generally deploy the lib per webapp where i have a shared lib.  the data can be loaded from a single shared rest interface. On 10/10/2017 16:13, Paul Carter-Brown wrote: Hi Romain, mmm this really throws a spanner

7.0.4 context reload affects resource

2017-10-11 Thread Matthew Broadhead
hi, in src/main/webapp/META-INF/context.xml i have defined         mail.smtp.port="465" mail.smtp.auth="true" mail.smtp.user="u...@domain.tld"         mail.smtp.password="password" password="password"         mail.transport.protocol="smtp" mail.smtp.ssl.enable="true" /> it worked fine in 7.0.3 a

Re: freezing on CentOS 7

2017-10-25 Thread Matthew Broadhead
On 10/10/2017 12:52, Matthew Broadhead wrote: this was only on 7.0.3 in production.  only happens if i upgrade from 131 to 144 On 10/10/2017 12:20, Jonathan Gallimore wrote: Thanks Matthew - if we're able to reproduce in a safe environment, that will be a big help to solve your problem

Re: freezing on CentOS 7

2017-11-05 Thread Matthew Broadhead
to follow up i have not had any more freezing since updating to 1.8.0.151 (skipping 144) On 25/10/2017 10:05, Matthew Broadhead wrote: i just allowed CentOS 7 to update to Name    : java-1.8.0-openjdk Arch    : x86_64 Epoch   : 1 Version : 1.8.0.151 Release : 1.b12.el7_4

Re: JAX-RS, @RolesAllowed and mutual ssl authentication.

2017-11-06 Thread Matthew Broadhead
have you considered using SAML or OIDC?  Apache have Fediz project and RedHat have KeyCloak (merging with PicketLink).  it might simplify your security somewhat.  Fediz is an active project with very helpful support team.  KeyCloak is easy to set up and you could be up and running pretty quickl

Re: Question about APR

2017-11-07 Thread Matthew Broadhead
isn't APR just to allow Tomcat to use OpenSSL on the machine rather than using Java's encryption software?  It is not necessary unless you are setting up a secure connector.  If your Tomcat is behind Httpd then Httpd can serve the certificates for you On 07/11/2017 10:27, COURTAULT Francois wr

Re: Question about APR

2017-11-07 Thread Matthew Broadhead
APR is essential if Java doesn't support the encryption algorithm of the SSL / TLS certificate provided by your Certificate authority. It allows Tomcat to be trusted by your OS to use the system libraries (e.g. OpenSSL).  The system libraries can also be faster under certain conditions.  Only a

OmniFaces CombinedResourceHandler

2017-11-09 Thread Matthew Broadhead
Hi, I am using TomEE 7.0.3 Plus (MyFaces 2.2.11).  I have tried different OmniFaces versions particularly 1.14 and 2.4. There seems to be a problem with using OmniFaces CombinedResourceHandler with MyFaeces.  CombinedResourceHandler bundles all js and css resources to reduce browser load tim

Re: OmniFaces CombinedResourceHandler

2017-11-09 Thread Matthew Broadhead
sorry i meant to send this to the MyFaces list On 09/11/2017 16:42, Matthew Broadhead wrote: Hi, I am using TomEE 7.0.3 Plus (MyFaces 2.2.11).  I have tried different OmniFaces versions particularly 1.14 and 2.4. There seems to be a problem with using OmniFaces CombinedResourceHandler with

Re: TomEE and validation-api-1.1.0

2017-11-16 Thread Matthew Broadhead
Which TomEE are you using?  (e.g. plus, plume etc)  Plus is OpenJPA which is only JPA2.0 On 16/11/2017 15:14, brayann36 wrote: Hi i have the same issue and been wracking my brains since a week. I am using spring boot version 1.3.0 and the war works fine on local tomcat server. Issue is when i d

Re: Tomee install issue

2017-11-23 Thread Matthew Broadhead
doesn't redhat use an old version of tomcat?  last time i installed from yum it was really out of date so i installed latest manually. are you sure this applies to tomee? On 23/11/2017 16:18, dkwakkel wrote: The latest CVE is of priority HIGH: https://access.redhat.com/security/cve/cve-2017-12

@Singleton duplicate deployment ids

2017-11-25 Thread Matthew Broadhead
Hi, I am sure I have had this problem before but I wondered if you could clarify. If I have 2 different webapps containing 2 singletons with the same simple name I get org.apache.openejb.assembler.classic.Assembler.createApplication Application cannot be deployed as it contains deployment-ids w

@Produces inside jar

2017-11-27 Thread Matthew Broadhead
If I include a jar in several webapps and the jar contains some @ApplicationScoped beans it seems to work fine.  i.e. those @ApplicationScoped beans can be injected into the beans in the webapps without conflict. However if I use @Produces, e.g @Produces @MyQualifier @RequestScoped public MyCu

Re: @Produces inside jar

2017-11-27 Thread Matthew Broadhead
should not be serializable? On 27/11/2017 10:17, Romain Manni-Bucau wrote: No but likely MyCustomObject is scanned and has a default constructor Romain Manni-Bucau @rmannibucau | Blog | Old Blog | Github | LinkedIn 2017-11-27 10:00 GMT+01:00 Matthew Broadhead : If I include a jar in

Re: @Produces inside jar

2017-11-27 Thread Matthew Broadhead
class maybe? Romain Manni-Bucau @rmannibucau | Blog | Old Blog | Github | LinkedIn 2017-11-27 10:24 GMT+01:00 Matthew Broadhead : should not be serializable? On 27/11/2017 10:17, Romain Manni-Bucau wrote: No but likely MyCustomObject is scanned and has a default constructor Romain Manni

Re: @Produces inside jar

2017-11-27 Thread Matthew Broadhead
+01:00 Matthew Broadhead : yes that works. does that mean all classes are being added as cdi for some reason? or only ones that are being produced? On 27/11/2017 10:25, Romain Manni-Bucau wrote: hmm there is not link with serializable but if it is a cdi bean then producing it will make it

@Produces returning null

2017-11-27 Thread Matthew Broadhead
if @Produces can produce null e.g. @Produces @Default @RequestScoped public KeycloakSecurityContext keycloakSecurityContext() {     if (httpServletRequest.getUserPrincipal() instanceof KeycloakPrincipal) {         KeycloakPrincipal keycloakPrincipal = (KeycloakPrincipal) httpServletRequest.get

Re: @Produces returning null

2017-11-27 Thread Matthew Broadhead
ing a @RequestScoped producer class (the enclosing one) and @Dependent producer can work too if you inject this context in request scoped instances only. Romain Manni-Bucau @rmannibucau | Blog | Old Blog | Github | LinkedIn 2017-11-27 11:02 GMT+01:00 Matthew Broadhead : if @Produces can produce

Re: @Produces returning null

2017-11-27 Thread Matthew Broadhead
11:31, Romain Manni-Bucau wrote: Loops in you generic usages? Romain Manni-Bucau @rmannibucau | Blog | Old Blog | Github | LinkedIn 2017-11-27 11:29 GMT+01:00 Matthew Broadhead : starts up ok but then on page load i get |java.lang.StackOverflowError at

Re: @Produces returning null

2017-11-27 Thread Matthew Broadhead
also i did not realise that @Dependent is a Scope.  so i was declaring @RequestScoped and @Dependent at the same time On 27/11/2017 11:41, Matthew Broadhead wrote: looks like it.  another method was injecting the security context, so i moved it to it own class and now it is working.  changing

Re: TomEE supported on Java 9: when ?

2017-12-06 Thread Matthew Broadhead
i would be happy to help.  what level of expertise do you need though? On 06/12/2017 13:10, Mark Struberg wrote: Btw, if we get a few more helping hands up then I'd be happy if someone could help me with the TomEE8 branch ;) LieGrue, strub Am 06.12.2017 um 13:08 schrieb Mark Struberg : 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 = (Keyc

Re: injecting httpservletrequest in timer

2017-12-07 Thread Matthew Broadhead
Blog | Old Blog | Github | LinkedIn 2017-12-07 9:49 GMT+01:00 Matthew Broadhead : i have this method to @Produces KeycloakSecurityContext @Produces @Default @Dependent public KeycloakSecurityContext keycloakSecurityContext() { try { if (httpServletRequest

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 07/12/2017 09:55, Ro

Re: JtaEntityManager GC

2018-02-15 Thread Matthew Broadhead
i was told to inject the entitymanager like this @ApplicationScoped public class EntityManagerProducer {     @PersistenceUnit(unitName = "myDb")     private EntityManagerFactory entityManagerFactory;     @Produces     @Default     @RequestScoped     public EntityManager create() {         return

Re: JtaEntityManager GC

2018-02-20 Thread Matthew Broadhead
you might be able to use a @Qualifier to have 2 different producers On 19/02/2018 21:43, cocorossello wrote: Thx Chongma, but one question. Let's say I also want to use that MyRepo1 from a @Stateless @Scheduled (so no request context). How can I produce that same entityManager? -- Sent from:

Re: JtaEntityManager GC

2018-02-20 Thread Matthew Broadhead
sorry i misread the question.  you should still be able to @Inject into a @Stateless without a @RequestContext? for my timer classes i used this example http://tomee.apache.org/examples-trunk/schedule-expression/README.html an @EJB @Singleton initialised with TimerConfig On 19/02/2018 21:43, coc

velocityengine in cdi applicationscoped

2018-03-08 Thread Matthew Broadhead
TomEE 7.0.3 (i cannot upgrade to 7.0.4) i am trying to switch from using XSLT to using velocity templates. i noticed that velocity was included as a lib in TomEE if i declare VelocityEngine inside a CDI @ApplicationScoped try {             VelocityEngine velocityEngine = new VelocityEngine();

Re: velocityengine in cdi applicationscoped

2018-03-08 Thread Matthew Broadhead
runtime. Le 8 mars 2018 18:48, "Matthew Broadhead" a écrit : TomEE 7.0.3 (i cannot upgrade to 7.0.4) i am trying to switch from using XSLT to using velocity templates. i noticed that velocity was included as a lib in TomEE if i declare VelocityEngine inside a CDI @Application

Re: velocityengine in cdi applicationscoped

2018-03-08 Thread Matthew Broadhead
t and you have extensions in your webapp but it should fail at runtime. Le 8 mars 2018 18:48, "Matthew Broadhead" a écrit : TomEE 7.0.3 (i cannot upgrade to 7.0.4) i am trying to switch from using XSLT to using velocity templates. i noticed that velocity was included as a lib in TomE

Re: velocityengine in cdi applicationscoped

2018-03-08 Thread Matthew Broadhead
ady. Le 8 mars 2018 19:21, "Matthew Broadhead" a écrit : btw is there some way to define VelocityEngine as a Resource in tomee.xml so it doesn't have to be loaded each time? On 08/03/2018 19:15, Romain Manni-Bucau wrote: Hi If you keep the bean and remove velocity you will pro

tomee-maven-plugin webapps

2018-03-12 Thread Matthew Broadhead
hi i am trying to use tomee-maven-plugin from a parent project. i tried to define the subprojects as webapps like                   org.apache.tomee.maven             tomee-maven-plugin             ${tomee.version}             ${tomee.version}                 plus ${project.basedir}/src/test/to

Re: tomee-maven-plugin webapps

2018-03-12 Thread Matthew Broadhead
acktpub.com/application-development/java-ee-8-high-performance> 2018-03-12 12:51 GMT+01:00 Matthew Broadhead : hi i am trying to use tomee-maven-plugin from a parent project. i tried to define the subprojects as webapps like org.apache.tomee.maven t

Re: tomee-maven-plugin webapps

2018-03-12 Thread Matthew Broadhead
rx.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> 2018-03-12 15:39 GMT+01:00 Matthew B

Re: tomee-maven-plugin webapps

2018-03-12 Thread Matthew Broadhead
15:57, Romain Manni-Bucau wrote: 2018-03-12 15:46 GMT+01:00 Matthew Broadhead : why is the gav not resolving to the local builds and trying to get from repo? if in your repo and not in the reactor it should find it otherwise it doesn't exists from a maven perspective yes i could create an

[openjpa] multiple persistence units

2018-03-16 Thread Matthew Broadhead
hi, i just wrote an email to users@openjpa but there doesn't seem to be much activity there. do you know how to declare multiple persistence units?  i created 2 persistence units inside persistence.xml but it seems to create the entities from the second PU in the database of the first one.  my

Re: [openjpa] multiple persistence units

2018-03-16 Thread Matthew Broadhead
opment/java-ee-8-high-performance> 2018-03-16 9:23 GMT+01:00 Matthew Broadhead : hi, i just wrote an email to users@openjpa but there doesn't seem to be much activity there. do you know how to declare multiple persistence units? i created 2 persistence units inside persistence.xml but

Re: [openjpa] multiple persistence units

2018-03-16 Thread Matthew Broadhead
nibucau> | LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book <https://www.packtpub.com/application-development/java-ee-8-high-performance> 2018-03-16 9:46 GMT+01:00 Matthew Broadhead : they are both mysql databases On 16/03/2018 09:33, Romain Manni-Bucau wrote: Hi,

Re: [openjpa] multiple persistence units

2018-03-16 Thread Matthew Broadhead
.jpa.operator.Posttown" under mode "[META][QUERY]". 235841  file  TRACE  [http-nio-8080-exec-7] openjpa.MetaData - Parsing resource "file:/Users/matthewbroadhead/eclipseWS/case-management/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/file/WEB-INF/classes/META-INF/orm.xm

Re: [openjpa] multiple persistence units

2018-03-16 Thread Matthew Broadhead
see if it made any difference On 16/03/2018 14:08, Romain Manni-Bucau wrote: do you have some "adjusting" lines in the logs? Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Old Blog <http://rmannibucau.wordpress.com

Re: [openjpa] multiple persistence units

2018-03-16 Thread Matthew Broadhead
https://gist.github.com/chongma/f019380ec6109d566b8b3444a41814eb On 16/03/2018 14:37, Romain Manni-Bucau wrote: 2018-03-16 14:30 GMT+01:00 Matthew Broadhead : i searched for adjusting but found nothing. do you want to see the whole log file? can the mailing list take attachments or do i have

Re: [openjpa] multiple persistence units

2018-03-16 Thread Matthew Broadhead
<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> 2018-03-

Re: [openjpa] multiple persistence units

2018-03-16 Thread Matthew Broadhead
sorry actually it is already writing to file and console.  i will see if i can get it more verbose On 16/03/2018 15:34, Matthew Broadhead wrote: is there a way to output tomee logs to file?  i am using eclipse and they will get swallowed by console. On 16/03/2018 14:58, Romain Manni-Bucau

Re: [openjpa] multiple persistence units

2018-03-16 Thread Matthew Broadhead
EATE INDEX I_PSTTOWN_WTR_AUTH ON Posttown (wtr_auth_n) --> 326ms On 16/03/2018 15:37, Matthew Broadhead wrote: sorry actually it is already writing to file and console.  i will see if i can get it more verbose On 16/03/2018 15:34, Matthew Broadhead wrote: is there a way to output tomee logs

Re: [openjpa] multiple persistence units

2018-03-16 Thread Matthew Broadhead
ibucau.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-perform

Re: [openjpa] multiple persistence units

2018-03-17 Thread Matthew Broadhead
is the issue Le 16 mars 2018 19:49, "Matthew Broadhead" a écrit : this is the bit just after all the webapp deployment, and the relevant webapp deployment is in this gist https://gist.github.com/chongm a/948a4a369c1f9eae9406a99b60f0472e 16-Mar-2018 15:41:29.068 INFO [main] sun.reflect.Dele

Re: [openjpa] multiple persistence units

2018-03-17 Thread Matthew Broadhead
ok will do On 17/03/2018 09:28, Romain Manni-Bucau wrote: Can you prepare a sample on github re1dy to compile/run (with hsqldb maybe)? Le 17 mars 2018 09:18, "Matthew Broadhead" a écrit : it is exactly the same. still creating the tables in first db. here is section from catali

Re: [openjpa] multiple persistence units

2018-03-17 Thread Matthew Broadhead
thub re1dy to compile/run (with hsqldb maybe)? Le 17 mars 2018 09:18, "Matthew Broadhead" a écrit : it is exactly the same. still creating the tables in first db. here is section from catalina 17-Mar-2018 09:10:51.900 INFO [localhost-startStop-1] org.apache.tomee.catalina.TomcatWeb

archetype

2018-03-17 Thread Matthew Broadhead
i just tried to create archetype using mvn archetype:generate -DarchetypeGroupId=org.apache.openejb.maven -DarchetypeArtifactId=tomee-webapp-archetype -DarchetypeVersion=1.7.1 but using 7.0.3, 7.0.4 etc but it doesn't exist.  do we need to create some new archetypes? the 1.7.1 uses EJB but it w

Re: [openjpa] multiple persistence units

2018-03-17 Thread Matthew Broadhead
INSERT INTO BOOK VALUES(2,'dfdfd') COMMIT INSERT INTO BOOK VALUES(3,'lplplp') COMMIT On 17/03/2018 09:31, Matthew Broadhead wrote: ok will do On 17/03/2018 09:28, Romain Manni-Bucau wrote: Can you prepare a sample on github re1dy to compile/run (with hsqldb maybe)? Le 17 mars

Re: archetype

2018-03-17 Thread Matthew Broadhead
oh yeah of course On 17/03/2018 19:22, Romain Manni-Bucau wrote: Tomee uses tomee instead of openejb in its group for v7. Le 17 mars 2018 17:44, "Matthew Broadhead" a écrit : i just tried to create archetype using mvn archetype:generate -DarchetypeGroupId=org.apache.ope

Re: [openjpa] multiple persistence units

2018-03-19 Thread Matthew Broadhead
/application-development/java-ee-8-high-performance> 2018-03-17 18:44 GMT+01:00 Matthew Broadhead : i made a reproducer here https://github.com/chongma/openjpa-reproducer. it might be enough to show the problem but if not let me know. it worked fine at the beginning using the standard arche

Re: TomEE Stable and OpenJDK

2018-05-06 Thread Matthew Broadhead
i also use OpenJDK on CentOS without problem.  I thought OpenJDK was blessed by Oracle.  I also remember reading that OpenJDK code is used inside Oracle JDK, Oracle one just has some extra stuff like JavaFX etc On 06/05/18 12:10, Fredrik Jonson wrote: Mark Struberg wrote: I think what the

cdi execute code on session start

2018-05-07 Thread Matthew Broadhead
what is the best way to run code when a session is first created?  i thought maybe a @PostConstruct inside a @Named @SessionScoped but it doesn't trigger.

Re: cdi execute code on session start

2018-05-08 Thread Matthew Broadhead
lt;https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book <https://www.packtpub.com/application-development/java-ee-8-high-performance> 2018-05-07 17:10 GMT+02:00 Matthew Broadhead : what is the best way to run code when a session is first create

Re: Own SecurityService ignored migrating from TomEE Plus 1.7.1 to 1.7.5

2018-05-21 Thread Matthew Broadhead
i can't see your stack traces On 21/05/18 15:50, renz wrote: Hi, I'm having trouble migrating from TomEE 1.7.1 to 1.7.5. I'm using Remote Stateless EJB over HTTPS (TomEE apps) for years with 1.7.1. On the server side, I use my own on JAAS Module (Realm and LoginModule) and SecurityService. Th

Could not load any resource bundle by com.sun.org.apache.xerces.internal.impl.msg.SAXMessages

2018-05-23 Thread Matthew Broadhead
After TomEE 7.0.3 has been running for a long time, maybe weeks, it starts producing these messages when users try to transform XML using XSLT (usually to generate PDF using FOP). The container has to be restarted in order for it to start working again. Is this related to the Xalan problem?

Re: Basic EJB sample not working if I don't start package name with "org"

2018-05-24 Thread Matthew Broadhead
did you clean your tomee? On 24/05/18 18:24, Sudhakar Vankamamidi wrote: Hi, I am trying EJB basic sample given here http://openejb.apache.org/hello-world.html only difference is I have changed EJB package structure to not to start with "org". Now after deployment tomEE is not recognizing th

GraalVM

2018-06-10 Thread Matthew Broadhead
out of interest has anyone tried to create a native image of TomEE using GraalVM?

Re: Interceptors discovery

2018-06-13 Thread Matthew Broadhead
sorry i am not too sure about interceptors.  also there are a lot of conferences at the moment so the main people that can help you are probably busy for a few days.  i am sure you will get an answer when they return On 12/06/18 08:45, vranac wrote: Did I asked difficult questions or what? I

tomee testing

2018-06-22 Thread Matthew Broadhead
i am trying to use ApplicationComposer to create some tests.  CDI is scanning the classes correctly but i am a little uncertain about how to load a test database. i was going to start by just loading the database as normal as it is a copy of production database.  but how do i specify the usern

Re: tomee testing

2018-06-22 Thread Matthew Broadhead
; | 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> Le v

Re: tomee testing

2018-06-22 Thread Matthew Broadhead
| 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> Le ven. 22 juin 2018 à 09:42, Matthew Broadhe

Re: tomee testing

2018-06-22 Thread Matthew Broadhead
On 22/06/18 18:44, Romain Manni-Bucau wrote: You can add it in libs property of arquillian container config. Just prefix the coords with mvn:. Ex: mvn:mysql:mysql-connector-jav:version It is a multiline property so you can add N libs to tomee lib this way Le ven. 22 juin 2018 18:13, Ma

Re: tomee testing

2018-06-23 Thread Matthew Broadhead
irona-javaagent:0.2-incubating:jar:shaded On 23/06/18 08:15, Romain Manni-Bucau wrote: Exclude mysql from sirona instrumentation. Its bytecode is not safe. Le sam. 23 juin 2018 01:03, Matthew Broadhead a écrit : thanks i added it using mvn:mysql:mysql-connector-java:5.1.33 but i get these e

Re: tomee testing

2018-06-23 Thread Matthew Broadhead
ot needed at all bit it appears in your stack. If it is a copy paste just drop it ;) Le sam. 23 juin 2018 10:05, Matthew Broadhead a écrit : hi, i checked http://incubator.apache.org/projects/sirona.html but i couldn't find any documentation. is sirona a requirement for arquillian-tomee-rem

Re: tomee testing

2018-06-23 Thread Matthew Broadhead
-Bucau wrote: You can but you need to add all the object graph in the archive. Here you miss an injection it seems (in your dao?). Side note: operatesondeployment and naming your archive is not needed here. It is useful when you deploy N > 1 archives. Le sam. 23 juin 2018 12:54, Matthew Broad

Re: tomee testing

2018-06-23 Thread Matthew Broadhead
.inject.Any]]     at org.apache.webbeans.config.BeansDeployer.deploy(BeansDeployer.java:327) so i must have missed a required class somewhere On 23/06/18 18:53, Matthew Broadhead wrote: do i need to copy the persistence.xml to src/test/resources/META-INF? or can i specify its location somewhere in con

Re: tomee testing

2018-06-24 Thread Matthew Broadhead
re easier to maintain). Maybe import our ziplock lib and use Mvn.Builder class if you are maven based. It can help. Le sam. 23 juin 2018 20:09, Matthew Broadhead a écrit : ah ok. i found .addAsManifestResource(new ClassLoaderAsset("META-INF/persistence.xml"), "persistence.xm

Re: tomee testing

2018-06-24 Thread Matthew Broadhead
12:01, Romain Manni-Bucau wrote: Appcopposer loads classes in the classpath so add it as a test dependency. Le dim. 24 juin 2018 11:37, Matthew Broadhead a écrit : not much luck with arquillian. i am trying ApplicationComposer again. now i understand the properties format @ContainerProperties

Re: tomee testing

2018-06-24 Thread Matthew Broadhead
://www.packtpub.com/application-development/java-ee-8-high-performance> Le dim. 24 juin 2018 à 12:15, Matthew Broadhead a écrit : i tried adding test scope to pom.xml mysql mysql-connector-java ${mysql.connector.version} test also added mysql-conn

Re: tomee testing

2018-06-24 Thread Matthew Broadhead
nnibucau.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> Le dim. 24 juin 2018 à 12:52,

Re: tomee testing

2018-06-24 Thread Matthew Broadhead
    return this.entityManagerFactory.createEntityManager();     }     public void dispose(@Disposes @Default EntityManager entityManager) {         if (entityManager.isOpen()) {             entityManager.close();         }     } } On 24/06/18 13:46, Matthew Broadhead wrote: i changed @Descriptors(@

Re: tomee testing

2018-06-24 Thread Matthew Broadhead
ar On 24/06/18 13:58, Matthew Broadhead wrote: i am loading the PU with a producer like @ApplicationScoped public class EntityManagerProducer {     @PersistenceUnit(unitName = "sales")     private EntityManagerFactory entityManagerFactory;     @Produces     @Default     @Requ

java.lang.NoClassDefFoundError: com/mysql/jdbc/ParameterBindings

2018-07-02 Thread Matthew Broadhead
recently i have been getting this exception during development. restarting the container allows me to proceed.  i am worried it might start happening in production. java.lang.NoClassDefFoundError: com/mysql/jdbc/ParameterBindings     at com.mysql.jdbc.ConnectionImpl.clientPrepareStatement(Conn

Re: java.lang.NoClassDefFoundError: com/mysql/jdbc/ParameterBindings

2018-07-02 Thread Matthew Broadhead
yes it normally happens after some code changes. library is in tomee lib.  i am on 7.0.3 On 02/07/18 13:23, Romain Manni-Bucau wrote: Hi Does it happen after some redeployment? Is mysql in tomee lib or the app lib folder? Le lun. 2 juil. 2018 13:07, Matthew Broadhead a écrit : recently i

Re: Configuring data source using secured ports

2018-07-10 Thread Matthew Broadhead
https://stackoverflow.com/questions/16523595/specify-ssl-to-be-used-for-jdbc-in-context-xml On 10/07/18 01:12, skrishnamk wrote: We are running an application on TomEE v1.7. I've configured datasource connection using non-secured ports on context.xml and it works fine. Now, we have a need to cha

Re: java.lang.NoClassDefFoundError: com/mysql/jdbc/ParameterBindings

2018-07-10 Thread Matthew Broadhead
<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> Le lun. 2 juil. 2018 à 13:34

java.lang.ClassCastException: org.apache.xml.dtm.ref.DTMManagerDefault cannot be cast to org.apache.xml.dtm.DTMManager

2018-07-16 Thread Matthew Broadhead
i have a couple of problems... i have not been able to upgrade from TomEE 7.0.3 to 7.0.4 or 7.0.5 due to the error (it works fine in 7.0.3) java.lang.ClassCastException: org.apache.xml.dtm.ref.DTMManagerDefault cannot be cast to org.apache.xml.dtm.DTMManager which occurs when i run the follow

Re: java.lang.ClassCastException: org.apache.xml.dtm.ref.DTMManagerDefault cannot be cast to org.apache.xml.dtm.DTMManager

2018-07-17 Thread Matthew Broadhead
at 2:06 AM, Matthew Broadhead < matthew.broadh...@nbmlaw.co.uk.invalid> wrote: i have a couple of problems... i have not been able to upgrade from TomEE 7.0.3 to 7.0.4 or 7.0.5 due to the error (it works fine in 7.0.3) java.lang.ClassCastException: org.apache.xml.dtm.ref.DTMManagerDefault c

Re: java.lang.ClassCastException: org.apache.xml.dtm.ref.DTMManagerDefault cannot be cast to org.apache.xml.dtm.DTMManager

2018-07-17 Thread Matthew Broadhead
different. In this scenario, I would check if you don't have duplicate xalan jars in tomee/lib and in the WEB-INF/lib of your application. Hope it helps -- Jean-Louis Monteiro http://twitter.com/jlouismonteiro http://www.tomitribe.com On Tue, Jul 17, 2018 at 2:06 AM, Matthew Broadhead < matthe

Re: java.lang.ClassCastException: org.apache.xml.dtm.ref.DTMManagerDefault cannot be cast to org.apache.xml.dtm.DTMManager

2018-07-18 Thread Matthew Broadhead
(uk/me/kissy/external/entityBeans/UtilityDao.java)     at uk.me.kissy.document.dao.DocumentElementDao.getBodyPDF(DocumentElementDao.java:395) On 17/07/18 19:35, Matthew Broadhead wrote: i have upgraded from fop 2.2 to 2.3 and excluded xalan and xml-apis again.  it seems to be working ok at

Re: java.lang.ClassCastException: org.apache.xml.dtm.ref.DTMManagerDefault cannot be cast to org.apache.xml.dtm.DTMManager

2018-07-18 Thread Matthew Broadhead
ok i fixed that.  it was just a null attribute causing the problem. so everything looks ok for now.  thanks for your help On 18/07/18 11:49, Matthew Broadhead wrote: i have the problem now.  this is the exception i get if i exclude xalan from fop.  i have no idea what might cause this

Re: Johnzon is going to infinite loop on JPA entities with OneToMany relationship

2018-07-19 Thread Matthew Broadhead
JAXB used to use @XmlInverseReference annotation.  is there no such johnzon annotation?  @JohnzonIgnore is more like @Transient? On 19/07/18 17:10, Romain Manni-Bucau wrote: Hi Sudhakar, Ensure you have a @JohnzonIgnore on one side to avoid a loop. Romain Manni-Bucau @rmannibucau

Re: java.lang.ClassCastException: org.apache.xml.dtm.ref.DTMManagerDefault cannot be cast to org.apache.xml.dtm.DTMManager

2018-07-21 Thread Matthew Broadhead
louismonteiro http://www.tomitribe.com On Wed, Jul 18, 2018 at 1:44 PM, Matthew Broadhead < matthew.broadh...@nbmlaw.co.uk.invalid> wrote: ok i fixed that. it was just a null attribute causing the problem. so everything looks ok for now. thanks for your help On 18/07/18 11:49, Matth

Re: java.lang.ClassCastException: org.apache.xml.dtm.ref.DTMManagerDefault cannot be cast to org.apache.xml.dtm.DTMManager

2018-07-21 Thread Matthew Broadhead
d xml-apis On 21/07/18 11:52, Matthew Broadhead wrote: hmmm...actually i have realised what the problem is now. before excluding xalan and xml-apis in XSLT i can load a bundle from the classpath without problem.  for example select="java:util.ResourceBundle.getBundle('uk.me.kissy.do

Re: java.lang.ClassCastException: org.apache.xml.dtm.ref.DTMManagerDefault cannot be cast to org.apache.xml.dtm.DTMManager

2018-07-22 Thread Matthew Broadhead
n_GB it only fails when excluding xalan and xml-apis On 21/07/18 11:52, Matthew Broadhead wrote: hmmm...actually i have realised what the problem is now. before excluding xalan and xml-apis in XSLT i can load a bundle from the classpath without problem.  for example select="java

  1   2   >