RE: InvalidDataAccessApiUsageException

2016-09-16 Thread Patel, Sanjay
: InvalidDataAccessApiUsageException Only for resource local persistence unit yes upgrading the api and provider. For managed units upgrade the provider on tomee 7 Le 15 sept. 2016 20:54, "Patel, Sanjay" a écrit : > Is there a way I can use JPA 2.1 implementation with Tomee 1.7.2? I >

InvalidDataAccessApiUsageException

2016-09-15 Thread Patel, Sanjay
Is there a way I can use JPA 2.1 implementation with Tomee 1.7.2? I get below error. HTTP Status 500 - Request processing failed; nested exception is org.springframework.dao.InvalidDataAccessApiUsageException: It seems that you have the JPA 2.1 API but a JPA 2.0 implementation on the classpath!

how to stop INFO logging from org.apache.cxf.

2016-03-22 Thread Patel, Sanjay
I am calling soap web services in my project and I see bunch of below INFO statements in my catalina.out. I tried many things but it does not stop. My application is calling bunch of web services and catalina.out is growing exponentially. How can I stop this INFO statements? Example INFO statem

RE: PolicyException after upgrading to tomee 1.7.2

2015-09-17 Thread Patel, Sanjay
> | LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber <http://www.tomitribe.com> 2015-09-16 13:47 GMT-07:00 Patel, Sanjay : > So I need to keep this file in my meta-inf/resources? > > Thanks, > Sanjay > > -Original Message- > From: Romain Mann

RE: PolicyException after upgrading to tomee 1.7.2

2015-09-16 Thread Patel, Sanjay
@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> 2015-09-16 12:58 GMT-07:00 Patel, Sanjay :

RE: PolicyException after upgrading to tomee 1.7.2

2015-09-16 Thread Patel, Sanjay
(TransportBindingHandler.java:176) at org.apache.cxf.ws.security.wss4j.policyhandlers.TransportBindingHandler.handleBinding(TransportBindingHandler.java:150) ... 60 more From: Patel, Sanjay [mailto:sanjay.pa...@nemours.org] Sent: Wednesday, September 16, 2015 11:47 AM To: users@tomee.apache.org

PolicyException after upgrading to tomee 1.7.2

2015-09-16 Thread Patel, Sanjay
Hi, After upgrading to tome 1.7.2 from tome 1.5.2, I get below exception when I call secure soap web service. What do I need to change? [cid:image001.png@01D0F075.6C272910]

RE: Java 8 and Tomee 1.5.2

2015-08-13 Thread Patel, Sanjay
There are just too many breaking changes. You will have to upgrade. I'd suggest 1.7.2 - if you have any issues then get back to us. http://www.tomitribe.com - @AndyGeeDe - On a small screen device. On 13 Aug 2015 18:23, "Patel, Sanjay" wrote: > Is there any way to use Java

Java 8 and Tomee 1.5.2

2015-08-13 Thread Patel, Sanjay
Is there any way to use Java 8 with Tomee 1.5.2? Thanks, -Sanjay

The name "" is not a recognized entity or identifier. Known entity names: []

2015-07-17 Thread Patel, Sanjay
I am able to run my project on standalone Tomee but I get below error if I run project in Tomee in eclipse. Any idea? Caused by: org.apache.openjpa.persistence.ArgumentException: An error occurred while parsing the query filter "". Error message: The name "" is not a recognized entity or iden

No registered metadata for type "abc.xyz"

2014-03-26 Thread Patel, Sanjay
I have class listed in persistence.xml but during unit test I get below error. Only unit test fails. I am able to compile and my app works fine. Do I miss anything? org.springframework.orm.jpa.JpaSystemException: No registered metadata for type "class org.test.entity.jpa.Actor". This can happe

RE: Name [com] is not bound in this Context. Unable to find [com].

2014-03-24 Thread Patel, Sanjay
inkedin.com/in/rmannibucau Github: https://github.com/rmannibucau 2014-03-24 13:51 GMT+01:00 Patel, Sanjay : > It worked and does not give that error anymore and also spring beans are > injected properly. > > But now even though the war is deployed, it gives 404-not-found error and not &g

RE: Name [com] is not bound in this Context. Unable to find [com].

2014-03-24 Thread Patel, Sanjay
Patel, Sanjay : > What does this error mean? I don't get this error if I don't use > SpringServlet but in that case the I have other issues like dependency > injection not working. > > I have simple spring web application with jersey rest

Name [com] is not bound in this Context. Unable to find [com].

2014-03-20 Thread Patel, Sanjay
What does this error mean? I don't get this error if I don't use SpringServlet but in that case the I have other issues like dependency injection not working. I have simple spring web application with jersey rest service. Web.xml has, RestService

RE: Properties Command line Tool

2013-10-17 Thread Patel, Sanjay
. 2013 20:32, "Patel, Sanjay" a écrit : > How to look at current properties' values in tomee? I want to look at > values of PoolSize and TimeOut etc. > >

Properties Command line Tool

2013-10-17 Thread Patel, Sanjay
How to look at current properties' values in tomee? I want to look at values of PoolSize and TimeOut etc.

RE: JAX-RS REST

2013-08-28 Thread Patel, Sanjay
. For previous versions move jaxbimpl from endorsed to lib Le 28 août 2013 16:58, "Patel, Sanjay" a écrit : > Hello all, > > I have a simple rest service. The problem is, only the first call to > the rest service from browser works. The subsequent calls throws below > e

JAX-RS REST

2013-08-28 Thread Patel, Sanjay
Hello all, I have a simple rest service. The problem is, only the first call to the rest service from browser works. The subsequent calls throws below exception on server. I try below URL in chrome. http://localhost:8080/directory/people/search Code: @GET @Path("/search")

RE: error deploying web service

2013-07-09 Thread Patel, Sanjay
. 2013 19:49, "Patel, Sanjay" a écrit : > Sorry I forgot to mention version. Yes it is same version on both > machine, TomEE 1.5.2. I deploy war and start the server. > > -Original Message- > From: Romain Manni-Bucau [mailto:rmannibu...@gmail.com] > Sent: Tuesday

RE: error deploying web service

2013-07-09 Thread Patel, Sanjay
deploying web service Hi Same versions? Same way to deploy? Le 9 juil. 2013 19:38, "Patel, Sanjay" a écrit : > I see below error in log for my EJB @WebService > > SEVERE: Error deploying JAX-WS Web Service for EJB DirectoryService > java.lang.RuntimeException: Invalid sch

error deploying web service

2013-07-09 Thread Patel, Sanjay
I see below error in log for my EJB @WebService SEVERE: Error deploying JAX-WS Web Service for EJB DirectoryService java.lang.RuntimeException: Invalid schema document passed to AbstractDataBinding.addSchemaDocument, not in W3C schema namespace: schema It works fine in my local machine but gives

RE: @webservice security and JAAS

2013-07-03 Thread Patel, Sanjay
press.com/> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* *Github: https://github.com/rmannibucau* 2013/7/3 Patel, Sanjay > > So just for web-service security, passing correct username/password in > header should allow to access web-service from soap-ui or any other client? >

RE: @webservice security and JAAS

2013-07-03 Thread Patel, Sanjay
ttps://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/7/3 Patel, Sanjay > I setup JAAS according to http://tomee.apache.org/tom

@webservice security and JAAS

2013-07-03 Thread Patel, Sanjay
I setup JAAS according to http://tomee.apache.org/tomee-jaas.html and everything works fine. I confirmed by accessing manager/html app and using username/password from users.properties. I annotated my EJB with @webservice annotation as below. @Stateless(name = NemoursDirectoryWebServiceBean.EJB

RE: JAAS and TomEE

2013-07-03 Thread Patel, Sanjay
<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/7/3 Patel, Sanjay > Questions regarding JAAS. Can't we define two u

RE: JAAS and TomEE

2013-07-03 Thread Patel, Sanjay
Questions regarding JAAS. Can't we define two users with same roles? Below is my users.properties and groups.properties file. Authentication works fine but for "sapatel" user, I get 403 (access denied). Everything works fine for tomee user. Here is my users.properties sapatel=test tomee=tomee a

RE: @Webservice

2013-07-01 Thread Patel, Sanjay
: @Webservice Hi, Didnt you forget ?wsdl ? Can you reproduce it in a sample? Le 1 juil. 2013 22:29, "Patel, Sanjay" a écrit : > Using @Webservice annotation for Stateless EJB and accessing > webservice > http://localhost:8080/directory/webservices/ws/NemoursDirectoryService &

@Webservice

2013-07-01 Thread Patel, Sanjay
Using @Webservice annotation for Stateless EJB and accessing webservice http://localhost:8080/directory/webservices/ws/NemoursDirectoryService gives below output http://schemas.xmlsoap.org/soap/envelope/";> soap:Server No such operation: directory (HTTP GET PATH_INFO: /directory/webser

RE: Right way to share JPA project

2013-06-28 Thread Patel, Sanjay
...@gmail.com] Sent: Friday, June 28, 2013 1:28 PM To: users@tomee.apache.org Subject: RE: Right way to share JPA project Sharing common classes in lib/ but youll not get cdi,ejb... Le 28 juin 2013 18:04, "Patel, Sanjay" a écrit : > Is there any alternative to ear? > > --

RE: Right way to share JPA project

2013-06-28 Thread Patel, Sanjay
issues (ear can help). That's the main constraint in fact. Le 28 juin 2013 17:33, "Patel, Sanjay" a écrit : > I am not sure if this is the right forum for this question > > I am wondering what is the right way to share JPA (Eclipselink) > project. I didn't

Right way to share JPA project

2013-06-28 Thread Patel, Sanjay
I am not sure if this is the right forum for this question I am wondering what is the right way to share JPA (Eclipselink) project. I didn't have any issue when I was using runtime weaving for my JPA entities but now when I use build time weaving (static weaving), many questions arises in my mi

Re: AW: WARNING: Injection: No such property

2013-06-27 Thread Patel, Sanjay
> Von: Romain Manni-Bucau [mailto:rmannibu...@gmail.com] > Gesendet: Mittwoch, 26. Juni 2013 21:50 > An: users@tomee.apache.org > Betreff: Re: WARNING: Injection: No such property > > Hi, > > It sounds normal since classloaders isolate both apps Le 26 juin 2013 21:48,

WARNING: Injection: No such property

2013-06-26 Thread Patel, Sanjay
I have @Local EJB in one web application. If I inject EJB in JSF bean in same web application, it works fine. When I try to inject it in JSF bean in another web application in same TomEE container, it fails and gives below WARNING. WARNING: Injection: No such property 'org.xyz.SearchController/

RE: eclipselink in tomee

2013-05-13 Thread Patel, Sanjay
om/> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* *Github: https://github.com/rmannibucau* 2013/5/13 Patel, Sanjay > I got it working. I am not sure but looks like it was conflicting > dependencies issue. I cleaned up all my poms and added only required > dependencies one

RE: eclipselink in tomee

2013-05-13 Thread Patel, Sanjay
/rmannibucau* *Github: https://github.com/rmannibucau* 2013/5/13 Patel, Sanjay > What do you mean by tomee logs? > > -Original Message- > From: Romain Manni-Bucau [mailto:rmannibu...@gmail.com] > Sent: Monday, May 13, 2013 10:00 AM > To: users@tomee.apache.org > Subject:

RE: eclipselink in tomee

2013-05-13 Thread Patel, Sanjay
: @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/5/13 Patel, Sanjay > No. I see below in log. > > [EL Info

RE: eclipselink in tomee

2013-05-13 Thread Patel, Sanjay
ar_MyAppPU login successful -Original Message- From: Jean-Louis MONTEIRO [mailto:jeano...@gmail.com] Sent: Monday, May 13, 2013 9:45 AM To: users@tomee.apache.org Subject: Re: eclipselink in tomee Did you see any "ADJUSTING ...." message in logs? JLouis 2013/5/13 Patel, San

RE: eclipselink in tomee

2013-05-13 Thread Patel, Sanjay
how did you configure it in your persistence.xml? *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/rmanni

eclipselink in tomee

2013-05-13 Thread Patel, Sanjay
We have used OpenJPA in all our previous projects without any issue. Very simple to setup. We are trying to use eclipselink in our new project and it does not seem to work. Looks like eclipselink does not read the resource in tomee.xml. It connects to HSQLDB and then complains about not finding

when webapp is ROOT, rest services can't find the webapp

2013-05-07 Thread Patel, Sanjay
https://issues.apache.org/jira/browse/TOMEE-624 Above issue is resolved in version 1.5.1 but I am still having issue both 1.5.1 and 1.5.2. When I deploy my webapp as ROOT, REST services do not get deployed and I also get below error in log. Am I missing any configuration? SEVERE: error invoki

RE: JNDI lookup

2013-04-02 Thread Patel, Sanjay
bob On Mon, Apr 1, 2013 at 8:24 AM, Patel, Sanjay wrote: > Thanks for the hint. Would you please tell me where in web.xml can I > specify module name? > > -Original Message- > From: Romain Manni-Bucau [mailto:rmannibu...@gmail.com] > Sent: Saturday, March 30, 2

javax.naming.OperationNotSupportedException: Context is read only

2013-04-01 Thread Patel, Sanjay
Adding entry in server.xml throws below exception in log. This is the entry. javax.naming.OperationNotSupportedException: Context is read only at org.apache.naming.NamingContext.checkWritable(NamingContext.java:962) at org.apache.naming.NamingContext.bind(Nami

RE: JNDI lookup

2013-04-01 Thread Patel, Sanjay
module name in your web.xml Le 29 mars 2013 20:45, "Patel, Sanjay" a écrit : > I use EJBs in my spring application. > To inject EJB in my controller I do as below. > > @EJB(mappedName = "java:global/myAppName/MyBean") MyBean myBean; > > It works fine. &

JNDI lookup

2013-03-29 Thread Patel, Sanjay
I use EJBs in my spring application. To inject EJB in my controller I do as below. @EJB(mappedName = "java:global/myAppName/MyBean") MyBean myBean; It works fine. Now when I deploy my application in production, It fails to find EJB. Because there is no context in my production environment, EJB

RE: issue with REST service

2013-03-14 Thread Patel, Sanjay
:03, "Patel, Sanjay" a écrit : > Do you get same error on 1.5.1? > > -Original Message- > From: Romain Manni-Bucau [mailto:rmannibu...@gmail.com] > Sent: Monday, March 11, 2013 4:52 PM > To: users@tomee.apache.org > Subject: Re: issue with REST service >

RE: issue with REST service

2013-03-11 Thread Patel, Sanjay
*<http://rmannibucau.wordpress.com/> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* *Github: https://github.com/rmannibucau* 2013/3/11 Patel, Sanjay > See attached Project and war. > > Deploy war to tome 1.5.1. > > http://localhost:8080/test/secure/rest/one works >

issue with REST service

2013-03-11 Thread Patel, Sanjay
I have simple REST service. It returns list of entity. (e.g. Event) @GET @Path("/events") @Produces({ "application/json" }) public List findEvents() { return eventBean.findEvents().getList(); } It works fine if return type is List. If I change it