ClassCastException while doing REMOTE ejb lookup

2002-01-07 Thread Theo van Niekerk

Hi

I'm doing a REMOTE (not local, not same JVM, not same Orion) lookup from a servlet
running in Orion152 application to an ejb deployed in Orion152 application on a remote
and different physical machine.

I can establish the correct Initial Context and locate the required object.
But this object is loaded in the servlet using a ClassLoader that is
different from the default ClassLoader of the servlet.

The result is a ClassCastException when doing a narrow using this object and
the class as loaded by the default ClassLoader. The narrow works fine when
the object's ClassLoader is used to locate the class to be used for the narrow.
However, it seems that this ClassLoader is then retrieving classes from the remote
machine. Obviously I need the classes also on the web machine accesible by
the default ClassLoader so that classes that depend on these remote
classes can load and JSP's can compile.

Any ideas will be greatly appreciated. Please reply at least to my email.

-- 
Regards
Theo van Niekerk

Generation 5
tel: +27 21 883 88 58
mob: +27 82 44 81 222



msg17464/pgp0.pgp
Description: PGP signature


Re: WebLogic To Orion

2002-01-07 Thread Goffredo

Hi,

Michael J. Cannon wrote:

 Why Orion?  Because from day-to-day, no matter how many CPUs, no matter what
 the BEA Sales Executive's outstanding Mercedes lease payment, no matter
 what...Orion is USD$1500 / physical server license for deployed applications
 and every developer seat is free...because IT management need never again
 sweat out BEA 'Assistance' shakedowns and audits...

Think of Corporate psychology as akin to social-victim psychology: why buy a
perfectly good pair of jeans that cost $20.00 when you can spend $200.00 
and buy
the same pair of jeans from Calvin (coke up the nose) Klein? Why buy a 
$3.00 dollar
bottle of simple detergent to wash your hair, when you can pay $55.00 
for a bottle
of shampoo (if you please?) from Mistuh Calvin Klein or whoever? 
Especially
if the money you're spending is other people's money?

And:

 Application development, which is what people do with app servers, is a
 very technical thing. It requires experience and knowledge.   

^^^

A good point! BUT I think J2EE is a technology that is heading for the 
scrap heap
if it can't find a way to make itself FAR simpler and FAR easier to 
program and
develop.  J2EE is the Java Enterprise version of assembler! Which leads 
to an observation
about Techo-psychology: why write an enterprise application in 2 hours 
when you
have a technology that can guarantee you a job for four weeks, and be 
understood by
almost no-one outside the Masonic Guild of J2EE Developers? Complete with
Overware and Underwear and Middleware and all Wrapped in UML and XML and
WhatTheHell?

;)
Freddo
















Best way to add user records to EJBUserManager...

2002-01-07 Thread Alex Paransky

I am using EJBUserManager for security in Orion.  What is the best way to
update users?  Should I directly use EJBUser EJB or use the API's in the
UserManager.  If UserManager is the answer, then how do I get access to it
while running in Orion?

Thanks

-AP_





Re: WebLogic To Orion

2002-01-07 Thread Sylvan Ravinet

* Goffredo [EMAIL PROTECTED] [011107 18:53] wrote:

A quite funny piece :-), but:

 why write an enterprise application in 2 hours 
 when you
 have a technology that can guarantee you a job for four weeks, and be 
 understood by
 almost no-one outside the Masonic Guild of J2EE Developers? Complete with
 Overware and Underwear and Middleware and all Wrapped in UML and XML and
 WhatTheHell?

Wow! which entreprise application has been coded in 2 hours with J2EE (and JBoss, I 
suppose)? I wanna see code!!!

Cheers,

-Sylvan
--
http://sylvan.ravinet.com/




Re: ClassCastException while doing REMOTE ejb lookup

2002-01-07 Thread Ashok Banerjee

I am working on it and will fix it in the next day or 2.
Cheers,
Ashok

Theo van Niekerk wrote:

 Hi

 I'm doing a REMOTE (not local, not same JVM, not same Orion) lookup from a servlet
 running in Orion152 application to an ejb deployed in Orion152 application on a 
remote
 and different physical machine.

 I can establish the correct Initial Context and locate the required object.
 But this object is loaded in the servlet using a ClassLoader that is
 different from the default ClassLoader of the servlet.

 The result is a ClassCastException when doing a narrow using this object and
 the class as loaded by the default ClassLoader. The narrow works fine when
 the object's ClassLoader is used to locate the class to be used for the narrow.
 However, it seems that this ClassLoader is then retrieving classes from the remote
 machine. Obviously I need the classes also on the web machine accesible by
 the default ClassLoader so that classes that depend on these remote
 classes can load and JSP's can compile.

 Any ideas will be greatly appreciated. Please reply at least to my email.

 --
 Regards
 Theo van Niekerk

 Generation 5
 tel: +27 21 883 88 58
 mob: +27 82 44 81 222

   
Part 1.2Type: application/pgp-signature