Re: [JBoss-user] Problem Getting Something Stored in env-entry

2002-02-23 Thread Hunter Hillegas

Yup, that was it. Telling JBoss to validate had me fixed up in about 5
minutes.

Thanks,
Hunter

 From: Scott M Stark [EMAIL PROTECTED]
 Organization: JBoss Group
 Reply-To: Scott M Stark [EMAIL PROTECTED]
 Date: Fri, 22 Feb 2002 18:35:25 -0800
 To: JBoss 2 [EMAIL PROTECTED]
 Subject: Re: [JBoss-user] Problem Getting Something Stored in env-entry
 
 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=VerifyDeploymentstrue/attribute
   attribute name=ValidateDTDstrue/attribute
   attribute name=MetricsEnabledfalse/attribute
   attribute name=VerifierVerbosetrue/attribute
   attribute name=BeanCacheJMSMonitoringEnabledfalse/attribute
 /mbean
 
 
 Scott Stark
 Chief Technology Officer
 JBoss Group, LLC
 
 - 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-nameclientName/env-entry-name
 env-entry-typejava.lang.String/env-entry-type
 env-entry-valuegroundswell/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


___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Problem Getting Something Stored in env-entry

2002-02-22 Thread Scott M Stark

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=VerifyDeploymentstrue/attribute
attribute name=ValidateDTDstrue/attribute
attribute name=MetricsEnabledfalse/attribute
attribute name=VerifierVerbosetrue/attribute
attribute name=BeanCacheJMSMonitoringEnabledfalse/attribute
  /mbean


Scott Stark
Chief Technology Officer
JBoss Group, LLC

- 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-nameclientName/env-entry-name
 env-entry-typejava.lang.String/env-entry-type
 env-entry-valuegroundswell/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