I am not able to put Dependent Objects in weblogic 5.1.Though Weblogic doc says that 
all support classes that must be available to internal clients of the EJB are included 
in the EJB�s public interfaces, or are themselves implemented as Java interfaces. 
Doing so ensures that the EJB�s classloader exports the required classes to the 
WebLogic classloader, where they are publicly available to WebLogic Server clients.As 
an ex. I have tried examples from Enterprise Java Beans by Richard 
Monson-Haefel.ProcessPayment Bean(chapler 7) uses two classes Check and CreditCard as 
support classes.As per documentation I have created two interfaces and implemented the 
classes as below.



package payment;

public interface  TransCheck  {
    public void Check(String barCode, int number) throws Exception;

}

package payment;
public interface  TransCredit  {
public  void CreditCard(long nmbr, java.util.Date exp, String typ) throws Exception;
}

package payment;

public class Check implements TransCheck, java.io.Serializable {
    String checkBarCode;
    int checkNumber;
    public void Check(String barCode, int number){
        checkBarCode = barCode;
        checkNumber = number;
    }
}

package payment;

import java.util.Date;

public class CreditCard implements TransCredit, java.io.Serializable {
    final static public String MASTER_CARD = "MASTER_CARD";
    final static public String VISA = "VISA";
   final static public String AMERICAN_EXPRESS = "AMERICAN_EXPRESS";
    final static public String DISCOVER = "DISCOVER";
    final static public String DINERS_CARD = "DINERS_CARD";

    public long number;
    public java.util.Date expiration;
    public String type;
    public void CreditCard(long nmbr, java.util.Date exp, String typ){
        number = nmbr;
        expiration = exp;
        type = typ;
    }
}

Though ejb comilation is trouble free NoClassDefFoundError :payment/CreditCard & 
payment/Check still reported
I am not finding a solution for this

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to