I've tried something similar to this, e.g. putting jndi.properties on the
classpath (actually into META-INF of the WAR being deployed). That took
care of exceptions JNDI was throwing because it could not find the
provider. But now it just hangs trying to create InitialContext. Any
ideas?


On Mon, 26 Feb 2001, Lionel Siau wrote:

> Hi,
> 
> try this on the 'client' code. Self explanatory. I think it can be placed at
> the command line too.
> 
> There are a couple similar looking mails on this.
> 
> Lionel
> 
> System.setProperty("java.naming.factory.initial",
>   "org.jnp.interfaces.NamingContextFactory");
>       System.setProperty("java.naming.provider.url",
>   "localhost:1099");
> 
> Lionel
> 
> ----- Original Message -----
> From: "Anatoly Akkerman" <[EMAIL PROTECTED]>
> To: "jboss-user mailing list" <[EMAIL PROTECTED]>
> Sent: Monday, February 26, 2001 6:31 AM
> Subject: [jBoss-User] How to setup JNDI in stand-alone TomCat not started as
> MBean?
> 
> 
> >
> > Hi,
> >
> > After deploying PetStore on EmbeddedTomcat, I've tried it with Tomcat as
> > stand-alone MBean service. This involved a bunch of deployment descriptor
> > modifications, but it worked.
> >
> > Now I am trying to setup TomCat completely stand-alone on one machine and
> > JBoss on another machine. I deploy WAR by hand on TomCat and the EJBs from
> > EAR in the JBoss. But at this moment I am failing to establish a JNDI
> > context within TomCat (actually the JBossWebXmlReader request interceptor
> > throws an exception when trying to get InitialContext). TomCat is
> > configured with the same server.xml that was used for embedded and for
> > stand-alone started from within JBoss as MBean.
> >
> > From the exception it seems I need to specify for the java VM a property
> > that specifies the naming provider, i.e. jnp implementation of JNDI
> > service.
> >
> > Any ideas how that should be done?
> >
> > Anatoly Akkerman.
> >
> >
> >
> > --
> > --------------------------------------------------------------
> > To subscribe:        [EMAIL PROTECTED]
> > To unsubscribe:      [EMAIL PROTECTED]
> > List Help?:          [EMAIL PROTECTED]
> >
> 
> 
> 
> --
> --------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> List Help?:          [EMAIL PROTECTED]
> 
> 



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]

Reply via email to