RE: Tomcat with external JBoss (JNDI problems)...Workaround...

2002-11-25 Thread Andrzej Jan Taramina
I've come up with a workaround to the problem that Tomcat servlets can't seem to find the jndi.properties file and thus connect to an external JBoss server. Hardcoding the properties works, but is ugly since then your code is tied to the specific location of the JBoss server.and thus

RE: Tomcat with external JBoss (JNDI problems)...

2002-11-22 Thread Becker, Michael
This works for me: // Try to find each of these individual parameters // and construct the properties // object appropriately java.util.Properties p = new java.util.Properties(); p.put(InitialContext.INITIAL_CONTEXT_FACTORY, org.jnp.interfaces.NamingContextFactory);

RE: Tomcat with external JBoss (JNDI problems)...

2002-11-22 Thread Shapira, Yoav
Hi, Where do the org.jnp classes come from? Thanks, Yoav Shapira Millennium ChemInformatics -Original Message- From: Becker, Michael [mailto:[EMAIL PROTECTED]] Sent: Friday, November 22, 2002 9:35 AM To: Tomcat Users List Subject: RE: Tomcat with external JBoss (JNDI problems

RE: Tomcat with external JBoss (JNDI problems)...

2002-11-22 Thread Becker, Michael
Copy %JBOSS_HOME%/client/[jboss-client.jar,jboss-common-client.jar, jbosssx-client.jar, jnp-client.jar, jboss-j2ee.jar, and log4j.jar] to %CATALINA_HOME%/shared/lib. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Hi, Where do the org.jnp classes come from? Thanks,

RE: Tomcat with external JBoss (JNDI problems)...

2002-11-22 Thread Andrzej Jan Taramina
Copy %JBOSS_HOME%/client/[jboss-client.jar,jboss-common-client.jar, jbosssx-client.jar, jnp-client.jar, jboss-j2ee.jar, and log4j.jar] to %CATALINA_HOME%/shared/lib. Doesn't work.it still does not pick up my JBoss-specific jndi.properties file. I've got that file in the WEB-INF/classes

RE: Tomcat with external JBoss (JNDI problems)...

2002-11-22 Thread Becker, Michael
Copy %JBOSS_HOME%/client/[jboss-client.jar,jboss-common-client.jar, jbosssx-client.jar, jnp-client.jar, jboss-j2ee.jar, and log4j.jar] to %CATALINA_HOME%/shared/lib. Doesn't work.it still does not pick up my JBoss-specific jndi.properties file. I've got that file in the

Re: Tomcat with external JBoss (JNDI problems)...

2002-11-22 Thread Anthony Geoghegan
. - Original Message - From: Andrzej Jan Taramina [EMAIL PROTECTED] To: Becker, Michael [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, November 22, 2002 6:39 PM Subject: RE: Tomcat with external JBoss (JNDI problems)... Copy %JBOSS_HOME%/client/[jboss-client.jar,jboss-common-client.jar

RE: Tomcat with external JBoss (JNDI problems)...

2002-11-22 Thread Andrzej Jan Taramina
I ran into the same problem and decided to address this by making all of the parameters JNDI environment variables and configuring those params in my web.xml file. I can easily change the configuration by commenting out or changing the environment entries in my web.xml file. Eventually, I

RE: Tomcat with external JBoss (JNDI problems)...Workaround...

2002-11-22 Thread Andrzej Jan Taramina
I've come up with a workaround to the problem that Tomcat servlets can't seem to find the jndi.properties file and thus connect to an external JBoss server. Hardcoding the properties works, but is ugly since then your code is tied to the specific location of the JBoss server.and thus