Re: Digest changed from 1.7.2 to 7.0.1???

2016-08-26 Thread Romain Manni-Bucau
Just pushed a sample on that, here is the config with md5 and it works fine https://github.com/apache/tomee/commit/d995c944636bc9978633376ee6ec5ada4994dca9#diff-d326ee796fb18a217874b310e3433a55R71 can it be the database encoding which wouldnt use ISO88591? Romain Manni-Bucau @rmannibucau

Unable to resolve driver class

2016-08-26 Thread Robert van Loenhout
I am deploying an ear application by placing it in the apps folder. I have added a DataSource Resource in the tomee.xml and placed my driver jar in the lib folder. When I start tomee I get a fatal error caused by oracle.jdbc.OracleDriver not being found. I would really appreciate some input on h

Re: Unable to resolve driver class

2016-08-26 Thread Romain Manni-Bucau
Hi is "lib folder" the lib folder of tome or the ear? Should be tomee or you have to use resources.xml in META-INF of your ear instead of tomee.xml for the resource definition. Romain Manni-Bucau @rmannibucau | Blog | Old

RE: Unable to resolve driver class

2016-08-26 Thread Robert van Loenhout
Hi Romain, The driver jar is in the lib folder of tomee. You can see this in the log too. 26-Aug-2016 12:55:53.001 INFO [main] org.apache.openejb.config.DeploymentsResolver.loadFromClasspath Matched: file:/c:/dev/lib/apache-tomee-webprofile-7.0.1/lib/oracle-jdbc-11.2.0.4.0.jar -Original M

RE: Unable to resolve driver class

2016-08-26 Thread Robert van Loenhout
I have tried the same in apache-tomee-plus-7.0.1 and apache-tomee-plus-1.7.4 with the same results. -Original Message- From: Robert van Loenhout [mailto:r.vanloenh...@greenvalley.nl] Sent: 26 August 2016 14:38 To: users@tomee.apache.org Subject: RE: Unable to resolve driver class Hi Ro

Re: Unable to resolve driver class

2016-08-26 Thread Romain Manni-Bucau
hmm, looks right and actually using it for some other drivers. Can you try MySQL or another class to check it is an issue with oracle or the actual deployment? Romain Manni-Bucau @rmannibucau | Blog | Old Wordpress Blog

Re: Can we run Arquillian Test on a local(not unziped from internet) or real Tomee instance through TomEE Remote Adapter

2016-08-26 Thread Rafael Pestano
I was going to suggest arquillian-chameleon because it can download your customized tomee instance from a maven repository (here we upload our customized jboss to artifactory and ahare it across environments) but there is an issue with tomee: https://github.com/arquillian/arquillian-container-chame

Re: Can we run Arquillian Test on a local(not unziped from internet) or real Tomee instance through TomEE Remote Adapter

2016-08-26 Thread Romain Manni-Bucau
TomEE already supports it built-in so chameleon doesnt bring much if you are not multi-container dependent (you can set maven coordinates in the arquillian.xml). Romain Manni-Bucau @rmannibucau | Blog | Old Wordpress Blog <

Re: Unable to resolve driver class

2016-08-26 Thread Felipe Jaekel
Recently I had a similar issue when I moved Hibernate from webapp lib to server lib. All required jars where on the folder, but I kept getting class not found exceptions. It turned out the hibernate jar was corrupted during network copy, so you can check if you can open the oracle driver jar file

Re: Can we run Arquillian Test on a local(not unziped from internet) or real Tomee instance through TomEE Remote Adapter

2016-08-26 Thread Rafael Pestano
I see, I think it simplifies configuration (e.g one container in arquillian.xml plus no need to use dedicate maven plugin to download/extract distribution) 2016-08-26 9:50 GMT-03:00 Romain Manni-Bucau : > TomEE already supports it built-in so chameleon doesnt bring much if you > are not multi-con

RE: Unable to resolve driver class

2016-08-26 Thread Robert van Loenhout
I have tried the same thing with a postgres driver and I get the exact same thing. I have also tried it with a mysql driver. I also get an unable to resolve error, but also I don't see the mysql jar being picked up in the log. -Original Message- From: Romain Manni-Bucau [mailto:rmannibu

Re: Unable to resolve driver class

2016-08-26 Thread Romain Manni-Bucau
2016-08-26 14:57 GMT+02:00 Robert van Loenhout : > I have tried the same thing with a postgres driver and I get the exact > same thing. > So I suspect there is an issue with your installation, easy test can be to move tomee to c:\tomee. Can you do that? > I have also tried it with a mysql drive

RE: Unable to resolve driver class

2016-08-26 Thread Robert van Loenhout
I have unpacked the entire jar to make sure it's not corrupted. I also downloaded the oracle driver directly from oracle instead of getting it from maven. And I just tried it with the postgres driver. I am getting the same problem with those. -Original Message- From: Felipe Jaekel [mailto

Re: Can we run Arquillian Test on a local(not unziped from internet) or real Tomee instance through TomEE Remote Adapter

2016-08-26 Thread Romain Manni-Bucau
2016-08-26 14:55 GMT+02:00 Rafael Pestano : > I see, I think it simplifies configuration (e.g one container in > arquillian.xml plus no need to use dedicate maven plugin to > download/extract distribution) > > You still need to configure the container so you can 1. customize a tomee: http://jbo

Re: Unable to resolve driver class

2016-08-26 Thread Romain Manni-Bucau
Ok so next step is to use tomee-maven-plugin to reproduce it (see the last snippet for a sample on http://tomee.apache.org/ng/developer/tools/maven/tomee.html) and share the project on github to let us reproduce it locally Romain Manni-Bucau @rmannibucau | Blog

RE: Unable to resolve driver class

2016-08-26 Thread Robert van Loenhout
I moved it to c:\tomee with the same result 26-Aug-2016 15:03:15.210 INFO [main] org.apache.openejb.config.DeploymentsResolver.loadFromClasspath Matched: file:/c:/tomee/lib/oracle-jdbc-11.2.0.4.0.jar 26-Aug-2016 15:03:19.763 SEVERE [main] org.apache.openejb.util.OpenEJBErrorHandler.handleUnkno

RE: Unable to resolve driver class

2016-08-26 Thread Robert van Loenhout
Ok I'll try to run it with the tomee maven plugin. Could this have anything to do with it? 26-Aug-2016 15:03:19.696 WARNING [main] org.apache.openejb.config.ReportValidationResults.logResults WARN ... ScheduledActionJobEJB:Ignoring 1 invalid declarations. Bean not using Container-Managed

Re: Unable to resolve driver class

2016-08-26 Thread Romain Manni-Bucau
The resource should be created before that so I don't think so Romain Manni-Bucau @rmannibucau | Blog | Old Wordpress Blog | Github | LinkedIn

Re: Can we run Arquillian Test on a local(not unziped from internet) or real Tomee instance through TomEE Remote Adapter

2016-08-26 Thread Rafael Pestano
Great! how do you swich from managed to remote modes in option 3? 2016-08-26 10:02 GMT-03:00 Romain Manni-Bucau : > 2016-08-26 14:55 GMT+02:00 Rafael Pestano : > > > I see, I think it simplifies configuration (e.g one container in > > arquillian.xml plus no need to use dedicate maven plugin to >

Re: Can we run Arquillian Test on a local(not unziped from internet) or real Tomee instance through TomEE Remote Adapter

2016-08-26 Thread Romain Manni-Bucau
If you use an existing instance you just need to put something behind host:port (+ potentially security) of the configuration. If the adapter doesnt find any open server socket then it is managed otherwise it is remote. Limitation is all the server enrichment, config etc is on your side instead of

RE: Unable to resolve driver class

2016-08-26 Thread Robert van Loenhout
I have reproduced the problem with the tomee-maven-plugin. Now I have a problem, because I'm not able to share the project. And I'm not even very familiar with the project. So I probably wouldn't be able to reproduce it in a test project. The project is an ear with a war and ejb jar inside it. D

RE: Unable to resolve driver class

2016-08-26 Thread Robert van Loenhout
Some background information the ear application is currently running on JBoss 4.2.3 -Original Message- From: Robert van Loenhout [mailto:r.vanloenh...@greenvalley.nl] Sent: 26 August 2016 15:58 To: users@tomee.apache.org Subject: RE: Unable to resolve driver class I have reproduced

Re: Unable to resolve driver class

2016-08-26 Thread Romain Manni-Bucau
well if you defined it in tomee.xml you can reproduce it without any application normally Romain Manni-Bucau @rmannibucau | Blog | Old Wordpress Blog | Github

RE: Unable to resolve driver class

2016-08-26 Thread Robert van Loenhout
Oh, you are right. It fails without deploying any application. So why would it not fail for everyone? I will make a minimal maven project to share that fails on my computer. -Original Message- From: Romain Manni-Bucau [mailto:rmannibu...@gmail.com] Sent: 26 August 2016 16:51 To: users@t

RE: Unable to resolve driver class

2016-08-26 Thread Robert van Loenhout
Could you try this for me? http://pastebin.com/UTtU0Y55 mvn tomee:run gives me ClassNotFoundException: "oracle.jdbc.OracleDriver" -Original Message- From: Robert van Loenhout [mailto:r.vanloenh...@greenvalley.nl] Sent: 26 August 2016 17:23 To: users@tomee.apache.org Subject: RE: Unable

Re: Unable to resolve driver class

2016-08-26 Thread Romain Manni-Bucau
you put quotes which are part of the value so indeed driver "oracle.jdbc.OracleDriver" doesn't exist but oracle.jdbc.OracleDriver does Romain Manni-Bucau @rmannibucau | Blog | Old Wordpress Blog

Re: Unable to resolve driver class

2016-08-26 Thread Robert van Loenhout
Ahhh thanks :) Such a small mistake in the end. And just because I tried to specify them as Resource element attributes first and forgot removing all the quotes. From: Romain Manni-Bucau Sent: Friday, August 26, 2016 5:59:46 PM To: users@tomee.apache.org Subjec

Re: Unable to resolve driver class

2016-08-26 Thread Romain Manni-Bucau
typo are the worse issue cause our eyes dont see it (you will laugh when you'll read I started a debugger to see it, missed it as well in the config file and the error message) Romain Manni-Bucau @rmannibucau | Blog | Old W

@EJB runtime error

2016-08-26 Thread vnalla
Hi, I am trying to run stateless session bean example from javaee 7 example by Arun Gupta. Which has ejb injected using @EJB annotation. When access the TestServletWithInterface from the browser I am getting the following exception. Same result even after adding mentioned system property. /opt/jd

Re: @EJB runtime error

2016-08-26 Thread Romain Manni-Bucau
Yes, check http://tomee.apache.org/ejbd-transport.html Le 26 août 2016 19:38, "vnalla" a écrit : > Hi, > > I am trying to run stateless session bean example from javaee 7 example by > Arun Gupta. Which has ejb injected using @EJB annotation. When access the > TestServletWithInterface from the br

Re: persistence.xml for unit tests

2016-08-26 Thread dimas
Romain, here it is (add your repositories to the pom if needed): https://github.com/zeppelinux/sample-app It fails on mvn:test with two kind of exceptions for me: fail to transform class:org/primefaces/component/api/UIData, org/primefaces/component/api/UIData java.lang.ClassCircularityError: o

Re: persistence.xml for unit tests

2016-08-26 Thread dimas
Update: When i remove this from the pom: mvn:org.apache.sirona:sirona-javaagent:0.2-incubating:jar:shaded It doesn't fail with class loading issues anymore (that's good!), however still fails with this one: SEVERE - Exception sending context destroyed event to lis

Re: @EJB runtime error

2016-08-26 Thread vnalla
Hi, I have added the remote interface and class for the whitelist sytem property, but still has the same issue. root 4220 1492 6 19:53 pts/000:00:21 /opt/jdk1.8.0_101/bin/java -Djava.util.logging.config.file=/opt/apache-tomee-plume-7.0.1/conf/logging.properties -Djava.util.logging.mana

Provider org.apache.bval.cdi.BValExtension could not be instantiated?

2016-08-26 Thread Zachary Bedell
Greetings all, I've managed to break my TomEE 7.0.1 install pretty thoroughly, but I'm at a loss as to what I've done. Hoping something familiar jumps out to someone. The most proximate change that I made involved adjusting the Java truststore to get our local Active Directory certificates tru

Re: Provider org.apache.bval.cdi.BValExtension could not be instantiated?

2016-08-26 Thread Romain Manni-Bucau
You can switch it off but i suspect you deliver bval or cdi api in your ear. Just remove it Le 26 août 2016 22:03, "Zachary Bedell" a écrit : > Greetings all, > > I've managed to break my TomEE 7.0.1 install pretty thoroughly, but I'm at > a loss as to what I've done. Hoping something familiar

Re: @EJB runtime error

2016-08-26 Thread Romain Manni-Bucau
Needs to be on client AND server and for all api used by the call, not only the interface Le 26 août 2016 22:00, "vnalla" a écrit : > Hi, > > I have added the remote interface and class for the whitelist sytem > property, but still has the same issue. > > root 4220 1492 6 19:53 pts/00

Re: @EJB runtime error

2016-08-26 Thread vnalla
Hi, It is used in the TestServlet.java, which is in the same package and part of he same war file, the code snippet is as below. Does that mean I have to add TestSerlvet class name to whitelist as well? @WebServlet(urlPatterns = { "/TestServletWithInterface" }) public class TestServlet extends Ht

Re: persistence.xml for unit tests

2016-08-26 Thread Rafael Pestano
Hi Dimas, it's green here, just add this line to your deployment: .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml") 2016-08-26 16:42 GMT-03:00 dimas [via TomEE & OpenEJB] < ml-node+s979440n4679944...@n4.nabble.com>: > Update: > > When i remove this from the pom: > > >

Re: persistence.xml for unit tests

2016-08-26 Thread Rafael Pestano
Hi Dimas, it's green here, just add this line to your deployment: .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml") 2016-08-26 16:42 GMT-03:00 dimas [via TomEE & OpenEJB] < ml-node+s979440n4679944...@n4.nabble.com>: > Update: > > When i remove this from the pom: > > >

Re: Provider org.apache.bval.cdi.BValExtension could not be instantiated?

2016-08-26 Thread Zachary Bedell
I wasn't able to find any packages matching bval or cdi in what I was deploying, but I did manage to figure it out. My dependency manager (Ivy) ran away on me, and I was inadvertently packaging parts of Hibernate, and older versions of Spring and bcel among a few other bits. Trimming that ba

Re: persistence.xml for unit tests

2016-08-26 Thread dimas
Hi Rafael, added that, now there is some new log entries (looks like it's not really required): WARNING - Can't have a beans.xml in WEB-INF and WEB-INF/classes/META-INF, second will be ignored WARNING - Can't have a beans.xml in WEB-INF and WEB-INF/classes/META-INF, second will be ignored The te

Re: persistence.xml for unit tests

2016-08-26 Thread dimas
and it doesn't fail in my main app... So Life is good! Thanks a lot and Have a great weekend! Dmitry -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/persistence-xml-for-unit-tests-tp4679874p4679954.html Sent from the TomEE Users mailing list archive at Nabble.com.

Re: @EJB runtime error

2016-08-26 Thread Romain Manni-Bucau
You didnt whitelist the openejb class listed in the error I think For the test you can set the blacklist to -. Le 26 août 2016 22:43, "vnalla" a écrit : > Hi, > > It is used in the TestServlet.java, which is in the same package and part > of > he same war file, the code snippet is as below. Doe