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?


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


RELATED CONTENT
Java Web Services
How do I balance throughput requirements and interoperability?
IBM ILOG rules engines update supports Java, .NET
APM software traces transactions across tiers, technologies
Red Hat improves JBoss Java enterprise rules management
Open source tools fill in app lifecycle gaps for SpringSource
Java side of Sun seen strengthened by Oracle buy
Sun previews GlassFish V3 ahead of Java EE6 release
COBOL apps moving to SOA: Rip-and-replace meets the recession
On lightweight Java frameworks and service-oriented architecture
Learn about Ruby on Rails programming

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


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




    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