Where are you running the client from? Are you showing us the classpath for
jboss-tomcat? jnp-client.jar needs to be in the classpath of the client,
not of the server. Hmmm, now this is curious; when I had jboss-client.jar
in the classpath, I didn't need jnp-client.jar at all. Yet if I explode
jboss-client.jar, it doesn't contain
org/jnp/interfaces/NamingContextFactory.class. So how can this class be
getting resolved with only jboss-client.jar? (A question for the group, not
you, as I realized you asked the question in the first place.)
Clarify your scenario. You are trying to invoke the interest ejb bean
running under jboss with embedded tomcat, from a jsp page or servlet running
under tomcat? If so, this should all be done from within a single jvm.
----- Original Message -----
From: "Marcillo, David" <[EMAIL PROTECTED]>
To: "'jboss-user list'" <[EMAIL PROTECTED]>
Sent: Monday, April 02, 2001 4:38 PM
Subject: [JBoss-user] re: JBoss 2.0 and Tomcat
>
> I am trying to get to the sample Interest EJB to run in tomcat
>
> Running Environment:
> IIS with jakarta-tomcat-3.2.1 running inprocess
> Trying to connect to
> jBoss-2.0_FINAL process
>
> I invoke the Interest EJB as follow:
> System.setProperty("java.naming.factory.initial",
> "org.jnp.interfaces.NamingContextFactory");
> System.setProperty("java.naming.provider.url",
> "localhost:1099");
> InitialContext jndiContext = new InitialContext();
>
> I get the following error message:
> Cannot instantiate class: org.jnp.interfaces.NamingContextFactory
> [Root exception is java.lang.ClassNotFoundException:
> org/jnp/interfaces/NamingContextFactory]
>
> class path from System.getProperty("java.class.path"); is as follows:
>
> ClassPath:
>
c:\jakarta-tomcat-3.2.1\classes;c:\jakarta-tomcat-3.2.1\lib\jaxp.jar;c:\jaka
>
rta-tomcat-3.2.1\lib\parser.jar;c:\jakarta-tomcat-3.2.1\lib\jasper.jar;c:\ja
>
karta-tomcat-3.2.1\lib\servlet.jar;c:\jakarta-tomcat-3.2.1\lib\webserver.jar
>
;c:\jakarta-tomcat-3.2.1\conf;c:\jdk13\lib\tools.jar;C:\jdk13\jre\lib\i18n.j
>
ar;C:\jdk13\jre\lib\jaws.jar;C:\jdk13\jre\lib\rt.jar;C:\jdk13\jre\lib\sunrsa
>
sign.jar;C:\jdk13\lib\dt.jar;c:\jBoss-2.0_FINAL\client\ejb.jar;c:\jBoss-2.0_
>
FINAL\client\jboss-client.jar;c:\jBoss-2.0_FINAL\client\jnp-client.jar;c:\jB
>
oss-2.0_FINAL\client\jaas.jar;c:\jBoss-2.0_FINAL\client\jndi.jar;c:\jBoss-2.
>
0_FINAL\conf;c:\jBoss-2.0_FINAL\lib\jboss-jaas.jar;c:\jBoss-2.0_FINAL\lib\xm
>
l.jar;c:\jBoss-2.0_FINAL\lib\jjmxri.jar;c:\jBoss-2.0_FINAL\lib\jdbc2_0-stdex
>
t.jar;c:\jBoss-2.0_FINAL\lib\ext\activation.jar;c:\jBoss-2.0_FINAL\bin\run.j
>
ar;c:\jBoss-2.0_FINAL\lib\ext\awt.jar;c:\jBoss-2.0_FINAL\lib\ext\dynaserver.
>
jar;c:\jBoss-2.0_FINAL\lib\ext\ejxeditor.jar;c:\jBoss-2.0_FINAL\lib\ext\ejxe
>
jb.jar;c:\jBoss-2.0_FINAL\lib\ext\ejxjaws.jar;c:\jBoss-2.0_FINAL\lib\ext\ejx
>
jboss.jar;c:\jBoss-2.0_FINAL\lib\ext\hsql.jar;c:\jBoss-2.0_FINAL\lib\ext\idb
>
.jar;c:\jBoss-2.0_FINAL\lib\ext\jboss.jar;c:\jBoss-2.0_FINAL\lib\ext\jetty-s
>
ervice.jar;c:\jBoss-2.0_FINAL\lib\ext\jms.jar;c:\jBoss-2.0_FINAL\lib\ext\jmx
>
tools.jar;c:\jBoss-2.0_FINAL\lib\ext\jnpserver.jar;c:\jBoss-2.0_FINAL\lib\ex
>
t\jpl-util-0_5b.jar;c:\jBoss-2.0_FINAL\lib\ext\jta-spec1_0_1.jar;c:\jBoss-2.
>
0_FINAL\lib\ext\mail.jar;c:\jBoss-2.0_FINAL\lib\ext\spydermq.jar;c:\jBoss-2.
> 0_FINAL\lib\ext\tomcat-service.jar;c:\jBoss-2.0_FINAL\lib\ext\mysql.jar
>
> Thanks,
> C. David Marcillo
> Elcom
> (781) 501-4382
> [EMAIL PROTECTED]
>
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user