Would I be right in thinking that you are getting the exception in the
line
Context ctx = new InitialContext();
? If so, your problem probably lies in the lack of jndi.properties file
from your classpath. Perhaps if you post the stack trace I could offer
more help.
cheers
dim
On Mon, 17 Sep 2001, John LYC wrote:
> of course, in my code , "myEJBName" is "Contact"...
> i wrote "myEJBName" as a form of expression..
>
> Thanks anyway for your wonderful help.
> John
>
> ----- Original Message -----
> From: "Sacha Labourey" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, September 17, 2001 6:18 PM
> Subject: RE: [JBoss-user] Error during conetxt.lookup()
>
>
> > And what if you replace "myEJBName" by *your EJB name* that is
> "Contact"...
> >
> > > -----Message d'origine-----
> > > De : [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED]]De la part de John LYC
> > > Envoy� : lundi, 17 septembre 2001 12:13
> > > � : Jboss Mailing List
> > > Objet : [JBoss-user] Error during conetxt.lookup()
> > >
> > >
> > > Hi all,
> > > im a newbie to J2ee and jboss...
> > > and i had a hard time configuring and trying to get jboss to work..
> > > hope i can get some help here...
> > >
> > > well, i finally got my EJB deployed...
> > > and i have a test client (like the one in the nitro-interest example) to
> > > test my EJB.
> > > when i run the test-client locally on my machines.. i get a
> > > noIntialConetxt
> > > exceptions..
> > > now i have move my test-client into the myEJB.jar and run it from the
> > > container itself..
> > > now when i do a lookup("myEJBName"), i get a "myEJBName not bound"
> > > i checked my ejb-jar.xml
> > > and have the following...
> > > ===================
> > > <ejb-jar>
> > > <enterprise-beans>
> > > <entity>
> > > <ejb-name>Contact</ejb-name>
> > > <home>testejb.ContactHome</home>
> > > <remote>testejb.Contact</remote>
> > > <ejb-class>testejb.ContactBeanBMP</ejb-class>
> > > <persistence-type>Bean</persistence-type>
> > > <prim-key-class>java.lang.String</prim-key-class>
> > > <reentrant>False</reentrant>
> > > <resource-ref>
> > > <res-ref-name>jdbc/DefaultDS</res-ref-name>
> > > <res-type>javax.sql.DataSource</res-type>
> > > <res-auth>Container</res-auth>
> > > </resource-ref>
> > > </entity>
> > > </enterprise-beans>
> > > <assembly-descriptor>
> > > <container-transaction>
> > > <method>
> > > <ejb-name>Contact</ejb-name>
> > > <method-name>*</method-name>
> > > </method>
> > > <trans-attribute>Required</trans-attribute>
> > > </container-transaction>
> > > </assembly-descriptor>
> > > </ejb-jar>
> > > ========end=============
> > >
> > > in my jboss.xml , i have :...
> > > ======================
> > >
> > > <jboss>
> > > <enterprise-beans>
> > > <entity>
> > > <ejb-name>Contact</ejb-name>
> > > <jndi-name>Contact</jndi-name>
> > > </entity>
> > > </enterprise-beans>
> > > </jboss>
> > >
> > > ========end=============
> > >
> > > please help... thanks!!!!
> > >
> > > john
> > >
> > > _______________________________________________
> > > JBoss-user mailing list
> > > [EMAIL PROTECTED]
> > > https://lists.sourceforge.net/lists/listinfo/jboss-user
> > >
> >
> >
> > _______________________________________________
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
> >
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user