Deployer should NOT always require interfaces elements in <ejb-ref>
-------------------------------------------------------------------
Key: GERONIMO-2778
URL: https://issues.apache.org/jira/browse/GERONIMO-2778
Project: Geronimo
Issue Type: Bug
Security Level: public (Regular issues)
Components: deployment
Affects Versions: 2.0-M2, 2.0
Reporter: Prasad Kashyap
Priority: Critical
Fix For: 2.0-beta2, 2.0
3.0 EJBs can now implement POJO interfaces. So when you reference them in say,
a web-xml, the <ejb-ref> and <ejb-local-ref> need not contain the traditional
interfaces elements inside them ( <home>, <remote>, <local-home>, <local>)
Here is the latest schema.. http://java.sun.com/xml/ns/javaee/javaee_5.xsd
However, our deployer has a hard requirement on those elements. This is what
you get when those elements are missing from the <ejb-ref>
Using GERONIMO_BASE: C:\Apache\geronimo-jetty6-jee5-2.0-SNAPSHOT
Using GERONIMO_HOME: C:\Apache\geronimo-jetty6-jee5-2.0-SNAPSHOT
Using GERONIMO_TMPDIR: C:\Apache\geronimo-jetty6-jee5-2.0-SNAPSHOT\var\temp
Using JRE_HOME: C:\jdk1.5.0_08\jre
Error: Unable to distribute
calculator-stateless-ear-2.0-SNAPSHOT.ear: Error processing 'remote'
element for EJB Reference 'ejb/Calculator' for module
'calculator-stateless-war-2.0-SNAPSHOT.war': interface name cannot
be blank
org.apache.geronimo.common.DeploymentException: Error processing
'remote' element for EJB Reference 'ejb/Calculator' for module
'calculator-stateless-war-2.0-SNAPSHOT.war': interface name cannot
be blank
at
org.apache.geronimo.openejb.deployment.ejbref.RemoteEjbRefBuilder.createEjbRef(RemoteEjbRefBuilder.java:94)
at
org.apache.geronimo.openejb.deployment.ejbref.RemoteEjbRefBuilder.buildNaming(RemoteEjbRefBuilder.java:79)
at
org.apache.geronimo.openejb.deployment.ejbref.RemoteEjbRefBuilder$$FastClassByCGLIB$$769e975.invoke(<generated>)
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
at
org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:127)
at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:820)
at
org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
at
org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
at
org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
at
org.apache.geronimo.j2ee.deployment.NamingBuilder$$EnhancerByCGLIB$$4c1ce297.buildNaming(<generated>)
at
org.apache.geronimo.j2ee.deployment.NamingBuilderCollection.buildNaming(NamingBuilderCollection.java:58)
at
org.apache.geronimo.j2ee.deployment.NamingBuilderCollection$$FastClassByCGLIB$$5fe23b0e.invoke(<generated>)
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.