Re: EJBContainer and tests

2014-11-19 Thread slawek
Hello, Today I work on my second pc. I get main project from git repo and test works fine. I use only Java 7 on both computers, I use openejb 4.7.1 too: INFO - INFO - OpenEJB http://openejb.apache.org/ INFO -

Re: EJBContainer and tests

2014-11-19 Thread Romain Manni-Bucau
Still ClassRedefiner.redefineClasses in the stack trace or another error? Romain Manni-Bucau @rmannibucau http://www.tomitribe.com http://rmannibucau.wordpress.com https://github.com/rmannibucau 2014-11-19 9:52 GMT+01:00 slawek s.wojciechow...@gmail.com: Hello, Today I work on my second pc.

Re: Apache Shiro

2014-11-19 Thread Alex Soto
I have been reading and it seems that I will not be able to use it without setting a filter in web.xml. Maybe I can create an ApplicationScope bean and create the DefaultSecuritymanager, but not sure if this is going to become unmaintainable or not. El Tue Nov 18 2014 at 4:20:35 PM, Alex Soto

Re: Apache Shiro

2014-11-19 Thread Romain Manni-Bucau
With JL we used a @Singleton @Startup to set up it. That said default usage is great and using and using a localized bridge to CDI is the most maintainable way to proceed ATM IMHO (ie using BeanProvider) Romain Manni-Bucau @rmannibucau http://www.tomitribe.com http://rmannibucau.wordpress.com

Re: Apache Shiro

2014-11-19 Thread Alex Soto
Yes, the problem is that we want to create a REST project and we want to use stateless security with tokens and I am not sure if we will be able to do this in Shiro in some easy way. El Wed Nov 19 2014 at 10:58:30 AM, Romain Manni-Bucau ( rmannibu...@gmail.com) va escriure: With JL we used a

Re: Apache Shiro

2014-11-19 Thread Romain Manni-Bucau
Surely something for shiro list but I see nothing blocking, shiro supports sessionless impl and is pluggable enough to use the token you want (IIRC github has some oauth integration for instance) Romain Manni-Bucau @rmannibucau http://www.tomitribe.com http://rmannibucau.wordpress.com

Re: Testing Best practices - JPA persistence.xml different between Arquillian JUnit test and deploy in Production

2014-11-19 Thread rmpestano
i didnt knew about romain's idea but a i think a bit of maven properties can help: https://github.com/rmpestano/cdi-crud/blob/master/src/test/resources/persistence.xml in my case i change the properties via maven profile. maybe it helps. 2014-11-19 5:01 GMT-02:00 Romain Manni-Bucau [via TomEE

Re: Testing Best practices - JPA persistence.xml different between Arquillian JUnit test and deploy in Production

2014-11-19 Thread jieryn
I'd recommend using Apache Maven to build, test, and deploy your application. Then you can just have src/main/webapp/META-INF/persistence.xml for your production persistence.xml, and src/test/resources/META-INF/persistence.xml as your test persistence.xml, and finally your

Re: Class as return type in subresources

2014-11-19 Thread Sergey Beryozkin
JAX-RS 2.0 ResourceContext.init(MyClass.class) is definitely a more portable way to do it, though the style where a .class is used is a bit intrusive as far as the application code is concerned IMHO, the application code just does what it is supposed to do without having the code which would only

Re: Class as return type in subresources

2014-11-19 Thread Romain Manni-Bucau
Think it does the same excepted .class can use a cdi instance where resourcecontext ignores cdi Le 19 nov. 2014 22:42, Sergey Beryozkin sberyoz...@gmail.com a écrit : JAX-RS 2.0 ResourceContext.init(MyClass.class) is definitely a more portable way to do it, though the style where a .class is

Can't use commons-beanutils.jar in TomEE-plume-1.7.1

2014-11-19 Thread Chris Li
Hi I have an application which needs commons-beanutils.jar dependency. So I put it into my pom.xml file. dependency groupIdcommons-beanutils/groupId artifactIdcommons-beanutils/artifactId version1.9.2/version /dependency I know

Re: Can't use commons-beanutils.jar in TomEE-plume-1.7.1

2014-11-19 Thread Romain Manni-Bucau
Hi Set in conf/system.properties: openejb.classloader.forced-load=org.apache.commons. Le 20 nov. 2014 04:07, Chris Li libo5...@gmail.com a écrit : Hi I have an application which needs commons-beanutils.jar dependency. So I put it into my pom.xml file. dependency