Ok ... thanks ...
The DLL file was not in any folder int the PATH environment variable ...
It could not be able to find it !!! :-)
Now I have another exception ... :-)
opencard.core.terminal.CardTerminalException: Pcsc10CardTerminal: PCSC
Exception in method SCardConnect: PC/SC Error SCardConnect return code =
80100009
at
com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminal.translatePcscException(P
csc10CardTerminal.java:502)
at
com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminal.cardConnect(Pcsc10CardTe
rminal.java:361)
at
com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminal.internalOpenSlotChannel(
Pcsc10CardTerminal.java:315)
at
opencard.core.terminal.CardTerminal.openSlotChannel(CardTerminal.java:385)
at
opencard.core.service.CardServiceRegistry.getSmartCard(CardServiceRegistry.j
ava:316)
at opencard.core.service.SmartCard.getSmartCard(SmartCard.java:388)
at opencard.core.service.CardWaiter.cardInserted(CardWaiter.java:98)
at
opencard.core.event.EventGenerator.updateCards(EventGenerator.java, Compiled
Code)
at
opencard.core.terminal.CardTerminalRegistry.cardInserted(CardTerminalRegistr
y.java:281)
at
opencard.core.terminal.CardTerminal.cardInserted(CardTerminal.java:577)
at
com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminal.poll(Pcsc10CardTerminal.
java:493)
at opencard.core.event.EventGenerator.run(EventGenerator.java,
Compiled Code)
at java.lang.Thread.run(Thread.java:479)
Just when I call the SmartCard.waitforCard() method !!
I have Two terminal reader plugged on my computer ... one from Schlumberger
... the other one from Oberthur ...
I Should look for any additional arguments to put behind
com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminalFactory.
Thanks again !!
-----Message d'origine-----
De : Laurent Jutard [mailto:[EMAIL PROTECTED]]
Envoy� : mercredi 20 d�cembre 2000 16:17
� : [EMAIL PROTECTED]; [EMAIL PROTECTED]
Objet : RE: [OCF] CardTerminalFactory Problem !!!
Hello,
I guess that the problem is not with the OCFPCSC1.class but with
OCFPCSC1.dll. This native library must be located in the system path of
Windows 2000 (for example in the current directory, in winnt or
wintnt\system32).
Concerning your properties file, you should add some arguments behind
com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminalFactory. For example for
a GCR410 reader on COM1, we have to set:
OpenCard.terminals = \
com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminalFactory|mygcr|GCR410|COM1
But I 'm sorry I don't know arguments for a Schlumberger reader.
Laurent.
>-----Original Message-----
>From: C�dric Malderez [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, December 20, 2000 3:51 PM
>To: [EMAIL PROTECTED]
>Subject: [OCF] CardTerminalFactory Problem !!!
>
>
>Hello !!!
>
>I'm actually trying to access to a Schlumberger Cyberflex
>Access card using
>Schlumberger "CyberflexAccessFileSystemCardService" class ... throught
>OpenCardFramework ...
>
>I'm using a Schlumberger Reflex 72 Reader ... which is normaly
>OCF compliant
>... as a PC/SC Reader !
>
>I'm working under Microsoft Windows 2000 ... and using a
>JavaSoft JDK 1.2.2
>...
>
>I've done a simple Java program based on the one given in the OCF 1.2
>Programmer's Guide (The ReadCardHolder Java program) ...
>changed in order to
>match a SLB Cyberflex Card ... & to read a file at address 0011 ...
>
>My problem is that each time I run my sample ... the following
>error appears
>:
>D:\CMZ\smartcard\OpenCard\Test>java -classpath
>c:\jdk1.2.2\jre\lib\rt.jar;.;./SLBCyberflex.jar;C:\OpenCard\OCF
>1.2\lib\base-
>core.jar;C:\OpenCard\OCF1.2\lib\base-opt.jar;C:\OpenCard\OCF1.2
>\lib\pcsc-wra
>pper-src.jar;C:\OpenCard\OCF1.2\lib\reference-services.jar
>ReadSLBCyberflexCardHolder
>Reading SLB Cyberflex smarcard file ...
>> Step1 : SmartCard.start()
>Exception in thread "main" java.lang.UnsatisfiedLinkError: no
>OCFPCSC1 in
>java.library.path
> at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1249)
> at java.lang.Runtime.loadLibrary0(Runtime.java:470)
> at java.lang.System.loadLibrary(System.java:778)
> at
>opencard.core.util.SystemAccess.loadLibrary(SystemAccess.java:111)
> at
>com.ibm.opencard.terminal.pcsc10.OCFPCSC1.loadLib(OCFPCSC1.java:64)
> at
>com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminalFactory.open
>(Pcsc10CardTe
>rminalFactory.java:94)
> at
>com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminalFactory.<ini
>t>(Pcsc10Card
>TerminalFactory.java:65)
> at java.lang.Class.newInstance0(Native Method)
> at java.lang.Class.newInstance(Class.java:241)
> at
>opencard.core.service.SmartCard.handleTerminalFactoryEntries(Sm
>artCard.java,
>Compiled Code)
> at
>opencard.core.service.SmartCard.configureTerminalRegistry(Smart
>Card.java,
>Compiled Code)
> at opencard.core.service.SmartCard.start(SmartCard.java:534)
> at
>ReadSLBCyberflexCardHolder.main(ReadSLBCyberflexCardHolder.java:31)
>
>As you can see ... the OCFPCSC1 class which is in the
>pcsc-wrapper-src.jar
>file ... is in classpath.
>why the java.lang.ClassLoader does not find it ??
>
>Anyway ... I've tried to change the opencard.properties file,
>in the JRE lib
>folder, and comment the line in red:
>###############################
># Card service configuration #
>###############################
>
>OpenCard.services = \
>
>com.slb.opencard.CyberflexAccess.CyberflexAccessCardServiceFactory \
> com.ibm.opencard.factory.MFCCardServiceFactory \
> opencard.opt.util.PassThruCardServiceFactory
>
>###############################
># Card terminal configuration #
>###############################
>
># OpenCard.terminals =
>com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminalFactory
>
>###############################
># Trace configuration #
>###############################
>
>OpenCard.trace = opencard:5
>
>My sample can be ran ... but ... even if I insert a card on my
>reader ...
>nothing appears ... !
>
>
>Could you tell me if I do it correctly ... of if I need a special
>TerminalFactory from Schlumberger ???
>I would really appreciate for helping !!!
>
>Sincerely,
>
>Malderez C�dric !
>
>
>
>---
>> 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.
---
> 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.