Home > Ask the SOA Experts > Questions & Answers > Implementing an EJB with a LocalHome using JBoss
Ask The SOA Expert: Questions & Answers
EMAIL THIS

Implementing an EJB with a LocalHome using JBoss

Jeff  Hanson EXPERT RESPONSE FROM: Jeff Hanson

Pose a Question
Other SOA Categories
Meet all SOA Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 10 September 2004
I am trying to implement an EJB with a LocalHome using JBoss:
HelloLocal
   Object refLocal = context.lookup("HelloLocal"); 
   .......

But it throws an exception:
javax.naming.CommunicationException [Root exception is
java.lang.ClassNotFoundException:
org.jboss.ejb.plugins.local.LocalHomeProxy (no security manager: RMI
class loader disabled)]
How can I solve this problem?

>
If you are NOT dynamically downloading the EJB stub, you need to make sure that the generated stub for the EJB is available locally, i.e. in the classpath.

If you ARE downloading the EJB stub dynamically, you need:

  • A) An RMISecurity Manager configured, as follows:

  • if (System.getSecurityManager() == null)
       {
          System.setSecurityManager(new RMISecurityManager());
       }

  • B) Your client must also have sufficient access through the appropriate socket.

  • C) You need to add file download permission in your client policy file, as follows:


  • grant codebase someURL { permission java.io.FilePermission "/path/to/downloads", "read"; };
  • D) Then your client must be started as follows:

  • java -Djava.security.policy=java.policy com.yourpackage.yourclient


    Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



    RELATED CONTENT
    Java Web Services
    Java Web services programming challenges met with specialized framework
    Tools add Web services to existing Java EE applications
    Video: Author says Enterprise JavaBeans is here to stay
    Languages like F# may replace Java, says Ted Neward
    Mobile development growing in prominence according to survey
    OSGi framework helps you manage Java components
    SpringSource moves VMware up the stack
    SpringSource gains cloud console: Q&A with Cloud Foundry head
    Adopting OSGi requires patience and money, but development flexibility results
    Speed up application deployment with automated blackbox frameworks

    JBoss Web services
    Red Hat's JBoss EAP 5.0 to support OSGi with Microcontainer
    JBoss lightens up its next generation platform
    Red Hat improves JBoss Java enterprise rules management
    JBoss, CA Wily moves target SOA performance management
    JavaOne: JBoss on SOA middleware, Java EE and data services
    JBoss SOA platform offers modular options
    Data services pain points have become an SOA target for JBoss
    New open source portal released
    Marc Fleury's back working on SOA
    Marc Fleury weighs in on BEA's fate
    JBoss Web services Research

    RELATED GLOSSARY TERMS
    Terms from Whatis.com − the technology online dictionary
    EmbeddedJava  (SearchSOA.com)
    Java Card  (SearchSOA.com)
    Java Development Kit  (SearchSOA.com)
    Java Runtime Environment  (SearchSOA.com)
    Java virtual machine  (SearchSOA.com)
    JMX  (SearchSOA.com)
    MBean  (SearchSOA.com)
    Project Metro  (SearchSOA.com)
    Project Tango  (SearchSOA.com)
    Tomcat  (SearchSOA.com)

    RELATED RESOURCES
    2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
    Search Bitpipe.com for the latest white papers and business webcasts
    Whatis.com, the online computer dictionary



    Search and Browse the Expert Answer Center
    Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
    Browse our Expert Advice



    SOA Governance White Papers - BPM, EDA, IT Governance
    About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
    SEARCH 
    TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

    TechTarget Corporate Web Site  |  Media Kits  |  Site Map




    All Rights Reserved, Copyright 2001 - 2009, TechTarget | Read our Privacy Policy
      TechTarget - The IT Media ROI Experts