Re: Servlet - Jini - Tomcat3.1

2000-11-15 Thread Flávio Rodrigo M. de Carvalho

- Original Message -
Flavio,
It is not clear from your description what you are trying to do.

  . does your server issue a query to obtain a Jini service reference from
 a lookup server ?

Exactly, my servlet just make an unicast to receive from the lookup server
the Registrar (LookupLocator.GETREGISTRAR) . The exception appears after
that call.
If it helps, I am trying to connect a servlet to a JavaSpace and
TransactionManager (mahalo) services.


   . are you expecting that the Jini service will upload the WAR over
 the net to be incorporated ?

This I didn't understand... (???)

Arieh






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




Re: Servlet - Jini - Tomcat3.1

2000-11-15 Thread Arieh Markel


 From: "Flávio Rodrigo M. de Carvalho" [EMAIL PROTECTED]
 To: "Arieh Markel" [EMAIL PROTECTED], 
[EMAIL PROTECTED]
 Subject: Re: Servlet - Jini - Tomcat3.1
 
 - Original Message -
 Flavio,
 It is not clear from your description what you are trying to do.
 
   . does your server issue a query to obtain a Jini service reference from
  a lookup server ?
 
 Exactly, my servlet just make an unicast to receive from the lookup server
 the Registrar (LookupLocator.GETREGISTRAR) . The exception appears after
 that call.
 If it helps, I am trying to connect a servlet to a JavaSpace and
 TransactionManager (mahalo) services.
 
 
. are you expecting that the Jini service will upload the WAR over
  the net to be incorporated ?
 
 This I didn't understand... (???)

The fact that an exception of casting happens on a class expected to be 
WARConnection leads me to believe that the code you have is expecting to
have a 'war' file downloaded from over the network.

So my question is if what you intended to do is the following:

  . access an object from the JavaSpace and have that object become/incorporate
a web-application to the Tomcat container

I really can't see how there is a relationship between the Jini Lookup
invocation and the exception thrown.

I wonder if you could post the code (the method) in which this happens.

Arieh


 
 Arieh
 
 
 
 

--
 Arieh Markel   Sun Microsystems Inc.
 Network Storage500 Eldorado Blvd. MS UBRM11-194
 e-mail: [EMAIL PROTECTED]   Broomfield, CO 80021
 Let's go Panthers  Phone: (303) 272-8547 x78547
 (e-mail me with subject SEND PUBLIC KEY to get public key)


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




Servlet - Jini - Tomcat3.1

2000-11-13 Thread Flávio Rodrigo M. de Carvalho

Hi all,

My servlet is getting the following exception when running on Tomcat3.1.
This happens when I try to get the reference of a jini service (by a unicast
call) :

java.lang.ClassCastException: org.apache.tomcat.protocol.WARConnection

A friend told me that it is a bug from Tomcat and that there would be a fix
for that. I have no idea what this could be. Is there any special
configuration to use in Tomcat3.1 to use with jini services ? What is this
excepion about ?

Thanks all,

Flavio.


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