Read the j2ee spec again.

orion-xxxxx.xml files are deployment info; deployment info is server
dependant (in contrast to bean developer info & assembly info); deployment
info may override & complete 
for j2eeri, files are named j2eeri-xxxx.xml

basically, there's one of these per every .xml in the specs:

SPEC file               Orion file                      packageplace
application.xml orion-application.xml   \YOURAPP.ear\META-INF\
ejb-jar.xml             orion-ejb-jar.xml
\YOURAPP.ear\YOUREJB.jar\orion
web.xml         orion-web.xml           \YOURAPP.ear\YOURWAR.war\WEB-INF\

At deployment time, orion creates a counter-part of your SPEC files in
$orion\application-deployments\
for this it may use templates bundled in your package (if found in
packageplace)

HTH

JP

> -----Original Message-----
> From: Eric Hodges [mailto:[EMAIL PROTECTED]]
> Sent: Jueves, 01 de Febrero de 2001 15:50
> To: Orion-Interest
> Subject: Re: Questions about running an EJB client
> 
> 
> Where did this file come from?  I didn't put it in my EJB jar 
> or my EAR
> file.  It doesn't look like yours (there's no name attribute on the
> security-role-mapping tag), so once I edit it how will I 
> stick it back in my
> EAR?
> 
> That sounds odd, doesn't it?
> 
> Thanks for the help.
> 
> 
> ----- Original Message -----
> From: "Juan Lorandi (Chile)" <[EMAIL PROTECTED]>
> To: "Orion-Interest" <[EMAIL PROTECTED]>
> Sent: Thursday, February 01, 2001 11:51 AM
> Subject: RE: Questions about running an EJB client
> 
> 
> > in orion-application.xml (you can find it in
> > $orion\application-deployments\YOURAPP\)
> >
> > there should be a namespace tag; below is mine's form an app:
> > <namespace-access>
> > <read-access>
> > <namespace-resource root="">
> > <security-role-mapping
> > name="&lt;jndi-user-role&gt;">
> > <group name="admin" />
> > </security-role-mapping>
> > </namespace-resource>
> > </read-access>
> > <write-access>
> > </write-access>
> > </namespace-access>
> >
> > then, whenever the current user belongs to group admin, you 
> have read
> access
> > for ALL resources.
> > I believe that something on the line of
> >
> > <group name="admin" impliesAll="true" />
> >
> > would grant everybody read access;
> >
> > AFAIK Orion's JNDI imp. doesn't support writing, so the 
> write-access part
> is
> > irrelevant
> >
> >
> > HTH
> >
> > JP
> >
> > > -----Original Message-----
> > > From: Eric Hodges [mailto:[EMAIL PROTECTED]]
> > > Sent: Miércoles, 31 de Enero de 2001 20:14
> > > To: Orion-Interest
> > > Subject: Questions about running an EJB client
> > >
> > >
> > >
> > > I'm trying to set up an EJB (my first time) on Orion.  I have
> > > the .EAR file
> > > running, I just need to get the client to test it.  When I
> > > try to run the
> > > client, it fails on the constructor for InitialContext().
> > > Here's the error:
> > >
> > > java.lang.SecurityException: Not allowed to look up
> > > java:comp/ResourceFinder, check the namespace-access tag 
> setting in
> > > orion-application.xml for details
> > >  at com.evermind.server.rmi.bb.f_(JAX)
> > >  at com.evermind.server.rmi.RMIServer.f_(JAX)
> > >  at com.evermind.server.rmi.RMIContext.lookup(JAX)
> > >  at com.evermind.server.administration.LazyResourceFinder.f_(JAX)
> > >  at
> > > 
> com.evermind.server.administration.LazyResourceFinder.getEJBHome(JAX)
> > >  at com.evermind.server.Application.ap7(JAX)
> > >  at
> > > com.evermind.server.ApplicationClientInitialContextFactory.get
> > > InitialContext
> > > (JAX)
> > >  at
> > > javax.naming.spi.NamingManager.getInitialContext(NamingManager
> > > .java:668)
> > >  at
> > > 
> javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246)
> > >  at javax.naming.InitialContext.init(InitialContext.java:222)
> > >  at javax.naming.InitialContext.<init>(InitialContext.java:198)
> > >  at
> > > com.mongoosetech.agent.AgentBase.registerWithServer(AgentBase.
> > > java:100)
> > >  at com.mongoosetech.agent.AgentBase.register(AgentBase.java:71)
> > >  at com.mongoosetech.agent.AgentBase.<init>(AgentBase.java:58)
> > >  at
> > > 
> com.mongoosetech.agent.jdbcagent.JDBCAgent.<init>(JDBCAgent.java:81)
> > >  at
> > > com.mongoosetech.agent.jdbcagent.JDBCFramgent.<init>(JDBCFramg
> > > ent.java:21)
> > >  at
> > > com.mongoosetech.agent.jdbcagent.JDBCFramgent.main(JDBCFramgen
> > > t.java:73)
> > >
> > > The problem is that I don't have a file called
> > > "orion-application.xml".
> > > From the docs, I get the impression this is an Orion specific
> > > version of
> > > application.xml.  I have that, but I don't see a way to make
> > > it let me look
> > > up java:comp/ResourceFinder.
> > >
> > > Any clues?
> > >
> > >
> > >
> >
> 
> 

Reply via email to