it is possible put persistence.xml into a jar indipendent that use into a web application?

2014-02-24 Thread mauro2java2011
Hi all. I ask for know if it is possible the following configuration: I write a web app like a war or ear . i would write also a swing client remote that call the ejb and create new instance of entity . So for resolve the problem of entity eahnched i would create the entity class eahnched

Re: it is possible put persistence.xml into a jar indipendent that use into a web application?

2014-02-24 Thread Anthony Fryer
You can create a persistence.xml in your WEB-INF folder and reference jar files in your WEB-INF/lib using the jar-files element. I normally put jar files into WEB-INF/lib and put persistence.xml in /META-INF of those jar files. You could create a remote ejb interface and pass your entity classes

Re: it is possible put persistence.xml into a jar indipendent that use into a web application?

2014-02-24 Thread mauro2java2011
A example of use of jar-file elements ? Il giorno 24/feb/2014 13.03, Anthony Fryer [via OpenEJB] ml-node+s979440n466795...@n4.nabble.com ha scritto: You can create a persistence.xml in your WEB-INF folder and reference jar files in your WEB-INF/lib using the jar-files element. I normally put

Logging

2014-02-24 Thread Ron Smits
Gents I have to bring this up, I know its been talked about before, but the logging in tomee is 'strange' to say the least. How difficult would it be to have slf4j as the default logger? Ron I Haven't Lost My Mind - It's Backed Up On Disk Somewhere

Re: Problem with Apache CXF libs.

2014-02-24 Thread ihunter
Finally got to the bottom of this. Seems that a @WebFault class had a member reference to an instance of itself which sent the CXF recursive. Since we down seem to need this WebFault (its not thrown across web service - I think we can just eliminate it. Thx -- View this message in context:

Re: JAX-RS JSON unexpected element

2014-02-24 Thread John D. Ament
Can you post the code for your resource? On Mon, Feb 24, 2014 at 2:05 PM, José Luis Cetina maxtorz...@gmail.com wrote: Hi, im doing my first rest service. Im having problem's with retrieving the json data, when my method is called i get an: WARNING: javax.xml.bind.UnmarshalException - with

Re: JAX-RS JSON unexpected element

2014-02-24 Thread José Luis Cetina
Hi @John, the problem is in the @XmlRootElement, Jackson provider doesn't need it, then i just add Jackson as a provider and everything works. But i dont understand why with the default provider this doesn't work. I add the jackson dependecy and the

Re: JAX-RS JSON unexpected element

2014-02-24 Thread Romain Manni-Bucau
cause default provider is using jaxb model so it needs a wrapper. Jackson doesnt. (see jettison) Side note: you can put this conf in openejb-jar.xml Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github:

Re: JAX-RS JSON unexpected element

2014-02-24 Thread John D. Ament
Actually I was curious for the code since it seems like he's referencing XML in the error, but sending JSON. On Mon, Feb 24, 2014 at 3:10 PM, Romain Manni-Bucau rmannibu...@gmail.com wrote: cause default provider is using jaxb model so it needs a wrapper. Jackson doesnt. (see jettison) Side

Re: JAX-RS JSON unexpected element

2014-02-24 Thread Romain Manni-Bucau
hehe, jettison is a xml library providing json as output but based on xml logic. Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau 2014-02-24 21:14 GMT+01:00 John D. Ament

Re: JAX-RS JSON unexpected element

2014-02-24 Thread José Luis Cetina
@Romain, is jettison bundled with TomEE? 2014-02-24 14:14 GMT-06:00 John D. Ament john.d.am...@gmail.com: Actually I was curious for the code since it seems like he's referencing XML in the error, but sending JSON. On Mon, Feb 24, 2014 at 3:10 PM, Romain Manni-Bucau rmannibu...@gmail.com

Re: JAX-RS JSON unexpected element

2014-02-24 Thread Romain Manni-Bucau
yes it is coming with cxf in jaxrs and plus versions Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau 2014-02-24 21:17 GMT+01:00 José Luis Cetina maxtorz...@gmail.com:

Re: JAX-RS JSON unexpected element

2014-02-24 Thread Romain Manni-Bucau
maybe test @xmltransient Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau 2014-02-24 21:58 GMT+01:00 José Luis Cetina maxtorz...@gmail.com: @Romain is something like