RE: Bug in jndi implementation : Tomcat 5 - jndi problem

2003-12-11 Thread Shapira, Yoav

Howdy,
It's not a bug in the tomcat implementation -- tomcat does not have an
external JNDI provider, while most full J2EE servers like the ones you
mention do.  So you can't connect to tomcat's JNDI contexts from outside
the tomcat JVM.

Please don't jump to conclusions without asking ;)

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Frank Renaers [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 11, 2003 3:04 AM
To: [EMAIL PROTECTED]
Subject: Bug in jndi implementation : Tomcat 5 - jndi problem

Hi,

I assume it's a bug in the Tomcat jndi implementation, because my test
is successfull when I use another jndi - implementation (Weblogic,
Websphere, ...)

Greetings,

Frank

  -Original Message-
 From:Frank Renaers
 Sent:woensdag 10 december 2003 11:58
 To:  [EMAIL PROTECTED]
 Subject: Tomcat 5 - jndi problem

 Hi,

 Is it possible to browse the Tomcat jndi context from within another
vm.
 I wrote a small junit test to test this, but it always fails !!
 It always throws a javax.naming.NameNotFoundException: Name java:comp
is
not bound in this Context

 My jndi.properties contains the following settings :

java.naming.factory.initial=org.apache.naming.java.javaURLContextFactory
 java.naming.provider.url=http://localhost:8080

 My conf.xml :
 !-- Global JNDI resources --
 GlobalNamingResources

   !-- Test entry for demonstration purposes --
   Environment name=simpleValue type=java.lang.Integer
value=30/
 /GlobalNamingResources

 My test :

 public void testDataSource() throws Exception {

 // Obtain our environment naming context
 javax.naming.Context initCtx = new
javax.naming.InitialContext();
 javax.naming.Context envCtx = (javax.naming.Context)
initCtx.lookup(java:comp/env/simpleValue);

 }
 }

 Thanks,

 Frank Renaers





This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat 5 - jndi problem

2003-12-10 Thread Frank Renaers
Hi,

Is it possible to browse the Tomcat jndi context from within another vm.
I wrote a small junit test to test this, but it always fails !!
It always throws a javax.naming.NameNotFoundException: Name java:comp is not bound in 
this Context 

My jndi.properties contains the following settings : 
java.naming.factory.initial=org.apache.naming.java.javaURLContextFactory
java.naming.provider.url=http://localhost:8080

My conf.xml :
!-- Global JNDI resources --
GlobalNamingResources

  !-- Test entry for demonstration purposes --
  Environment name=simpleValue type=java.lang.Integer value=30/
/GlobalNamingResources

My test :

public void testDataSource() throws Exception {

// Obtain our environment naming context
javax.naming.Context initCtx = new javax.naming.InitialContext();
javax.naming.Context envCtx = (javax.naming.Context) 
initCtx.lookup(java:comp/env/simpleValue);
   
}
}

Thanks,

Frank Renaers