Re: Classcast execption on proxy when looking up remote interface

2013-04-15 Thread Romain Manni-Bucau
didnt go further since it was already working did you clean up your wars? *Romain Manni-Bucau* *Twitter: @rmannibucau * *Blog: **http://rmannibucau.wordpress.com/* *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* *Github: http

Re: Virtual host not working

2013-04-15 Thread mauro2java2011
Read at http://www.ntu.edu.sg/home/ehchua/programming/howto/Tomcat_More.html it is necessaries yo add a dir with the name of birtual host into catakina dur at the same leevel of vitual host . Into it you can reference the app manager with file manager.xml with into it the docbase of the manager

Re: Virtual host not working

2013-04-15 Thread mauro2java2011
Use of managet app for all vortuak host http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html read last paragraph. . I have also tead that it is need to specify a default host when you have many virtual host -- View this message in context: http://openejb.979440.n4.nabble.com

Re: Classcast execption on proxy when looking up remote interface

2013-04-15 Thread skay
Hi, I just downloaded apache-tomee-1.6.0-20130413.041024-48-plus.tar.gz and I'm still stuck same issue :( Tell me if you investigate further / new JIRA on this. BR -- View this message in context: http://openejb.979440.n4.nabble.com/Classcast-execption-on-proxy-when-looking-up-remote-inter

Re: Virtual host not working

2013-04-15 Thread mauro2java2011
Read at http://webtechman.com/blog/2011/03/09/how-to-install-apache-tomcat-web-app-server-in-10-minutes/ read the host manager application. Configure admin-gui on tomcat-user.xml and use the app host manager for create virtual host . -- View this message in context: http://openejb.979440.n

Re: Can not connect to Message Bean from remote client : Null pointer

2013-04-15 Thread Romain Manni-Bucau
et > following message at server > > 20130415 19:28:36 WARN (Transport) > org.apache.activemq.broker.TransportConnection > [serviceTransportException]:Transport Connection to: tcp://127.0.0.1:60058 > failed: java.net.SocketException: Connection reset > > java -cp > &

Re: war file fails to deploy (servlet loaded twice?)

2013-04-15 Thread Romain Manni-Bucau
Hi, please check it works with 1.6.0-SNAPSHOT. In fact it is a change in tomcat itself after some discussion with the servlet expert group. The fact to tolerate it was "wrong" so they changed it (creating such regressions :(). We hacked it in 1.6.0-SNAPHOT but i don't think it was backported in 1.

Re: Can not connect to Message Bean from remote client : Null pointer

2013-04-15 Thread TomeeUser
Hi Romain, I moved little further. Now when I make connection client hangs and when I press CTRL-C I get following message at server 20130415 19:28:36 WARN (Transport) org.apache.activemq.broker.TransportConnection [serviceTransportException]:Transport Connection to: tcp://127.0.0.1:60058

war file fails to deploy (servlet loaded twice?)

2013-04-15 Thread dorwin
We are using the playframework and have a war file that works in 1.5.1 but will not deploy in 1.5.2 snapshot or 1.5.3 snapshot. We downloaded our snapshot from https://repository.apache.org/content/groups/snapshots/org/apache/openejb/apache-tomee/1.5.3-SNAPSHOT/ The error message we get is: The s

Re: JPA issue in combo with @SessionScoped

2013-04-15 Thread Howard W. Smith, Jr.
On Mon, Apr 15, 2013 at 5:04 PM, Reinis Vicups wrote: > > @Howard - well, if I understand you correctly, your solution is to have > (may I call it like this?) Yes, you may call it like that. :) > a application scoped cache (the list in a singleton) or queue? yes, it's definitely application

Re: JPA issue in combo with @SessionScoped

2013-04-15 Thread Reinis Vicups
Thank you guys for all the support and feedback, I think we can close this discussion now. @John - I see your point and I think that it should be possible to utilize both anemic and non-anemic domain models with some of the cool frameworks out there. We all prolly heard the arguments from Fowl

Re: Virtual host not working

2013-04-15 Thread Jack Anamanda
When you deploy an application as default application (no explicit context), use path="" or omitt the path attribute, since "" is the default. See here: http://tomcat.apache.org/tomcat-5.5-doc/config/context.html I tried defining a different appbase yesterday and set the docbase to the name of my

Re: Virtual host not working

2013-04-15 Thread Romain Manni-Bucau
maybe try to reproduce it thanks to the tomee mvn plugin *Romain Manni-Bucau* *Twitter: @rmannibucau * *Blog: **http://rmannibucau.wordpress.com/* *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* *Github: https://github.com/rma

Re: Virtual host not working

2013-04-15 Thread mauro2java2011
Fwhen you have deployed the ROOT.war what i haveto put into contexr.xml at path value ? Path="/" Or path="" ? ? --- I have think a hint for the vietualhost: You have created another webapps2 dir at same level of webapps dir and configure the webapps2 dir at value of a

Re: Virtual host not working

2013-04-15 Thread Jack Anamanda
Doesn't work in 1.6.0-Snapshot either (: As a workaround, I deployed my application as ROOT.war and removed the virtual host from server.xml. This works, but isn't very elegant. -- View this message in context: http://openejb.979440.n4.nabble.com/Virtual-host-not-working-tp4662204p4662279.html

Re: Virtual host not working

2013-04-15 Thread Romain Manni-Bucau
1.6.0-SNAPSHOT is our trunk Le 15 avr. 2013 18:51, "Jack Anamanda" a écrit : > Yes, on 1.5.3-Snapshot and 1.6.1-Snapshot (I don't know which build, if > that > matters). > > > > -- > View this message in context: > http://openejb.979440.n4.nabble.com/Virtual-host-not-working-tp4662204p4662277.htm

Re: Virtual host not working

2013-04-15 Thread Jack Anamanda
Yes, on 1.5.3-Snapshot and 1.6.1-Snapshot (I don't know which build, if that matters). -- View this message in context: http://openejb.979440.n4.nabble.com/Virtual-host-not-working-tp4662204p4662277.html Sent from the OpenEJB User mailing list archive at Nabble.com.

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

2013-04-15 Thread Howard W. Smith, Jr.
+1 on this topic, code shared, and the responses, so far! Reinis, if I saw your code months/weeks ago, I would have used your code to do something 'similar' in my app, but no longer a need for that, but I like how you use 'producer' to instantiate a loggedIn user. Definitely, something I 'wanted'

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

2013-04-15 Thread John D. Ament
Problem is like Romain says, @SessionScoped objects are proxied instances. Not real instances of the class you think they are. To avoid this proxy, you need to reduce your scope or directly invoke the method. Personally, I wouldn't share my data model with my UI (need cleaner separation, force t

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

2013-04-15 Thread tomee
Hi John, but i am using EJB already (User producer and async worker). Do you mean injecting producer directly and then calling producerInstance.produceUser()? Yes I could do that, but the effect will be same as omitting @SessionScoped, right? My motivation was to get jpa representation of curr

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

2013-04-15 Thread John D. Ament
The alternative is to just inject the EJB and call the method directly here. On Mon, Apr 15, 2013 at 8:14 AM, wrote: > Hi Romain, > > thanks, I already guessed something like this. But is there some pattern > to avoid this or work around or something I could use to make it work? > > Basically i

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

2013-04-15 Thread tomee
Hi Romain, thanks, I already guessed something like this. But is there some pattern to avoid this or work around or something I could use to make it work? Basically it means I may not use any cdi on jpa entities whatsoever and that is quite a constraint :) kind regards Reinis -Original-Na

Re: JPA issue in combo with @SessionScoped

2013-04-15 Thread Romain Manni-Bucau
a conflict between cdi and jpa proxying the jpa entity makes another class created and then the jpa provider doesn't find back your entity *Romain Manni-Bucau* *Twitter: @rmannibucau * *Blog: **http://rmannibucau.wordpress.com/*

Re: Virtual host not working

2013-04-15 Thread Romain Manni-Bucau
using the snapshot? *Romain Manni-Bucau* *Twitter: @rmannibucau * *Blog: **http://rmannibucau.wordpress.com/* *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* *Github: https://github.com/rmannibucau* 2013/4/15 Jack Anamanda

Re: Virtual host not working

2013-04-15 Thread Jack Anamanda
Yes, the following gives the same error: Caused by: java.lang.IllegalArgumentException: can't find path under current webapp deployment [] If I use "/" as path (just random trying stuff here): Caused by: java.lang.IllegalArgumentException: can't find path under current webapp deploym

JPA issue in combo with @SessionScoped

2013-04-15 Thread tomee
Hi, I have neither pure JPA nor CDI, nor EJB question, it's more of a mix: I have following classes (reasonably simplified) @javax.ejb.Stateless public class UserProducer {  @PersistenceContext  EntityManager entityManager;    //Achtung, it produces a SessionScoped logged in user  @Produces @Ses