Re: Running openejb as part of JUnit throws Class not found for org.apache.openejb.util.JuliLogStreamFactory$OpenEJBSimpleLayoutHandler

2012-05-31 Thread vishalchangrani
Thank you so much!! that worked... I still dont understand why a fork is needed (was not sure what classpath does the junti inherit when forked is set to true hence didnt use it to begin with) just one more minor thing though..the console output still says... [junit] - Standard Error

Re: JDK version certified with the latest release of tomee-1.0.0

2012-05-31 Thread nj00yy_1
thanks -- View this message in context: http://openejb.979440.n4.nabble.com/JDK-version-certified-with-the-latest-release-of-tomee-1-0-0-tp4655223p4655248.html Sent from the OpenEJB User mailing list archive at Nabble.com.

Feedback on TomEE 1.0.0

2012-05-31 Thread Jim May
Hello, I appreciate the effort the community is putting into TomEE. Unfortunately, it is a nightmare to use when developing applications. The biggest problem is trying to get the dependencies to work together. I use Netbeans IDE and I am trying to setup a restful webservice with Jersey and Eclipse

Re: Feedback on TomEE 1.0.0

2012-05-31 Thread Neale Rudd
Hi Jim, First, thanks for the email. Glad to see you've worked so much with TomEE already and could give some excellent feedback. I've been working with David and one of our main hosting customers on similar issues to yours with migrating a series of Tomcat apps over to TomEE. In the case

Re: Feedback on TomEE 1.0.0

2012-05-31 Thread Romain Manni-Bucau
Hi, not sure about eclipselink but typically hibernate can be put in a webapp and it works well (logically it should be the same for eclipselink) about jersey why don't you try cxf? Well if you can share anything i could have a look. - Romain 2012/5/31 Jim May > Hello, > > I appreciate the

RE: Feedback on TomEE 1.0.0

2012-05-31 Thread David Villacampa Rodriguez
Hi, Your comments are very hard, I think. It could be possible than de problem is in your Netbeans IDE. The java and javac commands need to find your classes (check your classpath), have you tried using a maven project or ant or Eclipse IDE? See you, David -Mensaje original- De: Jim Ma

Re: Feedback on TomEE 1.0.0

2012-05-31 Thread José Luis Cetina
Hi, let me tell you that i have more than 3 weeks triying to set up TomEE with my app, i constantly use this mail list and i can tell you that i CAN finally (yesterday) run my app, before, i was using Glassfish and Eclipselink. Let me tell you my app use this: Apache OpenJPA 2.2.0 Apache OWB Apac

Re: TomEE + CODI + Maven (bug)

2012-05-31 Thread maxtorzito
Thanks, now its working, TomEE with CODI 1.0.5 2012/5/29 Romain Manni-Bucau [via OpenEJB] < ml-node+s979440n4655209...@n4.nabble.com> > it is commited > > - Romain > > > 2012/5/29 maxtorzito <[hidden > email]> > > > > When are u gonna commit

How do you shut down ActiveMQ transport?

2012-05-31 Thread Bjorn Danielsson
Hi guys, I just noticed that TomEE-plus takes a very long time to shutdown if a remote ActiveMQ broker is being used. Has anyone else seen this behaviour? Or could I be doing something strange that causes this? When running "shutdown.sh" Tomcat stops all webapps as usual, but it takes somewhere b

Re: How do you shut down ActiveMQ transport?

2012-05-31 Thread Romain Manni-Bucau
Hi, Dont have it in head but i think AMQ has some url options to shutdown quickly Maybe try to add daemon option to true - Romain Le 31 mai 2012 18:55, "Bjorn Danielsson" a écrit : > Hi guys, > > I just noticed that TomEE-plus takes a very long time > to shutdown if a remote ActiveMQ broker is

RE: How do you shut down ActiveMQ transport?

2012-05-31 Thread Filip Hanik (mailing lists)
Tomcat has a force shutdown option. Make sure you set CATALINA_PID variable to point to a file name, for example in setenv.sh put CATALINA_PID=$CATALINA_BASE/logs/tomcat.pid Then, call './shutdown.sh -force' This will use unix kill and kill -9 as opposed to trying to connect into the JVM. Tom

Guest user

2012-05-31 Thread José Luis Cetina
Hi i have this scenario: I have a page login.xhtml, this page has a ManagedBean (@Named) this managedbean use the request.login(user,pass) method. When i do this: managedbean class: @Resource private EJBContext ejbContext; . . request.login(user,pass); String name = ejbContext.getCallerPrincipa

Re: Feedback on TomEE 1.0.0

2012-05-31 Thread David Blevins
On May 31, 2012, at 7:37 AM, Jim May wrote: > Hello, > > I appreciate the effort the community is putting into TomEE. Unfortunately, > it is a nightmare to use when developing applications. The biggest problem > is trying to get the dependencies to work together. I use Netbeans IDE and > I am tr

Re: Guest user

2012-05-31 Thread Romain Manni-Bucau
Hi, Do you use jaas? - Romain Le 31 mai 2012 20:14, "José Luis Cetina" a écrit : > Hi i have this scenario: > > I have a page login.xhtml, this page has a ManagedBean (@Named) this > managedbean use the request.login(user,pass) method. > > When i do this: > > managedbean class: > > @Resource >

Re: JDK version certified with the latest release of tomee-1.0.0

2012-05-31 Thread Fernando Lozano
Hi, TomEE won't work with JDK7 means "wan't suficiently tested, use at your own risk" or "there are known issues that prevent that, it won't work at all"? Maybe it means "if you try X and Y it won't work, otherwise you should be fine"? JDK6 has EOL at November this year, and Fedora Linux 17

Re: JDK version certified with the latest release of tomee-1.0.0

2012-05-31 Thread Romain Manni-Bucau
Hi, means use it at your own risk. i know we can't compile openjpa with the jdk 7 currently for few reasons but i also know people use TomEE with java 7 at runtime without issues. But note we don't test it with java 7. We clearly want to update it but currently it doesn't only depend on us that'

Re: Guest user

2012-05-31 Thread José Luis Cetina
Yes, im using JAAS 2012/5/31 Romain Manni-Bucau > Hi, > > Do you use jaas? > > - Romain > Le 31 mai 2012 20:14, "José Luis Cetina" a écrit : > > > Hi i have this scenario: > > > > I have a page login.xhtml, this page has a ManagedBean (@Named) this > > managedbean use the request.login(user,pas

Re: Guest user

2012-05-31 Thread Romain Manni-Bucau
can you have a try in an EJB please? (just try to add @Stateless on your managed bean for instance) can you share a sample easy to run? - Romain 2012/6/1 José Luis Cetina > Yes, im using JAAS > > 2012/5/31 Romain Manni-Bucau > > > Hi, > > > > Do you use jaas? > > > > - Romain > > Le 31 mai 2

Re: Guest user

2012-05-31 Thread José Luis Cetina
OK, i can create a sample, but i use DataSourceRealm, are you gonna configure your database? 2012/5/31 Romain Manni-Bucau > can you have a try in an EJB please? (just try to add @Stateless on your > managed bean for instance) > > can you share a sample easy to run? > > - Romain > > > 2012/6/1 Jo

Re: Guest user

2012-05-31 Thread Romain Manni-Bucau
can't you do it with an embedded one? well DataSourceRealm doesn't use JAAS by default i think, maybe that's the issue - Romain 2012/6/1 José Luis Cetina > OK, i can create a sample, but i use DataSourceRealm, are you gonna > configure your database? > > 2012/5/31 Romain Manni-Bucau > > > ca

Re: Guest user

2012-05-31 Thread José Luis Cetina
Sorry, i use DataSourceRealm, i have my user/pass/roles in the DB. 2012/5/31 Romain Manni-Bucau > can't you do it with an embedded one? > > well DataSourceRealm doesn't use JAAS by default i think, maybe that's the > issue > > - Romain > > > 2012/6/1 José Luis Cetina > > > OK, i can create a

Re: Guest user

2012-05-31 Thread Romain Manni-Bucau
having your password in a db is not an issue but i think you should use org.apache.catalina.realm.JAASRealm for instance: so simply implement a custom LoginModule instead of a realm wdyt? - Romain 2012/6/1 José Luis Cetina > Sorry, i use DataSourceRealm, i have my user/pass/ro

Re: Guest user

2012-05-31 Thread José Luis Cetina
I have to read and know how to use this, i always use DataSource or JDBCRealm. (with glassfish). im reading now, do you have something for a quickstart? for share me 2012/5/31 Romain Manni-Bucau > having your password in a db is not an issue but i think you should > use org.apache.catalina.realm

Re: Guest user

2012-05-31 Thread Romain Manni-Bucau
maybe http://rmannibucau.wordpress.com/2012/05/09/tomee-and-its-ssh-connector/ but it uses properties file, it just need a custom login module implementation to use a db. well, before can you test it please? 1) login 2) redirect to your page using your bean - Romain 2012/6/1 José Luis Cetina

Re: Guest user

2012-05-31 Thread José Luis Cetina
Hi i can login and i can navigate (redirect) to my other page, but i dont know why im getting guest user in the login mbean, after that in other mbean i get my "real" user. 2012/5/31 Romain Manni-Bucau > maybe > http://rmannibucau.wordpress.com/2012/05/09/tomee-and-its-ssh-connector/but > it u

Re: Guest user

2012-05-31 Thread Romain Manni-Bucau
so you mean using the flow i described before it works? (sorry, just to be sure to understand) - Romain 2012/6/1 José Luis Cetina > Hi i can login and i can navigate (redirect) to my other page, but i dont > know why im getting guest user in the login mbean, after that in other > mbean i get

Re: Guest user

2012-05-31 Thread José Luis Cetina
Yes, it work 1) Login (form login) using DataSourceRealm 2) Redirect to page2 from my managedbean 2012/5/31 Romain Manni-Bucau > so you mean using the flow i described before it works? (sorry, just to be > sure to understand) > > - Romain > > > 2012/6/1 José Luis Cetina > > > Hi i can login

Re: Guest user

2012-05-31 Thread Romain Manni-Bucau
ok, in fact info from ejbcontext are taken in our securitymodule in tomee we set/unset it from a valve so at the beginning/end of the request...all between is currently ignored so when you log you need another request to get the updated information (from the tomcat realm) - Romain 2012/6/1 Jos

Re: Guest user

2012-05-31 Thread José Luis Cetina
Ok, the what i asked is correct?? "I dont know if this is the desire behaviour or if this happend because the http request isnt finished?" 2012/5/31 Romain Manni-Bucau > ok, > > in fact info from ejbcontext are taken in our securitymodule > > in tomee we set/unset it from a valve so at the begi

Re: Guest user

2012-05-31 Thread José Luis Cetina
I mean this: I dont know if this is the desire behaviour or if this happend because the http request isnt finished? 2012/5/31 José Luis Cetina > Ok, the what i asked is correct?? > > "I dont know if this is the desire behaviour or if this happend because > the http request isnt finished?" > >

Re: Guest user

2012-05-31 Thread Romain Manni-Bucau
i think it should work - Romain 2012/6/1 José Luis Cetina > I mean this: > > I dont know if this is the desire behaviour or if this happend because the > http request isnt finished? > > > > 2012/5/31 José Luis Cetina > > > Ok, the what i asked is correct?? > > > > "I dont know if this is the

Re: Guest user

2012-05-31 Thread José Luis Cetina
i think we are getting confused. If i resume all, this what i asked (the final of the first post) I dont know if this is the desire behavior or if this happend becase the httr request isnt finished? Then you answer me: in fact info from ejbcontext are taken in our securitymodule in tomee we set

Re: Guest user

2012-05-31 Thread Romain Manni-Bucau
this is the current status, but IMO it is buggy, i'll commit soon a TomEEJAASRealm to make it working (replace JAASRealm in the conf) - Romain 2012/6/1 José Luis Cetina > i think we are getting confused. > > If i resume all, this what i asked (the final of the first post) > > I dont know if

Re: Guest user

2012-05-31 Thread José Luis Cetina
Yes, it seems buggy. Where i have to replace? Remember im using DataSourceRealm 2012/5/31 Romain Manni-Bucau > this is the current status, > > but IMO it is buggy, > > i'll commit soon a TomEEJAASRealm to make it working (replace JAASRealm in > the conf) > > - Romain > > > 2012/6/1 José Luis C

Re: Guest user

2012-05-31 Thread Romain Manni-Bucau
in my test i used: but i guess you can replace the jaasrealm by your dsrealm - Romain 2012/6/1 José Luis Cetina > Yes, it seems buggy. > > Where i have to replace? > > Remember im using DataSourceRealm > > 2012/5/31 Romain Manni-Bucau > > > this is the current

Re: Guest user

2012-05-31 Thread Romain Manni-Bucau
here a sample: http://svn.apache.org/repos/asf/openejb/trunk/openejb/examples/cdi-ejbcontext-jaas/ - Romain 2012/6/1 Romain Manni-Bucau > in my test i used: > > > appName="PropertiesLoginModule" > > > userClassNames="org.apache.openejb.core.security.AbstractSecurityService$User

Re: Guest user

2012-05-31 Thread José Luis Cetina
I have this in my context.xml As you can see i extend the datasource realm, i have this realm config in the context.xml in my webapp (not context.xml TomEE). But, as i can see in your example, you surround your realm with TomEERealm, if this necessary?. I didn't know this 2012/5/31 Romain Ma

Re: Guest user

2012-05-31 Thread Romain Manni-Bucau
that's brand new ;) just added it, it mainly delegate to the real realm but add the principal info to openejb/tomee security service which is used in ejbcontext impl (to make it short) - Romain 2012/6/1 José Luis Cetina > I have this in my context.xml > > dataSourceName="MyDataSource" > dig

Re: Guest user

2012-05-31 Thread José Luis Cetina
Oooh great, with this i can get the principal user in the first request? or this is something that you gonna fix? 2012/5/31 Romain Manni-Bucau > that's brand new ;) > > just added it, it mainly delegate to the real realm but add the principal > info to openejb/tomee security service which is use

Re: Guest user

2012-05-31 Thread Romain Manni-Bucau
my sample is working, too late to add test but manually it works so i guess it should work for you the question now is should we add it automatically? - Romain 2012/6/1 José Luis Cetina > Oooh great, with this i can get the principal user in the first request? or > this is something that you

Re: Guest user

2012-05-31 Thread José Luis Cetina
im getting a ClassNotFound Caused by: java.lang.ClassNotFoundException: org.apache.tomee.catalina.TomEERealm 2012/5/31 Romain Manni-Bucau > my sample is working, too late to add test but manually it works > > so i guess it should work for you > > the question now is should we add it automatical

Re: Guest user

2012-05-31 Thread Romain Manni-Bucau
yep just commited, a new commit will come where this class will automatically be added normally - Romain 2012/6/1 José Luis Cetina > im getting a ClassNotFound > > Caused by: java.lang.ClassNotFoundException: > org.apache.tomee.catalina.TomEERealm > > 2012/5/31 Romain Manni-Bucau > > > my sa