Filter not being invoked

2016-09-11 Thread 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 run this using "mvn clean install tomee:run" TomEE will start up,

Re: signify of {} when i create a rest Response with a List

2016-08-01 Thread John D. Ament
GenericEntity is an abstract class. You're instantiating an anonymous instance of it. On Mon, Aug 1, 2016 at 8:06 PM mauro2java2011 wrote: > I try to understand how return a collection of object as response with rest > > > > > import javax.ws.rs.core.GenericEntity; >

Re: Can't read beans.xml (TomEE 1.7.4 + new Camel CDI)

2016-05-30 Thread John D. Ament
Hi, Camel CDI relies on CDI 1.1 semantics. scan is a CDI 1.1 feature. TomEE 1.7 is Java EE 6, meaning its using CDI 1.0 not CDI 1.1. Though I do see a typo in their beans.xml, saying the version is 1.0 (that attribute is mostly ignored). You should try on the recently released TomEE 7. John

Re: Is this legit? @RequestScoped vs HttpServletRequest

2016-05-08 Thread John D. Ament
I know Romain's done some work in this area before. Per the spec, its not required to work the way you have it defined. JAX-RS injection via @Context is only mandated to work in JAX-RS managed components. Try to use @Inject instead of @Context, that may be what was implemented in TomEE. That

Using EARs against TomEE 7 M1

2015-12-19 Thread John D. Ament
Hi all, I was wondering, how does EAR support look in 7 M1? I was trying to port DeltaSpike to run tests against 7.0.0-M1 and it seems that most tests that rely on EAR deployment fail with this error. Any ideas would be very useful. John SEVERE - EjbTransactionUtil.handleSystemException:

Re: INSTALL TOMEE with docker

2015-11-29 Thread John D. Ament
Just wondering, are you working off of a tomee docker image? https://github.com/tomitribe/docker-tomee John On Sun, Nov 29, 2015 at 11:06 AM mauro2java2011 wrote: > Hi all. > I am newbie to docker container. > I would try to install a my web app with tomee using

Re: Running JBoss Dashbuilder on TomEE

2015-07-03 Thread John D. Ament
On Fri, Jul 3, 2015 at 9:02 AM Romain Manni-Bucau rmannibu...@gmail.com wrote: Le 3 juil. 2015 04:38, jmutawa jalal.almut...@gmail.com a écrit : Hello Mr. Romain, Thank you for your reply. I have added the suggested property in WEB-INF/application.properties, this is the error I now

Re: Running JBoss Dashbuilder on TomEE

2015-07-03 Thread John D. Ament
://github.com/rmannibucau | LinkedIn https://www.linkedin.com/in/rmannibucau | Tomitriber http://www.tomitribe.com 2015-07-03 15:41 GMT+02:00 John D. Ament johndam...@apache.org: On Fri, Jul 3, 2015 at 9:02 AM Romain Manni-Bucau rmannibu...@gmail.com wrote: Le 3 juil. 2015 04:38

Re: Running JBoss Dashbuilder on TomEE

2015-07-03 Thread John D. Ament
On Fri, Jul 3, 2015 at 9:59 AM Romain Manni-Bucau rmannibu...@gmail.com wrote: 2015-07-03 15:55 GMT+02:00 John D. Ament johndam...@apache.org: Actually, only normal scoped beans require non-final. @Dependent is not a normal scope. sure but if it is intercepted or decorated it should

Re: TomEE plans for Java EE 7

2014-11-05 Thread John D. Ament
Hey all, First, cudos to Roberto for taking on the TomEE support! It came to my mind after speaking w/ David @ JavaOne about EE7 status. So quick question. If we put in hibernate in the TomEE profile, that should deploy fine right? I'm not saying for you guys to put it in, but for the sake of

Re: Activemq embedded + createSession : unable to make it work!

2014-10-09 Thread John D. Ament
Correct, you're using container managed transactions. You cannot call commit. On Thu, Oct 9, 2014 at 8:58 AM, joeleclems joelecl...@free.fr wrote: i tried different kind of transaction within EJB. Here are results of my tests : 1. Inject a CMT EJB to receive message. My EJB : @Stateless

Re: Regarding CDI scope and @Asynchronous EJB methods

2014-10-06 Thread John D. Ament
Hi, I would say no to #2. Thread != RequestScoped. If you want to start a request scope with the thread, DeltaSpike has a CDIControl module that can do this for you. John On Mon, Oct 6, 2014 at 11:08 AM, Lars-Fredrik Smedberg itsme...@gmail.com wrote: When executing an EJB @Asynchronous

Re: Regarding @Inject vs @EJB for EJB

2014-10-03 Thread John D. Ament
for all intents and purposes, as long as you're using @Local/@LocalBean @Inject should work the exact same as @EJB, regardless of SLSB/SFSB/Singleton. Obviously if you're in a Bean Archive you'll want to give your SFSB a scope so that the containers work with it properly but last time I tried

Re: @Injected field of a @Injected field is null

2014-06-04 Thread John D. Ament
You should annotate your REST endpoint to be something, e..g @Stateless or @RequestScoped On Wed, Jun 4, 2014 at 11:40 AM, Vamsee Lakamsani vam...@yahoo.com.invalid wrote: One of the null injection problems in our main app had to do with the fact that we are using Quartz directly and as

Re: DeltaSpike + Arquillian + Apache TomEE

2014-06-01 Thread John D. Ament
When you say default is local, do you mean embedded? It's possible that when in embedded mode, the extension isn't getting started. Can you try explicitly adding it to your archive? On Sun, Jun 1, 2014 at 4:51 PM, Alex Soto asot...@gmail.com wrote: Hi, I am writing a tutorial about how to

Re: TomEE and CDI

2014-05-04 Thread John D. Ament
Hi, Actually when you directly instantiate a class, you bypass CDI. In order to use CDI, your servlet needs this: @Inject private Exam exam; Within the class itself. John On Sun, May 4, 2014 at 5:53 AM, john77eipe john77e...@gmail.com wrote: I'm a start in CDI. To test CDI. I created 2

Re: Trying to read JSON using Jackson in TomEE

2014-03-15 Thread John D. Ament
It's odd that it would come over as a query param. Can you check the actual HTTP request your client is making? On Sat, Mar 15, 2014 at 3:59 PM, fulltruth dlove...@gmail.com wrote: If I take out this line: @Consumes(MediaType.APPLICATION_JSON) ...don't set Content-Type on the AJAX call, and

Re: EJB in custom JAAS LoginModule

2014-03-13 Thread John D. Ament
Hmmm.. I don't know if the JAAS spec or EE specs either state that you can inject into login modules. On Thu, Mar 13, 2014 at 12:42 PM, Piercarlo Alberto Beghetto - Diennea piercarlo.beghe...@diennea.com wrote: I still have problem in integration with LoginModule and EJBs. What i've done

Re: JAX-RS JSON unexpected element

2014-02-24 Thread John D. Ament
Can you post the code for your resource? On Mon, Feb 24, 2014 at 2:05 PM, José Luis Cetina maxtorz...@gmail.com wrote: Hi, im doing my first rest service. Im having problem's with retrieving the json data, when my method is called i get an: WARNING: javax.xml.bind.UnmarshalException - with

Re: JAX-RS JSON unexpected element

2014-02-24 Thread John D. Ament
=com.fasterxml.jackson.jaxrs.json.JacksonJaxbJsonProvider property. :) 2014-02-24 13:47 GMT-06:00 John D. Ament john.d.am...@gmail.com: Can you post the code for your resource? On Mon, Feb 24, 2014 at 2:05 PM, José Luis Cetina maxtorz...@gmail.com wrote: Hi, im doing my first rest service. Im having problem's

Re: Bean not instantiated

2014-01-12 Thread John D. Ament
CODI is a set of CDI components, however it's more or less migrated over to DeltaSpike. I responded to your question on stack overflow. I generally agree with Romain's comment, injecting a logger makes very little sense, since you're just wrapping it (the LOC to make a logger producer far

Re: reading the mailing list from the web

2014-01-12 Thread John D. Ament
The link's directly on the page you referenced: http://openejb.markmail.org/search/?q=type:users On Sun, Jan 12, 2014 at 12:30 PM, Caterpillar caterpilla...@gmail.com wrote: Hi, I cannot find a way to read mailing list discussion from a webpage archive. I tried to look into

Re: No message body writer has been found for response class

2013-11-25 Thread John D. Ament
in most app servers you end up with lazy loading issues, especially for onetomany's or manytomany's. On Mon, Nov 25, 2013 at 1:44 PM, Thiago Veronezi thi...@veronezi.org wrote: I guess so, but I'm not sure how the managed entities would behave. imho, it's better to create DTOs to hold only the

Re: Works in Tomcat 7 8 but not in tomee 1.5 1.6

2013-11-17 Thread John D. Ament
Please include something.. logs, error you're getting, etc. On Sun, Nov 17, 2013 at 7:28 AM, LG Optimusv lgoptimusv...@gmail.comwrote: Hi All, I have a web application without web.xml using Spring MVC and its Java Config. That application can be deployed in both tomcat and tomee but it

Re: hawtio to see all your tomee /java/ stuff

2013-11-07 Thread John D. Ament
Actually, since hawt.io is simply using jolokia, any mbeans deployed to the same JVM will be returned to the client. It's simply a matter of building an angular.js UI that consumes the JSON and processes the data. On Thu, Nov 7, 2013 at 6:40 AM, Howard W. Smith, Jr. smithh032...@gmail.com

Re: ClassNotFoundException: org.apache.openjpa.persistence.PersistenceProviderImpl

2013-11-02 Thread John D. Ament
Also, I believe this is expected behavior per EE specs. The container may have a default provider, which an app can leverage. In containers like WebLogic, you can configure a different default but that requires specific configuration. Maybe it's possible to configure OpenEJB/TomEE to have a

Re: CDI Injecting parameterized types

2013-10-28 Thread John D. Ament
The issue is that the CDI spec and EJB specs are not in alignment. EJB injection rules are at play here, and since they both implement the same interface you are running into this issue. If your classes were not annotated @Stateless this would not happen. On Mon, Oct 28, 2013 at 4:13 PM, Chris

Re: ClassNotFoundExceptions on more than two Arquillian tests

2013-09-19 Thread John D. Ament
Michiel, Just wondering, are you including hsqldb in your war file? John On Thu, Sep 19, 2013 at 11:10 AM, Michiel Graat michiel.gr...@sidn.nl wrote: Hi guys, I have been trying to use Arquillian/TomEE but I have run into a strange problem. Whenever I try to run more than two arquillian

Re: TransactionAttribute

2013-09-05 Thread John D. Ament
From the java ee 5 tutorial (don't think this changed in 6): http://docs.oracle.com/javaee/5/tutorial/doc/bncij.html Required Attribute If the client is running within a transaction and invokes the enterprise bean’s method, the method executes within the client’s transaction. If the client is

Re: [TomEE 1.6.0 snapshot] OpenWebBeans skipped deployment of org.omnifaces.component.*

2013-08-18 Thread John D. Ament
Looks like its time to yell at the OWB guys that their logging is too heavy :-) On Sun, Aug 18, 2013 at 10:20 PM, Howard W. Smith, Jr. smithh032...@gmail.com wrote: I am currently using TomEE 1.6.0 snapshot (apache-tomee-1.6.0-20130803.041148-142-plus.zip) with OmniFaces 1.6 snapshot

Re: Fwd: JsonJaxbModule for JAX-RS 2.0

2013-07-26 Thread John D. Ament
Hi, If you need to use a MessageBodyWriter, it needs to be annotated @Provider and implement the interface. http://jackson.codehaus.org/javadoc/jax-rs/1.0/javax/ws/rs/ext/MessageBodyWriter.html then it should get picked up automatically. On Fri, Jul 26, 2013 at 3:20 PM, Nick Khamis

Re: Fwd: JsonJaxbModule for JAX-RS 2.0

2013-07-26 Thread John D. Ament
The regular wine example should not be an issue on Tomee if you're using JAX-RS 1.1/1.0. I have no clue what you might need to do with JAX-RS 2.0 (this type of configuration is really not supportable at this time; you may want to try regular Tomcat + JAX-RS 2.0). On Fri, Jul 26, 2013 at 3:40

Re: Fwd: JsonJaxbModule for JAX-RS 2.0

2013-07-26 Thread John D. Ament
A single application server version only supports a single Java EE specification revision. Right now, the only Java EE 7 compliant application server is GlassFish. You can hack together some things (e.g. CDI 1.1 + JAX-RS 2.0) on Tomcat 7, but it's only going to go so far. On Fri, Jul 26, 2013

Re: Oracle ADF Essential and TomEE+

2013-07-20 Thread John D. Ament
Well, it probably works on Tomcat7 because you have to drop in the glassfish JSF runtime and JSTL. Since TomEE ships with JSF, that shouldn't be done here. However, looks like they have some bad XML. For example, the code tag here should be escaped: description If this attribute

Re: singleton and interface injection question

2013-07-16 Thread John D. Ament
How is it marked? @Local @LocalBean @Remote? On Tue, Jul 16, 2013 at 10:06 AM, amber ambe...@hotmail.fr wrote: Hi, why do I have to inject a @singleton bean only with its interface ? (I mean if a use the implementation class, OpenEJB failed) thx :) -- View this message in context:

Re: tomee+ and restful webservice

2013-07-02 Thread John D. Ament
I would start on line 40 of this class: java.lang.NullPointerException at service.AbstractFacade.findAll(AbstractFacade.java:40) at service.OkoFacadeREST.findAll(OkoFacadeREST.java:66) Since you're getting a null pointer. On Tue, Jul 2, 2013 at 6:41 AM, omisaye_infotech

Re: Websocket in TomEE

2013-07-02 Thread John D. Ament
Isn't the tyrus license problematic for apache? On Tue, Jul 2, 2013 at 11:38 AM, Romain Manni-Bucau rmannibu...@gmail.comwrote: atmos or tyrus yes tomee is waiting for its stack for javaee 7 (tomcat is not released, OWB is not cdi 1.1 compliant, etc...) *Romain Manni-Bucau* *Twitter:

Re: Problem with Entities in jars

2013-06-12 Thread John D. Ament
But isn't it first the container that needs to find persistence.xml, since it needs to instantiate the provider? Don't you really have to pass in all of this config to the provider? For some reason I recall the provider being blind to the location of persistence.xml, other than by configuration

Re: Problem with Entities in jars

2013-06-12 Thread John D. Ament
* *Twitter: @rmannibucau https://twitter.com/rmannibucau* *Blog: **http://rmannibucau.wordpress.com/* http://rmannibucau.wordpress.com/ *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* *Github: https://github.com/rmannibucau* 2013/6/12 John D. Ament john.d.am...@gmail.com But isn't it first

Re: TomEE not supporting Validator injection

2013-06-12 Thread John D. Ament
/12 John D. Ament john.d.am...@gmail.com spec section 4.4.6 says it goes in META-INF but you are reading it fine from WEB-INF/classes/META-INF so that's not an issue. Spec doesn't list WEB-INF anywhere in it. Issue is that I'm testing in TomEE 1.5.2, which is the released version

Re: Problem with Entities in jars

2013-06-12 Thread John D. Ament
descriptors. John On Wed, Jun 12, 2013 at 3:07 PM, Romain Manni-Bucau rmannibu...@gmail.comwrote: Hmm weird, sure i saw the opposite...if not we have to open an issue since it would be the only descriptor being here (sure for ejb-jar, web, validator..) Le 12 juin 2013 18:45, John D. Ament john.d.am

Re: Problem with Entities in jars

2013-06-12 Thread John D. Ament
Sorry, when I refer to META-INF, I'm referring to WEB-INF/classes/META-INF. /META-INF is really just for JAR wrapper stuff (e.g. maven files) in WARs. On Wed, Jun 12, 2013 at 5:47 PM, Anthony Fryer apfr...@hotmail.com wrote: I always thought, for war files you put jee config files in WEB-INF

Re: CODI + TomEE + ManagedBean with public attributes

2013-06-11 Thread John D. Ament
Don't forget, most of these specs expect javabeans - POJOs w/ private fields getters/setters/issers. On Tue, Jun 11, 2013 at 12:54 AM, Romain Manni-Bucau rmannibu...@gmail.comwrote: Hmm, is it still a cdi bean then? I mean isnt there anything preventing it to be proxied or anything in the

Re: versions

2013-06-11 Thread John D. Ament
Is #edit supposed to do something? Everything looks the same to me. On Tue, Jun 11, 2013 at 8:12 AM, Romain Manni-Bucau rmannibu...@gmail.comwrote: Right, if you are motivated to help us getting it you can edit the page ( http://tomee.apache.org/comparison.html#edit ) and add the spec

Re: CODI + TomEE + ManagedBean with public attributes

2013-06-11 Thread John D. Ament
think I copied some other people source code and they had public attributes, and I can't remember right now if I access the public attributes on those POJOs in any of my managed beans. On Jun 11, 2013 8:18 AM, John D. Ament john.d.am...@gmail.com wrote: Don't forget, most of these specs expect

Re: Struggling with JNDI lookup

2013-06-11 Thread John D. Ament
And if you just lookup PooledDataSource (without prefix)? On Tue, Jun 11, 2013 at 8:13 AM, SPB spatri...@hotmail.com wrote: Hi, Using Tomcat Plus WebApp 1.5.2 running in Tomcat 7.0.27 In tomee.xml I have defined my Data Source: Resource id=PooledDataSource type=javax.sql.DataSource

Re: versions

2013-06-11 Thread John D. Ament
TomEE + is not a certified stack. TomEE is the Web Profile certified stack. TomEE + builds on that to add JAX-RS, JMS, JAX-WS etc. On Tue, Jun 11, 2013 at 8:40 AM, Leonardo K. Shikida shik...@gmail.comwrote: Hi Jean and Romain I'll try to help with the docs then. How TomEE+ got certified

Re: versions

2013-06-11 Thread John D. Ament
* *Blog: **http://rmannibucau.wordpress.com/* http://rmannibucau.wordpress.com/ *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* *Github: https://github.com/rmannibucau* 2013/6/11 John D. Ament john.d.am...@gmail.com TomEE + is not a certified stack. TomEE is the Web Profile certified

TomEE not supporting Validator injection

2013-06-11 Thread John D. Ament
Hi all In section 3.6 of the CDI spec, it indicates that the Validator (javax.validation.Validator) should be a built in bean, meaning the container should support injection of it. I was testing something locally and i noticed that TomEE wasn't injecting this object. Is this expected? John

Re: Construct EJB from a separate JAR file

2013-06-10 Thread John D. Ament
So, where is LoggerBuilder defined? same JAR or a different JAR? On Mon, Jun 10, 2013 at 9:15 AM, zeddius avalyu...@gmail.com wrote: Unfortunately this didn't help Is there any way how to put TomEE into a verbose mode to check why that bean is not visible? -- View this message in

Re: Examples missing code on website

2013-06-05 Thread John D. Ament
They're in the code, probably excluded for brevity (not sure we care about a POJO w/ getters and setters). On Wed, Jun 5, 2013 at 7:45 PM, Jason Zwolak jzwo...@gmail.com wrote: It seems the examples are missing code on the website. Here's one case:

Re: JPA/Hibernate entity auto discovery

2013-06-05 Thread John D. Ament
Andrew, Did you try using the setting exclude-unlisted-classes, with the value of false? John On Wed, Jun 5, 2013 at 8:27 PM, Andrew Clarke s...@clarke.ca wrote: I've set up my database in TomEE such that it works fine with SQL Query. When I attempted to do a simple entityManager.find() as

Re: JPA/Hibernate entity auto discovery

2013-06-05 Thread John D. Ament
/ property name=hibernate.format_sql value=true/ property name=hibernate.hbm2ddl.auto value=update/ /properties /persistence-unit /persistence - Andrew. On 2013-06-05, at 20:30, John D. Ament john.d.am...@gmail.com wrote: Andrew, Did you try using the setting exclude

Re: JPA/Hibernate entity auto discovery

2013-06-05 Thread John D. Ament
anotherEJBManager.passItBack(inOut); } } On 2013-06-05, at 20:43, John D. Ament john.d.am...@gmail.com wrote: Hmm yeah I missed that part. So wait, is your persistence.xml in your war file somewhere? Where is it? How do you get a reference to your entity manager? On Wed, Jun 5, 2013 at 8:39 PM

Re: JPA/Hibernate entity auto discovery

2013-06-05 Thread John D. Ament
Good catch, but AFAIK, Hibernate ignores the version of persistence.xml (typically). Unless TomEE cares... On Wed, Jun 5, 2013 at 9:39 PM, Howard W. Smith, Jr. smithh032...@gmail.com wrote: responses inline below... On Wed, Jun 5, 2013 at 8:27 PM, Andrew Clarke s...@clarke.ca wrote:

Re: Eclipse timeout

2013-05-28 Thread John D. Ament
to reproduce it? Simply add a new server in Eclipse, and then try to start it. 2013/5/28 John D. Ament john.d.am...@gmail.com Can you post the entire stack trace that is in the console? Based on the rough output it's taking 111 s to start up. I increased the timeout to 150 and I had

Re: Abstract producer method cause UnsatisfiedResolutionException

2013-05-27 Thread John D. Ament
The answer's in the spec (JSR-299) A producer method must be a non-abstract method of a managed bean class or session bean class. Your abstract class is neither a managed bean nor a session bean. I also confirmed that your project doesn't run with weld. On Mon, May 27, 2013 at 9:57 AM, Reinis

Re: Remote/Managed TomEE Arquillian

2013-05-26 Thread John D. Ament
://rmannibucau.wordpress.com/* http://rmannibucau.wordpress.com/ *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* *Github: https://github.com/rmannibucau* 2013/5/22 John D. Ament john.d.am...@gmail.com Yes, everything works fine in 1.5.1 Can you point me to the change (svn commit)? On Wed, May 22

Re: [OWB] make @Specializes to work for me

2013-05-22 Thread John D. Ament
Perhaps if you shared the stacktrace it would be easier to decipher what's going on. On Wed, May 22, 2013 at 6:42 AM, to...@orbit-x.de wrote: Hi guys, excuse me for bumping my own message but two days later am still clueless. Could it possibly be that i may not @Specializes an abstract

Re: Remote/Managed TomEE Arquillian

2013-05-22 Thread John D. Ament
makes them hard to configure compared to previous version (and only useful for our build i guess). Le 22 mai 2013 04:46, John D. Ament john.d.am...@gmail.com a écrit : Hi All I'm testing something locally and I noticed that for TomEE 1.5.2 it doesn't seem to be starting automatically

Re: form-login-page wrong redirect

2013-05-21 Thread John D. Ament
Did you try swapping your form-login-page and form-error-page from /foo.xhtml to /foo.jsf ? (or whatever you map the faces servlet to) On Tue, May 21, 2013 at 1:08 PM, José Luis Cetina maxtorz...@gmail.comwrote: Hi. I have a problem since i move from war to ear (since 4 months ago aprox.),

Re: form-login-page wrong redirect

2013-05-21 Thread John D. Ament
-mapping 2013/5/21 John D. Ament john.d.am...@gmail.com Did you try swapping your form-login-page and form-error-page from /foo.xhtml to /foo.jsf ? (or whatever you map the faces servlet to) On Tue, May 21, 2013 at 1:08 PM, José Luis Cetina maxtorz...@gmail.com wrote: Hi. I have

Remote/Managed TomEE Arquillian

2013-05-21 Thread John D. Ament
Hi All I'm testing something locally and I noticed that for TomEE 1.5.2 it doesn't seem to be starting automatically. This is the dependency: dependency groupIdorg.apache.openejb/groupId artifactIdtomee-embedded/artifactId

Re: TomEE/CDI: adding @Typed resulted in UnsatisfiedResolutionException

2013-05-20 Thread John D. Ament
Howard, When were you recommended to use @Typed? @Typed (in that thread) was being used to *remove* objects from being installed via CDI. If you want to use @Typed you need to use it as @Typed(pf_ OrderCustomerPointOfContactController.class) On Mon, May 20, 2013 at 9:08 AM, Howard W. Smith, Jr.

Re: TomEE/CDI: adding @Typed resulted in UnsatisfiedResolutionException

2013-05-20 Thread John D. Ament
-defined @Descendant. :) I will try @Typed as you recommended and report back, ASAP. Thanks. On Mon, May 20, 2013 at 9:13 AM, John D. Ament john.d.am...@gmail.com wrote: Howard, When were you recommended to use @Typed? @Typed (in that thread) was being used to *remove* objects from being

Re: TomEE/CDI: adding @Typed resulted in UnsatisfiedResolutionException

2013-05-20 Thread John D. Ament
the underlying class expecting the impl you should be fine. On Mon, May 20, 2013 at 9:19 AM, Howard W. Smith, Jr. smithh032...@gmail.com wrote: Start here[1] and go to the next page. [1] http://forum.primefaces.org/viewtopic.php?f=3t=30309#p97538 On Mon, May 20, 2013 at 9:17 AM, John D. Ament

Re: TomEE/CDI: adding @Typed resulted in UnsatisfiedResolutionException

2013-05-20 Thread John D. Ament
: There was a separate thread in PrimeFaces forum, where I was suggested to use @Typed instead of my user-defined @Descendant. :) I will try @Typed as you recommended and report back, ASAP. Thanks. On Mon, May 20, 2013 at 9:13 AM, John D. Ament john.d.am...@gmail.com wrote: Howard, When were you

Re: TomEE/CDI: adding @Typed resulted in UnsatisfiedResolutionException

2013-05-20 Thread John D. Ament
$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:722) On Mon, May 20, 2013 at 9:26 AM, John D. Ament john.d.am...@gmail.com wrote: @Typed isn't a qualifier. It goes on the class definition, not on the injection point. @Typed

Re: TomEE/CDI: adding @Typed resulted in UnsatisfiedResolutionException

2013-05-20 Thread John D. Ament
You get these errors in NetBeans or in TomEE? Or both? On Mon, May 20, 2013 at 10:06 AM, Howard W. Smith, Jr. smithh032...@gmail.com wrote: responses inline, below... On Mon, May 20, 2013 at 9:41 AM, John D. Ament john.d.am...@gmail.com wrote: When you do this.. @Typed @Named

Re: stand alone Application looks up remote EJB by global jndi name

2013-05-19 Thread John D. Ament
No Good? On Sun, May 19, 2013 at 7:18 AM, Romain Manni-Bucau rmannibu...@gmail.comwrote: What does mean NG? Le 19 mai 2013 13:16, ZhongGuan guanzh.em...@gmail.com a écrit : And I also have tested other cases of EJB JNDI name on 1.6.0 Here is the result 1. Local EJB Client looks up

Re: [OWB] CDI - how to realize default producer?

2013-05-19 Thread John D. Ament
with @Typed() LieGrue, strub - Original Message - From: John D. Ament john.d.am...@gmail.com To: users@tomee.apache.org Cc: Sent: Sunday, 19 May 2013, 4:37 Subject: Re: [OWB] CDI - how to realize default producer? T he easiest way is to actually put a qualifier on the class

Re: stand alone Application looks up remote EJB by global jndi name

2013-05-19 Thread John D. Ament
it is not an issue no? Le 19 mai 2013 14:12, John D. Ament john.d.am...@gmail.com a écrit : No Good? On Sun, May 19, 2013 at 7:18 AM, Romain Manni-Bucau rmannibu...@gmail.comwrote: What does mean NG? Le 19 mai 2013 13:16, ZhongGuan guanzh.em...@gmail.com a écrit : And I also have

Re: [OWB] CDI - how to realize default producer?

2013-05-18 Thread John D. Ament
The easiest way is to actually put a qualifier on the class itself, and then never inject based on that qualifier. CDI 1.0 has no concept of a veto'd bean, but you could write an extension yourself that veto'd your class. Extensions exist out there, I believe CODI has one and Seam3 has one.

Re: EJBContainer No provider definition found

2013-05-17 Thread John D. Ament
Just to have a little better context, you want to go from your local tomee instance to a remote OpenEJB instance running in a separate JVM? On Fri, May 17, 2013 at 7:08 AM, Caroline caroline.van.den.ha...@gmail.comwrote: Hi, Romain already helped me tremendously on

Re: ear/lib not seen ? I'm getting a class not found error...

2013-05-10 Thread John D. Ament
CAn you post the stacktrace? On Fri, May 10, 2013 at 5:30 PM, m1000 martinmil...@gmail.com wrote: Hi, I'm a new user of Tomee (1.5.2). I am also kind of a newbie to J2EE. Still what I got was working under Glassfish. Now I am trying to get it working under Tomee... My EJB Timer

Re: How to change CXF JSON output format?

2013-05-02 Thread John D. Ament
Can you post your entire POJO? On Thu, May 2, 2013 at 7:25 AM, Jack Anamanda jack.anama...@rocketmail.comwrote: Hi guys. When I return an @XmlRootElement object in a JAX-RS method, I get the following format for properties of type long : width : { $ : 32, @xsi.type : xs:int } How can I

Re: SocialAuth CDI not working on TomEE

2013-04-24 Thread John D. Ament
Try injecting it this way: @Inject @Named(socialAuth) private SocialAuth socialAuth; On Wed, Apr 24, 2013 at 1:47 PM, Luca Merolla luca.mero...@gmail.comwrote: H ello everyone, I'm having problem to make socialauth ( https://code.google.com/p/socialauth/) work in TomEE. I'm using the

Re: Re[2]: JPA issue in combo with @SessionScoped

2013-04-15 Thread John D. Ament
The alternative is to just inject the EJB and call the method directly here. On Mon, Apr 15, 2013 at 8:14 AM, to...@orbit-x.de wrote: Hi Romain, thanks, I already guessed something like this. But is there some pattern to avoid this or work around or something I could use to make it work?

Re: Re[2]: Re[2]: JPA issue in combo with @SessionScoped

2013-04-15 Thread John D. Ament
-related in jpa. I heard (from Struberg?) that DeltaSpike is goin to offer a solution for this? Br Reinis -Ursprüngliche Nachricht- Betreff: Re: Re[2]: JPA issue in combo with @SessionScoped Von: John D. Ament john.d.am...@gmail.com An: users@tomee.apache.org Datum: 2013/04/15 15

Re: Testing complex(?) CDI + EJB (+ ApplicationComposer) + JPA scenario brings up some questions

2013-04-10 Thread John D. Ament
What you're seeing is correct (though I'm not a good one to ask why it's only at the trace level that you see this exception). I guess, why is HeavyProcessingControllerProdu**cer session scoped? There is no HTTP Session when this unit test runs, so no it won't be active at that time. On Wed,

Re: Testing complex(?) CDI + EJB (+ ApplicationComposer) + JPA scenario brings up some questions

2013-04-10 Thread John D. Ament
and weaves, javaasists or whatever dark arts are there required to allow me to junit-test all sorts of CDI/JSF/EJB beans, no? : br Reinis On 04/10/2013 09:14 PM, John D. Ament wrote: What you're seeing is correct (though I'm not a good one to ask why it's only at the trace level

Re: Issue with @Context injection in CDI beans

2013-04-08 Thread John D. Ament
/* http://rmannibucau.wordpress.com/ *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* *Github: https://github.com/rmannibucau* 2013/4/8 John D. Ament john.d.am...@gmail.com Right, but it's still a server specific solution. Not a portable solution. The use of @Context

Re: Issue with @Context injection in CDI beans

2013-04-08 Thread John D. Ament
* 2013/4/8 John D. Ament john.d.am...@gmail.com Not from TomEE examples, but by understanding the JAX-RS spec a little bit. I think (IMHO) sometimes as open source programmers we jump quickly on the OMG someone found an issue I can fix before we think is this really an issue

Re: Issue with @Context injection in CDI beans

2013-04-08 Thread John D. Ament
(with proper documentation of non portability), or simply be left null, but not get a proxy to a null object Best regards, antoine On Mon, Apr 8, 2013 at 4:09 PM, John D. Ament john.d.am...@gmail.com wrote: Problem here is that maybe only the dev system is TomEE. Maybe production

Re: Issue with @Context injection in CDI beans

2013-04-08 Thread John D. Ament
Not sure what you mean, Seam works on all app servers AFAIK. It may be EOL but it's portable across app servers. On Mon, Apr 8, 2013 at 11:20 AM, Romain Manni-Bucau rmannibu...@gmail.comwrote: Seam.is not portable at all Le 8 avr. 2013 16:58, John D. Ament john.d.am...@gmail.com a écrit

Re: TomEE 5

2013-04-05 Thread John D. Ament
instead of tomee. On Fri, Apr 5, 2013 at 12:34 PM, John D. Ament john.d.am...@gmail.com wrote: TomEE is typically a separate installation, not something you install on top of Tomcat. On Fri, Apr 5, 2013 at 10:47 AM, rajiv.j...@netbuilder.com rajiv.j...@netbuilder.com wrote: Hi

Re: How to reference an EJB in an EAR from a separate WAR?

2013-04-03 Thread John D. Ament
Using CDI, you should be able to write an extension that observes BeforeBeanDiscovery to add the annotated types using beanManager.createAnnotatedType(Interface.class) and Impl.class. On Wed, Apr 3, 2013 at 12:56 PM, ymaraner tpha...@gmail.com wrote: Romain Manni-Bucau wrote remote reference

Re: web application not work with db mysql and derby

2013-04-03 Thread John D. Ament
According to your code, line 45 is: out.println( Servlet InserimentoServlet at + request.getContextPath() + ); though it would be easier if you gist'd this since the lines don't necessary match up correctly. But that would imply that the request is null at this time. Can you gist

Re: How to reference an EJB in an EAR from a separate WAR?

2013-04-03 Thread John D. Ament
I don't believe that's the EJB. Singleton is still a generic singleton typed object. You could always test this idea out by putting a log statement in the constructor and seeing how many times it gets called. On Wed, Apr 3, 2013 at 1:19 PM, ymaraner tpha...@gmail.com wrote: John D. Ament

Re: maximum open cursors exceeded in entity bean

2013-04-02 Thread John D. Ament
In this database (e.g. according to DBA), what is the max # of cursors set to? On Tue, Apr 2, 2013 at 7:01 AM, BKumar bibhuti.ku...@creditpointe.comwrote: Hi, We have recently migrated to tomee+ 1.5.1 from Jboss. Until now everything was working good. But when we are running large

Re: maximum open cursors exceeded in entity bean

2013-04-02 Thread John D. Ament
Agreed w/ Jean-Louis. Usually we do 10x the max open statements to get the max open cursors to configure the DB with. Plus x the number of app servers. On Tue, Apr 2, 2013 at 7:59 AM, Jean-Louis MONTEIRO jeano...@gmail.comwrote: Well, usually, it comes from the ratio pooledPreparedStatements

Re: maximum open cursors exceeded in entity bean

2013-04-02 Thread John D. Ament
Cursors are related to the max # of open ResultSets you have. On Tue, Apr 2, 2013 at 8:48 AM, BKumar bibhuti.ku...@creditpointe.comwrote: Can anyone tell me what is the use of properties PoolPreparedStatements and maxOpenPreparedStatements? I don't see any effect of these resource

Re: JNDI lookup

2013-03-29 Thread John D. Ament
Why do you have a context name in dev/test but not in production? On Fri, Mar 29, 2013 at 3:45 PM, Patel, Sanjay sanjay.pa...@nemours.orgwrote: I use EJBs in my spring application. To inject EJB in my controller I do as below. @EJB(mappedName = java:global/myAppName/MyBean) MyBean myBean;

Re: Maven, Netbeans, TomEE: set up easy CDI example

2013-03-26 Thread John D. Ament
So basically your DescriptorResource needs to look like this: @RequestScoped @Path(descriptor) public class DescriptorResource { But then in your put method, you're doing this: public Response putXml(String content) { System.out.println(--Server received from client:--);

Re: Impossible to instantiate a container

2013-03-12 Thread John D. Ament
Can you gist your test case by any chance? On Tue, Mar 12, 2013 at 7:51 AM, Antonio anttonij...@gmail.com wrote: Hi there, I deleted the provider line but I'm still getting an error --- T E S T S

Re: Jax-RS ApplicationPath ignored

2013-03-05 Thread John D. Ament
://rmannibucau.wordpress.com/* http://rmannibucau.wordpress.com/ *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* *Github: https://github.com/rmannibucau* 2013/3/4 John D. Ament john.d.am...@gmail.com Can you override this using the servlet mapping? On Mon, Mar 4, 2013 at 12:11

Re: CalendarTimers created with TimerService and persistent=true are not persisted over tomee restart

2013-03-04 Thread John D. Ament
Are you able to query that file to see the contents? What's in there as your application is running? On Mon, Mar 4, 2013 at 8:12 AM, dmitry.vol...@eiskonzept.com wrote: Hi. CalenderTimers created with following code are not recovered after TomEE restart. Are there some TomEE properties to

Re: CalendarTimers created with TimerService and persistent=true are not persisted over tomee restart

2013-03-04 Thread John D. Ament
Yes, that file. Where does it end up getting created? On Mon, Mar 4, 2013 at 10:49 AM, dmitry.vol...@eiskonzept.com wrote: Sorry, don't get your question. Which file do you mean? Test.db? -Ursprüngliche Nachricht- Von: John D. Ament [mailto:john.d.am...@gmail.com] Gesendet: Montag

Re: CalendarTimers created with TimerService and persistent=true are not persisted over tomee restart

2013-03-04 Thread John D. Ament
a job and stopped TomEE after a while. Please find attached test.db.log file. -Ursprüngliche Nachricht- Von: John D. Ament [mailto:john.d.am...@gmail.com] Gesendet: Montag, 4. März 2013 16:56 An: users@tomee.apache.org Betreff: Re: CalendarTimers created with TimerService

Re: JDBC Connection Pool reconnects on each connection usage

2013-02-28 Thread John D. Ament
). Regards, Witold Szczerba On 28 February 2013 13:00, John D. Ament john.d.am...@gmail.com wrote: Witold, The entry I added is based on this page in the Tomcat docs: http://tomcat.apache.org/tomcat-7.0-doc/jndi-datasource-examples-howto.html#Database_Connection_Pool_(DBCP

  1   2   >