ection is created by the Oracle thin driver).
>My code crashes with a class cast exception when it tries to run Oracle
>specific (OracleConnection) methods. If I run the same code outside of
>Weblogic (and get an Oracle thin driver connection straight away and not via
>a Weblogic pool),
ection is created by the Oracle thin driver).
> My code crashes with a class cast exception when it tries to run Oracle
> specific (OracleConnection) methods. If I run the same code outside of
> Weblogic (and get an Oracle thin driver connection straight away and not via
> a Weblogic poo
gic server
connection pool(this connection is created by the Oracle thin driver).
My code crashes with a class cast exception when it tries to run Oracle
specific (OracleConnection) methods. If I run the same code outside of
Weblogic (and get an Oracle thin driver connection straight away and not via
-
> From: A mailing list for Enterprise JavaBeans development
> [mailto:[EMAIL PROTECTED]]On Behalf Of Sachin Devand
> Sent: Saturday, March 31, 2001 11:01 PM
> To: [EMAIL PROTECTED]
> Subject: [EJB-INT] Class Cast Exception Once Again !!
>
>
> Hi,
>
> This issue
I am a little bit slower than you. Do you have EJB1.X code and .xml?
-Original Message-
From: Sachin Devand [mailto:[EMAIL PROTECTED]]
Sent: Sunday, April 01, 2001 12:55 PM
To: [EMAIL PROTECTED]
Subject: Re: Class Cast Exception Once Again !!
Hi Fei:
Actually, I am re-writing the code
Hi Fei:
Actually, I am re-writing the code in Richard
Monson-Haefel's book to be EJB2.0 compilant. I have
changed a few things like CabinPK to be just a
java.lang.String. I also had to define certain methods
as abstract as required by EJB2.0. But anyways I am
sending the files with all the xml de
To: [EMAIL PROTECTED]
Subject: Re: Class Cast Exception Once Again !!
Fei:
I saw the difference and I made that change but still
it does not work! I dont know how much different it
would make if I did not type cast it into CabinHome
when I did lookup and later did a narrow on Object.
But it did
xt.lookup("CabinHome");
> CabinHome home =
>
(CabinHome)PortableRemoteObject.narrow(obj,CabinHome.class);
>
> Can you find a slight difference?
>
> Fei Li
>
>
> -Original Message-
> From: Sachin Devand [mailto:[EMAIL PROTECTED]]
> Sent: Sa
L PROTECTED]
Subject: Class Cast Exception Once Again !!
Hi,
This issue has come up earlier in this mailing list. I
looked at it but still my problem is unsolved. Do let
me know if someone can answer this question. I am
trying to do a PortableRemoteObject.narrow() on a bean
that I lookup from jndiCon
Hi,
This issue has come up earlier in this mailing list. I
looked at it but still my problem is unsolved. Do let
me know if someone can answer this question. I am
trying to do a PortableRemoteObject.narrow() on a bean
that I lookup from jndiContext. The problem is that I
get a class cast
Hi Krishna,
It is indeed a pooled connection from the container. It cannot be casted
to an OracleConnection object.
This should explain the ClassCastException that you are getting when the
code anippet listed below gets executed
connection = (OracleConnection) dataSource.getConnection();
All
Hi
Hope the following extract from weblogic doucmentation helps.
Note: (this is more of a general rather than weblogic specific problem)
http://www.weblogic.com/docs45/classdocs/API_servlet.htm
The dreaded ClassCastException !
This will invariably jump up and bite you at some point when you star
IL PROTECTED]
> Subject: Class cast exception while using a servlet client
>
> I am trying to connect to a bean in a remote machine(weblogic server)
> using
> a servlet client in my local machine(weblogic server).
> I do a lookup for "Billing.CustomerHome" and when I run a c
I am trying to connect to a bean in a remote machine(weblogic server) using
a servlet client in my local machine(weblogic server).
I do a lookup for "Billing.CustomerHome" and when I run a client, I get an
excetipon as follows:
java.lang.ClassCastException:
Billing.CustomerBeanHomeImpl_Se
with the Weblogic server on NT but if I use the same .class file
with Weblogic server on SunSolaris and doall the required things(like
registration in properties file) I am getting a class Cast Exception at
(myBeanHomeImpl_ServiveStub.I feel that the object which is returned
after lookup cannot be
logic classpath or the
- -Dweblogicclasspath can cause a class cast exception due to competing
class loaders.
HTH.
Bob Evans
-Original Message-
From: Parikshit [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 28, 2000 1:36 AM
To: ejb interest
Cc: [EMAIL PROTECTED]
Subject: Class
vlet and session bean
are registered with the application server(Weblogic).This
thing is working fine with the Weblogic server on NT but if I use the same
.class file with Weblogic server on SunSolaris and doall
the required things(like registration in properties file) I am getting
This thing is working fine with the Weblogic server on NT but
if I use the same .class file with Weblogic server on SunSolaris and do
all the required things(like registration in properties file)
I am getting a class Cast Exception at (myBeanHomeImpl_ServiveStub.I feel that
the object whi
ine with the Weblogic server
>> on NT but if I use the same .class file with Weblogic server on
>> SunSolaris and doall the required things(like registration in
>> properties file) I am getting a class Cast Exception at
>> (myBeanHomeImpl_ServiveStub.I feel that the object
19 matches
Mail list logo