geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Manu George <>
Subject Regarding Validation of plans during deployment
Date Mon, 28 Nov 2005 08:14:30 GMT

     In openejb-jar.xml file for a cmp entity bean if the
cmp-connection-factory element contains a name tag instead of a
resource-link tag the deployer deploys the ejb.


This is correct as per the schema but it gives a null pointer exception on
trying to call the EJB.The correct syntax from geronimo wiki is


The schema is as follows

<xsd:element name="cmp-connection-factory"

   <xsd:complexType name="resource-locatorType">
                <xsd:group ref="gernaming:objectNameGroup"/>
                <xsd:element name="resource-link" type="xsd:string"/>
                <xsd:element name="target-name" type="xsd:string"/>
                <xsd:element name="url" type="xsd:string"/>

        <xsd:group name="objectNameGroup">
                <xsd:documentation>This group contains the components of a
jsr-77 object name</xsd:documentation>
                <xsd:element name="domain" type="xsd:string" minOccurs="0"/>
                <xsd:element name="server" type="xsd:string" minOccurs="0"/>
                <xsd:element name="application" type="xsd:string"
                <xsd:element name="module" type="xsd:string" minOccurs="0"/>
                <xsd:element name="type" type="xsd:string" minOccurs="0"/>
                <xsd:element name="name" type="xsd:string"/>

Since application an module has minOccurs as 0 only the name attribute is

My question is whether the syntax given below is valid? If so there is some
problem with the code .On the other hand if the syntax is invalid then the
schema needs to be modified.


Thanks and Regards

View raw message