Hello,

I am running the folllowing ocf application.

import opencard.core.event.*;
import opencard.core.service.*;
import opencard.core.terminal.*;
import opencard.opt.iso.fs.*;
import opencard.opt.javacard.*;

public class CyberTest implements CTListener {

 SmartCard card = null;
 public static void main( String args[] ) {

    System.out.println("reading smartcard file...");

  try {
   SmartCard.start();
   System.out.println( "After Start!!" );

   CardRequest cr = new CardRequest( JavaCardCardService.class );
   System.out.println( "CardRequest : " + cr );

   SmartCard sc = SmartCard.waitForCard(cr);
   System.out.println( "sCard : " + sc );

  } catch( Exception e ) {
   System.out.println( "Exception occured " + e.getMessage() );
  } finally {
  // even in case of an error...
   try {
    SmartCard.shutdown();
   } catch ( Exception ee ) {
    ee.printStackTrace(System.err);
   }
  }
 }

---------------------------------------------------------------------------------------------------------------------------

And I am getting the following messages when the card is inserted.

reading smartcard file...
After Start!!
CardRequest : opencard.core.service.CardRequest@7730c3df ANYCARD
service  = interface opencard.opt.javacard.JavaCardCardService

[INFO     ]
opencard.core.service.CardServiceRegistry.getCardServiceClass
--- message   no CardService for interface
opencard.opt.javacard.JavaCardCardService
--- thread    Thread[Thread-0,5,main]
--- source    opencard.core.service.CardServiceRegistry@7178c3df

[INFO     ]
opencard.core.service.CardServiceRegistry.isCardRequestSatisfied
--- message   requested CardService class interface
opencard.opt.javacard.JavaCardCardService not supported for
opencard.core.terminal.CardID@84b0c3df ATR: 3B 16 94 81 10 06 01 81 2F
--- thread    Thread[Thread-0,5,main]
--- source    opencard.core.service.CardServiceRegistry@7178c3df

[INFO     ] opencard.core.service.CardServiceRegistry.getSmartCard
--- message   CardRequest opencard.core.service.CardRequest@7730c3df
ANYCARD
service  = interface opencard.opt.javacard.JavaCardCardService cannot be
satisfied with opencard.core.terminal.CardID@84b0c3df ATR: 3B 16 94 81
10 06 01 81 2F
--- thread    Thread[Thread-0,5,main]
--- source    opencard.core.service.CardServiceRegistry@7178c3df

------------------------------------------------------------------------------------------------------------------------

The opencard.properties file contains the following properties.
OpenCard.terminals=com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminalFactory

OpenCard.services = com.ibm.opencard.factory.MFCCardServiceFactory
-------------------------------------------------------------------------------------------------------------------------

What could be the solution??

Thanks and regards,
Ashish




---
> 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