geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@geronimo.apache.org
Subject [jira] Commented: (GERONIMO-163) Support for ejb-refs in a web.xml
Date Thu, 05 Aug 2004 18:09:20 GMT
The following comment has been added to this issue:

     Author: toby cabot
    Created: Thu, 5 Aug 2004 11:09 AM
       Body:
It looks as if ejb-ref works only if you include the ejb-link element, i.e.

    <ejb-ref>
        <ejb-ref-name>g6o/SSEJB</ejb-ref-name>
        <ejb-ref-type>Session</ejb-ref-type>
        <home>g6o.ejbclient.StatelessSessionHome</home>
        <remote>g6o.ejbclient.StatelessSession</remote>
        <ejb-link>StatelessSession</ejb-link>
    </ejb-ref>

...seems to deploy if it's packaged in an ear file with the EJB.  Without the ejb-link element
I get

java.lang.IllegalArgumentException: non ejb-link refs not supported
        at org.apache.geronimo.jetty.deployment.JettyModuleBuilder.addEJBRefs(JettyModuleBuilder.java:502)
        at org.apache.geronimo.jetty.deployment.JettyModuleBuilder.buildComponentContext(JettyModuleBuilder.java:398)
        at org.apache.geronimo.jetty.deployment.JettyModuleBuilder.addGBeans(JettyModuleBuilder.java:327)
        at org.apache.geronimo.jetty.deployment.JettyModuleBuilder$$FastClassByCGLIB$$b30bba8a.invoke(<generated>)
        at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:87)
 

---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/GERONIMO-163?page=comments#action_37067

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/GERONIMO-163

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: GERONIMO-163
    Summary: Support for ejb-refs in a web.xml
       Type: New Feature

     Status: Reopened
   Priority: Major

    Project: Apache Geronimo
 Components: 
             deployment
   Fix Fors:
             1.0-M2
   Versions:
             1.0-M1

   Assignee: 
   Reporter: David Blevins

    Created: Sat, 24 Apr 2004 4:28 PM
    Updated: Thu, 5 Aug 2004 11:09 AM

Description:
It is currently not possible for a servlet to lookup an EJB through JNDI as the ejb-ref elements
in the web.xml are not supported.  EJB references need to be built and need to be added to
the servlet's JNDI ENC.


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message