Re: Are you allowed to contribute to Open Source?

2023-06-28 Thread Daniel Cunha (soro)
Replied and re-tweeted as well! :) 

--
Daniel Cunha
https://github.com/danielsoro
https://twitter.com/danielvlcunha
https://www.linkedin.com/in/danielvlcunha/

> Em 28 de jun. de 2023, à(s) 16:40, Daniel Dias Dos Santos 
>  escreveu:
> 
> Hello,
> 
> I will make re-tweet.
> 
> Thanks.
> 
> On Wed, Jun 28, 2023, 16:38 Jean-Louis Monteiro 
> wrote:
> 
>> Replied and re-tweeted. Great question
>> --
>> Jean-Louis Monteiro
>> http://twitter.com/jlouismonteiro
>> http://www.tomitribe.com
>> 
>> 
>> On Wed, Jun 28, 2023 at 3:25 PM David Blevins 
>> wrote:
>> 
>>> Hi Community!
>>> 
>>> I know a lot of you are not allowed to contribute to open source.  Or if
>>> you are, you need to do it on your own time despite your company using
>> the
>>> open source.
>>> 
>>> Fill out this twitter poll and please help retweet it:
>>> 
>>> - https://twitter.com/dblevins/status/167417510575104
>>> 
>>> If we get enough numbers, maybe it can help bring enough awareness to
>> help
>>> change things.
>>> 
>>> 
>>> -David
>>> 
>>> 
>> 



Re: Johnzon Threads Locking up marshalling from String to Object

2019-02-25 Thread Daniel Cunha
Hi Paul,

could you share a sample project with your issue?
It will help to reproduce and analyze your case.

Thank you.

Em seg, 25 de fev de 2019 às 14:35, Paul Carter-Brown
 escreveu:

> Hi,
>
> I'm using Johnzon in TomEE 8.0.0-M2. In some rest calls, I do my own
> marshalling from a string to an Object. Intermittently (maybe 50% of the
> times I bounce TomEE), after TomEE starts and I send rest requests to the
> server, threads lock up and I get timeouts. It appears as though the
> threads never free up and get stuck in one of two states:
>
> "TomEE-Exec-1" #228 daemon prio=5 os_prio=0 tid=0x7fddb0b22800
> nid=0x1e4 in Object.wait() [0x7fddac4df000]
>java.lang.Thread.State: RUNNABLE
> at
>
> org.apache.johnzon.core.JsonArrayBuilderImpl.build(JsonArrayBuilderImpl.java:319)
> at
> org.apache.johnzon.core.JsonReaderImpl.readValue(JsonReaderImpl.java:100)
> at
>
> org.apache.johnzon.mapper.MappingParserImpl.readObject(MappingParserImpl.java:125)
> at org.apache.johnzon.mapper.Mapper.mapObject(Mapper.java:254)
> at org.apache.johnzon.mapper.Mapper.readCollection(Mapper.java:202)
> at org.apache.johnzon.jsonb.JohnzonJsonb.fromJson(JohnzonJsonb.java:190)
> at guru.jini.arch.impl.json.JsonImpl.toList(JsonImpl.java:129)
>
> OR
>
> "TomEE-Exec-6" #237 daemon prio=5 os_prio=0 tid=0x7fddb008d000
> nid=0x224 in Object.wait() [0x7fddb4bce000]
>java.lang.Thread.State: RUNNABLE
> at
>
> org.apache.johnzon.core.JsonObjectBuilderImpl.add(JsonObjectBuilderImpl.java:122)
> at
> org.apache.johnzon.core.JsonReaderImpl.parseObject(JsonReaderImpl.java:221)
> at org.apache.johnzon.core.JsonReaderImpl.readValue(JsonReaderImpl.java:83)
> at
>
> org.apache.johnzon.mapper.MappingParserImpl.readObject(MappingParserImpl.java:125)
> at org.apache.johnzon.mapper.Mapper.mapObject(Mapper.java:254)
> at org.apache.johnzon.mapper.Mapper.readObject(Mapper.java:189)
> at org.apache.johnzon.mapper.Mapper.readObject(Mapper.java:184)
> at org.apache.johnzon.jsonb.JohnzonJsonb.fromJson(JohnzonJsonb.java:58)
> at guru.jini.arch.impl.json.JsonImpl.toObject(JsonImpl.java:124)
>
> The more requests I send the more threads end up in one of these 2 states.
> This happens irrespective of the string I am marshalling to an object and
> irrespective of the class I am trying to marshal to.
> The threads are not in a loop as the CPU remains low and if I run jstack
> over and over these threads remain in the same state.
> See how the threads are RUNNABLE and yet are in Object.wait(). I cannot
> understand what is going on as both those lines of code seem innocent
> enough so what are they waiting for???
>
> I can then bounce the JVM and it can work flawlessly and then bounce it
> again and the issue can happen. Its as though there is a race condition in
> the boot process that puts things into a weird state.
>
> in guru.jini.arch.impl.json.JsonImpl I create the jsonb as follows. I've
> tried sharing a single instance as well as creating a new one on each call
> - with no change in results:
>
> JsonbConfig config = new JsonbConfig()
> .withPropertyVisibilityStrategy(new
> PropertyVisibilityStrategy() {
> @Override
> public boolean isVisible(Field field) {
> return Modifier.isPublic(field.getModifiers())
> ||
> Modifier.isProtected(field.getModifiers());
> }
>
> @Override
> public boolean isVisible(Method method) {
> return Modifier.isPublic(method.getModifiers());
> }
> })
> .withAdapters(new ZonedDateTimeAdapter());
> jsonb = JsonbBuilder.newBuilder().withConfig(config).build();
>
>
>
> Paul Carter-Brown
> Director
> Jini Guru
> m: +27 (0) 83 442 7179 <+27834427179>
> a: 1st Floor, Golf House, Design Quarter, Cnr. William Nicol and Leslie
>   Johannesburg, South Africa
> w: jini.guru  e: p...@jini.guru
>
> Disclaimer: This message and/or attachment(s) may contain
> privileged, confidential and/or personal information. If you are not the
> intended recipient you may not disclose or distribute any of
> the information contained within this message. In such case you must
> destroy this message and inform the sender of the error. Jini Guru may not
> accept liability for any errors, omissions, information and viruses
> contained in the transmission of this message. Any opinions, conclusions
> and other information contained within this message not related to Jini
> Guru official business is deemed to be that of the individual only and is
> not endorsed by Jini Guru.
>


-- 
Daniel "soro" Cunha
https://twitter.com/dvlc_


Re: Continuous integration and a PR

2018-12-03 Thread Daniel Cunha
Hey,

I believe for TomEE we don't have PR integrated with CI. BTW, I also prefer
to have a jenkins instead of build-bot, for sure I think Jenkins better
than build-bot.

Em seg, 3 de dez de 2018 às 06:37, Otávio Gonçalves de Santana <
osant...@tomitribe.com> escreveu:

> Hey Cesar, I have the same issue. Unfortunately no luck yet.
>
> On Fri, Nov 30, 2018 at 9:12 PM César Hernández Mendoza <
> cesargu...@gmail.com> wrote:
>
> > Hi guys,
> > I need help understanding how I can see past builds results from
> > https://ci.apache.org/builders/tomee-trunk-ubuntu-jvm8
> > I couldn't find a way to search for the CI result of one or my PR's I
> > created early this week.
> >
> > I would also be interesting to see if we can use Jenkins instead
> > https://builds.apache.org/
> > I searched the work Jenkin in https://openejb.markmail.org/search/?q=
> but
> > it seems that topic hasn't been often mentioned.
> >
> > El jue., 22 nov. 2018 a las 8:19, Romain Manni-Bucau (<
> > rmannibu...@gmail.com>)
> > escribió:
> >
> > > Hi Otavio,
> > >
> > > Just needs to be asked to infra but the reactivity will be ~3h instead
> > of a
> > > few minutes like for small projects so not sure it would help much.
> > > Investing in a build.sh can help more (./build.sh --core, ./build.sh
> > > --tomee, ./build.sh --tomee --validate etc) - it is an old idea nobody
> > > tackled by lack of need at that time
> > >
> > > Romain Manni-Bucau
> > > @rmannibucau  |  Blog
> > >  | Old Blog
> > >  | Github <
> > > https://github.com/rmannibucau> |
> > > LinkedIn  | Book
> > > <
> > >
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > > >
> > >
> > >
> > > Le jeu. 22 nov. 2018 à 14:56, Otávio Gonçalves de Santana <
> > > osant...@tomitribe.com> a écrit :
> > >
> > > > Hello everyone, I have a question about PR and continuous
> integrations.
> > > > Why we don't have a plugin to run the tests when we open a PR?
> > > >
> > > > I'm also helping in another Apache Project such as Apache TinkerPop
> > > >  and Apache Commons
> > > >  Lang and both have
> > > this.
> > > >
> > > >
> > > > I also did a small search about, and I find more projects such as
> > > Zeppelin,
> > > > Commons-IO, Commons Collection those use the Travis plugin
> > > > .
> > > >
> > >
> >
> >
> > --
> > Atentamente:
> > César Hernández Mendoza.
> >
>


-- 
Daniel "soro" Cunha
https://twitter.com/dvlc_


Re: Unable to deploy EAR on TomEE

2017-07-18 Thread Daniel Cunha
: One or more listeners failed to start. Full details will be found
> in
> the appropriate container log file
> Jul 18, 2017 2:12:57 PM org.apache.catalina.core.StandardContext
> startInternal
> SEVERE: Context [/abc] startup failed due to previous errors
> Jul 18, 2017 2:12:57 PM javax.faces.FactoryFinder$FactoryManager
> getFactory
> SEVERE: Application was not properly initialized at startup, could not find
> Factory: javax.faces.application.ApplicationFactory. Attempting to find
> backup.
> Jul 18, 2017 2:12:57 PM com.sun.faces.config.ConfigureListener
> contextDestroyed
> SEVERE: Unexpected exception when attempting to tear down the Mojarra
> runtime
> java.lang.IllegalStateException: Could not find backup for factory
> javax.faces.application.ApplicationFactory.
> at
> javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryF
> inder.java:1012)
> at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:344)
> at
> com.sun.faces.config.InitFacesContext.getApplication(InitFac
> esContext.java:141)
> at
> com.sun.faces.config.ConfigureListener.contextDestroyed(Conf
> igureListener.java:314)
> at
> org.apache.catalina.core.StandardContext.listenerStop(Standa
> rdContext.java:5113)
> at
> org.apache.catalina.core.StandardContext.stopInternal(Standa
> rdContext.java:5779)
> at
> org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:224)
> at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:159)
> at
> org.apache.catalina.core.ContainerBase.addChildInternal(Cont
> ainerBase.java:899)
> at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
> at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
> at
> org.apache.tomee.catalina.TomcatWebAppBuilder.deployWar(Tomc
> atWebAppBuilder.java:663)
> at
> org.apache.tomee.catalina.TomcatWebAppBuilder.deployWebApps(
> TomcatWebAppBuilder.java:620)
> at
> org.apache.openejb.assembler.classic.Assembler.createApplica
> tion(Assembler.java:800)
> at
> org.apache.openejb.assembler.classic.Assembler.createApplica
> tion(Assembler.java:677)
> at
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(
> TomcatWebAppBuilder.java:1261)
> at
> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart
> (TomcatWebAppBuilder.java:1100)
> at
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEve
> nt(GlobalListenerSupport.java:130)
> at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent
> (LifecycleSupport.java:117)
> at
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(Li
> fecycleBase.java:90)
> at
> org.apache.catalina.core.StandardContext.startInternal(Stand
> ardContext.java:5472)
> at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
> at
> org.apache.catalina.core.ContainerBase.addChildInternal(Cont
> ainerBase.java:899)
> at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
> at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
> at
> org.apache.catalina.startup.HostConfig.deployDirectory(HostC
> onfig.java:1259)
> at
> org.apache.catalina.startup.HostConfig$DeployDirectory.run(
> HostConfig.java:1998)
> at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool
> Executor.java:1142)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo
> lExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745)
>
>
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.n4
> .nabble.com/Unable-to-deploy-EAR-on-TomEE-tp4682283.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>



-- 
Daniel Cunha
https://twitter.com/dvlc_


Re: 7.0.3 release

2017-03-22 Thread Daniel Cunha
t;>> > > > return new BeanValidationFeature();
>>> > > > }
>>> > > >
>>> > > > That's it :).
>>> > > >
>>> > > >
>>> > > >
>>> > > > > Additionally, I didn't see any mention of DataSource
>>> configurations
>>> > in
>>> > > > the
>>> > > > > documentation, but I suppose it should fine because of TomEE
>>> > embedded,
>>> > > is
>>> > > > > that right?
>>> > > > >
>>> > > > >
>>> > > > Meecrowave is just cdi+jaxrs. It has a few extensions for jpa but
>>> it is
>>> > > > *extensions*. Doc is on
>>> > > > http://openwebbeans.apache.org/meecrowave/meecrowave-jpa/ind
>>> ex.html.
>>> > You
>>> > > > love it or hate it cause it makes the resources part of the app (vs
>>> > > managed
>>> > > > by the container for tomee case for instance). Both have pros and
>>> cons
>>> > > and
>>> > > > I have to admit depending the app both make sense (no silver bullet
>>> > ;)).
>>> > > >
>>> > > >
>>> > > > > Thanks!
>>> > > > >
>>> > > > > Regards,
>>> > > > >
>>> > > > > Danilo Cominotti Marques
>>> > > > >
>>> > > > > On Thu, Feb 23, 2017 at 6:32 PM, Romain Manni-Bucau <
>>> > > > rmannibu...@gmail.com
>>> > > > > >
>>> > > > > wrote:
>>> > > > >
>>> > > > > > did a few on my blog
>>> > > > > > https://blog-rmannibucau.rhcloud.com/#/search;query=meecrowave
>>> and
>>> > > > there
>>> > > > > > is
>>> > > > > > the website openwebbeans.apache.org/meecrowave
>>> > > > > >
>>> > > > > > strictly speaking it is mainly inspired from recent tomee
>>> embedded
>>> > > > > changes
>>> > > > > > but simplifying it a lot and making the stack
>>> consistent/uniform
>>> > (we
>>> > > > > can't
>>> > > > > > at tomee cause of all possibilities we have). It is limiting
>>> it to
>>> > > > > > cdi+jaxrs (not even jpa). Opens a lot of doors nowaday even
>>> you can
>>> > > > feel
>>> > > > > > frustrated for JPA backends.
>>> > > > > >
>>> > > > > >
>>> > > > > > Romain Manni-Bucau
>>> > > > > > @rmannibucau <https://twitter.com/rmannibucau> |  Blog
>>> > > > > > <https://blog-rmannibucau.rhcloud.com> | Old Blog
>>> > > > > > <http://rmannibucau.wordpress.com> | Github <
>>> https://github.com/
>>> > > > > > rmannibucau> |
>>> > > > > > LinkedIn <https://www.linkedin.com/in/rmannibucau> | JavaEE
>>> > Factory
>>> > > > > > <https://javaeefactory-rmannibucau.rhcloud.com>
>>> > > > > >
>>> > > > > > 2017-02-23 22:25 GMT+01:00 hwaastad <he...@waastad.org>:
>>> > > > > >
>>> > > > > > > Meecrowave
>>> > > > > > >
>>> > > > > > > Is that a new kid on the block?  ;-)
>>> > > > > > >
>>> > > > > > > Seriously, seems cool, any blog articles yet?
>>> > > > > > >
>>> > > > > > > /hw
>>> > > > > > >
>>> > > > > > >
>>> > > > > > >
>>> > > > > > >
>>> > > > > > > --
>>> > > > > > > View this message in context: http://tomee-openejb.979440.
>>> > > > > > > n4.nabble.com/7-0-3-release-tp4681145p4681150.html
>>> > > > > > > Sent from the TomEE Users mailing list archive at Nabble.com.
>>> > > > > > >
>>> > > > > >
>>> > > > >
>>> > > >
>>> > >
>>> >
>>>
>>
>>
>


-- 
Daniel Cunha
https://twitter.com/dvlc_


Re: EntityManager/EntityManagerFactory not injected to CDI bean

2017-02-08 Thread Daniel Cunha
Hynek,

Sorry the typo.

On Wed, Feb 8, 2017 at 10:57 AM, Daniel Cunha <daniels...@gmail.com> wrote:

> Hy Hynke,
>
> for use @Inject in your EntityManger you need to create a produce for that.
> A sampe for it, you can do something lke that:
>
> @ApplicationScoped
> public class JPAFactory {
> private EntityManagerFactory emf = Persistence
> .createEntityManagerFactory("MY_PU");
>
> @Produces
> @RequestScoped
> public EntityManager getEntityManager() {
> return emf.createEntityManager();
> }
>
> public void close(@Disposes EntityManager em) {
> if (em.isOpen()) {
> em.close();
> }
> }
> }
>
>
> Then will be possible to @Inject your EntityManager. :)
>
>
>
> On Wed, Feb 8, 2017 at 10:05 AM, Hynek <hynek.cih...@gmail.com> wrote:
>
>> Hello all!
>>
>> I have an issue with injecting EntityManagerFactory (or EntityManager)
>> into
>> a CDI managed bean.
>>
>> My application is structured such that I have a root app.ear containing
>> persistence.jar and rest.war. When deployed to TomEE 7.0.2 it initialized
>> and starts up OK (no errors in the logs). persistence.jar defines my JPA
>> entities, persistence.xml with persistent unit, a service class
>> referencing
>> EntityManager and providing business methods to the servlet classes in
>> rest.war:
>>
>> EntityManager is being resolved with a CDI bean below. The motivation is,
>> besides to have a bit more flexibility with CDI, to be able to explicitly
>> drive the life time of the produced EntityManager instances:
>>
>>
>>
>>
>> And the service consuming the produced EntityManager:
>>
>>
>> Both classes above are packaged in peristence.jar.
>>
>>
>> Then in rest.war the service is consumed as follows:
>>
>>
>> As I have mentioned the ear deploys OK with no apparent errors. But when a
>> request comes to RestServer *the app fails with a NullPointerException
>> inside of EntityManagerProducer.newEntityManager() due to emFactory being
>> null, it is never set*.
>>
>> Interesting to note, when I remove the @Inject annotation of Service.em
>> and
>> use @PersistentContext directly there, the entity manager is properly
>> injected into the Service EJB and the REST request passes OK.
>>
>> Any help is greatly appreciated!
>>
>> Thanks,
>> Hynek
>>
>>
>>
>>
>> --
>> View this message in context: http://tomee-openejb.979440.n4
>> .nabble.com/EntityManager-EntityManagerFactory-not-injected-
>> to-CDI-bean-tp4681031.html
>> Sent from the TomEE Users mailing list archive at Nabble.com.
>>
>
>
>
> --
> Daniel Cunha
> https://twitter.com/dvlc_
> http://www.tomitribe.com
> http://www.tomitribe.io
>



-- 
Daniel Cunha
https://twitter.com/dvlc_
http://www.tomitribe.com
http://www.tomitribe.io


Re: EntityManager/EntityManagerFactory not injected to CDI bean

2017-02-08 Thread Daniel Cunha
Hy Hynke,

for use @Inject in your EntityManger you need to create a produce for that.
A sampe for it, you can do something lke that:

@ApplicationScoped
public class JPAFactory {
private EntityManagerFactory emf = Persistence
.createEntityManagerFactory("MY_PU");

@Produces
@RequestScoped
public EntityManager getEntityManager() {
return emf.createEntityManager();
}

public void close(@Disposes EntityManager em) {
if (em.isOpen()) {
em.close();
}
}
}


Then will be possible to @Inject your EntityManager. :)



On Wed, Feb 8, 2017 at 10:05 AM, Hynek <hynek.cih...@gmail.com> wrote:

> Hello all!
>
> I have an issue with injecting EntityManagerFactory (or EntityManager) into
> a CDI managed bean.
>
> My application is structured such that I have a root app.ear containing
> persistence.jar and rest.war. When deployed to TomEE 7.0.2 it initialized
> and starts up OK (no errors in the logs). persistence.jar defines my JPA
> entities, persistence.xml with persistent unit, a service class referencing
> EntityManager and providing business methods to the servlet classes in
> rest.war:
>
> EntityManager is being resolved with a CDI bean below. The motivation is,
> besides to have a bit more flexibility with CDI, to be able to explicitly
> drive the life time of the produced EntityManager instances:
>
>
>
>
> And the service consuming the produced EntityManager:
>
>
> Both classes above are packaged in peristence.jar.
>
>
> Then in rest.war the service is consumed as follows:
>
>
> As I have mentioned the ear deploys OK with no apparent errors. But when a
> request comes to RestServer *the app fails with a NullPointerException
> inside of EntityManagerProducer.newEntityManager() due to emFactory being
> null, it is never set*.
>
> Interesting to note, when I remove the @Inject annotation of Service.em and
> use @PersistentContext directly there, the entity manager is properly
> injected into the Service EJB and the REST request passes OK.
>
> Any help is greatly appreciated!
>
> Thanks,
> Hynek
>
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.
> n4.nabble.com/EntityManager-EntityManagerFactory-not-injected-to-CDI-bean-
> tp4681031.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>



-- 
Daniel Cunha
https://twitter.com/dvlc_
http://www.tomitribe.com
http://www.tomitribe.io


Re: java.lang.NoSuchMethodError: javax.persistence.PersistenceContext.synchronization()Ljavax/persistence/SynchronizationType;

2016-08-24 Thread Daniel Cunha
Hi Dimas,

SynchronizationType this is part of the Java EE 7.
I can see that you are using Java EE 6 API:
  
org.apache.openejb
javaee-api
6.0-6
test-jar
test



Try use: org.apache.tomee:javaee-api:7.0

On Wed, Aug 24, 2016 at 3:23 PM, dimas <dmitry_shu...@kaltire.com> wrote:

> Hi,
>
> I'm trying to use the Deltaspike test for some app that has persistence
> (hibernate), so here are my test dependencies:
>
> 4.2.16.Final
> 1.6.1
> 7.0.0
> 2.17.2
>
>
> 
> org.hibernate
> hibernate-core
> compile
> ${hibernate.version}
> 
> 
> org.hibernate
> hibernate-entitymanager
> compile
> ${hibernate.version}
> 
> 
> org.hibernate.javax.persistence
> hibernate-jpa-2.0-api
> 1.0.1.Final
> provided
> 
> 
> org.hibernate.java-persistence
> jpa-api
> 2.0-cr-1
> provided
> 
>
>
> 
> org.apache.deltaspike.modules
> deltaspike-test-control-module-api
> ${deltaspike.version}
> test
> 
> 
> org.apache.deltaspike.modules
> deltaspike-test-control-module-impl
> ${deltaspike.version}
> test
> 
> 
> org.apache.deltaspike.cdictrl
> deltaspike-cdictrl-openejb
> ${deltaspike.version}
> test
> 
> 
> org.apache.tomee
> openejb-core
> ${openejb-core.version}
> test-jar
> test
> 
> 
> org.apache.openejb
> javaee-api
> 6.0-6
> test-jar
> test
> 
> 
> org.apache.camel
> camel-test-cdi
> test
> ${camel.version}
> 
> 
> junit
> junit
> 4.11
> test
> 
>
> While trying to run some simple test annotated with
> @RunWith(CdiTestRunner.class) it fails with exception:
>
> Caused by: java.lang.NoSuchMethodError:
> javax.persistence.PersistenceContext.synchronization()Ljavax/persistence/
> SynchronizationType;
> at
> org.apache.openejb.config.PersistenceContextAnnFactory$
> DirectPersistenceContext.synchronization(PersistenceContextAnnFactory.
> java:118)
> at
> org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.
> buildPersistenceContext(AnnotationDeployer.java:4600)
> at
> org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.
> buildAnnotatedRefs(AnnotationDeployer.java:3985)
> at
> org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(
> AnnotationDeployer.java:2912)
> at
> org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(
> AnnotationDeployer.java:1951)
> at
> org.apache.openejb.config.AnnotationDeployer.deploy(
> AnnotationDeployer.java:378)
> at
> org.apache.openejb.config.ConfigurationFactory$Chain.
> deploy(ConfigurationFactory.java:417)
> at
> org.apache.openejb.config.ConfigurationFactory.configureApplication(
> ConfigurationFactory.java:1023)
> at
> org.apache.openejb.config.ConfigurationFactory.configureApplication(
> ConfigurationFactory.java:885)
> at
> org.apache.openejb.config.ConfigurationFactory.getOpenEjbConfiguration(
> ConfigurationFactory.java:582)
> at
> org.apache.openejb.config.ConfigurationFactory.getOpenEjbConfiguration(
> ConfigurationFactory.java:627)
> at
> org.apache.openejb.assembler.classic.Assembler.getOpenEjbConfiguration(
> Assembler.java:500)
> at org.apache.openejb.assembler.classic.Assembler.build(
> Assembler.java:479)
> at org.apache.openejb.OpenEJB$Instance.(OpenEJB.java:150)
> ... 31 more
>
> I have another app that doesn't have any persistence and all tests are
> working, so it looks like I'm missing something here, but not sure what
> exactly...
>
> Dmitry
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.
> n4.nabble.com/java-lang-NoSuchMethodError-javax-persistence-
> PersistenceContext-synchronization-Ljavax-persistence--tp4679869.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>



-- 
Daniel Cunha
https://twitter.com/dvlc_
http://www.tomitribe.com
http://www.tomitribe.io


Re: Define datasource, reference JDBC driver, and see init in console

2016-08-02 Thread Daniel Cunha
Hi David,

yea, resources on TomEE is a mix (XML/Properties)
Your definition should following the pattern:
 
maxActive = 5
maxIdle = 2
maxWait = 1
driverClassName = oracle.jdbc.driver.OracleDriver
url = jdbc:oracle:thin:@:1521:
username = 
password = 


References you can see here: http://tomee.apache.org/datasource-config.html
About maven, should be enough have the configuration in your settings.xml.
:)

On Tue, Aug 2, 2016 at 5:52 PM, KARR, DAVID <dk0...@att.com> wrote:

> (I posted this first to tomcat-user, but I realized technically it should
> go to tomee-user.  I apologize if this is a duplicate for you. In any case,
> this note has a little more info than the first note.)
>
> I'm attempting to use Tomcat(tomee) to run a REST service that will return
> some data from some SQL queries (Oracle).  I've installed Tomee 7.0.1,
> which uses Tomcat 8.5.3.
>
> The JDBC driver is available from a private enterprise maven repo.  I'd
> prefer to get it from there, as opposed to storing it locally.  I noticed
> at http://tomee.apache.org/configuring-datasources.html , there is the
> possible notation of "mvn:g:a:v" for the "classpath" attribute.  However, I
> don't see any way to configure the Maven repositories this will reference.
> How do I tell it to look in a particular repo for this?  Would it just
> implicitly use my $HOME/.m2/settings.xml file?
>
> My Resource definition in "conf/tomee.xml" looks something like this:
> ---
>maxActive="5" maxIdle="2" maxWait="1"
> driverClassName="oracle.jdbc.driver.OracleDriver"
> url="jdbc:oracle:thin:@:1521:"
> username="" password=""/>
> 
>
> Does this look correct?  I find the Tomcat docs confusing, with respect to
> the required syntax for this.  It's not clear whether a pure XML syntax is
> required, or a mixed XML/property syntax.
>
> If I start the instance, should I see any default output that will show
> Tomcat connecting to this datasource?  If it doesn't show this by default,
> is there a way to turn this on?
>
> I tried writing the code to obtain the JNDI resource (Spring context
> references), but it just says it can't find it (fails at "jdbc"), so
> perhaps my Resource definition was ignored, or my JNDI path is wrong.
>



-- 
Daniel Cunha
https://twitter.com/dvlc_
http://www.tomitribe.com
http://www.tomitribe.io


Re: error inti tomee on openshif

2016-02-26 Thread Daniel Cunha
leEvent(ServerListener.java:55)
> at
>
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
> at
>
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
> at
>
> org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
> at
> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:110)
>
> INFO: Using 'openejb.default.deployment-
>
> module=org.apache.openejb.config.WebModule'
> -- INSERT --
>
>
>
> how resolve§?
>
>
>
>
> --
> View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/error-inti-tomee-on-openshif-tp4677690.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>



-- 
Daniel Cunha
https://twitter.com/dvlc_
http://www.tomitribe.com
http://www.tomitribe.io


Re: TomEE 7.0.0-M1 is here!

2015-12-13 Thread Daniel Cunha
You're awesome Andy!
So good to see TomEE 7.0.0 M1 released

On Sun, Dec 13, 2015 at 9:37 AM, Andy <andy...@gmx.de> wrote:

> A gave pom and binary replication to mirrors a good 24 hrs before posting,
> but some of them seem to be really slow this week.
>
> Use the mvn -U option force a refresh, that sometimes helps.
>
> Andy.
>
>
> On 12/12/2015 16:58, MarkD wrote:
>
>> Got it.
>>
>> Cheers.
>>
>>
>>
>> --
>> View this message in context:
>> http://tomee-openejb.979440.n4.nabble.com/TomEE-7-0-0-M1-is-here-tp4677208p4677214.html
>> Sent from the TomEE Users mailing list archive at Nabble.com.
>>
>>
> --
>   Andy Gumbrecht
>   https://twitter.com/AndyGeeDe
>
>


-- 
Daniel Cunha
https://twitter.com/dvlc_
http://www.tomitribe.com


Re: Conditional properties to EntityManagerFactory

2015-07-17 Thread Daniel Cunha
If I get it..

You need to have something like DeltaSpike ProjectStage[1] where you have a
configuration for Development and another configuration for Production.

So, maybe you can create a different Produce for each stage.

Then with Alternative and Exclude annotations you can configure it.
I'm not expert in this module of the DeltaSpike, but.. I think that it can
be very useful for you. :)

If TomEE have some solution, really.. I don't know. :(

[1]
http://deltaspike.apache.org/documentation/core.html#Type-safeProjectStage

On Fri, Jul 17, 2015 at 10:55 AM, Felipe Jaekel fkjae...@gmail.com wrote:

 Hi,

 Persistence is working fine...

 My demand is to enable hibernate's generated sql output only when the
 webapp is running locally.

 persistence.xml is not an option because I cannot afford to forget this
 setting enabled and send the webapp to production with it, since the server
 will run out of disk space in a few days because of the very fast growth of
 the log files.

 When I migrated my webapp to TomEE I started to use the injected
 EntityManagerFactory that was already created, so I can't pass a map of
 properties to it like I used to do in Tomcat.

 I'd like to know if is it possible to intercept TomEE's
 EntityManagerFactory creation.

 Thanks


 2015-07-15 14:45 GMT-03:00 Daniel Cunha daniels...@gmail.com:

  Hi Felipe,
 
  you can inject EntityManager with @PersistenceContext
  
 
 http://docs.oracle.com/javaee/6/api/javax/persistence/PersistenceContext.html
  
  Configure your persistence like this persistence.xml
  
 
 https://github.com/apache/tomee/blob/master/examples/jpa-hibernate/src/main/resources/META-INF/persistence.xml
  
 
  Inject your EntityManager like this:
 
 
 https://github.com/apache/tomee/blob/master/examples/jpa-hibernate/src/main/java/org/superbiz/injection/h3jpa/Movies.java#L29-L30
 
  See the sample (try running, test and explore it):
  https://github.com/apache/tomee/tree/master/examples/jpa-hibernate
 
 
  On Wed, Jul 15, 2015 at 2:36 PM, Felipe Jaekel fkjae...@gmail.com
 wrote:
 
   Hi,
  
   I need to enable Hibernate SQL output only when my webapp in running on
  my
   dev environment.
  
   On Tomcat since I could do something like this:
  
  
   MapString, String properties = new HashMapString, String();
if(ServerUtil.isLocal())
{
properties.put(hibernate.show_sql, true);
properties.put(hibernate.format_sql, true);
}
emf = Persistence.createEntityManagerFactory(PERSISTENCE_UNIT,
   properties);
  
  
  
   Is there any way I can do something similar with the injected
   EntityManagerFactory on TomEE?
  
   Thanks
  
 
 
 
  --
  Best regard,
  Daniel Cunha (soro)
 




-- 
Best regard,
Daniel Cunha (soro)


Re: Conditional properties to EntityManagerFactory

2015-07-15 Thread Daniel Cunha
Hi Felipe,

you can inject EntityManager with @PersistenceContext
http://docs.oracle.com/javaee/6/api/javax/persistence/PersistenceContext.html
Configure your persistence like this persistence.xml
https://github.com/apache/tomee/blob/master/examples/jpa-hibernate/src/main/resources/META-INF/persistence.xml

Inject your EntityManager like this:
https://github.com/apache/tomee/blob/master/examples/jpa-hibernate/src/main/java/org/superbiz/injection/h3jpa/Movies.java#L29-L30

See the sample (try running, test and explore it):
https://github.com/apache/tomee/tree/master/examples/jpa-hibernate


On Wed, Jul 15, 2015 at 2:36 PM, Felipe Jaekel fkjae...@gmail.com wrote:

 Hi,

 I need to enable Hibernate SQL output only when my webapp in running on my
 dev environment.

 On Tomcat since I could do something like this:


 MapString, String properties = new HashMapString, String();
  if(ServerUtil.isLocal())
  {
  properties.put(hibernate.show_sql, true);
  properties.put(hibernate.format_sql, true);
  }
  emf = Persistence.createEntityManagerFactory(PERSISTENCE_UNIT,
 properties);



 Is there any way I can do something similar with the injected
 EntityManagerFactory on TomEE?

 Thanks




-- 
Best regard,
Daniel Cunha (soro)


Re: ServletContainerInitializer

2015-06-07 Thread Daniel Cunha
Hi Mauro,

you define the configuration of the JAAS in server.xml.

You can see examples like:
https://github.com/apache/tomee/tree/master/examples/rest-jaas
https://github.com/apache/tomee/tree/master/examples/cdi-realm
https://github.com/apache/tomee/tree/master/examples/realm-in-tomee

Maybe this can help you. :)
CDI Realm.. It seem very cool! (I didn't know)


On Sun, Jun 7, 2015 at 7:55 AM, mauro2java2011 mauro2java2...@gmail.com
wrote:

 What sisgnify global ?  For all  webapps on tomee ? But into that case it
 is eqyals for all.
 Howvis read from tomee the system.properties whut word global ?
 Il 07/giu/2015 00:30, Daniel Cunha [via TomEE  OpenEJB] 
 ml-node+s979440n4675180...@n4.nabble.com ha scritto:

  Hi Mauro,
 
  in line
 
 
  On Sat, Jun 6, 2015 at 6:44 PM, mauro2java2011 [hidden email]
  http:///user/SendEmail.jtp?type=nodenode=4675180i=0
  wrote:
 
   Hi all.
  
   From
  
  
 
 http://docs.oracle.com/javaee/6/api/javax/servlet/ServletContainerInitializer.html
   
  
 
 http://docs.oracle.com/javaee/6/api/javax/servlet/ServletContainerInitializer.html
   
   i have read on mechanism of META-INF/services/
  
   So i have understand that i can to make  some initialization on
  container
   from jar put into web-inf/lib/*.jars.
   But i not understund The annotation  HandlesTypes.
  
   Where i have to put?
  
 
  About HandleTypes, you can look a good sample and explanation here:
  http://www.codejava.net/java-ee/servlet/handlestypes-annotation-examples
 
  Other question:
 
  
   Suppose that into a jar into web-inf/lib of a webapp i put a class
 named
   myServletContainerInitializer that implement
 ServletContainerInitializer
  .
   Into method onStartup i set for example the fileconfig for ModuleLigin
  of
   jaas.  So i can to make a different configuration for each webapps ? Or
  the
   fileconfig for ModuleLogin of jaas  is equals for all webapps deployed
 ?
  
   Pratically my questionvitvis : i can set systemProperties with same key
   but
   different value for each webapps for configure different modulelogin
 for
   each webapp  depoyed on tomee?
  
  
  If I understand your question.. I'll say:
  Yes, you can do it,  since that your classloader is independent by
 webapp.
 
  It's similar like this:
 
 
 https://github.com/tomitribe/agoncal-application-petstore-ee6/tree/master/src/main/tomee/conf
 
  I can have the same configuration (keys), but different value for each
  deploy (context).
 
 
   Mauro
  
  
  
  
  
   --
   View this message in context:
  
 
 http://tomee-openejb.979440.n4.nabble.com/ServletContainerInitializer-tp4675178.html
   Sent from the TomEE Users mailing list archive at Nabble.com.
  
 
 
 
  --
  Best regard,
  Daniel Cunha (soro)
 
 
  --
   If you reply to this email, your message will be added to the discussion
  below:
 
 
 http://tomee-openejb.979440.n4.nabble.com/ServletContainerInitializer-tp4675178p4675180.html
   To unsubscribe from ServletContainerInitializer, click here
  
 http://tomee-openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4675178code=bWF1cm8yamF2YTIwMTFAZ21haWwuY29tfDQ2NzUxNzh8LTExMTcxODc2MjU=
 
  .
  NAML
  
 http://tomee-openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
 
 




 --
 View this message in context:
 http://tomee-openejb.979440.n4.nabble.com/ServletContainerInitializer-tp4675178p4675186.html
 Sent from the TomEE Users mailing list archive at Nabble.com.




-- 
Best regard,
Daniel Cunha (soro)


Re: ServletContainerInitializer

2015-06-06 Thread Daniel Cunha
Hi Mauro,

in line


On Sat, Jun 6, 2015 at 6:44 PM, mauro2java2011 mauro2java2...@gmail.com
wrote:

 Hi all.

 From

 http://docs.oracle.com/javaee/6/api/javax/servlet/ServletContainerInitializer.html
 
 http://docs.oracle.com/javaee/6/api/javax/servlet/ServletContainerInitializer.html
 
 i have read on mechanism of META-INF/services/

 So i have understand that i can to make  some initialization on container
 from jar put into web-inf/lib/*.jars.
 But i not understund The annotation  HandlesTypes.

 Where i have to put?


About HandleTypes, you can look a good sample and explanation here:
http://www.codejava.net/java-ee/servlet/handlestypes-annotation-examples

Other question:

 Suppose that into a jar into web-inf/lib of a webapp i put a class named
 myServletContainerInitializer that implement ServletContainerInitializer .
 Into method onStartup i set for example the fileconfig for ModuleLigin of
 jaas.  So i can to make a different configuration for each webapps ? Or the
 fileconfig for ModuleLogin of jaas  is equals for all webapps deployed ?

 Pratically my questionvitvis : i can set systemProperties with same key
 but
 different value for each webapps for configure different modulelogin for
 each webapp  depoyed on tomee?


If I understand your question.. I'll say:
Yes, you can do it,  since that your classloader is independent by webapp.

It's similar like this:
https://github.com/tomitribe/agoncal-application-petstore-ee6/tree/master/src/main/tomee/conf

I can have the same configuration (keys), but different value for each
deploy (context).


 Mauro





 --
 View this message in context:
 http://tomee-openejb.979440.n4.nabble.com/ServletContainerInitializer-tp4675178.html
 Sent from the TomEE Users mailing list archive at Nabble.com.




-- 
Best regard,
Daniel Cunha (soro)


Re: tomee webapp overlay. it midify the server.xml of existent plain tomcat?

2015-06-06 Thread Daniel Cunha
So cool! I didn't know it.

I can see that I need study more about TomEE's ecosystem. ;)

On Sat, Jun 6, 2015 at 7:37 PM, Romain Manni-Bucau rmannibu...@gmail.com
wrote:

 2015-06-07 0:05 GMT+02:00 mauro2java2011 mauro2java2...@gmail.com:

  Tomee webapp overlay.
 
 
 
 https://rmannibucau.wordpress.com/2014/05/30/war-overlay-tomee-to-deploy-your-ee-application-in-tomcat/
  
 
 https://rmannibucau.wordpress.com/2014/05/30/war-overlay-tomee-to-deploy-your-ee-application-in-tomcat/
  
  .
 
  I have read how integrate tomee into a web app for use jee Features like
  ejb
  for example And use into a existent plain tomcat.
 
  But from  http://tomee.apache.org/installation-drop-in-war.html
  http://tomee.apache.org/installation-drop-in-war.html
   Page , i read that the drop war tomee modify the plain tomcat where it
 is
  deployed. For example  add a tomeeListener into server.xml and change
 other
  jars for example el .
 
  So i ask: how work the  tomee-overlay-runner and if  it modify the
  server.xml of existent tomcat for add toneelistenertoneelistenerwrr ?
 
 
 
 overlay idea is to merge your webapp and tomee one to avoid the issues has
 raw drop in war solution (without additional config) like not deterministic
 startup etc...


 
 
  --
  View this message in context:
 
 http://tomee-openejb.979440.n4.nabble.com/tomee-webapp-overlay-it-midify-the-server-xml-of-existent-plain-tomcat-tp4675179.html
  Sent from the TomEE Users mailing list archive at Nabble.com.
 




-- 
Best regard,
Daniel Cunha (soro)


Re: Installation of TomEE

2015-05-12 Thread Daniel Cunha
)
  at
 org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
 eSupport.java:117)
  at
 org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBa
 se.java:90)
  at
 org.apache.catalina.core.StandardContext.startInternal(StandardContex
 t.java:5378)
  at
 org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
  ... 10 more

 May 12, 2015 11:21:49 PM org.apache.catalina.startup.HostConfig
 deployDirectory
 SEVERE: Error deploying web application directory C:\Program
 Files\Java\apache-t
 omee-plume-1.7.1\webapps\tomee
 java.lang.IllegalStateException: ContainerBase.addChild: start:
 org.apache.catal
 ina.LifecycleException: Failed to start component
 [StandardEngine[Catalina].Stan
 dardHost[localhost].StandardContext[/tomee]]
  at
 org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
 .java:904)
  at
 org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:87
 7)
  at
 org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649)

  at
 org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.jav
 a:1247)
  at
 org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig
 .java:1898)
  at java.util.concurrent.Executors$RunnableAdapter.call(Unknown
 Source)
  at java.util.concurrent.FutureTask.run(Unknown Source)
  at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown
 Source)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
 Source)
  at java.lang.Thread.run(Unknown Source)

 May 12, 2015 11:21:49 PM org.apache.catalina.startup.HostConfig
 deployDirectory
 INFO: Deployment of web application directory C:\Program
 Files\Java\apache-tomee
 -plume-1.7.1\webapps\tomee has finished in 92 ms
 May 12, 2015 11:21:49 PM org.apache.coyote.AbstractProtocol start
 INFO: Starting ProtocolHandler [http-bio-8080]
 May 12, 2015 11:21:49 PM org.apache.coyote.AbstractProtocol start
 INFO: Starting ProtocolHandler [ajp-bio-8009]
 May 12, 2015 11:21:49 PM org.apache.catalina.startup.Catalina start
 INFO: Server startup in 822 ms




 --
 View this message in context:
 http://tomee-openejb.979440.n4.nabble.com/Installation-of-TomEE-tp4674759p4674765.html
 Sent from the TomEE Users mailing list archive at Nabble.com.


 --
   Andy Gumbrecht
   https://twitter.com/AndyGeeDe
   http://www.tomitribe.com




-- 
Best regard,
Daniel Cunha (soro)


Re: Installation of TomEE

2015-05-12 Thread Daniel Cunha
Psrakesh,

Can you run startup.bat in foreground!?
TomEE should shows status of what is happening in your cmd. :)

On Tue, May 12, 2015 at 6:51 PM, psrakesh rakesh.pis...@gmail.com wrote:

 Andy
 Checked that folder. Surprisingly, there are no log files. I am using
 startup.bat. Do I need to make configuration changes to enable logging?



 --
 View this message in context:
 http://tomee-openejb.979440.n4.nabble.com/Installation-of-TomEE-tp4674759p4674763.html
 Sent from the TomEE Users mailing list archive at Nabble.com.




-- 
Best regard,
Daniel Cunha (soro)


A client to manage your Apache TomEE instances

2015-04-13 Thread Daniel Cunha
Hello everyone,

I'm glad to announce today the release of Tomee-cli, a command line
tool to manage your Apache TomEE instances.

https://github.com/bitmaker-software/tomee-cli

We decided to think out of the box and come up with a solution that's
easy to use and develop, offering the maximum number of
functionalities with a minimum amount of code. To achieve that, we
wrote the tool in Clojure (a JVM hosted language) and we use its REPL
to offer the command line facilities. It's so straightforward to use
that we probably are more user friendly than JBoss-cli.

We currently support the following functionalities:

install tomee
start server
stop server
restart server
print versions of the execution environment
deploy war and ear applications
undeploy war and ear applications
add email resource
add datasource
add JMS resource

All these functionalities were written in less than 300 lines of code
within just over a month (started in Mar 9th) . Can you imagine what
we can achieve within a year?!

We already use tomee-cli internally and we're happy with the result.
We would love to see you using it as well. So, please, follow the
instructions in the readme file, try it and let us know what you
think.

The project is open, so you can help like do you want.

-- 
Best regard,
Daniel Cunha (soro)


Re: A client to manage your Apache TomEE instances

2015-04-13 Thread Daniel Cunha
Another thing that we want to do, interoperability between Clojure and Java,
it's by creating a JBoss Forge addon, so you can run the tool within
JBoss Forge.

On Mon, Apr 13, 2015 at 5:20 PM, Daniel Cunha daniels...@gmail.com wrote:
 Hello everyone,

 I'm glad to announce today the release of Tomee-cli, a command line
 tool to manage your Apache TomEE instances.

 https://github.com/bitmaker-software/tomee-cli

 We decided to think out of the box and come up with a solution that's
 easy to use and develop, offering the maximum number of
 functionalities with a minimum amount of code. To achieve that, we
 wrote the tool in Clojure (a JVM hosted language) and we use its REPL
 to offer the command line facilities. It's so straightforward to use
 that we probably are more user friendly than JBoss-cli.

 We currently support the following functionalities:

 install tomee
 start server
 stop server
 restart server
 print versions of the execution environment
 deploy war and ear applications
 undeploy war and ear applications
 add email resource
 add datasource
 add JMS resource

 All these functionalities were written in less than 300 lines of code
 within just over a month (started in Mar 9th) . Can you imagine what
 we can achieve within a year?!

 We already use tomee-cli internally and we're happy with the result.
 We would love to see you using it as well. So, please, follow the
 instructions in the readme file, try it and let us know what you
 think.

 The project is open, so you can help like do you want.

 --
 Best regard,
 Daniel Cunha (soro)



-- 
Best regard,
Daniel Cunha (soro)


Re: TomEE 1.7.1 - javax.mail.Session

2015-03-19 Thread Daniel Cunha
Thank you Andy. :)

On Thu, Mar 19, 2015 at 5:31 PM, Andy andy...@gmx.de wrote:
 It's the geronimo-javamail_1.4_spec

 On 19/03/2015 20:17, Daniel Cunha wrote:

 The org.apache.openejb:javaee-api not include javax.mail!?


 --
   Andy Gumbrecht
   https://twitter.com/AndyGeeDe




-- 
Best regard,
Daniel Cunha (soro)


Re: TomEE 1.7 + JSF 2.2 + Flows = UnmarshalException

2015-02-26 Thread Daniel Cunha
Jean,

Have a date for this first milestone?

On Thu, Feb 26, 2015 at 11:51 AM, Jean-Louis Monteiro
jlmonte...@tomitribe.com wrote:
 TomEE 1.x is Java EE 6 so not JSF 2.2 compliant (Java EE 7).
 This is the reason.

 If you need JSF 2.2, you need to switch to Apache TomEE 2.x
 We will soon release a first milestone.

 JLouis

 --
 Jean-Louis Monteiro
 http://twitter.com/jlouismonteiro
 http://www.tomitribe.com

 On Thu, Feb 26, 2015 at 3:39 PM, DonatasCiuksys donatas.ciuk...@mitsoft.lt
 wrote:

 I was hapilly using MyFaces 2.2.x with TomEE 1.7 Plus until I tried to use
 FlowScope. As soon as faces-config.xml started containing:

 navigation-case
 ...
 to-flow-document-id /
 /navigation-case

 TomEE crashed during start-up with:

 Caused by: javax.xml.bind.UnmarshalException: Unexpected element
 {http://xmlns.jcp.org/xml/ns/javaee}to-flow-document-id, expected
 [{http://java.sun.com/xml/ns/javaee}description,
 {http://java.sun.com/xml/ns/javaee}display-name,
 {http://java.sun.com/xml/ns/javaee}icon,
 {http://java.sun.com/xml/ns/javaee}from-action,
 {http://java.sun.com/xml/ns/javaee}from-outcome,
 {http://java.sun.com/xml/ns/javaee}if,
 {http://java.sun.com/xml/ns/javaee}to-view-id,
 {http://java.sun.com/xml/ns/javaee}redirect]
 at

 org.metatype.sxc.jaxb.RuntimeContext.validationError(RuntimeContext.java:390)

 So, new JSF 2.2 features are a no-no with TomEE 1.7? Or is it just a matter
 of faces-config schema upgrade?



 --
 View this message in context:
 http://tomee-openejb.979440.n4.nabble.com/TomEE-1-7-JSF-2-2-Flows-UnmarshalException-tp4673897.html
 Sent from the TomEE Users mailing list archive at Nabble.com.




-- 
Daniel Cunha (soro)


Re: annotation @Email validation into entity Customer . I get errors from ide

2015-02-25 Thread Daniel Cunha
Or,

you can update the project to use last tomee version. 2.0.0-SNAPSHOT.
Nops!?

On Wed, Feb 25, 2015 at 9:51 AM, Daniel Cunha daniels...@gmail.com wrote:
 Romain,

 this case, isn't possible update bval for 1.1?
 We have the @Email validation in bval 1.1. So.. he only needs change the 
 import.
 https://github.com/apache/bval/blob/bval-11/bval-jsr/src/main/java/org/apache/bval/constraints/Email.java

 On Wed, Feb 25, 2015 at 9:41 AM, Romain Manni-Bucau
 rmannibu...@gmail.com wrote:
 More or less yes, depending the hibernate-validator version @Email is
 backed by few more logic or just a regex:
 http://grepcode.com/file_/repo1.maven.org/maven2/org.hibernate/hibernate-validator/4.2.0.Final/org/hibernate/validator/constraints/impl/EmailValidator.java/?v=source

 this source has some comments about the regex the validator uses -
 which is surely better than mine.


 Romain Manni-Bucau
 @rmannibucau
 http://www.tomitribe.com
 http://rmannibucau.wordpress.com
 https://github.com/rmannibucau


 2015-02-25 13:30 GMT+01:00 mauro2java2011 mauro2java2...@gmail.com:
 I can substitute the annotatation @Email with thd annotatiob @Pattern with
 regex that you have writed ?

 do you have a link for a simple ecpkanation for understand regex ?

 Tank you .mauro



 --
 View this message in context: 
 http://tomee-openejb.979440.n4.nabble.com/annotation-Email-validation-into-entity-Customer-I-get-errors-from-ide-tp4673886p4673888.html
 Sent from the TomEE Users mailing list archive at Nabble.com.



 --
 Daniel Cunha (soro)



-- 
Daniel Cunha (soro)


Re: [CDI - OpenWebBeans] explicit no arg constructor

2014-12-20 Thread Daniel Cunha
Romain,

Exactly!

Salim,
if you want inject your dependencies in constructor, yes, you need to
implement default constructor as well. :)

On Sat, Dec 20, 2014 at 3:42 PM, Romain Manni-Bucau rmannibu...@gmail.com
wrote:

 Hi

 Is it scoped or intercepted beans? If so spec is explicit and it is needed
 IIRC


 Romain Manni-Bucau
 @rmannibucau
 http://www.tomitribe.com
 http://rmannibucau.wordpress.com
 https://github.com/rmannibucau


 2014-12-20 16:34 GMT+01:00  salim.ma...@laposte.net:
  Hello All,
 
  im currently trying to run an app based on Vraptor Framework with tomee
 2.0.
 
  unfortunately im facing an issue with proxyable beans.
 
  the issue is that openweb beans need an explicit default constructor and
 Vraptor CDI objects doesn't implement it.
 
  in the other hand the same application is running fine on WildFly with
 Weld implementation.
 
  my question is, should i suggest something to Vraptor guys if the CDI
 spec doesnt define this aspect or should i get in touch with OWB guys to
 check with this issue?
 
 
  thanks in advance
 
  Salim
 
 




-- 
Daniel Cunha (soro)


Re: TomEE plans for Java EE 7

2014-12-11 Thread Daniel Cunha
Roberto,

sometimes I don't believe that Romain is an human.

On Thu, Dec 11, 2014 at 9:47 AM, Roberto Cortez radcor...@yahoo.com.invalid
 wrote:

 Wow! That was fast! Thank you :)
 Building now...
   From: Romain Manni-Bucau rmannibu...@gmail.com
  To: Roberto Cortez radcor...@yahoo.com; users@tomee.apache.org 
 users@tomee.apache.org
  Sent: Thursday, December 11, 2014 8:43 AM
  Subject: Re: TomEE plans for Java EE 7

 should be ok now


 Romain Manni-Bucau
 @rmannibucau
 http://www.tomitribe.com
 http://rmannibucau.wordpress.com
 https://github.com/rmannibucau




 2014-12-11 9:01 GMT+01:00 Romain Manni-Bucau rmannibu...@gmail.com:
  Hi Roberto.
 
  you are right, will fix it quickly
 
  Le 11 déc. 2014 03:05, Roberto Cortez radcor...@yahoo.com.invalid a
  écrit :
 
  This one is fixed :)
  I was looking into some other errors, namely:
 
 https://javaee-support.ci.cloudbees.com/job/javaee7-samples-tomee-2.0/4/org.javaee7.jaxrs$singleton/#showFailuresLink
 
  And appears that TomEE is not supporting REST Singleton Resources. For
  what I can tell, it's relying on this implementation:
  OpenEJBPerRequestPojoResourceProvider, created here
  org/apache/openejb/server/cxf/rs/CxfRsHttpListener.java:533
  Is this correct?
  Cheers,Roberto
   From: Roberto Cortez radcor...@yahoo.com.INVALID
   To: users@tomee.apache.org users@tomee.apache.org
   Sent: Thursday, December 4, 2014 10:21 PM
   Subject: Re: TomEE plans for Java EE 7
 
  Yeah we need to do something about it :)
   From: Romain Manni-Bucau rmannibu...@gmail.com
 
 
   To: users@tomee.apache.org users@tomee.apache.org
   Sent: Thursday, December 4, 2014 9:21 PM
   Subject: Re: TomEE plans for Java EE 7
 
  hehe love this error:
 
 
 https://javaee-support.ci.cloudbees.com/job/javaee7-samples-tomee-2.0/4/org.javaee7.jaxrs$jaxrs-client/console
 
 
 expected:[{[name:Penny,age:1},{name:Leonard,age:2},{name:Sheldon,age:3]}]
  but
 
 was:[{[age:1,name:Penny},{age:2,name:Leonard},{age:3,name:Sheldon]}]
 
 
  Romain Manni-Bucau
  @rmannibucau
  http://www.tomitribe.com
  http://rmannibucau.wordpress.com
  https://github.com/rmannibucau
 
 
  2014-12-04 19:59 GMT+01:00 Romain Manni-Bucau rmannibu...@gmail.com:
   It does yes
  
   Le 4 déc. 2014 19:30, tibor17 tibo...@lycos.com a écrit :
  
   There is only one failing bug with transactions in
   CloudBees.javaee7-samples.
   Do you think that the most usual usecase with @Transactional would
 work
   now
   with Tomee 2.0.0-SNAPSHOT ?
  
  
  
   --
   View this message in context:
  
  
 http://tomee-openejb.979440.n4.nabble.com/TomEE-plans-for-Java-EE-7-tp4663386p4673135.html
   Sent from the TomEE Users mailing list archive at Nabble.com.
 
 
 
 






-- 
Daniel Cunha (soro) http://www.cejug.net
Blog: http://www.danielsoro.com.br
Twitter: https://twitter.com/dvlc_
GitHub: https://github.com/danielsoro
LinkedIn:  http://www.linkedin.com/in/danielvlcunha


Re: TomEE plans for Java EE 7

2014-12-11 Thread Daniel Cunha
I try. But, it doesn't like me. :(

On Thu, Dec 11, 2014 at 4:42 PM, Romain Manni-Bucau rmannibu...@gmail.com
wrote:

 CDI TCKs are just waiting few love ;)


 Romain Manni-Bucau
 @rmannibucau
 http://www.tomitribe.com
 http://rmannibucau.wordpress.com
 https://github.com/rmannibucau


 2014-12-11 16:55 GMT+01:00 Roberto Cortez radcor...@yahoo.com.invalid:
  You need to leave something for the rest of us to contribute :)
From: Jean-Louis Monteiro jlmonte...@tomitribe.com
   To: users@tomee.apache.org
   Sent: Thursday, December 11, 2014 10:41 AM
   Subject: Re: TomEE plans for Java EE 7
 
  Not sure it's the only reason. Romain has a daemon for mailing list and
  probably another one for source code.
 
  --
  Jean-Louis Monteiro
  http://twitter.com/jlouismonteiro
  http://www.tomitribe.com
 
 
 
  On Thu, Dec 11, 2014 at 11:19 AM, Romain Manni-Bucau 
 rmannibu...@gmail.com
  wrote:
 
  TomEE code is very simple and extensible, that's the reason :p
 
 
  Romain Manni-Bucau
  @rmannibucau
  http://www.tomitribe.com
  http://rmannibucau.wordpress.com
  https://github.com/rmannibucau
 
 
  2014-12-11 11:18 GMT+01:00 Daniel Cunha daniels...@gmail.com:
   Roberto,
  
   sometimes I don't believe that Romain is an human.
  
   On Thu, Dec 11, 2014 at 9:47 AM, Roberto Cortez
  radcor...@yahoo.com.invalid
   wrote:
  
   Wow! That was fast! Thank you :)
   Building now...
From: Romain Manni-Bucau rmannibu...@gmail.com
To: Roberto Cortez radcor...@yahoo.com; users@tomee.apache.org
 
   users@tomee.apache.org
Sent: Thursday, December 11, 2014 8:43 AM
Subject: Re: TomEE plans for Java EE 7
  
   should be ok now
  
  
   Romain Manni-Bucau
   @rmannibucau
   http://www.tomitribe.com
   http://rmannibucau.wordpress.com
   https://github.com/rmannibucau
  
  
  
  
   2014-12-11 9:01 GMT+01:00 Romain Manni-Bucau rmannibu...@gmail.com
 :
Hi Roberto.
   
you are right, will fix it quickly
   
Le 11 déc. 2014 03:05, Roberto Cortez
 radcor...@yahoo.com.invalid
  a
écrit :
   
This one is fixed :)
I was looking into some other errors, namely:
   
  
 
 https://javaee-support.ci.cloudbees.com/job/javaee7-samples-tomee-2.0/4/org.javaee7.jaxrs$singleton/#showFailuresLink
   
And appears that TomEE is not supporting REST Singleton Resources.
  For
what I can tell, it's relying on this implementation:
OpenEJBPerRequestPojoResourceProvider, created here
org/apache/openejb/server/cxf/rs/CxfRsHttpListener.java:533
Is this correct?
Cheers,Roberto
 From: Roberto Cortez radcor...@yahoo.com.INVALID
 To: users@tomee.apache.org users@tomee.apache.org
 Sent: Thursday, December 4, 2014 10:21 PM
 Subject: Re: TomEE plans for Java EE 7
   
Yeah we need to do something about it :)
 From: Romain Manni-Bucau rmannibu...@gmail.com
   
   
 To: users@tomee.apache.org users@tomee.apache.org
 Sent: Thursday, December 4, 2014 9:21 PM
 Subject: Re: TomEE plans for Java EE 7
   
hehe love this error:
   
   
  
 
 https://javaee-support.ci.cloudbees.com/job/javaee7-samples-tomee-2.0/4/org.javaee7.jaxrs$jaxrs-client/console
   
   
  
 
 expected:[{[name:Penny,age:1},{name:Leonard,age:2},{name:Sheldon,age:3]}]
but
   
  
 
 was:[{[age:1,name:Penny},{age:2,name:Leonard},{age:3,name:Sheldon]}]
   
   
Romain Manni-Bucau
@rmannibucau
http://www.tomitribe.com
http://rmannibucau.wordpress.com
https://github.com/rmannibucau
   
   
2014-12-04 19:59 GMT+01:00 Romain Manni-Bucau 
 rmannibu...@gmail.com
  :
 It does yes

 Le 4 déc. 2014 19:30, tibor17 tibo...@lycos.com a écrit :

 There is only one failing bug with transactions in
 CloudBees.javaee7-samples.
 Do you think that the most usual usecase with @Transactional
 would
   work
 now
 with Tomee 2.0.0-SNAPSHOT ?



 --
 View this message in context:


  
 
 http://tomee-openejb.979440.n4.nabble.com/TomEE-plans-for-Java-EE-7-tp4663386p4673135.html
 Sent from the TomEE Users mailing list archive at Nabble.com.
   
   
   
   
  
  
  
  
  
  
   --
   Daniel Cunha (soro) http://www.cejug.net
   Blog: http://www.danielsoro.com.br
   Twitter: https://twitter.com/dvlc_
   GitHub: https://github.com/danielsoro
   LinkedIn:  http://www.linkedin.com/in/danielvlcunha
 
 
 




-- 
Daniel Cunha (soro) http://www.cejug.net
Blog: http://www.danielsoro.com.br
Twitter: https://twitter.com/dvlc_
GitHub: https://github.com/danielsoro
LinkedIn:  http://www.linkedin.com/in/danielvlcunha


Re: TomEE plans for Java EE 7

2014-12-11 Thread Daniel Cunha
Thank you Romain. :)

On Thu, Dec 11, 2014 at 5:00 PM, Romain Manni-Bucau rmannibu...@gmail.com
wrote:

 if you need help just ask, once set up it is just adding few missing
 code (basically EE-CDI integration as far as i saw)


 Romain Manni-Bucau
 @rmannibucau
 http://www.tomitribe.com
 http://rmannibucau.wordpress.com
 https://github.com/rmannibucau


 2014-12-11 17:58 GMT+01:00 Daniel Cunha daniels...@gmail.com:
  I try. But, it doesn't like me. :(
 
  On Thu, Dec 11, 2014 at 4:42 PM, Romain Manni-Bucau 
 rmannibu...@gmail.com
  wrote:
 
  CDI TCKs are just waiting few love ;)
 
 
  Romain Manni-Bucau
  @rmannibucau
  http://www.tomitribe.com
  http://rmannibucau.wordpress.com
  https://github.com/rmannibucau
 
 
  2014-12-11 16:55 GMT+01:00 Roberto Cortez radcor...@yahoo.com.invalid
 :
   You need to leave something for the rest of us to contribute :)
 From: Jean-Louis Monteiro jlmonte...@tomitribe.com
To: users@tomee.apache.org
Sent: Thursday, December 11, 2014 10:41 AM
Subject: Re: TomEE plans for Java EE 7
  
   Not sure it's the only reason. Romain has a daemon for mailing list
 and
   probably another one for source code.
  
   --
   Jean-Louis Monteiro
   http://twitter.com/jlouismonteiro
   http://www.tomitribe.com
  
  
  
   On Thu, Dec 11, 2014 at 11:19 AM, Romain Manni-Bucau 
  rmannibu...@gmail.com
   wrote:
  
   TomEE code is very simple and extensible, that's the reason :p
  
  
   Romain Manni-Bucau
   @rmannibucau
   http://www.tomitribe.com
   http://rmannibucau.wordpress.com
   https://github.com/rmannibucau
  
  
   2014-12-11 11:18 GMT+01:00 Daniel Cunha daniels...@gmail.com:
Roberto,
   
sometimes I don't believe that Romain is an human.
   
On Thu, Dec 11, 2014 at 9:47 AM, Roberto Cortez
   radcor...@yahoo.com.invalid
wrote:
   
Wow! That was fast! Thank you :)
Building now...
 From: Romain Manni-Bucau rmannibu...@gmail.com
 To: Roberto Cortez radcor...@yahoo.com; 
 users@tomee.apache.org
  
users@tomee.apache.org
 Sent: Thursday, December 11, 2014 8:43 AM
 Subject: Re: TomEE plans for Java EE 7
   
should be ok now
   
   
Romain Manni-Bucau
@rmannibucau
http://www.tomitribe.com
http://rmannibucau.wordpress.com
https://github.com/rmannibucau
   
   
   
   
2014-12-11 9:01 GMT+01:00 Romain Manni-Bucau 
 rmannibu...@gmail.com
  :
 Hi Roberto.

 you are right, will fix it quickly

 Le 11 déc. 2014 03:05, Roberto Cortez
  radcor...@yahoo.com.invalid
   a
 écrit :

 This one is fixed :)
 I was looking into some other errors, namely:

   
  
 
 https://javaee-support.ci.cloudbees.com/job/javaee7-samples-tomee-2.0/4/org.javaee7.jaxrs$singleton/#showFailuresLink

 And appears that TomEE is not supporting REST Singleton
 Resources.
   For
 what I can tell, it's relying on this implementation:
 OpenEJBPerRequestPojoResourceProvider, created here
 org/apache/openejb/server/cxf/rs/CxfRsHttpListener.java:533
 Is this correct?
 Cheers,Roberto
  From: Roberto Cortez radcor...@yahoo.com.INVALID
  To: users@tomee.apache.org users@tomee.apache.org
  Sent: Thursday, December 4, 2014 10:21 PM
  Subject: Re: TomEE plans for Java EE 7

 Yeah we need to do something about it :)
  From: Romain Manni-Bucau rmannibu...@gmail.com


  To: users@tomee.apache.org users@tomee.apache.org
  Sent: Thursday, December 4, 2014 9:21 PM
  Subject: Re: TomEE plans for Java EE 7

 hehe love this error:


   
  
 
 https://javaee-support.ci.cloudbees.com/job/javaee7-samples-tomee-2.0/4/org.javaee7.jaxrs$jaxrs-client/console


   
  
 
 expected:[{[name:Penny,age:1},{name:Leonard,age:2},{name:Sheldon,age:3]}]
 but

   
  
 
 was:[{[age:1,name:Penny},{age:2,name:Leonard},{age:3,name:Sheldon]}]


 Romain Manni-Bucau
 @rmannibucau
 http://www.tomitribe.com
 http://rmannibucau.wordpress.com
 https://github.com/rmannibucau


 2014-12-04 19:59 GMT+01:00 Romain Manni-Bucau 
  rmannibu...@gmail.com
   :
  It does yes
 
  Le 4 déc. 2014 19:30, tibor17 tibo...@lycos.com a écrit
 :
 
  There is only one failing bug with transactions in
  CloudBees.javaee7-samples.
  Do you think that the most usual usecase with @Transactional
  would
work
  now
  with Tomee 2.0.0-SNAPSHOT ?
 
 
 
  --
  View this message in context:
 
 
   
  
 
 http://tomee-openejb.979440.n4.nabble.com/TomEE-plans-for-Java-EE-7-tp4663386p4673135.html
  Sent from the TomEE Users mailing list archive at
 Nabble.com.




   
   
   
   
   
   
--
Daniel Cunha (soro) http://www.cejug.net
Blog: http://www.danielsoro.com.br
Twitter: https://twitter.com/dvlc_
GitHub: https://github.com/danielsoro
LinkedIn:  http://www.linkedin.com/in/danielvlcunha

Re: Injection of CDI extension

2014-12-06 Thread Daniel Cunha
 attachments to this message are intended for the exclusive use of the
 address(es) and may contain confidential or privileged information. If
 you are not the intended recipient, please notify Lars-Fredrik Smedberg
 immediately at itsme...@gmail.com, and destroy all copies of this
 message and any attachments.




-- 
Daniel Cunha (soro) http://www.cejug.net
Blog: http://www.danielsoro.com.br
Twitter: https://twitter.com/dvlc_
GitHub: https://github.com/danielsoro
LinkedIn:  http://www.linkedin.com/in/danielvlcunha


Re: migrating jax-ws Application vrom TomEE-Plus To TomEE-JAXRS

2014-10-23 Thread Daniel Cunha
+1

On Thu, Oct 23, 2014 at 7:01 AM, Berner Martin martin.ber...@qualitasag.ch
wrote:

 Hi Romain
 Ok. Think I live with TomEE+ for JAX-WS-Projects and TomEE-JAXRS for the
 Rest of our Applications. - Quite simpler :-)

 About Footprint: didn't check differences between same App running on PLUS
 vs. JAXRS. Only thought because of view more jars potentially loaded and so
 using more RAM, blabla .. :-)
 I'm happy with TomEE anyway :-) Grate Project!

 Martin



 -Ursprüngliche Nachricht-
 Von: Romain Manni-Bucau [mailto:rmannibu...@tomitribe.com]
 Gesendet: Donnerstag, 23. Oktober 2014 10:08
 An: users@tomee.apache.org
 Betreff: Re: migrating jax-ws Application vrom TomEE-Plus To TomEE-JAXRS

 2014-10-23 9:52 GMT+02:00 Berner Martin martin.ber...@qualitasag.ch:
  Hi Romain
 
  do you have/know a concrete Sample?
  EJB is not a must have. Configuring with CDI would be the better Joys
 for us anyway.
 

 Not yet and cxf integrated CDI only for 3.x so will not be working out of
 the box AFAIK but lookup then delegation should be easy.

  Shure I know the other way around it is done with now work. But TomEE+
 is not EE6 certified which is one argument and the other is, that most of
 our applications, expect two, runs on JAXRS which has also the smaller
 footprint.
 

 Mainly curiosity:
 1) do you have figures of this footprint difference if you speak about RAM
 (not sure disk difference is important enough to be an argument ;))?
 2) EE6 certification: it is not certified cause we add JMS, connectors
 etc...but before releasing we ensure same tests pass for plus distribution
 and jaxrs one so why is it a drawback?

 
  Martin
 
 
 
  -Ursprüngliche Nachricht-
  Von: Romain Manni-Bucau [mailto:rmannibu...@tomitribe.com]
  Gesendet: Donnerstag, 23. Oktober 2014 08:21
  An: users@tomee.apache.org
  Betreff: Re: migrating jax-ws Application vrom TomEE-Plus To
  TomEE-JAXRS
 
  Hi
 
  You need to define the webservice as a pojo, configure it in web.xml
 with cxf servlet, import cxf jaxws jars and finally delegate to the
 stateless if you really need an ejb.
 
  Side note: harmonizing on tomee+ is clearly easier since it is no work
 migration normally Le 23 oct. 2014 07:54, Berner Martin 
 martin.ber...@qualitasag.ch a écrit :
 
  Hi,
  I have a JAX-WS Application working perfectly on a TomEE-PLUS.
  SOAP-Webservice correctly recognized by Annotation in a EJB:
 
  @Stateless
  @WebService(name = LBEQualitasService,
  portName = LBEQualitasPort,
  serviceName = LBEQualitasService,
  targetNamespace =
  http://wsdlc.business.fsho.com/;)
  @XmlSeeAlso({
  ObjectFactory.class
  })
  public class LBEQualitas implements ServicesPortType, Serializable {
 private static final long serialVersionUID =
  -1959730900195946000L;
 
 
  For harmonization reason I'd like to let them run on TomEE-JAXRS.
 
  Is there a simple sample, how to do such a migration.
  I know it's not as simple as just deploy the relevant cxf-jars with
  the Application.
 
  Best Regards
  Martin Berner
 




-- 
Daniel Cunha (soro) http://www.cejug.net
Blog: http://www.danielsoro.com.br
Twitter: https://twitter.com/dvlc_
GitHub: https://github.com/danielsoro
LinkedIn:  http://www.linkedin.com/in/danielvlcunha


Re: pom for tomee embedded plus or plume with Arquillan for test

2014-10-18 Thread Daniel Cunha
Hi Mauro,

Maybe this sample can help you:
https://github.com/tomitribe/tomee-jaxrs-starter-project/blob/master/pom.xml
You can read the article here:
http://www.tomitribe.com/blog/2014/06/apache-tomee-jax-rs-and-arquillian-starter-project/
If you want use TomEE+, you need change the tomeeClassifier for plus. :)

I hope help you.

On Sat, Oct 18, 2014 at 4:41 PM, mauro2java2011 mauro2java2...@gmail.com
wrote:

 Hi all.
 I have tried to create a web project from tomee archetype maven.
 but i get  many dependencies with tomee remote for arquillan adapter.

 But i would use tomee embedded version plus or plume 1.7 .

 Please what it is the exact pom ?

 Into mavrn what difference from dependencie tag and dependenciesmanagement
 tag ?

 Mauro




 --
 View this message in context:
 http://tomee-openejb.979440.n4.nabble.com/pom-for-tomee-embedded-plus-or-plume-with-Arquillan-for-test-tp4672424.html
 Sent from the TomEE Users mailing list archive at Nabble.com.




-- 
Daniel Cunha (soro) http://www.cejug.net
Blog: http://www.danielsoro.com.br
Twitter: https://twitter.com/dvlc_
GitHub: https://github.com/danielsoro
LinkedIn:  http://www.linkedin.com/in/danielvlcunha


Re: Tomee 2 Release-Date

2014-07-28 Thread Daniel Cunha
Romain,

Bval has a stable version to Bean Validation 1.1?

--
Daniel Cunha (soro)
Sent from my cell phone.
Em 28/07/2014 08:52, Romain Manni-Bucau rmannibu...@gmail.com escreveu:

 Hi

 will surely be beginning of next year in the best case even if I'd
 like to get a pre release end of this year without all EE 7 features.
 We miss CDI 1.1 and JPA 2.1 to target EE 7  web profile ATM (work in
 progress for CDI, JPA will be tackled after I think).


 Romain Manni-Bucau
 Twitter: @rmannibucau
 Blog: http://rmannibucau.wordpress.com/
 LinkedIn: http://fr.linkedin.com/in/rmannibucau
 Github: https://github.com/rmannibucau


 2014-07-28 13:46 GMT+02:00 Andy Gumbrecht agumbre...@tomitribe.com:
  Hi thanhvinh,
 
  You're kind of jumping the gun there.
 
  We've not even released 1.7.0 yet, so it's kind of hard to map out
 anything
  yet.
 
  TomEE 2.0.0-SNAPSHOT is in progress, but we do not have a solid roadmap
 yet.
  We will work on producing some information as soon as we can.
 
  Of course feel free to dig into the progress of the SNAPSHOT.
 
  Andy.
 
 
  On 27/07/2014 20:40, thanhvinh wrote:
 
  Hi all,
  NetBeans 8 now supported TomEE.  That's a good news.  I'm going to build
  my
  apps based on NB 8, Tomcat 8, Java EE 7.
  So I need to use TomEE 2.  Can you please give us a update on the
 release
  date of TomEE 2?
  Thanks.
 
 
 
 
  --
  View this message in context:
 
 http://tomee-openejb.979440.n4.nabble.com/Tomee-2-Release-Date-tp4670783.html
  Sent from the TomEE Users mailing list archive at Nabble.com.
 
 
 
  --
Andy Gumbrecht
 
http://www.tomitribe.com
agumbre...@tomitribe.com
https://twitter.com/AndyGeeDe
 
TomEE treibt Tomitribe! | http://tomee.apache.org
 



Re: Tomee 2 Release-Date

2014-07-28 Thread Daniel Cunha
Great! ;)

--
Daniel Cunha (soro)
Sent from my cell phone.
Em 28/07/2014 09:43, Romain Manni-Bucau rmannibu...@gmail.com escreveu:

 @Daniel: no release but implementation is done since more or less last
 august


 Romain Manni-Bucau
 Twitter: @rmannibucau
 Blog: http://rmannibucau.wordpress.com/
 LinkedIn: http://fr.linkedin.com/in/rmannibucau
 Github: https://github.com/rmannibucau


 2014-07-28 14:34 GMT+02:00 Daniel Cunha daniels...@gmail.com:
  Romain,
 
  Bval has a stable version to Bean Validation 1.1?
 
  --
  Daniel Cunha (soro)
  Sent from my cell phone.
  Em 28/07/2014 08:52, Romain Manni-Bucau rmannibu...@gmail.com
 escreveu:
 
  Hi
 
  will surely be beginning of next year in the best case even if I'd
  like to get a pre release end of this year without all EE 7 features.
  We miss CDI 1.1 and JPA 2.1 to target EE 7  web profile ATM (work in
  progress for CDI, JPA will be tackled after I think).
 
 
  Romain Manni-Bucau
  Twitter: @rmannibucau
  Blog: http://rmannibucau.wordpress.com/
  LinkedIn: http://fr.linkedin.com/in/rmannibucau
  Github: https://github.com/rmannibucau
 
 
  2014-07-28 13:46 GMT+02:00 Andy Gumbrecht agumbre...@tomitribe.com:
   Hi thanhvinh,
  
   You're kind of jumping the gun there.
  
   We've not even released 1.7.0 yet, so it's kind of hard to map out
  anything
   yet.
  
   TomEE 2.0.0-SNAPSHOT is in progress, but we do not have a solid
 roadmap
  yet.
   We will work on producing some information as soon as we can.
  
   Of course feel free to dig into the progress of the SNAPSHOT.
  
   Andy.
  
  
   On 27/07/2014 20:40, thanhvinh wrote:
  
   Hi all,
   NetBeans 8 now supported TomEE.  That's a good news.  I'm going to
 build
   my
   apps based on NB 8, Tomcat 8, Java EE 7.
   So I need to use TomEE 2.  Can you please give us a update on the
  release
   date of TomEE 2?
   Thanks.
  
  
  
  
   --
   View this message in context:
  
 
 http://tomee-openejb.979440.n4.nabble.com/Tomee-2-Release-Date-tp4670783.html
   Sent from the TomEE Users mailing list archive at Nabble.com.
  
  
  
   --
 Andy Gumbrecht
  
 http://www.tomitribe.com
 agumbre...@tomitribe.com
 https://twitter.com/AndyGeeDe
  
 TomEE treibt Tomitribe! | http://tomee.apache.org
  
 



Re: Post links here of all about TomEE !

2014-05-03 Thread Daniel Cunha
+1


On Sat, May 3, 2014 at 4:24 PM, helio frota 00h...@gmail.com wrote:

 Hail !

 Fellows, to get our community like a fire , what do you think about post
 here links about TomEE slides , blog posts,  tutorials etc... ?

 https://www.youtube.com/watch?v=Lr8pxEACVRI
 https://www.youtube.com/watch?v=SCB4YsWnwUo
 https://www.youtube.com/watch?v=eCrtoSTZ2RE
 https://www.youtube.com/watch?v=rehZfKrptx0
 https://www.youtube.com/watch?v=7GMt9JYjElY
 https://www.youtube.com/watch?v=F5PhKwGFFHs




 ---
 http://eprogramming.github.io




-- 
Att;
Daniel Cunha (soro)


Re: more examples with scala

2014-05-03 Thread Daniel Cunha
Hi Helio,

Thiago Veronezi has example in his blog. :-)
http://buildnplay.blogspot.com.br/2013/04/javaee-with-scala-and-tomee.html


On Sat, May 3, 2014 at 4:17 PM, helio frota 00h...@gmail.com wrote:

 Hi,

 i know tomEE has some samples with scala.. theres some plan to add more
 samples ?

 cheers,
 helio

 ---
 http://eprogramming.github.io




-- 
Att;
Daniel Cunha (soro)


Re: TomEE release schedule?

2014-05-03 Thread Daniel Cunha
Romain is like a robot,

waiting for response...

5, 4, 3


LOL!!! +1


On Sat, May 3, 2014 at 3:48 PM, helio frota 00h...@gmail.com wrote:

 2...1... WHAT ?

 o_0

 i told you..

 ---
 http://eprogramming.github.io



 On Sat, May 3, 2014 at 3:47 PM, Romain Manni-Bucau rmannibu...@gmail.com
 wrote:

  hehe
 
  excepted I don't handle the release so no more idea :p
 
  Basically build should be green back next week and we can fork openjpa
  to release  so technically two weeks is possible.
 
 
 
  Romain Manni-Bucau
  Twitter: @rmannibucau
  Blog: http://rmannibucau.wordpress.com/
  LinkedIn: http://fr.linkedin.com/in/rmannibucau
  Github: https://github.com/rmannibucau
 
 
  2014-05-03 20:44 GMT+02:00 helio frota 00h...@gmail.com:
   Romain is like a robot,
  
   waiting for response...
  
   5, 4, 3
  
  
   ---
   http://eprogramming.github.io
  
  
  
   On Sat, May 3, 2014 at 3:38 PM, helio frota 00h...@gmail.com wrote:
  
   great question !
  
   I don't know  too :p
  
   but would be awesome to know about this !
  
  
  
  
  
   ---
   http://eprogramming.github.io
  
  
  
   On Sat, May 3, 2014 at 3:35 PM, rop rop...@gmail.com wrote:
  
   Is there somewhere a release schedule for TomEE?
  
   Specifically, I was looking for when next release
 TomEE 1.6.1 is planned to come out?
  
  
  
 




-- 
Att;
Daniel Cunha (soro)


Re: Share session across web applications

2014-04-14 Thread Daniel Cunha
I think that this would help you too.
http://tomcat.apache.org/tomcat-7.0-doc/config/host.html#Single_Sign_On


On Mon, Apr 14, 2014 at 12:55 PM, Romain Manni-Bucau
rmannibu...@gmail.comwrote:

 Just activate tomcat session replication
 https://tomcat.apache.org/tomcat-7.0-doc/cluster-howto.html
 Romain Manni-Bucau
 Twitter: @rmannibucau
 Blog: http://rmannibucau.wordpress.com/
 LinkedIn: http://fr.linkedin.com/in/rmannibucau
 Github: https://github.com/rmannibucau



 2014-04-14 10:42 GMT+02:00 john77eipe john77e...@gmail.com:
  Application servers usually have some configuration which enables you to
  share the session across .wars.
  How would you do this in TomEE?
 
 
 
 
  --
  View this message in context:
 http://openejb.979440.n4.nabble.com/Share-session-across-web-applications-tp4668765.html
  Sent from the OpenEJB User mailing list archive at Nabble.com.




-- 
Daniel Cunha (soro)
Twitter http://twitter.com/dvlc_ | Blog http://www.danielsoro.com.br |
LinkedIn http://www.linkedin.com/in/danielvlcunha | *GitHub
https://github.com/danielsoro*


Re: [build error] feedback 3

2014-04-08 Thread Daniel Cunha
   
   
---
http://eprogramming.github.io
   
   
   
On Thu, Apr 3, 2014 at 6:55 AM, helio frota 00h...@gmail.com
   wrote:
   
Thanks Romain !
Going to change the jenkins here !
   
   
---
http://eprogramming.github.io
   
   
   
On Thu, Apr 3, 2014 at 1:46 AM, Romain Manni-Bucau 
rmannibu...@gmail.com wrote:
   
mvn clean install -Pall-adapters actually to make it even
  longer ;)
Le 3 avr. 2014 00:55, helio frota 00h...@gmail.com a
  écrit :
   
 Hi,

 After 8hrs:

 INFO - Removing the timed-out stateful session bean
 instance
 8a3985f9db182be2:405da2ac:14520a73742:-7fac
 INFO - Removing the timed-out stateful session bean
 instance
 8a3985f9db182be2:405da2ac:14520a73742:-7fab
 INFO - Removing the timed-out stateful session bean
 instance
 8a3985f9db182be2:405da2ac:14520a73742:-7faa
 INFO - Removing the timed-out stateful session bean
 instance
 8a3985f9db182be2:405da2ac:14520a73742:-7fa9
 Build was aborted
 Aborted by anonymous
 Finished: ABORTED

 What is the configuration of buildbot ?

 Here is notebook toshiba satellite  dual  core 2.0
 ghz
  3GB
RAM
 ubuntu 13.10 text mode only ( is another notebook )

 I need to configure something or just 'mvn clean install' ?

 Thanks


 ---
 http://eprogramming.github.io



 On Wed, Apr 2, 2014 at 8:50 PM, helio frota 
  00h...@gmail.com
wrote:

 Lot of fun : ]

 [image: Inline image 1]


 ---
 http://eprogramming.github.io



 On Wed, Apr 2, 2014 at 8:42 PM, helio frota 
  00h...@gmail.com
wrote:

 hi,

 * build aborted after 8 hrs +
 * Stalled
 * -Dmaven.test.failure.ignore=true to continue

 full output attached



 ---
 http://eprogramming.github.io




   
   
   
   
   
   
   
   
  
 
 
 
 




-- 
Daniel Cunha (soro)
Twitter http://twitter.com/dvlc_ | Blog http://www.danielsoro.com.br |
LinkedIn http://www.linkedin.com/in/danielvlcunha | *GitHub
https://github.com/danielsoro*


Re: Context in a Restful Service

2014-02-20 Thread Daniel Cunha
Doesn't you need declaring @ApplicationPath in your
de.martinfunk.foo.FooApplication class?


On Thu, Feb 20, 2014 at 11:38 AM, Jean-Louis MONTEIRO jeano...@gmail.comwrote:

 One note: which tomee version?



 2014-02-19 18:36 GMT+01:00 Martin Funk mar...@martinfunk.de:

  Working my way through, Java Web Services up and running.
 
  On Page 69 i stumble over a @Context Annotation
 
  [...]
  import javax.ws.rs.core.Context;
  import javax.ws.rs.core.MediaType;
  import javax.ws.rs.core.Response;
 
  import com.fasterxml.jackson.databind.ObjectMapper;
 
  @Path(/predict)
  public class PredictionsRS {
  @Context
  private ServletContext sctx; // dependency injection
  private static PredictionsList plist; // set in populate()
  [...]
 
  the ServletContext sctx doesnt get initialized, on request the Server
 logs:
 
  ... 37 more
  Caused by: javax.naming.NameNotFoundException: Name
  [comp/env/de.martinfunk.predictions3.PredictionsRS/sctx] is not bound in
  this Context. Unable to find [comp].
  at org.apache.naming.NamingContext.lookup(NamingContext.java:820)
  at org.apache.naming.NamingContext.lookup(NamingContext.java:168)
 
 
  I'm most likely missing something, just not sure what.
  Is there some configuration needed for TomEE to pick up the annotated
  field 'sctx' and inject a ServletContext into it?
 
  mf




 --
 Jean-Louis




-- 
*Daniel Cunha*
Site http://danielsoro.com.br - G
http://github.com/danielsoroitHubhttp://github.com/danielsoro-
LinkedIn http://www.linkedin.com/in/danielvlcunha