I had the same problem - take the throws EJBException out, it's unchecked.

-----Original Message-----
From: Jon Finanger [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 09, 2000 6:20 AM
To: jBoss
Subject: [jBoss-User] Verifier complains...


Hi!
Deploying my first bean i cant really get the logic behind the following
warnings(see below).

I've checked the IDL mapping spec (99-07-59.pdf) and cant find any errors.
I've checked the 9.2.8 section and cant see i'm violating anything.

Its complaining that the return values are not a valid RMI/IIOP type and a
missing RemoteException throw clause in the Home interface (which is not
missing)

I'm sure i'm overlooking something...

/Jon

-------------------------------------------------
WARNINGS:

[Verifier]
Class  : TagIssuerCodeBean
Method : public abstract TagIssuerCode create(short, short, String, String)
thro
ws EJBException, CreateException
Section: 9.2.8
Warning: The method return values in the home interface must be of valid
types f
or RMI/IIOP.

[Verifier]
Class  : TagIssuerCodeBean
Method : public abstract TagIssuerCode create(short, short, String, String)
thro
ws EJBException, CreateException
Section: 9.2.8
Warning: The methods in the home interface must include
java.rmi.RemoteException
 in their throws clause.
-------------------------------
In TagIssuerCodeBean:

  public TagIssuerCodePK ejbCreate(short tagIssuerId, short tagCountryId,
String description, String abbrevation) throws EJBException, CreateException
{
        ........
        ........
    return new TagIssuerCodePK(..........);
  }

  public void ejbPostCreate(short tagIssuerId, short tagCountryId, String
description, String abbrevation) throws EJBException {
  }
---------------------------------
AND in the TagIssuerCodeHome:

  public TagIssuerCode create(short tagIssuerId, short tagCountryId, String
description, String abbrevation) throws
RemoteException,EJBException,CreateException;
  public TagIssuerCode findByPrimaryKey(TagIssuerCodePK primaryKey) throws
RemoteException,EJBException, FinderException;
---------------------------------
Deployment descriptor:

<?xml version="1.0" encoding="Cp1252"?>

<ejb-jar>
     <enterprise-beans>
       <entity>
         <display-name>TagIssuerCodeBean</display-name>
         <ejb-name>TagIssuerCodeBean</ejb-name>
         <home>tags.tagissuercode.TagIssuerCodeHome</home>
         <remote>tags.tagissuercode.TagIssuerCode</remote>
         <ejb-class>tags.tagissuercode.TagIssuerCodeBean</ejb-class>
         <persistence-type>Bean</persistence-type>
         <prim-key-class>tags.tagissuercode.TagIssuerCodePK</prim-key-class>
         <reentrant>False</reentrant>
         <primkey-field>tagIssuerId,tagCountryId</primkey-field>
         <resource-ref>
           <description>Reference to Sybase ASE</description>
           <res-ref-name>SybaseDB</res-ref-name>
           <res-type>javax.sql.DataSource</res-type>
           <res-auth>Container</res-auth>
         </resource-ref>
       </entity>
     </enterprise-beans>
   </ejb-jar>
-------------------------------------
TagIssuerCode:

public interface TagIssuerCode extends EJBObject
{
  public String getAbbrevation() throws RemoteException;
  public String getDescription() throws RemoteException;
  public short getTagCountryId() throws RemoteException;
  public short getTagIssuerId() throws RemoteException;
  public void setIssuerCodes(short tagIssuerId,short tagCountryId) throws
RemoteException;
  public void setDescription(String description, String abbrevation) throws
RemoteException;
}
--------------------------------------
TagIssuerCodePK:

public class TagIssuerCodePK implements Serializable {
  public short tagIssuerId;
  public short tagCountryId;

  public TagIssuerCodePK() {}

  public boolean equals(Object obj) {
    if ((obj==null) || !(obj instanceof TagIssuerCodePK))
      return false;
    else
      if ((((TagIssuerCodePK)obj).tagIssuerId  == tagIssuerId) &&
         (((TagIssuerCodePK)obj).tagCountryId == tagCountryId))
        return true;
      else
        return false;
  }

  public TagIssuerCodePK(short tagIssuerId, short tagCountryId) {
    this.tagIssuerId = tagIssuerId;
    this.tagCountryId = tagCountryId;
  }

  // Not good enough distribution - should change to include a leftshift
  // of the other field
  public int hashCode() {
    return (int)tagIssuerId;
  }
}



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to