I had to repeat the <security> stuff in plan.xml to make it work!
Now I am getting this exception which is a good thing..
Thanks
Anita
java.rmi.AccessException: Unauthorized Access by Principal Denied
at
org.apache.openejb.client.EJBInvocationHandler.convertException(EJBInvocationHandler.java:211)
at
org.apache.openejb.client.EJBHomeHandler._invoke(EJBHomeHandler.java:156)
at
org.apache.openejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:115)
at
org.apache.openejb.client.proxy.Jdk13InvocationHandler.invoke(Jdk13InvocationHandler.java:52)
at $Proxy0.create(Unknown Source)
at Jsr77Client.main(Jsr77Client.java:103)
--- Anita Kulshreshtha <[EMAIL PROTECTED]> wrote:
> Thanks David J and David B! I used the patches to build a fresh
> server with modified assembly to include MEJB. I was able to access
> MEJB from a web application. So far so good.. Now, I am not getting
> "access denied" from a plain java client :( even though the generated
> DD shows:
> <jav:assembly-descriptor>
> <jav:method-permission>
> <jav:role-name>mejbuser</jav:role-name>
> <jav:method>
> <jav:ejb-name>ejb/mgmt/MEJB</jav:ejb-name>
> <jav:method-name>*</jav:method-name>
> </jav:method>
> </jav:method-permission>
> <jav:exclude-list/>
> </jav:assembly-descriptor>
>
> Thanks
> Anita
>
> --- David Jencks <[EMAIL PROTECTED]> wrote:
>
> > After a lot of help from David Blevins I think we've figured out a
>
> > reasonable plan. I've modified the EjbModuleBuilder to construct a
>
> > ConfigurationFactory for each app it deploys and fill in
> > ContainerInfos from all the EjbContainer gbean in scope of the
> app's
> >
> > Configuration. After some NPE avoidance in ConfigurationFactory
> and
> >
> > a new constructor so we can make sure we use our list of
> > ContainerInfos, I can build the MEJB car file.
> >
> > I've attached a couple more patches to GERONIMO-3481, one that has
>
> > the openejb changes, and one that has the modified EjbModuleBuilder
>
> > and the mejb project Anita has been working on (from GERONIMO-3456)
> >
> > I think what I have now will work for all non-MDBs. IIUC what
> David
> >
> > says I have to look for all ResourceAdapters available to the
> > application and construct ContainerInfos for their inbound adapters
>
> > and then MDBs might work too.
> >
> > Thanks
> > david jencks
> >
> > On Sep 20, 2007, at 11:42 PM, David Jencks wrote:
> >
> > > I took a quick look and I think we might be able to copy the
> parts
> >
> > > of OpenejbSystemGBean that the deployer needs into a gbean in the
>
> > > openejb-deployer module. I'm not sure what the resource adapter
>
> > > and persistence unit collections are doing.... we may be able to
>
> > > replace them with queries against the app's Configuration, which
> is
> >
> > > basically how the geronimo 1.x deployer found stuff.
> > >
> > > I'll attach what I came up with so far to GERONIMO-3481. My
> guess
> >
> > > is it might deploy ejbs modules that don't have mdbs or external
>
> > > persistence units.
> > >
> > > thanks
> > > david jencks
> > >
> > >
> > > On Sep 20, 2007, at 7:02 PM, Anita Kulshreshtha wrote:
> > >
> > >> I am trying to change the openejb-deployer so that it does
> not
> >
> > >> need
> > >> to start openejb config. Here is the trace:
> > >>
> > >> [INFO]
> > >>
> >
> ---------------------------------------------------------------------
> >
> > >> ---
> > >> [ERROR] BUILD ERROR
> > >> [INFO]
> > >>
> >
> ---------------------------------------------------------------------
> >
> > >> ---
> > >> [INFO] Unable to resolve reference "OpenEjbSystem" in gbean
> > >> org.apache.geronimo.
> > >> configs/openejb-deployer/2.1-SNAPSHOT/car?
> > >> ServiceModule=org.apache.geronimo.conf
> > >> igs/openejb-deployer/2.1-SNAPSHOT/
> > >> car,j2eeType=ModuleBuilder,name=EJBBuilder
> > >> to
> > >> a gbean matching the pattern
> > >> [?name=OpenEjbSystem#org.apache.geronimo.openejb.Op
> > >> enEjbSystem]due to: No matches for referencePatterns:
> > >> [?name=OpenEjbSystem#org.a
> > >> pache.geronimo.openejb.OpenEjbSystem]
> > >>
> > >> Thanks
> > >> Anita
> > >>
> > >>
> > >>
> > >>
> >
> _____________________________________________________________________
> >
> > >> _______________
> > >> Need a vacation? Get great deals
> > >> to amazing places on Yahoo! Travel.
> > >> http://travel.yahoo.com/
> > >
> >
> >
>
>
>
>
>
____________________________________________________________________________________
> Looking for a deal? Find great prices on flights and hotels with
> Yahoo! FareChase.
> http://farechase.yahoo.com/
>
____________________________________________________________________________________
Need a vacation? Get great deals
to amazing places on Yahoo! Travel.
http://travel.yahoo.com/