Re: Cannot create a secure XMLInputFactory

2016-10-18 Thread Romain Manni-Bucau
ax.xml.stream.supportDTD o:false > setProperty f: com.ctc.wstx.stax.WstxInputFactory@5c6fae3c p: > javax.xml.stream.isReplacingEntityReferences o:false > setProperty f: com.ctc.wstx.stax.WstxInputFactory@5c6fae3c p: > javax.xml.stream.isSupportingExternalEntities o:false > > >

Re: Cannot create a secure XMLInputFactory

2016-10-18 Thread Romain Manni-Bucau
for tomee embedded yes Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://blog-rmannibucau.rhcloud.com> | Old Wordpress Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.

Re: Cannot create a secure XMLInputFactory

2016-10-18 Thread Romain Manni-Bucau
you should switch them I guess. Generally speaking if you include cxf dependencies in your application there is a property in tomee to ask it to isolate the webapp from the container for cxf - not sure I got your question right. Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibu

Re: Cannot create a secure XMLInputFactory

2016-10-18 Thread Romain Manni-Bucau
depends what does this service. As mentionned it is a classloading issue so if you use some custom threading or loader this can be the cause. Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://blog-rmannibucau.rhcloud.com> | Old Wordpres

Re: cxf interceptors in 2.0 api

2016-10-18 Thread Romain Manni-Bucau
hmm, would need a sample to be sure but can it be outputstream or writer is called twice due to a filter or something like that? Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://blog-rmannibucau.rhcloud.com> | Old Wordpress Blog <http://rmannibuca

Re: Cannot create a secure XMLInputFactory

2016-10-17 Thread Romain Manni-Bucau
As mentionned in the previous answer this is not in tomee sources but CXF, agree it should be logged at debug level but with current code debugging is the fastest. Side note: you dont need to build tomee from sources, just need to add cxf-core. Romain Manni-Bucau @rmannibucau <ht

Re: Cannot create a secure XMLInputFactory

2016-10-17 Thread Romain Manni-Bucau
cxf ones yes, that's as easy as adding cxf-core as provded dependency, putting a breakpoint on the mentionned line normally and starting tomee in debug mode. Surely the most efficient way to solve it. Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog &l

Re: Cannot create a secure XMLInputFactory

2016-10-17 Thread Romain Manni-Bucau
If you can put a breakpoint at https://github.com/apache/cxf/blob/eab841d5477c5e1ed21a49918defa79a0f1ad533/core/src/main/java/org/apache/cxf/staxutils/StaxUtils.java#L381 then you would know immediately why the throwable is thrown. Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibu

Re: Cannot create a secure XMLInputFactory

2016-10-17 Thread Romain Manni-Bucau
well jaxb is provided and shouldnt be delivered so you have to remove it from WEB-INF/lib. scope=provided should be fine too. Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://blog-rmannibucau.rhcloud.com> | Old Wordpress Blog <http://rmannibuca

Re: Cannot create a secure XMLInputFactory

2016-10-17 Thread Romain Manni-Bucau
yep so surely some part of the app running in a conflicting classloader. Personally I'd just remove stax2-api, woodstox and jaxb to start Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://blog-rmannibucau.rhcloud.com> | Old Wor

Re: Cannot create a secure XMLInputFactory

2016-10-17 Thread Romain Manni-Bucau
mvn dependency:tree | egrep 'woo|xml|stax' Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://blog-rmannibucau.rhcloud.com> | Old Wordpress Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | Lin

Re: Cannot create a secure XMLInputFactory

2016-10-17 Thread Romain Manni-Bucau
Hello can happen if you provide some xml libraries in your app - like woodstox or stax*api - and it conflicts at some point. Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://blog-rmannibucau.rhcloud.com> | Old Wordpress Blog <http://rmannibuca

Re: JSP named bean bug

2016-10-17 Thread Romain Manni-Bucau
("org.apache.jasper.servlet.JasperInitializer"); Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://blog-rmannibucau.rhcloud.com> | Old Wordpress Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <ht

Re: JSP named bean bug

2016-10-17 Thread Romain Manni-Bucau
Hi Ok got it now, comes from a change in tomcat backbone, I fixed it on 7.0.2 snapshot the trick is to preload JasperInitializer before any deployment of that kind. That is why it works from the second deployment, cause this initializer was executed. Romain Manni-Bucau @rmannibucau <ht

Re: JSP named bean bug

2016-10-17 Thread Romain Manni-Bucau
which version does it affect? can you build a project on github ready to run showing that (an arquillian test or tomee-maven-plugin setup are good way to share it)? Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://blog-rmannibucau.rhcloud.com> | O

Re: JSP named bean bug

2016-10-17 Thread Romain Manni-Bucau
Hi does it work in a standalone tomee (= not using WTP or eclipse at all)? Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://blog-rmannibucau.rhcloud.com> | Old Wordpress Blog <http://rmannibucau.wordpress.com> | Github <https://g

Re: cxf interceptors in 2.0 api

2016-10-17 Thread Romain Manni-Bucau
The 2 lines before you copy/paste would be interesting as well. Can be a lot of things like - bad logging config - server and client logs being mixed - feature being added twice - ... You can put a breakpoint in the in interceptor and check it is or not the same instance maybe. Le 17 oct. 2016 1

Re: cxf interceptors in 2.0 api

2016-10-17 Thread Romain Manni-Bucau
27;t think interceptors are directly usable but they are always wrappable in features. Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://blog-rmannibucau.rhcloud.com> | Old Wordpress Blog <http://rmannibucau.wordpress.com> | Github <https://git

Re: Johnzon send longs/ints as strings

2016-10-16 Thread Romain Manni-Bucau
back your payload if you don't fix the model as mentionned as "easiest" solution. Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://blog-rmannibucau.rhcloud.com> | Old Wordpress Blog <http://rmannibucau.wordpress.com> | Githu

Re: One to Many Relationship with Johnzon

2016-10-12 Thread Romain Manni-Bucau
have to admit I suggest it without checking so can be useless but try removing the quotes around johnzon in providers value. Also check ConfigurableJohnzonProvider is listed in writers when starting up (logged at INFO level) Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibu

Re: One to Many Relationship with Johnzon

2016-10-12 Thread Romain Manni-Bucau
Hi Mark this looks right (typically what we do in this test: https://github.com/apache/johnzon/blob/b0af96e6d819adf7a28782ebc535894bd27345da/johnzon-mapper/src/test/java/org/apache/johnzon/mapper/ObjectConverterTest.java#L80 ) what's johnzon context (= sure you use johnzon)? Romain Manni-

Re: Lazy loading from remote context

2016-10-07 Thread Romain Manni-Bucau
Le 7 oct. 2016 20:23, "ict" a écrit : > > ok, I understand, but there is a way to do a lazy load from a remote context > ??? > Doing another remote call or request only if tou think to it. > > > -- > View this message in context: http://tomee-openejb.979440.n4.nabble.com/Lazy-loading-from-remote

Re: Lazy loading from remote context

2016-10-07 Thread Romain Manni-Bucau
Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://blog-rmannibucau.rhcloud.com> | Old Wordpress Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rman

Re: Lazy loading from remote context

2016-10-07 Thread Romain Manni-Bucau
Hi not sure I got it all right but the constraint for lazy loading to work is to have a single transaction so ensure the transactionality of your code is the one you expect. Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://blog-rmannibucau.rhcloud.c

Re: johnzon

2016-10-07 Thread Romain Manni-Bucau
validation with some 3rd party frameworks. Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://blog-rmannibucau.rhcloud.com> | Old Wordpress Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <

Re: johnzon

2016-10-07 Thread Romain Manni-Bucau
Hi master uses 0.9.5 since some weeks ( https://github.com/apache/tomee/blob/master/pom.xml#L102) Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://blog-rmannibucau.rhcloud.com> | Old Wordpress Blog <http://rmannibucau.wordpress.com> | Github &

Re: KahaDB growth

2016-10-06 Thread Romain Manni-Bucau
activate the debug logs on org.apache.activemq.store.kahadb.MessageDatabase you should see several messages and a "Checkpoint started." or another "gc candidates after tx range" showing it tries to cleanup *unused* files (completed). Romain Manni-Bucau @rmannibucau

Re: KahaDB growth

2016-10-06 Thread Romain Manni-Bucau
ok, then it is more for activemq than tomee but cleanupInterval does that job so check with your app what is happening maybe Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://blog-rmannibucau.rhcloud.com> | Old Wordpress Blog <http://rmannibuca

Re: secure the tomee/ejb path

2016-10-05 Thread Romain Manni-Bucau
gle or clustered URLs. > > Only works cause base64 encoding will not add spaces or other URL forbidden character but another token policy can so think the fix was really in failover factory. > Best regards, > Zac Bedell > > On Jul 28, 2016, at 05:56, Romain Manni-Bucau <

Re: KahaDB growth

2016-10-05 Thread Romain Manni-Bucau
) Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://blog-rmannibucau.rhcloud.com> | Old Wordpress Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rman

Re: EJB via ServerServlet, JAASRealm name must match WAR name or in server.xml

2016-10-04 Thread Romain Manni-Bucau
Hi Zac, this is true for EJB but not for the webapp security. Means that is you put in login-config:realm-name "foo" and login using the http request then foo will be in use. Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://blog-rmannibucau

Re: How to share identity between several TomEE servers

2016-10-04 Thread Romain Manni-Bucau
PS: https://issues.apache.org/jira/browse/TOMEE-1952 Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://blog-rmannibucau.rhcloud.com> | Old Wordpress Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibuc

Re: How to share identity between several TomEE servers

2016-10-04 Thread Romain Manni-Bucau
Yes, was the idea of the proposal Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://blog-rmannibucau.rhcloud.com> | Old Wordpress Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.

Re: How to share identity between several TomEE servers

2016-10-04 Thread Romain Manni-Bucau
Expected an explicit message at least. That said if you want to enhance this error handling to support your case a pull-request would be welcomed and can still hit the coming 7.0.2 Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://blog-rmannibucau.rh

Re: How to share identity between several TomEE servers

2016-10-04 Thread Romain Manni-Bucau
2016-10-04 13:58 GMT+02:00 renz : > OK for the 1st point. > For the 2nd point, at the moment, we have specific process on client side > according to the LoginException nested in AuthenticationException. With > that > property we have access neither to AuthenticationException nor > LoginException.

Re: How to share identity between several TomEE servers

2016-10-04 Thread Romain Manni-Bucau
2016-10-04 11:42 GMT+02:00 renz : > Hi Romain, > > Thank you very much. It seems to do the trick. > > 1. What is the purpose of this property? > > By default ejbd uses a session so flow is something like: a. login b. do business calls c. logout If B is 100 of calls you still have had a singl

Re: How to share identity between several TomEE servers

2016-10-04 Thread Romain Manni-Bucau
Hi Maybe try adding in the client properties openejb.ejbd.authenticate-with-request=true (see https://issues.apache.org/jira/browse/TOMEE-997) Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://blog-rmannibucau.rhcloud.com> | Old Wordpres

Re: JDBC connection pool: Closed connections

2016-10-03 Thread Romain Manni-Bucau
Check number of used connection vs your max at that moment and try to reproduce in a sample if it is not a limit set too low. I know we improve a bit the jta management without dbcp on master but doubt it is that, looks more like an unexpected underlying access with that stack. Le 3 oct. 2016 19:

Re: HTTP Errors on Load-Balanced TomEE Servers

2016-10-03 Thread Romain Manni-Bucau
did you check your datasource pool too? default is pretty low and under load you can just wait for the DB depending the app Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://blog-rmannibucau.rhcloud.com> | Old Wordpress Blog <http://rmannibuca

Re: RSA encryption does not looks to be working

2016-10-03 Thread Romain Manni-Bucau
Did you check the getInstance(xxx) returns the same implementation in tomee and standalone? Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://blog-rmannibucau.rhcloud.com> | Old Wordpress Blog <http://rmannibucau.wordpress.com> | Github &

Re: HTTP Errors on Load-Balanced TomEE Servers

2016-10-03 Thread Romain Manni-Bucau
2016-10-03 15:43 GMT+02:00 Jlemoine : > Romain Manni-Bucau wrote > > 2016-10-03 14:44 GMT+02:00 Jlemoine < > > > jlemoine@ > > > >: > > > >> > > Don't get it wrong: > > > > 1. having a very small timeout should reject very

Re: HTTP Errors on Load-Balanced TomEE Servers

2016-10-03 Thread Romain Manni-Bucau
2016-10-03 14:44 GMT+02:00 Jlemoine : > Romain Manni-Bucau wrote > > Hi > > > > it would be interesting to tune the timeouts on the connector(s) - > > potentially on the LB too. > > > > If it happens again don't forget to take a thread dump of processe

Re: CDI Injection

2016-09-30 Thread Romain Manni-Bucau
. Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://blog-rmannibucau.rhcloud.com> | Old Wordpress Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rman

Re: EJBContainerRunner and @RequestScoped

2016-09-30 Thread Romain Manni-Bucau
org.apache.openejb.junit.ScopesRule can help you to control active scopes and potentially restart this request scope. Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://blog-rmannibucau.rhcloud.com> | Old Wordpress Blog <http://rmannibucau.wordpress.com> | Github &

Re: EJB Timer run as another user

2016-09-30 Thread Romain Manni-Bucau
Hi did you check @RunAs? Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://blog-rmannibucau.rhcloud.com> | Old Wordpress Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.

Re: HTTP Errors on Load-Balanced TomEE Servers

2016-09-29 Thread Romain Manni-Bucau
Hi it would be interesting to tune the timeouts on the connector(s) - potentially on the LB too. If it happens again don't forget to take a thread dump of processes, it often helps to see what the server is doing and if it is just busy. Romain Manni-Bucau @rmannibucau <https://twi

Re: OpenEJB and EL

2016-09-29 Thread Romain Manni-Bucau
well best would probably be to: a. allow to escape dots b. allow to resolve by bucket (if javax doesnt exist try javax.enterprise etc...) c. give a beans handler in CDI Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://blog-rmannibucau.rhcloud.c

Re: Migrating EJB from Jboss to TomEE

2016-09-29 Thread Romain Manni-Bucau
t deterministic for jars. > > Il 29/09/2016 13:56, Romain Manni-Bucau [via TomEE & OpenEJB] ha scritto: > > 2016-09-29 13:09 GMT+02:00 luca-vercelli <[hidden email] > > > > > : > > > >> I thought I had solved, however new problems come out. > &

Re: OpenEJB and EL

2016-09-29 Thread Romain Manni-Bucau
yep, you can add a test on "enterprise" as well. Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://blog-rmannibucau.rhcloud.com> | Old Wordpress Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |

Re: Migrating EJB from Jboss to TomEE

2016-09-29 Thread Romain Manni-Bucau
b but physically in another folder. How does it clash? Could customizing ejbdeployment solve it? > Thank you again! > > Luca > > > Il 07/09/2016 16:20, Romain Manni-Bucau [via TomEE & OpenEJB] ha scritto: > > Hi > > > > would need to check what is app2 and al

Re: OpenEJB and EL

2016-09-29 Thread Romain Manni-Bucau
think it is doable with a custom ELResolver without having to hold this map which can be wrong for pseudo scoped beans. Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://blog-rmannibucau.rhcloud.com> | Old Wordpress Blog <http://rmannibuca

Re: TomEE 7.0.0 sources unavailable

2016-09-29 Thread Romain Manni-Bucau
2016-09-29 10:50 GMT+02:00 luca-vercelli : > Yes, however the page https://openejb.apache.org/downloads.html wasn't > fixed. > > It is the same page so it is fixed as well, maybe your browser cache > > Il 29/09/2016 10:47, Romain Manni-Bucau [via TomEE & OpenEJB] ha

Re: TomEE 7.0.0 sources unavailable

2016-09-29 Thread Romain Manni-Bucau
has been fixed for 7.0.1 Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://blog-rmannibucau.rhcloud.com> | Old Wordpress Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.

Re: OpenEJB and EL

2016-09-29 Thread Romain Manni-Bucau
xample), I don't understand > why as this requirement comes from the CDI spec and should be implemented > in OWB... so back to (1) > > I am stuck in an infinite loop ;-) > > > > > From: Romain Manni-Bucau > Sent: Thursday, September 29, 2016 8:54 AM > To: use

Re: OpenEJB and EL

2016-09-28 Thread Romain Manni-Bucau
; > Types:[java.lang.Object,org.apache.webbeans.conversation. > ConversationImpl,javax.enterprise.context.Conversation], > > Qualifiers:[javax.enterprise.inject.Default,javax.enterprise.inject.Any] > from > > jar:file:/C:/Users/xavier/.m2/repository/org/apache/ > openwebbeans/o

Re: OpenEJB and EL

2016-09-28 Thread Romain Manni-Bucau
/ConversationWrapper.class Why is there @Default there? producer should only have the @Named you set Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://blog-rmannibucau.rhcloud.com> | Old Wordpress Blog <http://rmannibucau.wordpress.com> | Github &

Re: OpenEJB and EL

2016-09-28 Thread Romain Manni-Bucau
missing @Named("conv")? Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://blog-rmannibucau.rhcloud.com> | Old Wordpress Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <ht

Re: OpenEJB and EL

2016-09-28 Thread Romain Manni-Bucau
a producer allows to get a shorter/more elegant naming like #{conv.id} if you @Produces @Named("conv") ;) Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://blog-rmannibucau.rhcloud.com> | Old Wordpress Blog <http://rmannibucau.wordp

Re: OpenEJB and EL

2016-09-28 Thread Romain Manni-Bucau
last else). Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://blog-rmannibucau.rhcloud.com> | Old Wordpress Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rmannibucau>

Re: OpenEJB and EL

2016-09-28 Thread Romain Manni-Bucau
hmm, wonder if it is linked to the value you try to evaluate (which doesn't respect EL spec even if in CDI spec - don't ask please ;)).. See https://issues.jboss.org/browse/CDITCK-462 / http://lists.jboss.org/pipermail/cdi-dev/2015-January/006009.html Romain Manni-Bucau @rmannibu

Re: OpenEJB and EL

2016-09-28 Thread Romain Manni-Bucau
Hi Xavier On the phone so hard to give you a link bit try using tomcat el impl of tomcat 8.5 Le 28 sept. 2016 15:29, "Xavier Dury" a écrit : > Hi, > > I am using OpenEJB for my tests and need support for EL expressions in my > own code. > > By default, if I do something like this (pay attention

Re: Migrating EJB from Jboss to TomEE

2016-09-27 Thread Romain Manni-Bucau
@Management is a jboss import right? this doesnt mean anything outside jboss (like @Service), maybe add @Singleton Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://blog-rmannibucau.rhcloud.com> | Old Wordpress Blog <http://rmannibucau.wordpres

Re: Migrating EJB from Jboss to TomEE

2016-09-27 Thread Romain Manni-Bucau
Welcome back ;) 2016-09-27 15:59 GMT+02:00 luca-vercelli : > After 2 weeks, I can finally work on this again. > > Apparently, the Jndi names are completely different between JBoss and > TomEE. > For example, where in JBoss I had: > "LogCaricamentoService/local" > and > "queue/massiveLoading/load

Re: javax.naming.OperationNotSupportedException:+Context+is+read+only

2016-09-27 Thread Romain Manni-Bucau
that's what Svetlin said, createSubcontext is a write operation where lookup is a read one. Only read ones are allowed. Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://blog-rmannibucau.rhcloud.com> | Old Wordpress Blog <http://rmann

Re: Chemistry/beans.xml and ClassCastException

2016-09-26 Thread Romain Manni-Bucau
Hi Maybe try removing cxf from the webapp to start. If not an option we have a flag to try to solve it but better to clean up the app. Le 26 sept. 2016 10:17, "gchauvet" a écrit : > According to https://issues.apache.org/jira/browse/TOMEE-1898, I've added > a > empty beans.xml in my project (AT

Re: Rest problem with tomee 7.0

2016-09-23 Thread Romain Manni-Bucau
Hi 2016-09-23 10:33 GMT+02:00 Karl Kildén : > Hi! > > Using TomEE 7.x our rest endpoints now expect: > > { > "name":"Name", > "occupation":"RestProblemSolver" > } > > > But our partner sends > > > { > "simpleDTO": { > "name":"Name", > "occupation":"RestProblemS

Re: Throttle @Asynchronous calls

2016-09-22 Thread Romain Manni-Bucau
Hi not openejb but did it for deltaspike: http://deltaspike.apache.org/documentation/core.html#AsynchronousOperations Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://blog-rmannibucau.rhcloud.com> | Old Wordpress Blog <http://rmannibucau.wordpres

Re: JMS Remote Client is not working

2016-09-21 Thread Romain Manni-Bucau
clone https://git-wip-us.apache.org/repos/asf?p=tomee.git;a=summary and to build: mvn clean install -pl tomee/apache-tomee -am -DskipTests -T4C tomee will be in tomee/apache-tomee/target Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <htt

Re: JMS Remote Client is not working

2016-09-21 Thread Romain Manni-Bucau
7.0.2-SNAPSHOT has some work around that IIRC, if you want to try to build it to test it would be appreciated Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://blog-rmannibucau.rhcloud.com> | Old Wordpress Blog <http://rmannibucau.wordpress.com&g

Re: JMS Remote Client is not working

2016-09-21 Thread Romain Manni-Bucau
The "out of tomee" code hasnt jms2 implemented since tomee impl jms 2 on top of amq 5. Either run the client in tomee or use amq 5 client api. Side note: importing openejb-core there is probably a way to do it using openejb amq extensions but it is not documented/official. An easier alternative is

Re: How to activate ejbd protocol in TomEE 7.0.1

2016-09-21 Thread Romain Manni-Bucau
2016-09-21 15:45 GMT+02:00 vnalla : > Hi, > > Yes, I am using the tomcat scripts to start and stop the server. I am still > not clear about the use of tomee.sh (which is not a tomee start/stop > script), but it looks like it can deploy and do other things. Does it only > work with openejb standalo

Re: How to activate ejbd protocol in TomEE 7.0.1

2016-09-20 Thread Romain Manni-Bucau
Le 20 sept. 2016 23:06, "vnalla" a écrit : > > Hi, > > I am actually looking for JMX not JMS. Is there any documentation link? > Plain jvm one. Let us know if you are blocked. > tomee.sh - does not start the instance. It is giving me following output: > As written use tomcat scripts for that.

Re: How to activate ejbd protocol in TomEE 7.0.1

2016-09-20 Thread Romain Manni-Bucau
Hello Le 20 sept. 2016 21:47, "vnalla" a écrit : > > Hi, > > I would like to configure the cluster TomEE servers for EJB client. But how > do I enable ejbd protocol in TomEE? do I need to use external openejb > process or it uses embeded TomEE process? > http://tomee.apache.org/ejbd-transport.ht

Re: TomEE 7.0.1 JMS/MDB

2016-09-20 Thread Romain Manni-Bucau
FYI https://issues.apache.org/jira/browse/TOMEE-1938 and https://issues.apache.org/jira/browse/TOMEE-1936 have been pushed Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://blog-rmannibucau.rhcloud.com> | Old Wordpress Blog <http://rmannibuca

Re: 7.0.1 app composer container properties issue

2016-09-20 Thread Romain Manni-Bucau
Same binary iirc Le 20 sept. 2016 15:07, "hwaastad" a écrit : > Well, > I've started to debug tx manager now. > > I see no issue using 1.7.4/4.7.4 so I need to see what changed in 7.0. > > I'm open for suggestions regarding the tomee part :-) > > /hw > > > > -- > View this message in context: h

Re: tomee7.01 plume not create tables to derby db

2016-09-20 Thread Romain Manni-Bucau
You should share the whole exception but think you dont use the db you think. Check in jmx datasource mbeans maybe that your config is actually used. Le 20 sept. 2016 14:22, "mauro2java2011" a écrit : > Hi all. I have installed derby.war into tomee/webapps. > I have added the 0 to servlet derb

Re: 7.0.1 app composer container properties issue

2016-09-20 Thread Romain Manni-Bucau
Le 20 sept. 2016 11:45, "hwaastad" a écrit : > > Well, > I might see if ebeans does something special. > > I've tried setting atuocommit false in ebean but the result is the same: > > 11:20:55.857 [main] DEBUG org.avaje.ebean.SQL - txn[1474363255855] select > t0.id c0, t0.name c1 from t_user t0 wh

Re: 7.0.1 app composer container properties issue

2016-09-20 Thread Romain Manni-Bucau
Side note: autocommit + jta doesnt lake sense since jta handles the tx or you autocommit. Maybe a wrong setup there. Le 20 sept. 2016 09:40, "hwaastad" a écrit : > Yep, > I will. > > I seems that it has something to do with releasing datasource connections > since after a while I see: > EjbTrans

Re: 7.0.1 app composer container properties issue

2016-09-19 Thread Romain Manni-Bucau
Le 19 sept. 2016 21:04, "hwaastad" a écrit : > > Hi, > aligne both (needed to change inmemory db to separate since paralell runs) > > Strange, but with my current config both fails with LogSql=false. > LogSQL=true it OK... > > If this does'nt make sense I can always check the thread stack. > Yes

Re: 7.0.1 app composer container properties issue

2016-09-19 Thread Romain Manni-Bucau
Le 19 sept. 2016 20:11, "hwaastad" a écrit : > > Hi, > I've made a ebean test project where I use two different props > implementations (defining datasource): > > 1. using @ContainerProperties on class > > 2. using @Configuration > You pushed different config, did you try aligning both? > I do

Re: How to stop a ManagedScheduledExecutorService

2016-09-19 Thread Romain Manni-Bucau
Keep the returned instance and call cancel Le 19 sept. 2016 16:17, "tonywestonuk" a écrit : > Hi, > > In @PostConstruct, I have a: > > @Resource > ManagedScheduledExecutorService executorService; > .. > executorService.scheduleWithFixedDelay(packetSender, 10, 10, > TimeUnit.SECONDS); > > If the

Re: 7.0.1 and validation

2016-09-19 Thread Romain Manni-Bucau
Lombok c1n play a role there Le 19 sept. 2016 16:17, "Steve Goldsmith" a écrit : > This works for me in 7.0.1: > > public class BaseDto implements Serializable { > > /** > * Serial UID. > */ > private static final long serialVersionUID = 6528044487061552972L; > /** > *

Re: HikariCP problems with Tomee

2016-09-19 Thread Romain Manni-Bucau
Le 19 sept. 2016 16:14, "tonywestonuk" a écrit : > > Further investigation leads me to believe that it only happens when running > TomEE from within Eclipse. Running tomee as a standalone and dropping / > taking out the war works fine. > > > I know Eclipse does some weird crap to the Environment..

Re: HikariCP problems with Tomee

2016-09-19 Thread Romain Manni-Bucau
This is typical of a thread leak - likely in hikari pool there or bad shutdown in predestroy. Le 19 sept. 2016 15:35, "tonywestonuk" a écrit : > Hi. I am using Hikari Connection pool, creating a pool in a @postconstruct > method, and closing it in a @predestroy method. > > I am getting an excep

Re: Moving Away from WebLogic Confusion

2016-09-19 Thread Romain Manni-Bucau
Side note: some weblo jndi names and descriptor parsing are supported, check https://github.com/apache/tomee/blob/4b9d8c9d221948547d49427077fcf68709a186bd/container/openejb-core/src/main/java/org/apache/openejb/config/WlsConversion.java . We can enhance it a bit to support what would be missing too

RE: InvalidDataAccessApiUsageException

2016-09-16 Thread Romain Manni-Bucau
-Original Message- > From: Romain Manni-Bucau [mailto:rmannibu...@gmail.com] > Sent: Thursday, September 15, 2016 2:59 PM > To: users@tomee.apache.org > Subject: Re: InvalidDataAccessApiUsageException > > Only for resource local persistence unit yes upgrading the api and &

Re: InvalidDataAccessApiUsageException

2016-09-15 Thread Romain Manni-Bucau
Only for resource local persistence unit yes upgrading the api and provider. For managed units upgrade the provider on tomee 7 Le 15 sept. 2016 20:54, "Patel, Sanjay" a écrit : > Is there a way I can use JPA 2.1 implementation with Tomee 1.7.2? I get > below error. > > HTTP Status 500 - Request

Re: EntityListner not injected resouces

2016-09-15 Thread Romain Manni-Bucau
Openjpa is not yet jpa 2.1 so this is not supported. Should work for other providers, if not this is likely their bug Le 15 sept. 2016 15:07, "ict" a écrit : > Hi to all! I've search this question but nothing about. > > The question is simple, why in external listner for Entity resource > inject

Re: TomEE 7.0.1 JMS/MDB

2016-09-15 Thread Romain Manni-Bucau
Le 15 sept. 2016 04:23, "vnalla" a écrit : > > Hi > > > 1) message.getBody(String.class) is not working - I have to change the code > for both the client and MDB to pass TextMessage object and cast message to > TextMessage object and get the text using getText() method. Is there any > special set

Re: Apache HTTP + mod_jk/mod_cluster + TomEE 7.0.1

2016-09-14 Thread Romain Manni-Bucau
Use the exact same doc as for the tomcat version tomee embeds. Le 15 sept. 2016 05:40, "vnalla" a écrit : > Hi, > > How to cluster TomEE and load balance using Apache web server? Does it work > with Apache HTTPd + mod_cluster or only works with Apache HTTPd + mod_jk? > Which versions of Apache H

Re: TomEE 7.0.1 ActiveMQ errors?

2016-09-14 Thread Romain Manni-Bucau
Can be a missing config in tomee.xml like the broker Webapps shouldnt handle it Le 14 sept. 2016 22:52, "vnalla" a écrit : > Hi, > > I am using the javaee7 example jms-xa test and deploying it to the exiting > TomEE server. It works fine hen I run the test for the first time. If I run > the tes

Re: TomEE 7.0.1 - ActiveMQ do not start - results in NPE

2016-09-14 Thread Romain Manni-Bucau
Le 14 sept. 2016 20:11, "vnalla" a écrit : > > Oops, thanks! > > 1) Does ActiveMQ broker always require a url with different port number that > http? If you start a broker you start a server aside http so yes otherwise no > 2) Is there any documentation which explains MDB container and its > rel

Re: TomEE 7.0.1 - ActiveMQ do not start - results in NPE

2016-09-14 Thread Romain Manni-Bucau
Broker is less rude than borker ;) Le 14 sept. 2016 19:52, "vnalla" a écrit : > Hi, > > I have added the JMS configuration to tomee.xml. When I start the server I > see and exception in the catalina log file that ActiveMQ failed to start. > > > BrokerXmlConfig borker:(tcp://loc

Re: TomEE 7.0.1 - Shared libs & multiple instances on same machine?

2016-09-13 Thread Romain Manni-Bucau
Le 13 sept. 2016 20:29, "vnalla" a écrit : > > Hi, > > 1) How to use shared libraries in TomEE 7.0.1? > What is the meaning of that question? Putting in common.loader or shared.loader works. Scanning/cdi needs a flag i dont have ATM (phone) but can find it next week if needed. Maybe check http:/

Re: HTTP 500 errors on Tomcat servers causing end-users to be unable to process

2016-09-12 Thread Romain Manni-Bucau
Hi Which version do you run? What is in server logs (catalina*)? Le 12 sept. 2016 19:17, "kengstrom" a écrit : > I am running TOMEE for our internal product workflow. We have this load > balanced on two server with two instances of TOMEE each. We are noticing > that when there are 100+ concu

Re: Filter not being invoked

2016-09-11 Thread Romain Manni-Bucau
Hi John 2016-09-12 1:56 GMT+02:00 John D. Ament : > Hi, > > I'm working on a bit of a demonstration w/ EE technologies working well > with non-EE techs. I found a bit of an issue w/ TomEE I think. > > Take a look at this project: > https://github.com/johnament/bootee/tree/master/spark > > If you

RE: Multiple strange issues with starting up CXF app in TomEE in Windows service

2016-09-09 Thread Romain Manni-Bucau
64m IIRC if nowhere in scripts. 512m is a common default but depends the app. Jconsole gives a good idea after some load was sent to the jvm. Le 9 sept. 2016 20:49, "KARR, DAVID" a écrit : > > -Original Message- > > From: Romain Manni-Bucau [mailto:rmannibu.

Re: Multiple strange issues with starting up CXF app in TomEE in Windows service

2016-09-09 Thread Romain Manni-Bucau
Did you check you have some java process running? Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://blog-rmannibucau.rhcloud.com> | Old Wordpress Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibuc

Re: openejb 7 failure deploying MessageDriven (Cannot bind Container with id Default MDB Container)

2016-09-09 Thread Romain Manni-Bucau
you need to define the container for that interface, see MessageListenerInterface on http://tomee.apache.org/ng/admin/configuration/containers.html Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://blog-rmannibucau.rhcloud.com> | Old Wordpres

Re: openejb 7 failure deploying MessageDriven (Cannot bind Container with id Default MDB Container)

2016-09-09 Thread Romain Manni-Bucau
configure the container public class SimpleContainerTest { @Rule public final EJBContainerRule rule = new EJBContainerRule(this); //... } Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://blog-rmannibucau.rhcloud.com> | Old Wordpres

<    4   5   6   7   8   9   10   11   12   13   >