Re: Jax-ws and Virtual Hosts

2015-06-02 Thread Kirys
On 06/02/2015 06:12 PM, Romain Manni-Bucau wrote: I've never used it (netbeans take care of starting tomee for me) I'm trying to understand how to make it deploy to the virtualhost app base. you can create a src/main/tomee/conf and put server.xml inside, then mvn clean package tomee:run will

Re: tomee:deploy - undeploy

2015-06-02 Thread hwaastad
Thanks Romain, I needed the deploy path: mvn tomee:undeploy -Dtomee-plugin.archive=TomeEEDeploy-1.0-SNAPSHOT -Dtomee-plugin.host=127.0.0.1 I've modified server.xml: unpackWARs=false autoDeploy=false for webapps. I'll see if this makes our jenkins deployment more stable than the tomcat-deploy

netbeans annoyance

2015-06-02 Thread hwaastad
Hi, I just want to point out an observation. I discovered that starting tomee 1.7.2 (plus) as a server in netbeans, netbeans is not too happy about the server=Apache TomEE config on the 8080 connector. So by removing this one startup is OK again. I guess a bug in the netbeans tomee (and tomcat)

Re: netbeans annoyance

2015-06-02 Thread Romain Manni-Bucau
yep, several tools checks the server is well started and the right one (not a conflicting port) using this technique. That said they can fix it easily I think Romain Manni-Bucau @rmannibucau https://twitter.com/rmannibucau | Blog http://rmannibucau.wordpress.com | Github

tomee:deploy - undeploy

2015-06-02 Thread hwaastad
Hi, just a verification on the tomee-maven-plugin deploy functionality I've started an remote tomee and deploying like this: mvn tomee:deploy -Dtomee-plugin.archive=./target/TomeEEDeploy-1.0-SNAPSHOT.war -Dtomee-plugin.host=127.0.0.1 -Dtomee-plugin.binary=true Undeploy: mvn tomee:undeploy

AbstractRouter and CDI

2015-06-02 Thread Alex Soto
Hi I am developing a Dynamic datasource routing component. I am using OpenEJB 4.7.1 for testing and I have seen that AbstractRoutes are not CDI aware. Basically I have tried to inject a simple POJO but the instance is null. I have the beans.xml in src/main/resources/META-INF so CDI is enabled.

Re: AbstractRouter and CDI

2015-06-02 Thread Romain Manni-Bucau
Hi Alex Use 4.7.2 Le 2 juin 2015 03:16, Alex Soto asot...@gmail.com a écrit : Hi I am developing a Dynamic datasource routing component. I am using OpenEJB 4.7.1 for testing and I have seen that AbstractRoutes are not CDI aware. Basically I have tried to inject a simple POJO but the instance

Re: AbstractRouter and CDI

2015-06-02 Thread Alex Soto
Yes I am using 4.7.2, but it is not working. You can try it, the project is here: https://github.com/lordofthejars/multi El dt., 2 juny 2015 a les 16:13, Romain Manni-Bucau (rmannibu...@gmail.com) va escriure: Hi Alex Use 4.7.2 Le 2 juin 2015 03:16, Alex Soto asot...@gmail.com a écrit :

Re: AbstractRouter and CDI

2015-06-02 Thread Romain Manni-Bucau
3 notes: 1. if you let hibernate use the metadata at startup then ensure you have a default datasource or just switch it off: property name=hibernate.temp.use_jdbc_metadata_defaults value=false / 2. the injections are not working cause you use a container resource (no application), use

Re: tomee:deploy - undeploy

2015-06-02 Thread Romain Manni-Bucau
Le 2 juin 2015 04:08, hwaastad he...@waastad.org a écrit : Hi, just a verification on the tomee-maven-plugin deploy functionality I've started an remote tomee and deploying like this: mvn tomee:deploy -Dtomee-plugin.archive=./target/TomeEEDeploy-1.0-SNAPSHOT.war

Re: Jax-ws and Virtual Hosts

2015-06-02 Thread Romain Manni-Bucau
Hmm maybe I did it wrong but there isonly JAXRS and not JAXWS services in this project no? How should we reproduce, we use your server.xml and copy the war in all appBase? If you can setup tomee-maven-plugin to just let us reproduce using mvn package tomee:run it would help a lot. PS: maybe

Re: TomEE 1.7.1 Duplicate App Deployment when autoDeploy=true

2015-06-02 Thread renz
Actually, the problem happens when I restart Tomee (bin/shutdown.sh then bin/startup.sh), with my ear in apps/ and the unpacked ear in work/. Should I clean work/ directory on tomee startup/shutdown? Thank you -- View this message in context:

Re: TomEE 1.7.1 Duplicate App Deployment when autoDeploy=true

2015-06-02 Thread renz
work is my tomee.unpack.dir. But the problem is the same if I don't set tomee.unpack.dir in system.properties How can I prevent org.apache.openejb.DuplicateDeploymentIdException: Application cannot be deployed as it contains deployment-ids which are in use on tomee restart? -- View this

Re: Jax-ws and Virtual Hosts

2015-06-02 Thread Kirys
On 06/02/2015 04:55 PM, Romain Manni-Bucau wrote: Hmm maybe I did it wrong but there isonly JAXRS and not JAXWS services in this project no? Yes you are right as always, sorry messed up the acronym. How should we reproduce, we use your server.xml and copy the war in all appBase? Into the

Re: TomEE 1.7.1 Duplicate App Deployment when autoDeploy=true

2015-06-02 Thread Romain Manni-Bucau
reproduce it with tomee maven plugin or a script cause it is surely linked to something specific to your setup (or our setup in tests) Romain Manni-Bucau @rmannibucau https://twitter.com/rmannibucau | Blog http://rmannibucau.wordpress.com | Github https://github.com/rmannibucau | LinkedIn

Re: TomEE 1.7.1 Duplicate App Deployment when autoDeploy=true

2015-06-02 Thread Romain Manni-Bucau
shouldnt be needed if work is not a deployment folder Romain Manni-Bucau @rmannibucau https://twitter.com/rmannibucau | Blog http://rmannibucau.wordpress.com | Github https://github.com/rmannibucau | LinkedIn https://www.linkedin.com/in/rmannibucau | Tomitriber http://www.tomitribe.com

Re: Jax-ws and Virtual Hosts

2015-06-02 Thread Romain Manni-Bucau
2015-06-02 9:06 GMT-07:00 Kirys ki...@neoteroi.org: On 06/02/2015 04:55 PM, Romain Manni-Bucau wrote: Hmm maybe I did it wrong but there isonly JAXRS and not JAXWS services in this project no? Yes you are right as always, sorry messed up the acronym. How should we reproduce, we use