Date Created: Sat 20-Aug-2011

Related Document Categories:


    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.

Middleware Mentor - Steven Charles Robinson

About Me

Steve Robinson has been working in IT for over 15 years and has provided solutions for many large-enterprise corporate companies across the world. Steve specialises in Java and Middleware consulting. Steve comes from both an administration and development background.

Before moving to JEE, Steve was an accomplished developer and consultant for both IBM Lotus Notes and Microsoft .NET Technologies.

Follow Steve as @stevencrobinson on twitter.

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

Oracle WebLogic Categories

JBoss Categories

Other Categories