Class.getResource does not find a resource in a JCA module

2008-06-16 Thread florinbratu
Hello! I am developping a JCA module, which has the following structure: code $ jar tf proactive.rar META-INF/ META-INF/MANIFEST.MF META-INF/proactive-log4j META-INF/ra.xml META-INF/geronimo-ra.xml proactiveConnector.jar ProActive.jar bouncycastle.jar fractal.jar javassist.jar log4j.jar

request.isUserInRole(some-role) always return false after @EJB injection

2008-06-16 Thread Stig Even Larsen
Hi, After logging in via the j_security_check form I use the simplest of jsp page for testing purpose. I've defined several roles and am able to check this via request.isUserInRole(some-role). Everything is working as expected. When I throw in a EJB via @EJB annotation or via JNDI lookup

Re: request.isUserInRole(some-role) always return false after @EJB injection

2008-06-16 Thread Stig Even Larsen
I forgot to tell that I'm using Geronimo 2.0.2 on Debian Etch. Regards, Stig Even Larsen Stig Even Larsen wrote: Hi, After logging in via the j_security_check form I use the simplest of jsp page for testing purpose. I've defined several roles and am able to check this via

JPA transactions

2008-06-16 Thread Phani Madgula
Hi, I tried to create a application managed entity manager as follows. persistence.xml --- ?xml version=1.0 encoding=UTF-8? persistencexmlns=http://java.sun.com/xml/ns/persistence; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; version=1.0

Re: Class.getResource does not find a resource in a JCA module

2008-06-16 Thread David Jencks
The only stuff that gets in a classloader in a rar is stuff in a jar. So, to make the log4j config file loadable from cl.getResource you will need to put it inside a jar in the rar. Less than ideal, I know. thanks david jencks On Jun 16, 2008, at 4:30 AM, florinbratu wrote: Hello! I

Re: request.isUserInRole(some-role) always return false after @EJB injection

2008-06-16 Thread Kevan Miller
think you've run into a bug, which was recently fixed (revision number 663484 for branches/2.0). The nightly build of 2.0.3-SNAPSHOT should contain the fix. You'll find some binaries here -- http://people.apache.org/builds/geronimo/server/binaries/2.0/20080616/ --kevan

Re: request.isUserInRole(some-role) always return false after @EJB injection

2008-06-16 Thread David Jencks
/binaries/2.0/20080616/ Just for tracking purposes this is GERONIMO-4099. This was the bug that came to my mind first also, but I'm not convinced it's the same problem. Please let us know whether the 2.0.3 snapshot fixes the problem you are seeing. thanks david jencks --kevan

Re: JPA transactions

2008-06-16 Thread David Jencks
On Jun 16, 2008, at 5:21 AM, Phani Madgula wrote: Hi, I tried to create a application managed entity manager as follows. persistence.xml --- ?xml version=1.0 encoding=UTF-8? persistencexmlns=http://java.sun.com/xml/ns/persistence;

Re: When deploy-offline, BasicServerInfo cannot be cast to org.apache.geronimo.system.serverinfo.ServerIn

2008-06-16 Thread Jarek Gawor
/trunk/20080616 Jarek On Fri, Jun 13, 2008 at 12:22 PM, jklcom99 [EMAIL PROTECTED] wrote: I applied GERONIMO-4072.patch, got a little further with off-line deploy. Now it is getting this error: [java] 12:06:16,520 ERROR [GBeanInstanceState] Error while starting; GBean is now

Re: request.isUserInRole(some-role) always return false after @EJB injection

2008-06-16 Thread Stig Even Larsen
/2.0). The nightly build of 2.0.3-SNAPSHOT should contain the fix. You'll find some binaries here -- http://people.apache.org/builds/geronimo/server/binaries/2.0/20080616/ Just for tracking purposes this is GERONIMO-4099. This was the bug that came to my mind first also, but I'm

Re: request.isUserInRole(some-role) always return false after @EJB injection

2008-06-16 Thread David Jencks
was recently fixed (revision number 663484 for branches/2.0). The nightly build of 2.0.3-SNAPSHOT should contain the fix. You'll find some binaries here -- http://people.apache.org/builds/geronimo/server/binaries/2.0/20080616/ Just for tracking purposes this is GERONIMO-4099

Re: JPA transactions

2008-06-16 Thread Phani Madgula
Thanks..I was trying different combinations and finally got confused. Well, as suggested (also David Blevins said earlier), I would always try to use JTA transactions incase I am using EM in an EJB. Thanks Phani On Mon, Jun 16, 2008 at 11:09 PM, David Jencks [EMAIL PROTECTED] wrote: On Jun