Re: OpenEJB + HBase + Datanucleus + JPA - Problem when TomEE closing entity manager

2012-07-01 Thread Romain Manni-Bucau
Add openejb-core as provided dep and use OpenEJB.getTransactionManager() - Romain Le 2 juil. 2012 05:56, "Ravindranath Akila" a écrit : > For the JTA Locatior, for JNDI lookup, I should give: > > java:openejb/TransactionManager (if outside a bean) > java:comp/TransactionManager (if inside a bean

Re: Using @EJB/@Inject to lookup on remote interface running on separate standalone OpenEJB server

2012-07-01 Thread exabrial
Hey sorry to wake a dead thread... but I just thought of something: Does OpenEJB has a jndi-link feature? I don't think it does, but I know GlassFish and Resin can do it http://www.caucho.com/resin-3.0/config/env.xtp#jndi-link Would writing a custom ObjectFactory be the correct way to do this

Re: Property javax.security.jacc.PolicyConfigurationFactory.provider not set

2012-07-01 Thread David Blevins
On Jul 1, 2012, at 3:43 PM, exabrial wrote: > Ok I fixed at least part of the problem by changing the example to: > > > java.naming.provider.url = ejbd://localhost:3201 > java.naming.factory.initial = > org.apache.openejb.client.RemoteInitialContextFactory >

Re: Property javax.security.jacc.PolicyConfigurationFactory.provider not set

2012-07-01 Thread exabrial
Ok I fixed at least part of the problem by changing the example to: java.naming.provider.url = ejbd://localhost:3201 java.naming.factory.initial = org.apache.openejb.client.RemoteInitialContextFactory I updated the wiki accordingly (No need for a

Re: Property javax.security.jacc.PolicyConfigurationFactory.provider not set

2012-07-01 Thread David Blevins
On Jul 1, 2012, at 3:17 PM, exabrial wrote: > This is the stack trace from the TomEE VM. It doesn't even get to starting > the full app, as there is a seperate stacktrace: Ok. That narrows it down a bit. The full stacktrace and a couple log lines before would be great. -David

Re: Property javax.security.jacc.PolicyConfigurationFactory.provider not set

2012-07-01 Thread exabrial
This is the stack trace from the TomEE VM. It doesn't even get to starting the full app, as there is a seperate stacktrace: Caused by: org.apache.catalina.LifecycleException: A child container failed during start at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:11

Re: Property javax.security.jacc.PolicyConfigurationFactory.provider not set

2012-07-01 Thread Romain Manni-Bucau
not a bug, just pointed out where to debug if you want. It currently work on buildbot so it means the bug is in your environment i guess - Romain 2012/7/2 David Blevins > > On Jul 1, 2012, at 2:59 PM, exabrial wrote: > > > I'm attempting to connect an instance of TomEE to an OpenEJB server >

Re: Property javax.security.jacc.PolicyConfigurationFactory.provider not set

2012-07-01 Thread exabrial
Strange... so is that a bug in TomEE then? Is there a way to bypass this that you can think of? -- View this message in context: http://openejb.979440.n4.nabble.com/Property-javax-security-jacc-PolicyConfigurationFactory-provider-not-set-tp4655930p4655932.html Sent from the OpenEJB User mailing l

Re: Property javax.security.jacc.PolicyConfigurationFactory.provider not set

2012-07-01 Thread David Blevins
On Jul 1, 2012, at 2:59 PM, exabrial wrote: > I'm attempting to connect an instance of TomEE to an OpenEJB server using the > directions on this page: http://openejb.apache.org/ejb-refs.html > In which VM do you get the pasted stackrace, the TomEE vm or the OpenEJB vm? Also, how are you bootin

Re: Property javax.security.jacc.PolicyConfigurationFactory.provider not set

2012-07-01 Thread Romain Manni-Bucau
Normally it is done in org.apache.openejb.core.security.AbstractSecurityService#installJacc called from constructor of org.apache.tomee.catalina.TomcatSecurityService - Romain 2012/7/1 exabrial > I'm attempting to connect an instance of TomEE to an OpenEJB server using > the > directions on t

Property javax.security.jacc.PolicyConfigurationFactory.provider not set

2012-07-01 Thread exabrial
I'm attempting to connect an instance of TomEE to an OpenEJB server using the directions on this page: http://openejb.apache.org/ejb-refs.html Caused by: org.apache.openejb.OpenEJBException: PolicyConfigurationFactory class not found: Property javax.security.jacc.PolicyConfigurationFactory.provide

Re: Using Mojarra instead of MyFaces

2012-07-01 Thread Romain Manni-Bucau
Hi, pushed some work about it, can you give it a try using tomee snapshot? The zip should contain a tomee-mojarra jar in tomee lib. - Romain 2012/6/30 Romain Manni-Bucau > Hi, > > Some work in progess: > http://svn.apache.org/repos/asf/openejb/trunk/sandbox/tomee-mojarra/ > > Currently not as

Re: OpenEJB + HBase + Datanucleus + JPA - Problem when TomEE closing entity manager

2012-07-01 Thread Romain Manni-Bucau
Hmm, Driver are just a way to get a connection. That's not linked to JTA. Cassandra got a sql Driver even if it is a great NoSQL solution so not sure that's the reason. In all case providing a jta locator is important (we have the same kind of stuff with hibernate, openjpa and so on). Good luck

Re: OpenEJB + HBase + Datanucleus + JPA - Problem when TomEE closing entity manager

2012-07-01 Thread Ravindranath Akila
Thanks! I will try both methods. Meanwhile I found this: http://www.datanucleus.org/extensions/jta_locator.html I will try this too. I think I am missing the point that SQL databases have their own low level locks for transactions and this whole NoSQL scenario where ACIDity is compromised for av

Re: OpenEJB + HBase + Datanucleus + JPA - Problem when TomEE closing entity manager

2012-07-01 Thread Romain Manni-Bucau
Yep, in JTA mode jta-datasource will be used. Persistence.xml datasources are managed by TomEE itself. To define a datasource from a datasource impl (weird to say but i guess you understand ;)) you can maybe try @DataSourceDefinition or the datasource XML definition from web.xml? - Romain 2012

Re: OpenEJB + HBase + Datanucleus + JPA - Problem when TomEE closing entity manager

2012-07-01 Thread Ravindranath Akila
Gave TomEE 1.0.0 a try, but I get a NPE from Datanucleus with no other message. I will try debugging further. Is it mandatory that the jta-data-source and non-jta-data-source be defined on persistence.xml? If so, it is also compulsory that I specify the same on openejb.xml(tomee.xml)? I am unable