I have managed to get the TDK/JBoss combination working under Windows 2000
in two different configurations. The first was using the JBoss Tomcat how-to
to install Tomcat (3.2.1) in JBoss, running in the same VM. I then took a
compiled and working NewApp from the TDK and installed it in the webapps
directory of the Tomcat installation. This required adding the JBoss client
libs into the WEB-INF\lib directory, but nothing else. There is a jndi.jar
in the WEB-INF\lib directory. I then added an EJB into the JBoss deployment
directory, added an Action class and template to utilize it into the NewApp.
It works, and the JNDI setup in the Action class is unnecessary as a simple
getInitialContext() is sufficient within the same VM.

In this case I was only able to access my test EJB through the Turbine app
if I included the EJB jar in the _server_ class path (that is, by adding it
to the JBOSS_CLASSPATH in run.bat). Having the classes (the Home and Remote
interfaces anyway) available in the WEB-INF lib or classes was insufficient.
Note that a standalone servlet client had no trouble working without this
classpath setup. The error was a javax.naming.CommunicationsException:
ClassNotFoundException looking for the Home interface of my EJB.

The second configuration has JBoss running it its process and the TDK
running with Tomcat under a separate process and on a different HTTP port.
In this case I followed the TDK recommendations and removed the jndi.jar
from the WEB-INF\lib and started Tomcat with bin\cataline\run -nonaming. It
was necessary to configure the initial context in the Action class (I had no
luck trying to get the Turbine Naming service to work). Once the JNDI
configuration was correct, it worked. The EJB classes are available in
WEB-INF classes but nowhere else in the TDK and I was able to remove them
from the JBoss classpath without any impact.

All of the jndi.jar/jndi-1.2.1.jar files that I have seen in either Turbine
or JBoss are the same. You should not need - and do not want - any other jar
files in the setup, particularly the j2ee.jar file from Sun. 

You're client code looks very much like what I am using so I do not suspect
that this is a problem. 

I made no entries in TR.properties beyond the standard JDBC ones to get this
to work and didn't have to change the configuration files for Tomcat or
JBoss except as noted above. The 'web container not found' message that you
are seeing indicated that the embedded Tomcat service is not running. If you
are running the TDK in a separate VM then this will not cause any problems. 

Your WEB-INF\lib directory should have 33 jar files: 10 from the
JBoss\client directory (all except jndi.jar) and 13 from the tdk\share\lib
directory (all except the JNDI-1.2.1.jar).

If I can provide any additional configuration information, please let me
know.

Park

-----Original Message-----
From: mroosendaal [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 22, 2001 8:33 AM
To: [EMAIL PROTECTED]
Subject: Re: unknown protocol: jndi (John Menke)


Nothing seems to be working. I tried juggling the jndi.jar's,changing code,
etc..
I've attached the client.java, maybe there is something wrong but i don;t
think so (it worked via a Test.java).

Can it have something to do with J2EE (i installed it and put the J2EE_HOME
in the classpath).
There's also one thing that's a bit strange (i'll try anything at this
point). When starting up Jboss the following seqence appears in the start-up
sequence.
[J2EE Deployer Default] Starting
[J2EE Deployer Default] No web container found - only EJB deployment
available.
[J2EE Deployer Default] Cleaning up deployment directory
[J2EE Deployer Default] Started

I did a netstat to see if there was something strange. I know i'm pushing it
here but could you send me some screenshots of you dir-structure in TDK for:
bin
common\lib
lib
server
server\lib
share\lib
If this doesn't work i don't know what will.

Thanks,
Maarten
----- Original Message -----
From: "John Menke" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 21, 2001 4:21 PM
Subject: RE: unknown protocol: jndi (John Menke)


> Maarten, here is the TR.p file.
>
>
> > -----Original Message-----
> > From: mroosendaal [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, June 21, 2001 6:48 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: unknown protocol: jndi (John Menke)
> >
> >
> > Could you sent me your TurbineProperties file?
> >
> > Thanks,
> > Maarten
> > ----- Original Message -----
> > From: "John Menke" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, June 20, 2001 4:40 PM
> > Subject: RE: unknown protocol: jndi (John Menke)
> >
> >
> > > My best guess is that it has something to do with different versions
of
> > the
> > > jndi classes being available.  This leads to the error.  Maybe
> > try taking
> > > the jndi jars TOTALLY out of your tdk installation? then take
naming.jar
> > > out.... etc...   If moving around jars in Linux fixed the
> > problem then it
> > > should do the same thing in Windows.
> > >
> > >
> > >
> > > > -----Original Message-----
> > > > From: mroosendaal [mailto:[EMAIL PROTECTED]]
> > > > Sent: Wednesday, June 20, 2001 9:33 AM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: Re: unknown protocol: jndi (John Menke)
> > > >
> > > >
> > > > Okay thanks, but what does the error mean? Can't Catalina find a
> > > > jndi-package or can it have something to do with the browser?
> > > >
> > > > Maarten
> > > > ----- Original Message -----
> > > > From: "John Menke" <[EMAIL PROTECTED]>
> > > > To: <[EMAIL PROTECTED]>
> > > > Sent: Wednesday, June 20, 2001 3:04 PM
> > > > Subject: RE: unknown protocol: jndi (John Menke)
> > > >
> > > >
> > > > > Maarten, I'm really not an expert on the Catalina startup
> > process.  I
> > > > can't
> > > > > believe it's still not running.  It's obviously something to do
with
> > > > Windows
> > > > > vs. Linux configuration as I have it running on Linux on 2
different
> > > > boxes.
> > > > > If you have removed the jndi jars from the WEB-INF/lib I cannot
> > > > figure out
> > > > > why it's confused...
> > > > >
> > > > >
> > > > > > -----Original Message-----
> > > > > > From: mroosendaal [mailto:[EMAIL PROTECTED]]
> > > > > > Sent: Wednesday, June 20, 2001 8:24 AM
> > > > > > To: [EMAIL PROTECTED]
> > > > > > Subject: Re: unknown protocol: jndi (John Menke)
> > > > > >
> > > > > >
> > > > > > John,
> > > > > >
> > > > > > i used the -debug option from the startup.bat and inserted the
> > > > > > result in the
> > > > > > attached catalina_debug.txt-file. Could you take a quick look at
> > > > > > it and see
> > > > > > if you see anything strange?
> > > > > >
> > > > > > Thanks,
> > > > > > Maarten
> > > > > > ----- Original Message -----
> > > > > > From: "John Menke" <[EMAIL PROTECTED]>
> > > > > > To: <[EMAIL PROTECTED]>
> > > > > > Sent: Tuesday, June 19, 2001 4:07 PM
> > > > > > Subject: RE: unknown protocol: jndi
> > > > > >
> > > > > >
> > > > > > > > The jndi.jar files are in (even tried including them in the
> > > > > > classpath):
> > > > > > > > tdk\bin\jndi.jar
> > > > > > > > tdk\common\lub\jndi.jar
> > > > > > > > tdk\share\lib\jndi-1.2.1.jar
> > > > > > > > But not in the lib-directory of the application. Why does is
> > > > > > not see the
> > > > > > > > jndi protocol?
> > > > > > > >
> > > > > > >
> > > > > > > Maarten,  here is what I have... It's working on my Box with
> > > > > > Catalina and
> > > > > > > Tomcat with the 2.1 version of the TDK.  Are you sure that
> > > > don't have
> > > > > > > jndi.jar or jndi-1.2.jar in the WEB-INF/lib directory?
> > > > > > >
> > > > > > > BELOW IS A SUMMARY OF MY CONFIGURATION THAT IS RUNNING:
> > > > > > >
> > > > > > > I also have:
> > > > > > >
> > > > > > > tdk\bin\jndi.jar
> > > > > > > tdk\share\lib\jndi-1.2.1.jar
> > > > > > >
> > > > > > > I don't have:
> > > > > > >
> > > > > > > tdk\common\lub\jndi.jar
> > > > > > >
> > > > > > >
> > > > > > > I have the following configuration working with TDK2.1 and
> > Catalina.
> > > > (I
> > > > > > am
> > > > > > > able to do JNDI lookups and work with my EJB's)
> > > > > > >
> > > > > > > Here is the updated file list for TDK 2.1
> > > > > > >
> > > > > > > Files in WEB-INF/lib
> > > > > > >
> > > > > > > README.txt            jakarta-regexp-1.3-dev.jar
junit-3.2.jar
> > > > > > > velocity-1.2-dev.jar
> > > > > > > activation-1.0.1.jar  jboss-client.jar
log4j-1.1.jar
> > > > > > > village-1.5.1.jar
> > > > > > > eaglebeans.jar        jbossmq-client.jar          mail-1.2.jar
> > > > > > > xalan-1.2.1.jar
> > > > > > > ecs-1.4.1.jar         jbosssx-client.jar
> > mm.mysql-2.0.4.jar
> > > > > > > xerces-1.3.0.jar
> > > > > > > ejb.jar               jdbc-se2.0.jar              oro.jar
> > > > > > > xmlrpc.jar
> > > > > > > hsql.jar              jdbc2_0-stdext.jar
postgresql.jar
> > > > > > > httpunit.jar          jnp-client.jar              sapdbc.jar
> > > > > > > idb.jar               jta1.0.1.jar
> > turbine-2.1.jar
> > > > > > >
> > > > > > > -eaglebeans.jar is the jar file containing my EJB's
> > > > > > > -the files moved from jboss/client are:
> > > > > > > -ejb.jar
> > > > > > > -jboss-client.jar
> > > > > > > -jbossmq-client.jar
> > > > > > > -jbosssx-client.jar
> > > > > > > -jnp-client.jar
> > > > > > > - everything else should be standard to the TDK install.
> > > > > > >
> > > > > > >
> > > > > > > THIS IS THE CLASSPATH USED WITH CATALINA:
> > > > > > >
> > > > > > > [root@remote bin]# ./startup.sh
> > > > > > > Guessing CATALINA_HOME from catalina.sh to ./..
> > > > > > > Setting CATALINA_HOME to ./..
> > > > > > > Using CLASSPATH:
> > > > > > >
> > > > > >
./../bin/bootstrap.jar:./../bin/servlet.jar:./../bin/naming.jar:/u
> > > > > > sr/java/jd
> > > > > > > k1.3/lib/tools.jar
> > > > > > > Using CATALINA_HOME: ./..
> > > > > > > Starting service Tomcat-Standalone
> > > > > > > Apache Tomcat/4.0-dev
> > > > > > > Starting service Tomcat-Apache
> > > > > > > Apache Tomcat/4.0-dev
> > > > > > >
> > > > > > >
> > > > > > > THIS IS THE STARTUP SCRIPT USED
> > > > > > >
> > > > > > >
> > > > > > > #!/bin/sh
> > > > > > >
> > > > > > #
> > > > >
> > > > >
> > >
> > >
>
> --------------------------------------------------------------------------
> > > >
> > > > > > > ---
> > > > > > > # startup.sh - Start Script for the CATALINA Server
> > > > > > > #
> > > > > > > # $Id: startup.sh,v 1.1 2000/08/11 05:22:16 craigmcc Exp $
> > > > > > >
> > > > > > #
> > > > >
> > > > >
> > >
> > >
>
> --------------------------------------------------------------------------
> > > > > > > ---
> > > > > > >
> > > > > > > BASEDIR=`dirname $0`
> > > > > > > $BASEDIR/catalina.sh run -nonaming "$@"
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > >
> ---------------------------------------------------------------------
> > > > > > > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > > > > > > For additional commands, e-mail:
> > > > [EMAIL PROTECTED]
> > > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail:
[EMAIL PROTECTED]
> > > > > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > > >
> > > >
> > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail:
[EMAIL PROTECTED]
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>


----------------------------------------------------------------------------
----


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

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

Reply via email to