Re: [JBoss-user] PortableRemoteObject.narrow(PortableRemoteObject.java:293)and ClassCastException

2003-04-02 Thread Stuart Barlow
So I guess that this problem is not solved yet? Stuart Barlow wrote: Yes its this one again. I have a simple SessionBean in jBoss 3.0.6 and a simple client. I have used xdoclet to generate the EJB code. I read in an earlier mail that ClassCastException is thrown from PortableRemoteObject for a num

[JBoss-user] PortableRemoteObject.narrow(PortableRemoteObject.java:293) and ClassCastException

2003-03-31 Thread Stuart Barlow
Yes its this one again. I have a simple SessionBean in jBoss 3.0.6 and a simple client. I have used xdoclet to generate the EJB code. I read in an earlier mail that ClassCastException is thrown from PortableRemoteObject for a number of reasons not just a casting error. Is this true? What other prob

Re: [JBoss-user] PortableRemoteObject.narrow

2001-07-03 Thread Christine
Yes, it does have import javax.rmi.PortableRemoteObject in the InterestClient class. I know the PortableRemoteObject class is in the jdk1.3\jre\lib\rt.jar, however i don't know in which way to add all the related classes in jdk1.3 to my classpath. If I run the client class in the following way:

Re: [JBoss-user] PortableRemoteObject.narrow

2001-07-03 Thread Dragos Haiduc
Sorry for assuming this, but do you have an import statement like: import javax.rmi.PortableRemoteObject; in the class in which you want to use narrow()? This class exists for sure in JDK1.3. Christine wrote: > hi, Danch > > I set the environment variable PATH = c:\jdk1.3\bin and JAVA_HOM

Re: [JBoss-user] PortableRemoteObject.narrow

2001-07-02 Thread Christine
hi, Danch I set the environment variable PATH = c:\jdk1.3\bin and JAVA_HOME = c:\jdk1.3 is it right? Even I put classpath c:\jdk1.3\jre\lib\rt.jar, i am getting exception. Can you please tell me what is the right setting I should use? Thank you very much. Christine "danch (Dan Christopherson)"

Re: [JBoss-user] PortableRemoteObject.narrow

2001-06-27 Thread danch (Dan Christopherson)
Christine wrote: > I am using JBoss 2.2.2 and JDK1.3. But I am getting error: > java.lang.NoClassDefFoundError: javax/rmi/PortableRemoteObject > > I have to cast after name lookup. Can anyone tell me what i should do to use > narrow()? > That class should be included in jdk1.3. Are you sure t

[JBoss-user] PortableRemoteObject.narrow

2001-06-27 Thread Christine
I am using JBoss 2.2.2 and JDK1.3. But I am getting error: java.lang.NoClassDefFoundError: javax/rmi/PortableRemoteObject I have to cast after name lookup. Can anyone tell me what i should do to use narrow()? Regards, Christine [EMAIL PROTECTED] wrote: > > When should I use PortableRemoteObjec

RE: [JBoss-user] PortableRemoteObject.narrow

2001-06-22 Thread RRokytskyy
> When should I use PortableRemoteObject.narrow, and when should I not. If you use RMI/IIOP (Borland Application Server) then you need to "narrow" your classes, if you're only using RMI (JBoss), you can omit this. However, personally, I would include this code in all of my context lookups, beca

Re: [JBoss-user] PortableRemoteObject.narrow

2001-06-22 Thread danch (Dan Christopherson)
You should call that when you look up an EJB's home interface. This is for portability purposes only: if you know you'll never need to run on an IIOP based container (WebLogic, IIS, IONA (though I'm extrapolating here)), you don't really need it. It is a good idea though. -danch Griffin, Mich

[JBoss-user] PortableRemoteObject.narrow

2001-06-22 Thread Griffin, Michael
When should I use PortableRemoteObject.narrow, and when should I not. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user

Re: [JBoss-user] PortableRemoteObject.narrow() was: Some question regarding Jboss

2001-03-23 Thread Daniel G. Koulomzin
This is something that has always bothered me... IAS claims that the spec requires you to use PortableRemoteObject.narrow() on objects in the Collection returned in a find().   Monson-Haefel backs this up on p.135 of Enterprise JavaBeans (2nd Edition).  The spec seems to imply that its a good ide