Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
  • Piet Souris
  • Himai Minh

EJB Local Session state less bean

Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Below is my ejb-jar.xml

<!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN' ''>


Below is my weblogic-ejb-jar.xml

<?xml version="1.0" encoding="UTF-8"?>

<weblogic-ejb-jar xmlns="″" xmlns:j2ee="”" xmlns:xsi="” xsi:schemaLocation=“”;">


WEblogic version 12.1.3 and ejb 2.1.

When i try to deploy my application i get below error

weblogic.ejb.container.compliance.ComplianceException: In EJB TestSessionLocal, method create() on the local home interface throws java.rmi.RemoteException. Methods on the local home interface must not throw java.rmi.RemoteException.
at weblogic.ejb.container.compliance.HomeInterfaceChecker.checkMethodsThrowRemoteException(
at weblogic.ejb.container.compliance.SessionHomeInterfaceChecker.checkMethodsThrowRemoteException(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at weblogic.ejb.container.compliance.EJBComplianceChecker.check(
at weblogic.ejb.container.compliance.EJBComplianceChecker.check(
at weblogic.ejb.container.compliance.EJBComplianceChecker.checkDeploymentInfo(
at weblogic.ejb.container.ejbc.EJBCompiler.doCompile(
at weblogic.ejb.container.ejbc.EJBCompiler.compileEJB(
at weblogic.ejb.container.ejbc.EJBCompiler.compileEJB(
at weblogic.ejb.container.deployer.EJBDeployer.compileJar(
at weblogic.ejb.container.deployer.EJBDeployer.compileIfNecessary(
at weblogic.ejb.container.deployer.EJBDeployer.prepare(
at weblogic.ejb.container.deployer.EJBModule.prepare(
at weblogic.application.internal.ExtensibleModuleWrapper$
at weblogic.application.internal.ExtensibleModuleWrapper$
at weblogic.application.utils.StateMachineDriver.nextState(
at weblogic.application.internal.ExtensibleModuleWrapper.prepare(
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(
at weblogic.application.internal.flow.ModuleStateDriver$
at weblogic.application.internal.flow.ModuleStateDriver$
at weblogic.application.utils.StateMachineDriver$

All my classes implement proper local classes EJBLocalHome and EJBLocalObject.

This configuration used to work fine in JBOSS 5.1.0 GA

Where am i doing wrong
Saloon Keeper
Posts: 25467
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the JavaRanch, Ajay!

The key message is this:

Methods on the local home interface must not throw java.rmi.RemoteException.

In EJB Versions 1 and 2, there are Home and Remote Interfaces that define what methods are accesible via direct Java call (local) or from an foreign (remote) JVM (remote, via RMI).

The methods defined in the Home Interface are not supposed to contain the "throws RMIException" clause in their method prototypes. An RMIException is something that happens when there's an infrastructure failure in a Remote call (for example, no network connection) and therefore not only will never happen on a local method, but it is actually meaningless in the context of a local method.
expectation is the root of all heartache - shakespeare. tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
    Bookmark Topic Watch Topic
  • New Topic