JAX-RS severely broken when virtual hosts are used

2013-06-11 Thread exabrial12
Hey guys, I have a pretty simple JAX-RS application that I'm trying to deploy on a virtualhost. TomEE 1.5.2+ really freaks out: @ApplicationPath(/api) public class NetQuoteApplication extends Application { /** * {@inheritDoc} */ @Override public

Re: Cannot deploy a simple App in TomEE 1.5.2 using NetBeans 7.3 and MySQL 5.6

2013-06-11 Thread matias-uy
I got tired so I tried the easiest way: using EclipseLink instead of OpenJPA (as suggested on the TomEE site). Now it works. Thanks for the good will and spending time trying to help me! Keep up with the good work on TomEE! -- View this message in context:

Re: JAX-RS severely broken when virtual hosts are used

2013-06-11 Thread Romain Manni-Bucau
Hi It works on trunk i think 1.5 got issues with root context Le 11 juin 2013 08:22, exabrial12 exabr...@gmail.com a écrit : Hey guys, I have a pretty simple JAX-RS application that I'm trying to deploy on a virtualhost. TomEE 1.5.2+ really freaks out: @ApplicationPath(/api) public class

Re: Construct EJB from a separate JAR file

2013-06-11 Thread zeddius
Can you please give it a try? javaee-common-1.0.0.jar http://openejb.979440.n4.nabble.com/file/n4663614/javaee-common-1.0.0.jar I've checked both 1.5.1 and 1.5.2 and either of them didn't work. We are still getting the same error as in the first message even having put beans.xml into the

Re: Construct EJB from a separate JAR file

2013-06-11 Thread zeddius
God that helped!!! We've spent two days figuring this out! I can't imagine we ever fix it without your help, thanks a lot! Is that because of javaee being a magical word? -- View this message in context:

Re: Construct EJB from a separate JAR file

2013-06-11 Thread Romain Manni-Bucau
all these prefixes http://svn.apache.org/repos/asf/tomee/tomee/trunk/container/openejb-core/src/main/resources/default.exclusions are excluded (so no cdi, ejb..., just libs) *Romain Manni-Bucau* *Twitter: @rmannibucau https://twitter.com/rmannibucau* *Blog:

Re: Context Loader element ignored TOMEE 1.5.2

2013-06-11 Thread CThorburn
OK, here's a minimal maven web app. https://github.com/cthorburn/LoaderExample.git Works fine in Tomcat 7.0.40. running under Eclipse 4.2 /current webapp classloader is org.loader.MyClassLoader expected classloader is org.loader.MyClassLoader / but in TOMEE 1.6.0-SNAPSHOT I get /current

Re: Context Loader element ignored TOMEE 1.5.2

2013-06-11 Thread Romain Manni-Bucau
hi https://issues.apache.org/jira/browse/TOMEE-970 please see the info i put on this jira. *Romain Manni-Bucau* *Twitter: @rmannibucau https://twitter.com/rmannibucau* *Blog: **http://rmannibucau.wordpress.com/*http://rmannibucau.wordpress.com/ *LinkedIn:

versions

2013-06-11 Thread Leonardo K. Shikida
Hi is there, somewhere, a table with each acronym version of tomEE+? I mean, tomEE+ 1.5.2 implements JSF 2.1, JMS x.x, JPA y.y... etc? TIA Leo

Re: versions

2013-06-11 Thread Romain Manni-Bucau
Hi you have some info here http://tomee.apache.org/downloads.html and more here http://tomee.apache.org/comparison.html *Romain Manni-Bucau* *Twitter: @rmannibucau https://twitter.com/rmannibucau* *Blog: **http://rmannibucau.wordpress.com/*http://rmannibucau.wordpress.com/ *LinkedIn:

Re: Tomee and security-role-mapping

2013-06-11 Thread Romain Manni-Bucau
would be great to get another try with current trunk (just commited) *Romain Manni-Bucau* *Twitter: @rmannibucau https://twitter.com/rmannibucau* *Blog: **http://rmannibucau.wordpress.com/*http://rmannibucau.wordpress.com/ *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* *Github:

Re: versions

2013-06-11 Thread Leonardo K. Shikida
Hi Romain these links only lists the acronyms, but don't provide the versions. For example, from glassfish documentation https://wikis.oracle.com/display/GlassFish/PlanForGlassFish4.0 JBOSS has the same https://docs.jboss.org/author/display/AS7/Getting+Started+Guide Weblogic too

Re: versions

2013-06-11 Thread Romain Manni-Bucau
Right, if you are motivated to help us getting it you can edit the page ( http://tomee.apache.org/comparison.html#edit ) and add the spec versions, we'll then commit it to the main site *Romain Manni-Bucau* *Twitter: @rmannibucau https://twitter.com/rmannibucau* *Blog:

Re: CODI + TomEE + ManagedBean with public attributes

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

Re: versions

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

Re: versions

2013-06-11 Thread Leonardo K. Shikida
Hi Romain sure, I can spend some time contributing, but it's not a solution. I'd have to do this each new release. the solution is to assign someone to do some product management and plan for the new versions and make this planning public on the site [] Leo On Tue, Jun 11, 2013 at 9:12 AM,

Re: CODI + TomEE + ManagedBean with public attributes

2013-06-11 Thread Howard W. Smith, Jr.
I do private attributes and public getter/setters. I think I copied some other people source code and they had public attributes, and I can't remember right now if I access the public attributes on those POJOs in any of my managed beans. On Jun 11, 2013 8:18 AM, John D. Ament

Re: versions

2013-06-11 Thread Romain Manni-Bucau
#edit open a popup when you can after having given you apache id a form (maybe a browser isssue) @Leonardo: TomEE is an open source project living thanks to the contributions, if you assign somebody nothing ensure you he will do it. *Romain Manni-Bucau* *Twitter: @rmannibucau

Re: CODI + TomEE + ManagedBean with public attributes

2013-06-11 Thread John D. Ament
It's not possible to (work with attributes). In most CDI instances, you're working with a proxy. You cannot proxy a field, but you can proxy a method. On Tue, Jun 11, 2013 at 8:26 AM, Howard W. Smith, Jr. smithh032...@gmail.com wrote: I do private attributes and public getter/setters. I

Re: versions

2013-06-11 Thread Jean-Louis MONTEIRO
You can also help us in that sense Leonardo. We all fully agree that we need to pay attention to documentation, communication on so ... If you are interested in such a role, we would be more than happy. Contributors not only commit code, but also documentation, etc JLouis 2013/6/11 Romain

Struggling with JNDI lookup

2013-06-11 Thread SPB
Hi, Using Tomcat Plus WebApp 1.5.2 running in Tomcat 7.0.27 In tomee.xml I have defined my Data Source: Resource id=PooledDataSource type=javax.sql.DataSource . /Resource JMX shows: Catalina - Resource - Global - org.apache.openejb.resource.jdbc.DataSourceFactory - PooledDataSource

Re: CODI + TomEE + ManagedBean with public attributes

2013-06-11 Thread Romain Manni-Bucau
never said it was right but it doesn't prevent bean deployment (current error if i understood - not sure to be honest) *Romain Manni-Bucau* *Twitter: @rmannibucau https://twitter.com/rmannibucau* *Blog: **http://rmannibucau.wordpress.com/*http://rmannibucau.wordpress.com/ *LinkedIn:

Re: versions

2013-06-11 Thread Romain Manni-Bucau
+1 *Romain Manni-Bucau* *Twitter: @rmannibucau https://twitter.com/rmannibucau* *Blog: **http://rmannibucau.wordpress.com/*http://rmannibucau.wordpress.com/ *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* *Github: https://github.com/rmannibucau* 2013/6/11 Jean-Louis MONTEIRO

Re: Struggling with JNDI lookup

2013-06-11 Thread Romain Manni-Bucau
hi try openejb:Resource/ or use java:global/foo in the id (writting it i doubt of the need of java: here) *Romain Manni-Bucau* *Twitter: @rmannibucau https://twitter.com/rmannibucau* *Blog: **http://rmannibucau.wordpress.com/*http://rmannibucau.wordpress.com/ *LinkedIn:

Re: Struggling with JNDI lookup

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

Re: CODI + TomEE + ManagedBean with public attributes

2013-06-11 Thread Howard W. Smith, Jr.
Jose, when was the last time you did a 'maven download' of TomEE 1.6.0 snapshot and did 'not' see this issue/behavior? Did something else change? maybe new bean, properties, etc...? you have any code you can share, maybe a stub or something? On Mon, Jun 10, 2013 at 8:58 PM, José Luis Cetina

Re: Tomee and security-role-mapping

2013-06-11 Thread hwaastad
I will asap :-) Another issue, perhaps. I've updated my sample project I've added a border layer between jsf managed beans and ejb layer Maybe this is a little odd scenario, but anyhow. topology (I've skipped the debug statements): RequestScoped Bean - Bordercontroller EJB - BusinessBean EJB

Re: versions

2013-06-11 Thread Leonardo K. Shikida
Hi Jean and Romain I'll try to help with the docs then. How TomEE+ got certified with JEE Web Profile? Is there a set of tests it must pass? [] Leo On Tue, Jun 11, 2013 at 9:32 AM, Romain Manni-Bucau rmannibu...@gmail.comwrote: +1 *Romain Manni-Bucau* *Twitter: @rmannibucau

Re: versions

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

Approach to user authentication

2013-06-11 Thread sergpetrov
Hello everyone. I have a problem with user authentication in my web application, with getting particular rights being applied to users individually. With every new user having logged in, all the other users get their effective rights the same as the last one that logged in. I guess that something

Re: versions

2013-06-11 Thread Romain Manni-Bucau
TomEE JAXRS is certified BTW For that we passed Test Compatibility Kit (TCKs) provided by Oracle *Romain Manni-Bucau* *Twitter: @rmannibucau https://twitter.com/rmannibucau* *Blog: **http://rmannibucau.wordpress.com/*http://rmannibucau.wordpress.com/ *LinkedIn:

Re: Tomee and security-role-mapping

2013-06-11 Thread Romain Manni-Bucau
hmm, a sample is always better than a lot of copy/paste ;) *Romain Manni-Bucau* *Twitter: @rmannibucau https://twitter.com/rmannibucau* *Blog: **http://rmannibucau.wordpress.com/*http://rmannibucau.wordpress.com/ *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* *Github:

Re: versions

2013-06-11 Thread John D. Ament
Right, but there is no rest profile. On Tue, Jun 11, 2013 at 9:13 AM, Romain Manni-Bucau rmannibu...@gmail.comwrote: TomEE JAXRS is certified BTW For that we passed Test Compatibility Kit (TCKs) provided by Oracle *Romain Manni-Bucau* *Twitter: @rmannibucau

Re: Approach to user authentication

2013-06-11 Thread Thiago Veronezi
Hi Sergey, TomEE relies on the JAAS and Tomcat authentication mechanism. If you are working with a web application, you shouldn't need to create the InitialContext yourself. You should use JAAS just like you would do in a regular web application (

Re: Tomee and security-role-mapping

2013-06-11 Thread hwaastad
Sure, thats why I updated my github sample project accordingly :-) https://github.com/hwaastad/WebSecurity.git -- View this message in context: http://openejb.979440.n4.nabble.com/Tomee-and-security-role-mapping-tp4663567p4663647.html Sent from the OpenEJB User mailing list archive at

Re: Context Loader element ignored TOMEE 1.5.2

2013-06-11 Thread CThorburn
Will do. bear with me. -- View this message in context: http://openejb.979440.n4.nabble.com/Context-Loader-element-ignored-TOMEE-1-5-2-tp4663593p4663613.html Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: versions

2013-06-11 Thread Romain Manni-Bucau
that's a JavaEE 7 preview. My point was just it was certified for what is in (WebProfile + JAXRS) and not only web profile *Romain Manni-Bucau* *Twitter: @rmannibucau https://twitter.com/rmannibucau* *Blog: **http://rmannibucau.wordpress.com/*http://rmannibucau.wordpress.com/ *LinkedIn:

Re: Tomee and security-role-mapping

2013-06-11 Thread Romain Manni-Bucau
Hmm, did i get right your issue: you login then on another http request you don't get the right role? If i looked correctly you didn't configure JAAS in server.xml to use it in Tomcat. *Romain Manni-Bucau* *Twitter: @rmannibucau https://twitter.com/rmannibucau* *Blog:

Re: Struggling with JNDI lookup

2013-06-11 Thread SPB
Many thanks to you, sir, for your prompt reply. The openejb:Resource/ value works. I had tried something similar, but to no avail. -- View this message in context: http://openejb.979440.n4.nabble.com/Struggling-with-JNDI-lookup-tp4663626p4663651.html Sent from the OpenEJB User mailing list

Re: CODI + TomEE + ManagedBean with public attributes

2013-06-11 Thread José Luis Cetina
I was trying to reproduce a primefaces bug, and i start creating a managedbean with their respective xhtml and i forgot to mark my attributes as privates (again I FORGOT, i never use public attributes in my managedbeans) then i see this error message in the log. 2013/6/11 Howard W. Smith, Jr.

Re: CODI + TomEE + ManagedBean with public attributes

2013-06-11 Thread José Luis Cetina
I mean my apps is running ok, i was recreating a bug and then i see this by mistake thats all. 2013/6/11 José Luis Cetina maxtorz...@gmail.com I was trying to reproduce a primefaces bug, and i start creating a managedbean with their respective xhtml and i forgot to mark my attributes as

Re: Context Loader element ignored TOMEE 1.5.2

2013-06-11 Thread CThorburn
OK. I can certainly subclass the TOMEE classloader as described, but how to configure TOMEE to recognise my subclass since it doesn't appear to be reacting to the presence of the Loader element at all. Or is it just failing silently? -- View this message in context:

Re: CODI + TomEE + ManagedBean with public attributes

2013-06-11 Thread Howard W. Smith, Jr.
Understood. So the caused by exception needs to be improved or it's already appropriate? On Jun 11, 2013 10:13 AM, José Luis Cetina maxtorz...@gmail.com wrote: I mean my apps is running ok, i was recreating a bug and then i see this by mistake thats all. 2013/6/11 José Luis Cetina

Re: Tomee and security-role-mapping

2013-06-11 Thread hwaastad
Hi, the user gets the correct role after login (SuperAdmin) Then the user calls the bordercontroller.sayhelloborder. The bordercontroller has @RunAs(InternalGroup) and the method sayhelloborder has @RolesAllowed(SuperAdmin) If I remove @rolesallowed, output is: ViewController Start

Re: Tomee and security-role-mapping

2013-06-11 Thread Romain Manni-Bucau
Not sure i got you, you mean runas doesn't respect @RoleAllowed? *Romain Manni-Bucau* *Twitter: @rmannibucau https://twitter.com/rmannibucau* *Blog: **http://rmannibucau.wordpress.com/*http://rmannibucau.wordpress.com/ *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* *Github:

Re: CODI + TomEE + ManagedBean with public attributes

2013-06-11 Thread José Luis Cetina
Sorry, is not a compilation error, is only a Netbeans hint. But it happen the same problem java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at

Re: CODI + TomEE + ManagedBean with public attributes

2013-06-11 Thread José Luis Cetina
I will share you a project. 2013/6/11 José Luis Cetina maxtorz...@gmail.com Sorry, is not a compilation error, is only a Netbeans hint. But it happen the same problem java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at

Re: CODI + TomEE + ManagedBean with public attributes

2013-06-11 Thread José Luis Cetina
Yes, i know. The problem occurs with named or managedbean, the shared project use @Named. 2013/6/11 Romain Manni-Bucau rmannibu...@gmail.com This @managedbean is not in cdi IIRC so dependent will not help Le 11 juin 2013 18:30, José Luis Cetina maxtorz...@gmail.com a écrit : I will share

Re: Context Loader element ignored TOMEE 1.5.2

2013-06-11 Thread CThorburn
So, are you saying yes, subclass the TOMEE classloader and do Loader loadClas=tomeeClassLoader/ or just that this is what should happen but it doesn't work! :) -- View this message in context:

Re: Context Loader element ignored TOMEE 1.5.2

2013-06-11 Thread Romain Manni-Bucau
Set a custom loader too Le 11 juin 2013 18:49, CThorburn cthorbu...@gmail.com a écrit : So, are you saying yes, subclass the TOMEE classloader and do Loader loadClas=tomeeClassLoader/ or just that this is what should happen but it doesn't work! :) -- View this message in context:

Re: Tomee and security-role-mapping

2013-06-11 Thread hwaastad
Hi, not sure myself, but it seems that the runas role is being applied before the rolesallowed is checked, hence the call will be denied. If I add the InternalGroup to Rolesallowed, it's OK -- View this message in context:

Re: Tomee and security-role-mapping

2013-06-11 Thread Romain Manni-Bucau
Yes thats the case, dont see an issue Le 11 juin 2013 20:51, hwaastad he...@waastad.org a écrit : Hi, not sure myself, but it seems that the runas role is being applied before the rolesallowed is checked, hence the call will be denied. If I add the InternalGroup to Rolesallowed, it's OK

Re: Tomee and security-role-mapping

2013-06-11 Thread hwaastad
OK, I rest my case. Probably need to read up on JavaEE specs again. I was just wondering since it was working i glassfish 3.1.2. Thanks again for taking your time. br hw -- View this message in context:

JAAS and TomEE

2013-06-11 Thread Marco de Booij
Hello, I want to add security to my applications and I tried to configure JAAS. For development I want to use files like it is described on the website (http://tomee.apache.org/tomee-jaas.html). Later I want to replace this by LDAP. What did I do? * I added the Realm tag to the server.xml;

Re: JAAS and TomEE

2013-06-11 Thread Romain Manni-Bucau
Hi Can you reproduce it? I used it several times without issues Le 11 juin 2013 22:26, Marco de Booij marco.develo...@debooy.eu a écrit : Hello, I want to add security to my applications and I tried to configure JAAS. For development I want to use files like it is described on the website (

Re: JAAS and TomEE

2013-06-11 Thread Marco de Booij
Yes I can reproduce it. I tried several things but I get more errors when I changed something. Here are my 2 property files and they are both readable to everybody (not a good idea but it is development): users.properties: me=password tomee=tomee groups.properties: my-role=me manager-gui=tomee

Re: JAAS and TomEE

2013-06-11 Thread Romain Manni-Bucau
Just create a maven project on github runnable with tomee mvn plugin, then well build, start and you should provide an url showing the issue Le 11 juin 2013 22:46, Marco de Booij mdeb...@scarlet.be a écrit : Yes I can reproduce it. I tried several things but I get more errors when I changed

Re: JAAS and TomEE

2013-06-11 Thread Marco de Booij
I do not understand. It is already with the standard tomee application. It is with the url http://localhost:8080/manager/html that gives the list of applications. Without JAAS I just type the username and password that is defined in the tomcat-users.xml. Now I use the one defined in the

Re: JAAS and TomEE

2013-06-11 Thread Romain Manni-Bucau
Ahhh, did you set up jaas realm in server.xml? Le 11 juin 2013 22:59, Marco de Booij marco.develo...@debooy.eu a écrit : I do not understand. It is already with the standard tomee application. It is with the url http://localhost:8080/manager/**htmlhttp://localhost:8080/manager/htmlthat

Re: JAAS and TomEE

2013-06-11 Thread Marco de Booij
Yes. Like describe on the site (http://tomee.apache.org/tomee-jaas.html) just before the Host tag: !-- JAAS Security Realm -- Realm className=org.apache.catalina.realm.JAASRealm appName=PropertiesLoginModule

TomEE not supporting Validator injection

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

Re: CODI + TomEE + ManagedBean with public attributes

2013-06-11 Thread Howard W. Smith, Jr.
On Tue, Jun 11, 2013 at 8:17 AM, John D. Ament john.d.am...@gmail.comwrote: Don't forget, most of these specs expect javabeans - POJOs w/ private fields getters/setters/issers. I wanted John's earlier point mentioned again. this is how i learned itas I learned Java EE via Java EE 6

Re: TomEE not supporting Validator injection

2013-06-11 Thread Howard W. Smith, Jr.
John, Wow, this is a coincidence and interesting. We have been discussing TomEE/CDI topics, and now you bring this up. Please click the following URL and read that. :) http://code.google.com/p/omnifaces/issues/detail?id=183 Howard On Tue, Jun 11, 2013 at 10:23 PM, John D. Ament