Date Created: Fri 26-Aug-2011

Related Document Categories:

Get my WebSphere Application Server course here >> http://www.themiddlewareshop.com/products/


    Problem:

    When creating a client application to connect to an EJB deployed on a WebSphere Server you get the following error

    20-Aug-2011 20:48:27 null null
    SEVERE: security.JSAS1480I
    20-Aug-2011 20:48:28 null null
    INFO: Client code attempting to load security configuration
    Caught an unexpected exception!
    java.lang.ClassCastException: Unable to load class: com.screv._CartHome_Stub
    at com.ibm.rmi.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:372)
    at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:148)
    at com.screv.client.CartClient.main(CartClient.java:24)

    Solution:

    Ensure that your client application has client stubs created for RMI. Tip: use the RMIC command from command line or use ANT RMIC task in your build script. Or you can invest in IBM Rapid Application Developer which contain tooling to make WAS application client easier to develop.

    Get my WebSphere Application Server course here >> http://www.themiddlewareshop.com/products/


Steve Robinson - IBM Champion 2013

About Me

Steve Robinson has been working in IT for over 20 years and has provided solutions for many large-enterprise corporate companies across the world. Steve specialises in Java and Middleware.

In January 2013, I was awarded the prestigous 'IBM Champion' accolade.


Read my books?

IBM WebSphere Application Server 8.0 Administration Guide

IBM WebSphere Application Server 8.0 Administration Guide

WebSphere Application Server 7.0 Administration Guide

WebSphere Application Server 7.0 Administration Guide

WebSphere Categories

Other Categories