RE: [JBoss-user] re: JBoss 2.0 and Tomcat (followup)

2001-04-03 Thread Marcillo, David

Hello fellow JBoss expersts, I am starting to learn JBoss.
I can successfully run JBoss with tomcat in the same jvm.
I am now trying a different configuration.
The configuration I want to try to run successfully is jBoss-2.0_FINAL in it
own process
without tomcat in the same jvm with JBoss.
I am trying to communicate to a JBoss process listening on tcp port 1099
from IIS with jakarta-tomcat-3.2.1 inprocess.

scenario that works:
If I run the sample InterestClient.java class ( the client ) from Jbuilder,
it works since 
I can see the message printed in the JBoss process "someone invoked the
Interest beam".
Since this scenario works I made sure that IIS with jakarta-tomcat-3.2.1
inprocess 
has a similar classpath.

scenario that does not work:
I am trying to get the sample servlet client to run in IIS with
jakarta-tomcat-3.2.1 inprocess
and to communicate with the JBoss process listening at port 1099.

The classpath shown is from the jvm running the servlet client.


-Original Message-
From: Guy Rouillier [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 02, 2001 11:25 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] re: JBoss 2.0 and Tomcat


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 PROT

Re: [JBoss-user] re: JBoss 2.0 and Tomcat

2001-04-02 Thread Guy Rouillier

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



[JBoss-user] re: JBoss 2.0 and Tomcat

2001-04-02 Thread Marcillo, David


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