@DependsOn a producer

2016-06-22 Thread tonywestonuk
I want to run a postcontruct on a singleton when all other singletons have been initalised. One of those singletons are made using a @producer @Produces @Singleton public Sql2o getSql2o(){ ... } I tried using @dependsOn({"Sql2o"}) - this doesn't wo

Re: @DependsOn a producer

2016-06-22 Thread Romain Manni-Bucau
Hi @DependsOn only works for javax.ejb.Singleton - not CDI beans, which includes producers (you can't do a javax.ejb.Singleton with a producer. Romain Manni-Bucau @rmannibucau | Blog | Old Wordpress Blog

TomEE 7 with ActiveMQ 5.13.3 : Class is not trusted to be serialized as ObjectMessage payload

2016-06-22 Thread MMA_EDFX
Hello, I am getting the below error while posting the message to jms queue. I have gone through the link http://activemq.apache.org/objectmessage.html provided in the error message. But I could not resolve the issue. How do I resolve this issue? I am using TomEE 7.0 server 1) I have

Feedback on TomEE 1.7.4

2016-06-22 Thread Gabriel Buades
Hello all. I've been working with JBoss for 13 years, but now I've started playing with Tomee. From my point of view, it's a greate product, but I've found a problem I don't know how to deal with. I've launched Tomee with ClassLoader security enabled ( catalina.sh run -security ), and I need to g

Re: Feedback on TomEE 1.7.4

2016-06-22 Thread Romain Manni-Bucau
Hello Gabriel, that's right, the overriding is not that obvious. Created https://issues.apache.org/jira/browse/TOMEE-1849 However basic jaccprovider should reuse system policy - ie catalina.policy - for several parts (check org.apache.openejb.core.security.jacc.BasicJaccProvider#systemPolicy usag

Re: TomEE 7 with ActiveMQ 5.13.3 : Class is not trusted to be serialized as ObjectMessage payload

2016-06-22 Thread Romain Manni-Bucau
Hello this is the way to solve it - and actually how we fixed our tests upgrading AMQ version. you maybe didn't add it in the right place in catalina.bat. I would recommand you to use setenv.bat in bin folder for such config or use conf/system.properties Romain Manni-Bucau @rmannibucau

Use hibernate as jpa provider. Into tomee7 plus

2016-06-22 Thread mauro2java2011
Hi all. Hi would try to use hibernate as jpa 2.1 provider into tomee 7. I have questiobs on it: 1) hibernate jpa 2.1 use also the eahncement of entities or not? 2) if i use hibernate jpa 2.1 i have also to change or eliminate the java agent that came on default for openjpa ? 3) i gave to e

Re: Use hibernate as jpa provider. Into tomee7 plus

2016-06-22 Thread Romain Manni-Bucau
2016-06-22 13:50 GMT+02:00 mauro2java2011 : > Hi all. > Hi would try to use hibernate as jpa 2.1 provider into tomee 7. > I have questiobs on it: > > 1) hibernate jpa 2.1 use also the eahncement of entities or not? > It is a hibernate question ;) To make it simple: no but yes. Hibernate is very

Re: Use hibernate as jpa provider. Into tomee7 plus

2016-06-22 Thread mauro2java2011
So if i would use the complet features of jpa2.1 hibernate how i can set the javaagent for eahnce the entities at deploy time dinamically ? I have to set another java agent? -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/Use-hibernate-as-jpa-provider-Into-tomee7-p

Re: Use hibernate as jpa provider. Into tomee7 plus

2016-06-22 Thread Romain Manni-Bucau
Normally you don't need anything special but let us know if you encounter any issue (to be honest we never got an issue at that level for hibernate since i'm on the project so I don't worry too much ;)) Romain Manni-Bucau @rmannibucau | Blog

Re: Use hibernate as jpa provider. Into tomee7 plus

2016-06-22 Thread mauro2java2011
tank you very much. for curuiosity you have a link for read a article on hibernate eahncement ? -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/Use-hibernate-as-jpa-provider-Into-tomee7-plus-tp4679003p4679007.html Sent from the TomEE Users mailing list archive at N

Re: Use hibernate as jpa provider. Into tomee7 plus

2016-06-22 Thread Romain Manni-Bucau
a bit "old" (for an IT thing ;)) but should cover the overall points: https://vladmihalcea.com/2014/09/08/hibernate-bytecode-enhancement/ Romain Manni-Bucau @rmannibucau | Blog | Old Wordpress Blog

Re: Use hibernate as jpa provider. Into tomee7 plus

2016-06-22 Thread Felipe Jaekel
Hi, I'm using Hibernate 5.1 with TomEE 7 plus as a maven dependency. No additional config required. 2016-06-22 8:50 GMT-03:00 mauro2java2011 : > Hi all. > Hi would try to use hibernate as jpa 2.1 provider into tomee 7. > I have questiobs on it: > > 1) hibernate jpa 2.1 use also the eahncement o

Re: TomEE 7 with ActiveMQ 5.13.3 : Class is not trusted to be serialized as ObjectMessage payload

2016-06-22 Thread MMA_EDFX
Hello, Yes you are right. I added it in the wrong place, which is not called. Now I added after the line rem Add OpenEJB javaagent set ALL_PACKAGE_OPTS="-Dorg.apache.activemq.SERIALIZABLE_PACKAGES=*" set JAVA_OPTS=%JAVA_OPTS% %ALL_PACKAGE_OPTS% It looks be ok now. Thanks -- View

Re: How to Configure SAX Parser for WebServiceRef Injection to Ignore Unexpected Elements

2016-06-22 Thread KyleDavis
For posterity, I've found one workaround, though it does feel a bit "hackish". I added the following to the appropriate XML types defined in our additional XSD. This does have an unfortunate side effect of creating additional getAny()/setAny() weirdness on the generated classes, but we can

How to Configure SAX Parser for WebServiceRef Injection to Ignore Unexpected Elements

2016-06-22 Thread KyleDavis
Title pretty much explains the question, but for background, we are attempting to integrate with a poorly-designed SOAP-based web service which does not fully specify the XSD of the object model. So during the wsimport, we use the "-b" option to provide our own XSD to generate the additional portio

Re: Use hibernate as jpa provider. Into tomee7 plus

2016-06-22 Thread mauro2java2011
please the exact dependency ? dependency> ??? ??? 5.1 pom test -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/Use-hibernate-as-jpa-provider-Into-tomee7-plus-tp4679003p4679012.html Sent from the TomEE Users mailing list archive at

Re: Use hibernate as jpa provider. Into tomee7 plus

2016-06-22 Thread Felipe Jaekel
Actually I'm using 5.0 org.hibernate hibernate-entitymanager 5.0.9.Final 2016-06-22 13:08 GMT-03:00 mauro2java2011 : > please the exact dependency ? > > dependency> > ??? > ??? > 5.1 > pom > test > > > > > > -- > View this message in context: >

Re: Use hibernate as jpa provider. Into tomee7 plus

2016-06-22 Thread Romain Manni-Bucau
All is there http://hibernate.org/orm/downloads/ Romain Manni-Bucau @rmannibucau | Blog | Old Wordpress Blog | Github | LinkedIn

JavaEE + eclipseLink + TomEE gives java.sql.SQLSyntaxErrorException: user lacks privilege or object not found

2016-06-22 Thread eclideria
Hello guys, I try to make a simple app using a rest service, eclipseLink and mysql. I want to make this run on a TomEE server (apache-tomee-plume-1.7.4). But I'm facing a strange issue: java.sql.SQLSyntaxErrorException: user lacks privilege or object not found The query is running perfectly on

Re: JavaEE + eclipseLink + TomEE gives java.sql.SQLSyntaxErrorException: user lacks privilege or object not found

2016-06-22 Thread Romain Manni-Bucau
Hello didnt take time to run your sample - it is pretty late there ;) - but think you need to add to the persistence.xml instead of using javax.persistence properties to setup the connection. Think we workaround this EE constraint on tomee 7 but no more sure for 1.x. Romain Manni-Bucau @rmannib

Re: JavaEE + eclipseLink + TomEE gives java.sql.SQLSyntaxErrorException: user lacks privilege or object not found

2016-06-22 Thread eclideria
Thanks for your answer. It's pretty late there too ^^ So you mean that i should use and configure my datasource on the server and not in the persistence.xml properties ? -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/JavaEE-eclipseLink-TomEE-gives-java-sql-SQLSyn

Re: JavaEE + eclipseLink + TomEE gives java.sql.SQLSyntaxErrorException: user lacks privilege or object not found

2016-06-22 Thread Romain Manni-Bucau
That's what EE expects. TomEE 7 has several enhancements - config or "automatic guess" cause this constraint was breaking some apps not designed for EE but it was the way to do it originally yes. Romain Manni-Bucau @rmannibucau | Blog

Re: JavaEE + eclipseLink + TomEE gives java.sql.SQLSyntaxErrorException: user lacks privilege or object not found

2016-06-22 Thread Romain Manni-Bucau
PS: yes confirming it is only on 7 with a flag: https://issues.apache.org/jira/browse/TOMEE-1455 Romain Manni-Bucau @rmannibucau | Blog | Old Wordpress Blog | Github