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
:-) 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

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

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

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:

Re: IntelliJ IDE

2017-07-12 Thread Matthew Broadhead
| LinkedIn <https://www.linkedin.com/in/rmannibucau> | JavaEE Factory <https://javaeefactory-rmannibucau.rhcloud.com> 2017-07-12 14:38 GMT+02:00 Matthew Broadhead <matthew.broadh...@nbmlaw.co.uk : I am thinking of switching from Eclipse to IntelliJ community edition but I am st

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

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

Re: freezing on CentOS 7

2017-10-10 Thread Matthew Broadhead
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 it re

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: @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

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

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

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

@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

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:

@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

Re: @Produces returning null

2017-11-27 Thread Matthew Broadhead
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 <matthew.broadh...@nbmlaw.co

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 <matthew.broadh...@nbmlaw.co.uk>: starts up ok but then on page load i get |java.lang.StackOverflo

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 <matthew.broadh...@nbmlaw.co

Re: @Produces inside jar

2017-11-27 Thread Matthew Broadhead
on the class maybe? Romain Manni-Bucau @rmannibucau | Blog | Old Blog | Github | LinkedIn 2017-11-27 10:24 GMT+01:00 Matthew Broadhead <matthew.broadh...@nbmlaw.co.uk>: should not be serializable? On 27/11/2017 10:17, Romain Manni-Bucau wrote: No but likely MyCustomObject is scanned a

Re: @Produces inside jar

2017-11-27 Thread Matthew Broadhead
+01:00 Matthew Broadhead <matthew.broadh...@nbmlaw.co.uk>: 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 cd

@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)

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

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

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

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

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 =

Re: injecting httpservletrequest in timer

2017-12-07 Thread Matthew Broadhead
Blog | Github | LinkedIn 2017-12-07 9:49 GMT+01:00 Matthew Broadhead <matthew.broadh...@nbmlaw.co.uk>: i have this method to @Produces KeycloakSecurityContext @Produces @Default @Dependent public KeycloakSecurityContext keycloakSecurityContext() {

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 <matthew.broadh...@nbmlaw.co.uk>: I couldn't scope it because otherwise couldn't retur

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

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. One

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

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 <matthew.broadh...@nbmlaw.co.uk : what is the best way to run c

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.

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

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

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

Re: tomee testing

2018-06-22 Thread Matthew Broadhead
d 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 Broadhead a

Re: tomee testing

2018-06-22 Thread Matthew Broadhead
/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, Matthew Broa

Re: tomee testing

2018-06-23 Thread Matthew Broadhead
-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 errors

Re: tomee testing

2018-06-23 Thread Matthew Broadhead
is not 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-remote? i.e.

Re: tomee testing

2018-06-23 Thread Matthew Broadhead
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 Broadhead a éc

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: 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

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,

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

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

2018-08-17 Thread Matthew Broadhead
is there an annotation which will tell johnzon to return only the id of the jpa object and not the whole thing? On 17/08/18 22:05, Matthew Broadhead wrote: no. i will add those and try again. i also changed the entry in system.properties to org.apache.johnzon.deduplicateObjects = true

protect endpoint with basic auth

2018-08-22 Thread Matthew Broadhead
my webapp already has a login-config set to keycloak in web.xml so AFAIK i cannot define any other security configs there.  why doesn't tomcat allow multiple security methods?     KEYCLOAK     secure is there another way to protect a jax-rs endpoint using basic auth without having to create

Re: protect endpoint with basic auth

2018-08-22 Thread Matthew Broadhead
e> Le mer. 22 août 2018 à 15:55, Matthew Broadhead a écrit : my webapp already has a login-config set to keycloak in web.xml so AFAIK i cannot define any other security configs there. why doesn't tomcat allow multiple security methods? KEYCLOAK secure is there another way to p

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
ttp://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, Matthew Broadhead wr

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 < matthew.bro

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

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

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
-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.document.mes

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
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:util

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-17 Thread Matthew Broadhead
, 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 cannot b

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

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

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

2018-07-11 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

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

Re: tomee-maven-plugin webapps

2018-03-12 Thread Matthew Broadhead
t/> | 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 Broad

Re: tomee-maven-plugin webapps

2018-03-12 Thread Matthew Broadhead
m/application-development/java-ee-8-high-performance> 2018-03-12 12:51 GMT+01:00 Matthew Broadhead <matthew.broadh...@nbmlaw.co.uk : hi i am trying to use tomee-maven-plugin from a parent project. i tried to define the subprojects as webapps like org.apache.tome

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 <matthew.broadh...@nbmlaw.co.uk : 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 ma

Re: [openjpa] multiple persistence units

2018-03-16 Thread Matthew Broadhead
au> | 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 <matthew.broadh...@nbmlaw.co.uk> : they are both mysql databases On 16/03/

[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 <matthew.broadh...@nbmlaw.co.uk> : 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

Re: velocityengine in cdi applicationscoped

2018-03-08 Thread Matthew Broadhead
at runtime. Le 8 mars 2018 18:48, "Matthew Broadhead" <matthew.broadh...@nbmlaw.co.uk> 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 VelocityEng

Re: velocityengine in cdi applicationscoped

2018-03-08 Thread Matthew Broadhead
and you have extensions in your webapp but it should fail at runtime. Le 8 mars 2018 18:48, "Matthew Broadhead" <matthew.broadh...@nbmlaw.co.uk> 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 veloc

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
2018 19:21, "Matthew Broadhead" <matthew.broadh...@nbmlaw.co.uk> 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 rem

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
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.wordpres

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 <matthew.broadh...@nbmlaw.co.uk : i searched for adjusting but found nothing. do you want to see the whole log file? can the mail

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
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-performance> 2018-03-16 15:44 GMT+0

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

Re: [openjpa] multiple persistence units

2018-03-17 Thread Matthew Broadhead
TO 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 2018 09:18, "Matthew

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" <matthew.broadh...@nbmlaw.co.uk> a écrit : i just tried to create archetype using mvn archetype:generate -D

Re: [openjpa] multiple persistence units

2018-03-19 Thread Matthew Broadhead
velopment/java-ee-8-high-performance> 2018-03-17 18:44 GMT+01:00 Matthew Broadhead <matthew.broadh...@nbmlaw.co.uk : 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 us

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" <matthew.broadh...@nbmlaw.co.uk> a écrit : it is exactly the same. still creating the tables i

Re: [openjpa] multiple persistence units

2018-03-17 Thread Matthew Broadhead
mars 2018 19:49, "Matthew Broadhead" <matthew.broadh...@nbmlaw.co.uk> 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-

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-17 Thread Matthew Broadhead
Hi! This is the ezmlm program. I'm managing the users@tomee.apache.org mailing list. I'm working for my owner, who can be reached atusers-ow...@tomee.apache.org. No information has been provided for this list. --- Administrative commands for the users list --- I can handle administrative

Re: tomee testing

2018-06-24 Thread Matthew Broadhead
w.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-connector

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
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
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

Re: Performance issue in cxf-rt-rs-client-3.1.15.jar

2018-10-11 Thread Matthew Broadhead
tomee 8 is going to have 3.2.6 On 11/10/18 18:25, COURTAULT Francois wrote: Hello, Just to keep you informed. During some performance/stress tests using TomEE 7.1.0 we have found an issue with REST client. After re-analyzing thread dumps, we found several threads with this pattern:

Re: Performance issue in cxf-rt-rs-client-3.1.15.jar

2018-10-12 Thread Matthew Broadhead
Regards. -Original Message- From: Matthew Broadhead [mailto:matthew.broadh...@nbmlaw.co.uk.INVALID] Sent: jeudi 11 octobre 2018 19:00 To: users@tomee.apache.org Subject: Re: Performance issue in cxf-rt-rs-client-3.1.15.jar tomee 8 is going to have 3.2.6 On 11/10/18 18:25, COURTAULT Francois

bval emailvalidator

2018-10-14 Thread Matthew Broadhead
i just noticed that apache commons validator is not included in TomEE.  i wanted to use EmailValidator.  i noticed that BVal has an EmailValidator.  can that be used instead?

  1   2   >