I am devloping a javacard application base on OCF.
I have written a card service (TryAppletProxy) and service factory
(TryAppletProxyFactory)
already. And modify the opencard.properties as follow:

   OpenCard.services = TryAppletProxyFactory
   OpenCard.terminals =
com.ibm.opencard.terminal.pcscmig.PcscMigCardTerminalFactory
   OpenCard.trace = opencard:6

The service factory class is very simple:

   private static Vector tryServices = new Vector();
   public TryAppletProxyFactory() { }
   protected CardType getCardType(CardID cardID, CardServiceScheduler
scheduler)
       {return new CardType();}
   protected Enumeration getClasses(CardType type) {return
tryServices.elements();
   static {
      System.out.println("\tApplet proxy factory: Constucting service");
      tryServices.addElement(TryAppletProxy.class);
   }

It is seem that the factory is loaded successfully. But a trace message
appear as follow:
   [INFO     ]
opencard.core.service.CardServiceRegistry.getCardServiceInstance
   --- message   no CardService for class TryAppletProxy found
   --- thread    Thread[Thread-0,5,main]
   --- source    opencard.core.service.CardServiceRegistry@297515c3++
registered factory c
   om.ibm.opencard.factory.MFCCardServiceFactory@568915c3

   java.lang.ClassNotFoundException: CardService implementing class
TryAppletProxy

I have put all the .class and opencard.properties file I written within the
same directory.
What mistakes I have made above?



---
> Visit the OpenCard web site at http://www.opencard.org/ for more
> information on OpenCard---binaries, source code, documents.
> This list is being archived at http://www.opencard.org/archive/opencard/

! To unsubscribe from the [EMAIL PROTECTED] mailing list send an email
! to
!                           [EMAIL PROTECTED]
! containing the word
!                           unsubscribe 
! in the body.

Reply via email to