I would guess your ejb-jar.xml is not correct. Turn on validation of the dtd by setting the ValidateDTDs to true and include the correct DOCTYPE in the ejb-jar.xml descriptor.
<mbean code="org.jboss.ejb.ContainerFactory" name=":service=ContainerFactory"> <attribute name="VerifyDeployments">true</attribute> <attribute name="ValidateDTDs">true</attribute> <attribute name="MetricsEnabled">false</attribute> <attribute name="VerifierVerbose">true</attribute> <attribute name="BeanCacheJMSMonitoringEnabled">false</attribute> </mbean> xxxxxxxxxxxxxxxxxxxxxxxx Scott Stark Chief Technology Officer JBoss Group, LLC xxxxxxxxxxxxxxxxxxxxxxxx ----- Original Message ----- From: "Hunter Hillegas" <[EMAIL PROTECTED]> To: "JBoss 2" <[EMAIL PROTECTED]> Sent: Friday, February 22, 2002 3:20 PM Subject: [JBoss-user] Problem Getting Something Stored in env-entry > I am storing a value in the env via my ejb-jar.xml file as follows: > > <env-entry> > <env-entry-name>clientName</env-entry-name> > <env-entry-type>java.lang.String</env-entry-type> > <env-entry-value>groundswell</env-entry-value> > </env-entry> > > When I try to look it up in my bean like this: > > String clientName = (String)jndiContext.lookup("java:comp/env/clientName"); > > I get this: > > javax.naming.NameNotFoundException: clientName not bound > > According to a couple of my J2EE books, java:comp/env/ is where that stuff > should be stored... So what am I doing wrong? > > Peeking in with JNDI view, I don't see my value anywhere in the tree... > > Hunter > > > _______________________________________________ > 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