tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrian Robitu <>
Subject JNDI InitialContext not working when upgrading from Tomcat 3.2.3 to 3.3
Date Thu, 29 Nov 2001 17:49:27 GMT

We are in the process of migrating our app from 3.2.3 to 3.3 (both on JDK
1.2.2). The application uses a trim-down in-house EJB container and Tomcat
as its servlet container. It works just fine under 3.2.3 but not under 3.3.
Here is the sample code that we have problem with.

	Properties properties = new Properties(System.getProperties());
	InputStream input =
	Context context = InitialContext(properties);
	VendorServiceHome home = (VendorServiceHome)

Our file is:


After loading the properties we print them and get:
which would indicate that is visible.

Under 3.2.3 the context.lookup returns a VendorServiceHomeImpl (which is
what we expect). Under 3.3 the context returns a javax.naming.Reference.

We've searched the archives, the manuals and other web resources that we
could think of, but we didn't get anywhere. Any help on this matter would be
highly appreciated.

Best regards,
Adrian Robitu
e-Commerce Architect
(416) 762-0032/410

To unsubscribe:   <>
For additional commands: <>
Troubles with the list: <>

View raw message