You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Aaron Mulder (JIRA)" <de...@geronimo.apache.org> on 2006/04/28 06:01:37 UTC

[jira] Commented: (GERONIMO-1935) WAR with local EJB reference fails with complaints about remote interfaces

    [ http://issues.apache.org/jira/browse/GERONIMO-1935?page=comments#action_12376870 ] 

Aaron Mulder commented on GERONIMO-1935:
----------------------------------------

Two problems:

1) The exception generation is hardcoded to local=false, which is easy enough to fix (OpenEJBReferenceBuilder:207)

2) The web app configId had no version.  The EJB AbstractNameQuery uses the actual configId with version in its query.  All the GBeans that it's matching against have no version in the configId.  Therefore there are no matches.  e.g.:

query=demo/LaptopStore/1146194174228/car?j2eeType=StatelessSessionBean,name=StoreManager#
GBean=demo/LaptopStore//car?EJBModule=laptopstore-ejb-1.0-SNAPSHOT.jar,J2EEApplication=demo/LaptopStore//car,j2eeType=StatelessSessionBean,name=StoreManager

I guess maybe we need to set the version in the configId sooner so that all the GBeans get the version in their names?

> WAR with local EJB reference fails with complaints about remote interfaces
> --------------------------------------------------------------------------
>
>          Key: GERONIMO-1935
>          URL: http://issues.apache.org/jira/browse/GERONIMO-1935
>      Project: Geronimo
>         Type: Bug
>     Security: public(Regular issues) 
>   Components: deployment, OpenEJB
>     Versions: 1.1
>     Reporter: Aaron Mulder
>     Assignee: Aaron Mulder
>     Priority: Blocker
>      Fix For: 1.1

>
> web.xml contains:
>     <ejb-local-ref>
>         <ejb-ref-name>ejb/StoreManager</ejb-ref-name>
>         <ejb-ref-type>Session</ejb-ref-type>
>         <local-home>dk.jaoo.geronimo.laptop.ejb.StoreManagerHome</local-home>
>         <local>dk.jaoo.geronimo.laptop.ejb.StoreManager</local>
>         <ejb-link>StoreManager</ejb-link>
>     </ejb-local-ref>
> ejb-jar.xml contains:
>       <session>
>           <display-name>Store Manager Session Bean</display-name>
>           <ejb-name>StoreManager</ejb-name>
>           <local-home>dk.jaoo.geronimo.laptop.ejb.StoreManagerHome</local-home>
>           <local>dk.jaoo.geronimo.laptop.ejb.StoreManager</local>
>           <ejb-class>dk.jaoo.geronimo.laptop.ejb.StoreManagerBean</ejb-class>
>           <session-type>Stateless</session-type>
>           <transaction-type>Container</transaction-type>
>           <resource-ref>
>               <res-ref-name>jdbc/LaptopDatabase</res-ref-name>
>               <res-type>javax.sql.DataSource</res-type>
>               <res-auth>Container</res-auth>
>               <res-sharing-scope>Shareable</res-sharing-scope>
>           </resource-ref>
>       </session>
> Deployment error is:
>     Error: Unable to distribute laptopstore-ear-1.0-SNAPSHOT.ear: Could
>     not find an EJB for reference ejb/StoreManager to a remote session
>     bean that has the home interface
>     dk.jaoo.geronimo.laptop.ejb.StoreManagerHome and the remote
>     interface dk.jaoo.geronimo.laptop.ejb.StoreManager

-- 
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
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira