• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

class cast exception w/ WLS example

 
Ranch Hand
Posts: 297
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please let me know if I'm in the right forum. Getting above exception when trying to run the containerManaged example. This is the code from WebLogic that does it:
Enumeration enum = (Enumeration) PortableRemoteObject.narrow(home.findNullAccounts(), Account.class);
Thanks
 
Ranch Hand
Posts: 919
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Michael, I was just wondering... do you have 'enable-call-by-reference' set to false in your weblogic-ejb-jar.xml? If so, have you tried setting it to true?
I think this bug might have been fixed in a service pack. The latest available is sp6. They're cumulative so all previous sp/bugfixes are included, and you can download them for free from BEA.
 
Michael Hildner
Ranch Hand
Posts: 297
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear George,
I did not have any enable-call-by-reference tag at all (this example ships with WLS). I tried to add the tag, but then could not run the build script - so no new ejb_basic_containerManaged.jar in the ../myserver directory. So then I just tried to run WLS's build script on their original files, which of course had an error
I am very, very new to this. I appreciate your input, looks like I need to spend more time studying the basics - Thanks
 
Sometimes you feel like a nut. Sometimes you feel like a tiny ad.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic