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; > //... > @GET > public

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 is

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

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 docker container. > > Please i a

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 wrote: > 2015-07-03 15:55 GMT+02:00 John D. Ament : > > > Actually, only normal scoped beans require non-final. @Dependent is not > a > > normal scope. > > > > > sure but if it is intercepted or decorated i

Re: Running JBoss Dashbuilder on TomEE

2015-07-03 Thread John D. Ament
rmannibucau.wordpress.com> | Github < > https://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 : > > > On Fri, Jul 3, 2015 at 9:

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 wrote: > Le 3 juil. 2015 04:38, "jmutawa" 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 get: > > / > > SEVERE: CDI Beans mo

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

Re: Regarding CDI scope and @Asynchronous EJB methods

2014-10-06 Thread John D. Ament
Scoped allowed scopes when running > in an @Asynchronous EJB method? > > > > On Mon, Oct 6, 2014 at 5:24 PM, John D. Ament > wrote: > > > Hi, > > > > I would say no to #2. Thread != RequestScoped. If you want to start a > > request scope with the t

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 wrote: > When executing an EJB @Asynchronous method I know that va

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 this

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 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 expected injection won't wor

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 wrote: > Hi, > > I am writing a tutorial about how to inject properties

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 wrote: > I'm a start in CDI. > > To test CDI. I created 2 classes. > > publi

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 wrote: > If I take out this line: > > @Consumes(MediaType.APPLICATION_JSON) > > ...don't set Content-Type on the AJAX call, and change the cr

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

Re: JAX-RS JSON unexpected element

2014-02-24 Thread John D. Ament
27;t work. >> >> >> I add the jackson dependecy and >> the >> -Dcxf.jaxrs.providers=com.fasterxml.jackson.jaxrs.json.JacksonJaxbJsonProvider >> property. :) >> >> >> 2014-02-24 13:47 GMT-06:00 John D. Ament : >> >>> Can you post the code for your resource? &g

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

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 wrote: > Hi, I cannot find a way to read mailing list discussion from a webpage > archive. > I tried to look into http://openejb.apache.org/mailing-lists.

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 outweig

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 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 information you wa

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 wrote: > 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 > doesn't run in tomee.

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. wrote: > +1 > > On Thu, Nov

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 defa

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 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 testclasses in one

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 no

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. 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 (2013-08-12). Per my experien

Re: How to enable DeltaSpike's BeanProvider in TomEE?

2013-08-02 Thread John D. Ament
What ends up in your WAR file's lib? On Fri, Aug 2, 2013 at 7:23 AM, Chris Owens wrote: > What do I need to do to enable DeltaSpike's BeanProvider in TomEE? > > I do this: > > 1) Add an empty WEB-INF/beans.xml > > 2) Include POM dependencies on deltaspike-core-api (Compile scope) and > deltaspik

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 a

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

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

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: If this attribute is set to a

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

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

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

Re: EJB lite

2013-06-25 Thread John D. Ament
+1 to async not being very useful. At best, you can inject other EJBs, and dependent scoped objects, but nothing propagates from the original request (though would be good if a new transaction context were initiated in EE7). On Tue, Jun 25, 2013 at 3:29 AM, Romain Manni-Bucau wrote: > @Mark: le

Re: EJB lite

2013-06-24 Thread John D. Ament
Michiel, The TomEE + profiles are not certified. Also, when doing certification, it's a positive check. They check that local EJBs work. They don't check that remote EJBs don't work. I believe this is how even standard TomEE works, for the async and timer APIs. John On Mon, Jun 24, 2013 at

Re: @EJB injection in XmlAdapters

2013-06-24 Thread John D. Ament
I don't believe XmlAdapters are managed objects. On Mon, Jun 24, 2013 at 9:09 AM, Chris.Christo wrote: > Hi, > > So I have a simple XmlAdapter class (shown below), with an @EJB annotated > field (where the AccountService is an @Stateless bean). Problem is, it > doesn't get injected. The AccountS

Re: @stateful @RequestScoped @Inject @EJB

2013-06-17 Thread John D. Ament
technically... @Stateless must be @Dependent @Singleton must be @Dependent or @ApplicationScoped @Stateful though can have any scope. (this is from the JSR-299 spec) Zhong, what you're describing is accurate. Depending on how you inject the reference, the behavior of an EJB will be different.

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 wrote: > I always thought, for war files you put jee config files in WEB-INF (or > WEB-INF/class

Re: Problem with Entities in jars

2013-06-12 Thread John D. Ament
not that trivial since javaee spec is kind of ambiguous saying > descriptors goes in web inf but not which one > Le 12 juin 2013 22:32, "John D. Ament" a écrit : > > > spec for validator says it goes in WEB-INF/classes/META-INF as well. > > > > So, web.xml, ejb-jar.x

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

Re: Problem with Entities in jars

2013-06-12 Thread John D. Ament
Spec says it goes in WEB-INF/classes/META-INF. In fact the spec says it should not work if it's directly in WEB-INF. On Wed, Jun 12, 2013 at 12:30 PM, Romain Manni-Bucau wrote: > so the workaround is to put it in both places ;) > > joke apart i wonder why jboss and glassfish doesn't follow the

Re: TomEE not supporting Validator injection

2013-06-12 Thread John D. Ament
t > for it > > *Romain Manni-Bucau* > *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/rmann

Re: TomEE not supporting Validator injection

2013-06-12 Thread John D. Ament
*Github: https://github.com/rmannibucau* > > > > 2013/6/12 John D. Ament > > > 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 li

Re: Problem with Entities in jars

2013-06-12 Thread John D. Ament
@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 &

Re: TomEE not supporting Validator injection

2013-06-12 Thread John D. Ament
; > *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* > *Github: https://github.com/rmannibucau* > > > > 2013/6/12 John D. Ament > > > @Romain > > > > > > > https://github.com/johnament/deltaspike/blob/master/deltaspike/modules/beanval/impl/src/te

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: TomEE not supporting Validator injection

2013-06-12 Thread John D. Ament
e been discussing > > TomEE/CDI topics, and now you bring this up. Please click the following > URL > > and read that. :) > > > > http://code.google.com/p/omnifaces/issues/detail?id=183 > > > > Howard > > > > > > > > > > On Tue, Ju

Re: Problem with Entities in jars

2013-06-12 Thread John D. Ament
No it shouldn't :-) As far as I know, everyone looks for it in WEB-INF/classes/META-INF (which is the root of the WEB-INF JAR) On Wed, Jun 12, 2013 at 10:46 AM, Romain Manni-Bucau wrote: > should be better with https://issues.apache.org/jira/browse/TOMEE-973 > > that said you can put the persis

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

2013-06-11 Thread John D. Ament
rmannibucau>* > *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 > > > TomEE + is not a certifi

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 wrote: > Hi Jean and Romain > > I'll try to help with the docs then. > > How TomEE+ got certified with JEE Web

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 wrote: > Hi, > > Using Tomcat Plus WebApp 1.5.2 running in Tomcat 7.0.27 > > In tomee.xml I have defined my Data Source: > > . > > > > JMX shows: > Catalina -> Resource -> Global -> > org.

Re: CODI + TomEE + ManagedBean with public attributes

2013-06-11 Thread John D. Ament
c getter/setters. I 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" wrote: > >

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 wrote: > 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 versions, > we'll then

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 wrote: > Hmm, is it still a cdi bean then? I mean isnt there anything preventing it > to be proxied or anything in the idea preventing it to

Re: Construct EJB from a separate JAR file

2013-06-10 Thread John D. Ament
Right, but you also need a beans.xml in the META-INF of the JAR that contains these two objects. On Mon, Jun 10, 2013 at 9:29 AM, zeddius wrote: > /LoggerBuilder /is defined in the same jar as /LoggingInterceptor/. And we > put this jar in our application WEB-INF/lib dir. It seems that > /Loggi

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

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. wrote: > responses inline below... > > > > > > > On Wed, Jun 5, 2013 at 8:27 PM, Andrew Clarke wrote: > > > >> > >> persistence.xml:

Re: JPA/Hibernate entity auto discovery

2013-06-05 Thread John D. Ament
bug("TestManagerBean.inOut('" + inOut + "')"); > Application entity = entityManager.find(Application.class, > "8f466445ab"); > logger.debug("Entity: " + entity); > return anotherEJBManager.passItBack(inOut); > } &

Re: JPA/Hibernate entity auto discovery

2013-06-05 Thread John D. Ament
n.com/xml/ns/persistence/persistence_1_0.xsd"; version="1.0"> > > org.hibernate.ejb.HibernatePersistence > false > > > > > > > > > > - Andrew. > > On 2013-

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 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 a JPA test,

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 wrote: > It seems the examples are missing code on the website. > > Here's one case: > http://tomee.apache.org/examples-trunk/rest-example/READ

Re: TomEE plans for Java EE 7

2013-06-01 Thread John D. Ament
I think realistically you need all of the components to bump up to their Java EE 7 compliant versions. On Sat, Jun 1, 2013 at 3:16 AM, Romain Manni-Bucau wrote: > Tomee is tomcat so we need at least a tomcat 8 release > Le 1 juin 2013 05:13, "Howard W. Smith, Jr." a > écrit : > > > Of course, I

Re: Eclipse timeout

2013-05-28 Thread John D. Ament
Right, so you're referring to a persistence context that doesn't exist (because you have no persistence.xml) On Tue, May 28, 2013 at 12:27 PM, Caterpillar wrote: > 2013/5/28 John D. Ament > > > Do you have an injection point that is using @PersistenceContext ? > > &

Re: Eclipse timeout

2013-05-28 Thread John D. Ament
Do you have an injection point that is using @PersistenceContext ? On Tue, May 28, 2013 at 12:17 PM, Caterpillar wrote: > 2013/5/28 John D. Ament > > > Just like Romain noted > > > > SEVERE: FAIL ... LAI_Test_daInternetCompleto6:Missing required > > persisten

Re: Eclipse timeout

2013-05-28 Thread John D. Ament
produce it? > > > > Simply add a new server in Eclipse, and then try to start it. > > > 2013/5/28 John D. Ament > > > 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 in

Re: Eclipse timeout

2013-05-28 Thread John D. Ament
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. On Tue, May 28, 2013 at 11:31 AM, Romain Manni-Bucau wrote: > any procedure to reproduce it? > > *Romain Manni-Bucau* > *Twitter: @rmannibucau *

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
http://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 > > > Yes, everything works fine in 1.5.1 > > > > Can

Re: Remote/Managed TomEE Arquillian

2013-05-22 Thread John D. Ament
ch > 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" a écrit : > > > Hi All > > > > I'm testing something locally and I noticed that for TomEE 1.5.2 it > doesn&#

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, 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 class? > > thx

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: org.apache.openejb tomee-embedded ${tomee.version} And vari

Re: form-login-page wrong redirect

2013-05-21 Thread John D. Ament
Interesting. Are your underlying files also *.xhtml ? On Tue, May 21, 2013 at 1:14 PM, José Luis Cetina wrote: > I will try now, but i have this mapping > > > Faces Servlet > *.xhtml > > > > 2013/5/21 John D. Ament > > > Did you t

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 wrote: > Hi. I have a problem since i move from war to ear (since 4 months ago > aprox.), but i didn't have any

Re: JDK7 java.nio not found

2013-05-20 Thread John D. Ament
Also, what JAVA_HOME does your TomEE point to? On Mon, May 20, 2013 at 3:36 PM, Romain Manni-Bucau wrote: > Hi > > Any sample to show us it? > > We dont hack it normally > Le 20 mai 2013 21:32, "Caroline" a > écrit : > > > Hi all, > > > > Continuing my adventure to get hot swapping done withou

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 >wrote: > > > When you do this.. &g

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

2013-05-20 Thread John D. Ament
alifiers > * http://docs.oracle.com/javaee/6/tutorial/doc/gjbck.html > * > * 2013-05-20 DEPRECATED since using @Typed instead of @Descendant > * http://forum.primefaces.org/viewtopic.php?f=3&t=30309&p=97552#p97552 > */ > @Qualifier > @Retention(RUNTIME) > @Target({

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

2013-05-20 Thread John D. Ament
lina.startup.HostConfig.deployWAR(HostConfig.java:977) > at > org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1654) > at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) > at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) > at java.util

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

2013-05-20 Thread John D. Ament
; > On Mon, May 20, 2013 at 9:15 AM, Howard W. Smith, Jr. < > smithh032...@gmail.com> wrote: > > > 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 r

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

2013-05-20 Thread John D. Ament
gt; smithh032...@gmail.com> wrote: > > > > > 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,

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

2013-05-20 Thread John D. Ament
nstead 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 >wrote: > > > Howard, > > > > When were you recommended to use @Typed? > > @Typ

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: stand alone Application looks up remote EJB by global jndi name

2013-05-19 Thread John D. Ament
no? > Le 19 mai 2013 14:12, "John D. Ament" a écrit : > > > No Good? > > > > > > On Sun, May 19, 2013 at 7:18 AM, Romain Manni-Bucau > > wrote: > > > > > What does mean NG? > > > Le 19 mai 2013 13:16, "ZhongGuan&quo

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

2013-05-19 Thread John D. Ament
oo with > > @Typed() > > LieGrue, > strub > > > > > - Original Message - > > From: John D. Ament > > To: users@tomee.apache.org > > Cc: > > Sent: Sunday, 19 May 2013, 4:37 > > Subject: Re: [OWB] CDI - how to realize default producer? &

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 wrote: > What does mean NG? > Le 19 mai 2013 13:16, "ZhongGuan" 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 @Local EJB > > global jndi nam

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

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 wrote: > Hi, > > Romain already helped me tremendously on > > http://openejb.979440.n4.nabble.com/Location-of-jar-

Re: Custom Principal from EJB

2013-05-14 Thread John D. Ament
I think what you're seeing is the standard behavior. Principal only exposes a single "getName" method. http://docs.oracle.com/javase/7/docs/api/java/security/Principal.html You'll need to do type casting to get to your userPrincipal (cast to GenericPrincipal http://tomcat.apache.org/tomcat-5.5-doc

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 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 successfully work on call

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 wrote: > 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 change this, so

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 wrote: > H > ello everyone, > > I'm having problem to make socialauth ( > https://code.google.com/p/socialauth/) > work in TomEE. > I'm using the CDI library and

Re: Question regarding CDI: Injection needed in at runtime created objects.

2013-04-21 Thread John D. Ament
Hi Caroline, You may want to consider pinging questions like this on the cdi-dev list from jboss.org or even posting the question on the CDI forums there. Though I think SO may be the best for questions like this. John On Sun, Apr 21, 2013 at 12:43 PM, Caroline Van den Hauwe < caroline.van.den

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

2013-04-15 Thread John D. Ament
it whenever i want to CRUD something > user-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: "

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, 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? > > Basically i

  1   2   >