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?

>
EXPERT RESPONSE
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
    Verizon uses BPEL app to cut down on code, check for fraud, and go green
    Visual orchestration tool addresses event processing and SOA
    Adobe Integrated Runtime (AIR) melds with ColdFusion - builds calendaring system for child services agency
    Oracle re-brands BEA WebLogic as its strategic server for SOA
    Ajax and Flex try to co-exist inside RIA development
    BEA gives Oracle new Java platform, Eclipse tools
    Where Ruby on Rails fits into SOA
    Sun Java CAPS chugs down SOA open source track
    JavaOne: JBoss on SOA middleware, Java EE and data services
    Open source software requires governance, Burton warns

    JBoss Web services
    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
    Red Hat pushes JBoss middleware
    New open source portal released
    Marc Fleury's back working on SOA
    RedHat JBoss IDE focuses on Ajax
    Marc Fleury weighs in on BEA's fate
    Seam's Hibernate problem
    JBoss Web services Research

    RELATED GLOSSARY TERMS
    Terms from Whatis.com − the technology online dictionary
    Hadoop  (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

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

    TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




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