geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ys...@symcor.com
Subject How do I put Resource Reference in openejb-jar.xml?
Date Tue, 14 Feb 2006 20:07:17 GMT
Hi, all, many thanks in advance first.

I am try to deploy an EAR file that contains an EJB jar, I put

      <resource-ref>
                  <ref-name>jdbc/MyDataSource</ref-name>
                  <resource-link>jdbc/MyRealDataSource</resource-link>
      </resource-ref>

in META-INF/openejb-jar.xml and got the following error message upon
deployment

Caused by: org.apache.xmlbeans.XmlException: Invalid deployment descriptor:
[error: cvc-complex-type.2.4a: Expected elements
'relationships@http://www.openejb.org/xml/ns/openejb-jar-2.0
message-destination@http://geronimo.apache.org/xml/ns/naming-1.0
security@http://geronimo.apache.org/xml/ns/security-1.1
gbean@http://geronimo.apache.org/xml/ns/deployment-1.0' instead of
'resource-ref@http://geronimo.apache.org/xml/ns/naming-1.0' here]
Descriptor: <xml-fragment configId="myejb"
xmlns:open="http://www.openejb.org/xml/ns/openejb-jar-2.0"
xmlns:nam="http://geronimo.apache.org/xml/ns/naming-1.0">
  <open:enterprise-beans>
    <open:session>
      <open:ejb-name>SomeEJBService</open:ejb-name>
      <open:jndi-name>ejb/com/somwhere/SomeEJBHome</open:jndi-name>
    </open:session>
  </open:enterprise-beans>
  <nam:resource-ref>
    <nam:ref-name>jdbc/MyDataSource</nam:ref-name>
    <nam:resource-link>jdbc/MyRealDataSource</nam:resource-link>
  </nam:resource-ref>
</xml-fragment>
        at
org.apache.geronimo.schema.SchemaConversionUtils.validateDD(SchemaConversionUtils.java:594)
        at
org.apache.geronimo.schema.SchemaConversionUtils.fixGeronimoSchema(SchemaConversionUtils.java:365)
        at
org.openejb.deployment.OpenEJBModuleBuilder.getOpenejbJar(OpenEJBModuleBuilder.java:261)
        ... 34 more


Mime
View raw message