hi,

there are two possibilities on that one. first, you're not handling security properly. 
try
setting ejb.allowedIdentities=all in the properties for TestTable.

second, TestTable isn't being loaded by the ejb engine for some reason. check the 
error and
event logs for your server to see. You may have to set ejipt.logStackTrace=true to get
useful info.

[EMAIL PROTECTED] wrote:

> It's me again.   I having more problems with EJBs.   I have deployed my CMP
> EJB.   I have started the server in which the beans are contained, but now
> when I try and look up the home interface I get an exception.   Can any one
> help me out with this one?
>
> I have this property defined for my bean.
>
> ejb.beanHomeName=TestTable
>
> Here is my code for looking up the EJB.
>
>                Properties lProps = new Properties( );
>
>                lProps.setProperty( Context.INITIAL_CONTEXT_FACTORY,
> "allaire.ejipt.ContextFactory" );
>                lProps.setProperty( Context.PROVIDER_URL,
> "ejipt://localhost:2324" );
>
>                //get naming context
>                Context ctx = new InitialContext(lProps);
>
>                //look up jndi name
>                Object ref = ctx.lookup("TestTable");
>
> Here is the exception that I am getting.
>
> javax.naming.NameNotFoundException: TestTable not found
>      at allaire.ejipt._NamingContext.lookup(_NamingContext.java:73)
>      at allaire.ejipt._ClientContext.lookup(_ClientContext.java:113)
>      at javax.naming.InitialContext.lookup(InitialContext.java:350)
>      at security.TestTableTestClient2.<init>(TestTableTestClient2.java:33)
>      at security.Test.main(Test.java:6)
>
> ------------------------------------------------------------------------------
> Archives: http://www.egroups.com/group/jrun-interest/
> Unsubscribe: 
>http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_talk
> or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the 
>body.

Notice to recipient: This e-mail is meant for only the intended recipient of the 
transmission. If you received this e-mail in error, any review, use, dissemination, 
distribution or copying of this e-mail is STRICTLY PROHIBITED. Please notify us 
immediately of the error by return e-mail and please delete this message from your 
system. Thank you in advance for your co-operation.
------------------------------------------------------------------------------
Archives: http://www.egroups.com/group/jrun-interest/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_talk
or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the 
body.

Reply via email to