Re: Does tomee plus support ValidatingManagedConnectionFactory?

2013-01-10 Thread Romain Manni-Bucau
I dont know this one but. You can still pre init it in a singleton startup
but you are right that's weird.
Le 11 janv. 2013 02:51, "Anthony Fryer"  a écrit :

> Is there a reason for that design?  If connection creation is expensive,
> then
> you're paying the cost and have to wait when you get the first connection,
> with the client blocking until the connection is created.
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/Does-tomee-plus-support-ValidatingManagedConnectionFactory-tp4660187p4660233.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>


Re: Does tomee plus support ValidatingManagedConnectionFactory?

2013-01-10 Thread Anthony Fryer
Is there a reason for that design?  If connection creation is expensive, then
you're paying the cost and have to wait when you get the first connection,
with the client blocking until the connection is created.



--
View this message in context: 
http://openejb.979440.n4.nabble.com/Does-tomee-plus-support-ValidatingManagedConnectionFactory-tp4660187p4660233.html
Sent from the OpenEJB User mailing list archive at Nabble.com.


Re: Secure EJBs testing with Arquillian

2013-01-10 Thread John D. Ament
Just a hunch.

If you're EAO does what I expect (database interaction), did you include a
persistence.xml (assuming you're using JPA) in your deployment? Do you need
to declare any JNDI datasources?

John


On Thu, Jan 10, 2013 at 4:36 PM, Romain Manni-Bucau
wrote:

> typically you should look a bit upper in the logs to find the real reason,
> it is logged in warning or severe level.
>
>
> *Romain Manni-Bucau*
> *Twitter: @rmannibucau *
> *Blog: **http://rmannibucau.wordpress.com/*<
> http://rmannibucau.wordpress.com/>
> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> *Github: https://github.com/rmannibucau*
>
>
>
> 2013/1/10 Luca Merolla 
>
> > Yes I have added users.properties and groups.properties and now the
> > authorization is working.
> >
> > I have still problems with "sub-dependencies". For example, if I create a
> > CountryBeanTest with arquillian and CountryBean looks like that:
> >
> > public class CountryBean implements CountryBeanLocal {
> > @EJB
> > private CountryEAOLocal countryEAO;
> >
> > public List getAllCountries() {
> > return countryEAO.getAllCountries();
> > }
> > }
> >
> > Arquillian test inject countryBean, but I get NPE
> > on countryEAO.getAllCountries() because the CountryEAOLocal is not
> > injected.
> >
> > In the ShrinkWrap of my CountryBeanTest I
> > have .addClasses(CountryBean.class, CountryBeanLocal.class), but if I
> > add .addClasses(CountryBean.class,
> > CountryBeanLocal.class, CountryEAO.class, CountryEAOLocal.class) I get:
> >
> > SEVERE: Unable to deploy collapsed ear in war
> >
> >
> StandardEngine[Tomcat].StandardHost[localhost].StandardContext[/application2]
> > org.apache.openejb.config.ValidationFailedException: Module failed
> > validation. AppModule(name=application2)
> >
> >
> >
> > On Thu, Jan 10, 2013 at 1:55 AM, Romain Manni-Bucau
> > wrote:
> >
> > > yep, did you set the jaas system property?
> > >
> > > *Romain Manni-Bucau*
> > > *Twitter: @rmannibucau *
> > > *Blog: **http://rmannibucau.wordpress.com/*<
> > > http://rmannibucau.wordpress.com/>
> > > *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> > > *Github: https://github.com/rmannibucau*
> > >
> > >
> > >
> > > 2013/1/10 Luca Merolla 
> > >
> > > > I have added INITIAL_CONTEXT_FACTORY and now I get:
> > > >
> > > > javax.security.auth.login.FailedLoginException: User does not exist
> > > >
> > > > while before I was getting : javax.ejb.EJBAccessException:
> Unauthorized
> > > > Access by Principal Denied
> > > >
> > > > I guess now I need to configure some sort of users.properties file
> with
> > > > users and password.
> > > >
> > > >
> > > > On Thu, Jan 10, 2013 at 1:12 AM, Romain Manni-Bucau
> > > > wrote:
> > > >
> > > > > it basically does the same
> > > > >
> > > > > maybe you'll need to specify Context.INITAL_CONTEXT_FACTORY
> (normally
> > > no
> > > > > but depend how you run the test)
> > > > >
> > > > > *Romain Manni-Bucau*
> > > > > *Twitter: @rmannibucau *
> > > > > *Blog: **http://rmannibucau.wordpress.com/*<
> > > > > http://rmannibucau.wordpress.com/>
> > > > > *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> > > > > *Github: https://github.com/rmannibucau*
> > > > >
> > > > >
> > > > >
> > > > > 2013/1/10 Luca Merolla 
> > > > >
> > > > > > I was actually trying something similar already, basically the
> > > previous
> > > > > > "login" method  was the following
> > > > > >
> > > > > > Properties properties = new Properties();
> > > > > > properties.put(Context.SECURITY_PRINCIPAL, username);
> > > > > > properties.put(Context.SECURITY_CREDENTIALS, password);
> > > > > >
> > > > > > final Context context = new InitialContext(properties);
> > > > > >
> > > > > > but the access was not authorized, then I found the previous
> > example
> > > > and
> > > > > I
> > > > > > thought there was a need of having this ArquillianContext class
> > > > > >
> > > > > > On Thu, Jan 10, 2013 at 12:44 AM, Romain Manni-Bucau
> > > > > > wrote:
> > > > > >
> > > > > > > new InitialContext
> > > > > >
> > > > >
> > > >
> > > >
> > > >
> > >
> >
>


Re: Secure EJBs testing with Arquillian

2013-01-10 Thread Romain Manni-Bucau
typically you should look a bit upper in the logs to find the real reason,
it is logged in warning or severe level.


*Romain Manni-Bucau*
*Twitter: @rmannibucau *
*Blog: **http://rmannibucau.wordpress.com/*
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*



2013/1/10 Luca Merolla 

> Yes I have added users.properties and groups.properties and now the
> authorization is working.
>
> I have still problems with "sub-dependencies". For example, if I create a
> CountryBeanTest with arquillian and CountryBean looks like that:
>
> public class CountryBean implements CountryBeanLocal {
> @EJB
> private CountryEAOLocal countryEAO;
>
> public List getAllCountries() {
> return countryEAO.getAllCountries();
> }
> }
>
> Arquillian test inject countryBean, but I get NPE
> on countryEAO.getAllCountries() because the CountryEAOLocal is not
> injected.
>
> In the ShrinkWrap of my CountryBeanTest I
> have .addClasses(CountryBean.class, CountryBeanLocal.class), but if I
> add .addClasses(CountryBean.class,
> CountryBeanLocal.class, CountryEAO.class, CountryEAOLocal.class) I get:
>
> SEVERE: Unable to deploy collapsed ear in war
>
> StandardEngine[Tomcat].StandardHost[localhost].StandardContext[/application2]
> org.apache.openejb.config.ValidationFailedException: Module failed
> validation. AppModule(name=application2)
>
>
>
> On Thu, Jan 10, 2013 at 1:55 AM, Romain Manni-Bucau
> wrote:
>
> > yep, did you set the jaas system property?
> >
> > *Romain Manni-Bucau*
> > *Twitter: @rmannibucau *
> > *Blog: **http://rmannibucau.wordpress.com/*<
> > http://rmannibucau.wordpress.com/>
> > *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> > *Github: https://github.com/rmannibucau*
> >
> >
> >
> > 2013/1/10 Luca Merolla 
> >
> > > I have added INITIAL_CONTEXT_FACTORY and now I get:
> > >
> > > javax.security.auth.login.FailedLoginException: User does not exist
> > >
> > > while before I was getting : javax.ejb.EJBAccessException: Unauthorized
> > > Access by Principal Denied
> > >
> > > I guess now I need to configure some sort of users.properties file with
> > > users and password.
> > >
> > >
> > > On Thu, Jan 10, 2013 at 1:12 AM, Romain Manni-Bucau
> > > wrote:
> > >
> > > > it basically does the same
> > > >
> > > > maybe you'll need to specify Context.INITAL_CONTEXT_FACTORY (normally
> > no
> > > > but depend how you run the test)
> > > >
> > > > *Romain Manni-Bucau*
> > > > *Twitter: @rmannibucau *
> > > > *Blog: **http://rmannibucau.wordpress.com/*<
> > > > http://rmannibucau.wordpress.com/>
> > > > *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> > > > *Github: https://github.com/rmannibucau*
> > > >
> > > >
> > > >
> > > > 2013/1/10 Luca Merolla 
> > > >
> > > > > I was actually trying something similar already, basically the
> > previous
> > > > > "login" method  was the following
> > > > >
> > > > > Properties properties = new Properties();
> > > > > properties.put(Context.SECURITY_PRINCIPAL, username);
> > > > > properties.put(Context.SECURITY_CREDENTIALS, password);
> > > > >
> > > > > final Context context = new InitialContext(properties);
> > > > >
> > > > > but the access was not authorized, then I found the previous
> example
> > > and
> > > > I
> > > > > thought there was a need of having this ArquillianContext class
> > > > >
> > > > > On Thu, Jan 10, 2013 at 12:44 AM, Romain Manni-Bucau
> > > > > wrote:
> > > > >
> > > > > > new InitialContext
> > > > >
> > > >
> > >
> > >
> > >
> >
>


Re: Secure EJBs testing with Arquillian

2013-01-10 Thread Luca Merolla
Yes I have added users.properties and groups.properties and now the
authorization is working.

I have still problems with "sub-dependencies". For example, if I create a
CountryBeanTest with arquillian and CountryBean looks like that:

public class CountryBean implements CountryBeanLocal {
@EJB
private CountryEAOLocal countryEAO;

public List getAllCountries() {
return countryEAO.getAllCountries();
}
}

Arquillian test inject countryBean, but I get NPE
on countryEAO.getAllCountries() because the CountryEAOLocal is not injected.

In the ShrinkWrap of my CountryBeanTest I
have .addClasses(CountryBean.class, CountryBeanLocal.class), but if I
add .addClasses(CountryBean.class,
CountryBeanLocal.class, CountryEAO.class, CountryEAOLocal.class) I get:

SEVERE: Unable to deploy collapsed ear in war
StandardEngine[Tomcat].StandardHost[localhost].StandardContext[/application2]
org.apache.openejb.config.ValidationFailedException: Module failed
validation. AppModule(name=application2)



On Thu, Jan 10, 2013 at 1:55 AM, Romain Manni-Bucau
wrote:

> yep, did you set the jaas system property?
>
> *Romain Manni-Bucau*
> *Twitter: @rmannibucau *
> *Blog: **http://rmannibucau.wordpress.com/*<
> http://rmannibucau.wordpress.com/>
> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> *Github: https://github.com/rmannibucau*
>
>
>
> 2013/1/10 Luca Merolla 
>
> > I have added INITIAL_CONTEXT_FACTORY and now I get:
> >
> > javax.security.auth.login.FailedLoginException: User does not exist
> >
> > while before I was getting : javax.ejb.EJBAccessException: Unauthorized
> > Access by Principal Denied
> >
> > I guess now I need to configure some sort of users.properties file with
> > users and password.
> >
> >
> > On Thu, Jan 10, 2013 at 1:12 AM, Romain Manni-Bucau
> > wrote:
> >
> > > it basically does the same
> > >
> > > maybe you'll need to specify Context.INITAL_CONTEXT_FACTORY (normally
> no
> > > but depend how you run the test)
> > >
> > > *Romain Manni-Bucau*
> > > *Twitter: @rmannibucau *
> > > *Blog: **http://rmannibucau.wordpress.com/*<
> > > http://rmannibucau.wordpress.com/>
> > > *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> > > *Github: https://github.com/rmannibucau*
> > >
> > >
> > >
> > > 2013/1/10 Luca Merolla 
> > >
> > > > I was actually trying something similar already, basically the
> previous
> > > > "login" method  was the following
> > > >
> > > > Properties properties = new Properties();
> > > > properties.put(Context.SECURITY_PRINCIPAL, username);
> > > > properties.put(Context.SECURITY_CREDENTIALS, password);
> > > >
> > > > final Context context = new InitialContext(properties);
> > > >
> > > > but the access was not authorized, then I found the previous example
> > and
> > > I
> > > > thought there was a need of having this ArquillianContext class
> > > >
> > > > On Thu, Jan 10, 2013 at 12:44 AM, Romain Manni-Bucau
> > > > wrote:
> > > >
> > > > > new InitialContext
> > > >
> > >
> >
> >
> >
>


Re: TomEE 1.5.1-SNAPSHOT: strange JPA behavior

2013-01-10 Thread Romain Manni-Bucau
Thanks for the report!

Here the fix: https://issues.apache.org/jira/browse/TOMEE-720

Using commons dbcp instead of tomcat jdbc you shouldn't get this behavior

*Romain Manni-Bucau*
*Twitter: @rmannibucau *
*Blog: **http://rmannibucau.wordpress.com/*
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*



2013/1/10 diuis 

> Hi Romain,
> Hi all,
> finally I wrote a little sample to reproduce the strange JPA behavior.
>
> Please, download it from github:
>
> git clone https://github.com/diuis/test-jpa-tx.git
>
> change directory:
>
> cd test-jpa-tx/
>
> and run TomEE 1.5.1:
>
> mvn package tomee:run
>
> I wrote a simple REST service; you could open these urls:
>
> http://localhost:8080/test-jpa-tx-0.0.1-SNAPSHOT/start/tx1
> The 'tx1 service' open a connection to the first persistence unit (PUBLIC
> is
> the CATALOG and sa1 the username).
>
> http://localhost:8080/test-jpa-tx-0.0.1-SNAPSHOT/start/tx2
> The 'tx2 service' open a connection to the second persistence unit (PUBLIC
> is the CATALOG and sa2 the username).
>
> http://localhost:8080/test-jpa-tx-0.0.1-SNAPSHOT/start/tx
> The 'tx service' uses both the persistence units, but first, in the same
> ejb
> transaction, and after in two different transactions.
> When the transaction is the same, I guess that the second entity manager
> takes the already opened db connection, instead of the connection of the
> datasource configured in the persistence.xml.
>
> I have not used the XA jdbc driver in this test, but I used it in my real
> application, where I have two different databases (MySQL and H2) and the
> result is the same.
>
> Thank for the support,
> Demis Gallisto
>
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/TomEE-1-5-1-SNAPSHOT-strange-JPA-behavior-tp4658500p4660225.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>


Re: TomEE 1.5.1-SNAPSHOT: strange JPA behavior

2013-01-10 Thread diuis
Hi Romain,
Hi all,
finally I wrote a little sample to reproduce the strange JPA behavior.

Please, download it from github:

git clone https://github.com/diuis/test-jpa-tx.git

change directory:

cd test-jpa-tx/

and run TomEE 1.5.1:

mvn package tomee:run

I wrote a simple REST service; you could open these urls:

http://localhost:8080/test-jpa-tx-0.0.1-SNAPSHOT/start/tx1
The 'tx1 service' open a connection to the first persistence unit (PUBLIC is
the CATALOG and sa1 the username).

http://localhost:8080/test-jpa-tx-0.0.1-SNAPSHOT/start/tx2
The 'tx2 service' open a connection to the second persistence unit (PUBLIC
is the CATALOG and sa2 the username).

http://localhost:8080/test-jpa-tx-0.0.1-SNAPSHOT/start/tx
The 'tx service' uses both the persistence units, but first, in the same ejb
transaction, and after in two different transactions.
When the transaction is the same, I guess that the second entity manager
takes the already opened db connection, instead of the connection of the
datasource configured in the persistence.xml.

I have not used the XA jdbc driver in this test, but I used it in my real
application, where I have two different databases (MySQL and H2) and the
result is the same.

Thank for the support,
Demis Gallisto




--
View this message in context: 
http://openejb.979440.n4.nabble.com/TomEE-1-5-1-SNAPSHOT-strange-JPA-behavior-tp4658500p4660225.html
Sent from the OpenEJB User mailing list archive at Nabble.com.


Re: Does tomee plus support ValidatingManagedConnectionFactory?

2013-01-10 Thread Anthony Fryer
I've done more testing and it seems that using resources.xml is not working
how i thought it would.  If i configure a pool in resources.xml as
follows...



poolMinSize = 7
poolMaxSize = 10



When I start tomee, the following is printed out...

TomcatWebAppBuilder.init /jcawebapp
10/01/2013 8:41:13 PM org.apache.openejb.config.ConfigurationFactory
configureApplication
INFO: Configuring enterprise application:
D:\Users\Anthony\Documents\DEV\JCATest\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\jcawebapp
10/01/2013 8:41:14 PM org.apache.openejb.config.ConfigurationFactory
configureService
INFO: Configuring Service(id=testPool, type=Resource, provider-id=testPool)
10/01/2013 8:41:14 PM org.apache.openejb.assembler.classic.Assembler
createRecipe
INFO: Creating Resource(id=testPool)
10/01/2013 8:41:14 PM org.apache.openejb.assembler.classic.Assembler
createResource
INFO: Creating ConnectionManager for Resource(id=testPool)
10/01/2013 8:41:14 PM
org.apache.geronimo.connector.outbound.GenericConnectionManager$InterceptorsImpl

INFO: No runtime TransactionSupport
10/01/2013 8:41:14 PM org.apache.openejb.config.OutputGeneratedDescriptors
writeRaXml
INFO: Dumping Generated ra.xml to:
D:\Users\Anthony\AppData\Local\Temp\ra-5615975532766635748jcawebappRA.xml
10/01/2013 8:41:14 PM org.apache.openejb.config.ConfigurationFactory
configureService
INFO: Configuring Service(id=jcawebappRARA, type=Resource,
provider-id=jcawebappRARA)
10/01/2013 8:41:14 PM org.apache.openejb.config.ConfigurationFactory
configureService
INFO: Configuring Service(id=jcatestPoolA, type=Resource,
provider-id=jcatestPoolA)
10/01/2013 8:41:14 PM org.apache.openejb.config.AppInfoBuilder build
INFO: Enterprise application
"D:\Users\Anthony\Documents\DEV\JCATest\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\jcawebapp"
loaded.
10/01/2013 8:41:14 PM org.apache.openejb.assembler.classic.Assembler
createApplication
INFO: Assembling app:
D:\Users\Anthony\Documents\DEV\JCATest\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\jcawebapp
10/01/2013 8:41:14 PM org.apache.openejb.assembler.classic.Assembler
createRecipe
INFO: Creating Resource(id=jcawebappRARA)
JCATestResourceAdapter.start()...
10/01/2013 8:41:14 PM org.apache.openejb.assembler.classic.Assembler
createRecipe
INFO: Creating Resource(id=jcatestPoolA)
10/01/2013 8:41:14 PM org.apache.openejb.assembler.classic.Assembler
createResource
INFO: Creating ConnectionManager for Resource(id=jcatestPoolA)
10/01/2013 8:41:14 PM
org.apache.geronimo.connector.outbound.GenericConnectionManager$InterceptorsImpl

INFO: No runtime TransactionSupport
...


I have a servlet where I inject the testPool...

@WebServlet("/jcatest")
public class JCATestServlet extends HttpServlet {
private static final long serialVersionUID = 1L;

@Resource(name="testPool")
JCATestConnectionFactory testPool;
   
protected void doGet(HttpServletRequest request, HttpServletResponse
response) throws ServletException, IOException {
PrintWriter out = response.getWriter();
out.println("");
out.println("
Welcome to the JCATest servlet!
");
out.println("");

JCATestConnection conn = null;
try {
 conn = testPool.getConnection();
} catch (ResourceException e) {
throw new ServletException(e);
} finally {
if (conn != null) {
conn.close();
}
}
}
} 

When I run that servlet i get the following error...

10/01/2013 8:43:14 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [JCATestServlet] in context with path
[/jcawebapp] threw exception [javax.resource.NotSupportedException:
LocalTransactions are not supported] with root cause
javax.resource.NotSupportedException: LocalTransactions are not supported
at
com.cyberavenue.jcatest.JCATestManagedConnection.getLocalTransaction(JCATestManagedConnection.java:62)
at
org.apache.geronimo.connector.outbound.LocalXAResourceInsertionInterceptor.getConnection(LocalXAResourceInsertionInterceptor.java:43)
at
org.apache.geronimo.connector.outbound.SinglePoolConnectionInterceptor.internalGetConnection(SinglePoolConnectionInterceptor.java:70)
at
org.apache.geronimo.connector.outbound.AbstractSinglePoolConnectionInterceptor.getConnection(AbstractSinglePoolConnectionInterceptor.java:80)
at
org.apache.geronimo.connector.outbound.TransactionEnlistingInterceptor.getConnection(TransactionEnlistingInterceptor.java:49)
at
org.apache.geronimo.connector.outbound.TransactionCachingInterceptor.getConnection(TransactionCachingInterceptor.java:109)
at
org.apache.geronimo.connector.outbound.ConnectionHandleInt

AW: Configuring Apache CXF in TomEE

2013-01-10 Thread dmitry.volkov
It works! Thank you. 

-Ursprüngliche Nachricht-
Von: Romain Manni-Bucau [mailto:rmannibu...@gmail.com] 
Gesendet: Mittwoch, 9. Januar 2013 22:46
An: users@openejb.apache.org
Betreff: Re: Configuring Apache CXF in TomEE

ok so first put it in WEB-INF, it is looked up here for sure

then mea culpa, i said  but it is 

*Romain Manni-Bucau*
*Twitter: @rmannibucau *
*Blog: **http://rmannibucau.wordpress.com/*
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*



2013/1/9 

> Just tried to put files with no effect in:
> /META-INF
> /WEB-INF
> /WEB-INF/classes/META-INF
>
>
>
> -Ursprüngliche Nachricht-
> Von: Romain Manni-Bucau [mailto:rmannibu...@gmail.com]
> Gesendet: Mittwoch, 9. Januar 2013 17:16
> An: users@openejb.apache.org
> Betreff: Re: Configuring Apache CXF in TomEE
>
> try to put files in WEB-INF
>
> *Romain Manni-Bucau*
> *Twitter: @rmannibucau *
> *Blog: **http://rmannibucau.wordpress.com/*<
> http://rmannibucau.wordpress.com/>
> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> *Github: https://github.com/rmannibucau*
>
>
>
> 2013/1/9 
>
> > Just tried proposed configuration:
> > https://github.com/eiskonzept/tomee-jaxrs/blob/master/src/main/resou
> > rc es/META-INF/ Still not working. I have checked in debugger that
> > JsonService.setDropRootElement(true) is called, but then another 
> > instance of JsonService is used for marshaling. pojo-deployment tag 
> > in openejb-jar.xml seems not working correctly.
> >
> >
> > My openejb-jar.xml:
> > http://www.openejb.org/openejb-jar/1.1";>
> > 
> > 
> > cxf.jaxrs.providers = json
> > 
> > 
> > 
> >
> > My resources.xml:
> > 
> >  > class-name="org.apache.cxf.jaxrs.provider.json.JSONProvider">
> > dropRootElement = true
> > supportUnwrapped = true
> > 
> > 
> >
> > -Ursprüngliche Nachricht-
> > Von: Romain Manni-Bucau [mailto:rmannibu...@gmail.com]
> > Gesendet: Mittwoch, 9. Januar 2013 16:11
> > An: users@openejb.apache.org
> > Betreff: Re: Configuring Apache CXF in TomEE
> >
> > jaxrs-application is for tomee >= 1.5.2 (to be released)
> >
> > you can do:
> >
> > 
> > 
> >   
> >   cxf.jaxrs.providers = json
> >   
> > 
> >
> > 
> >  > class-name="org.apache.cxf.jaxrs.provider.json.JSONProvider">
> > dropRootElement = true
> > # etc...
> > 
> >
> > supportUnwrapped=true,dropRootElement=true
> >
> >
> > 2013/1/9 
> >
> > > 
> > >   
> > >   cxf.jaxrs.properties = supportUnwrapped=true,dropRootElement=true
> > >   
> > > 
> > >
> >
> >
> >
> > *Romain Manni-Bucau*
> > *Twitter: @rmannibucau *
> > *Blog: **http://rmannibucau.wordpress.com/*<
> > http://rmannibucau.wordpress.com/>
> > *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> > *Github: https://github.com/rmannibucau*
> >
>