Chuck,

    Your error seems that your program cannot find your manufacturer's
CardTerminalFactory. This "factory" is initially setup in the
OpenCard.terminals portion of the opencard.properties.  In the case of the
generic opencard.properties note that what is actually provided is the
factory that supports almost any PC/SC card readers, that is why you can get
this thing working. Please make sure that the class you indicated therein
(as provided by your card manufacturer does exist in your classpath. If not,
then that is what causing the error.

    Hope this helps.

Regards,

Harley



----- Original Message -----
From: "Chuck Williams" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, September 08, 2001 3:58 AM
Subject: RE: [OCF] A real puzzler...


> oops! Forgot to mention that my classpath is the same in both cases and
does
> include the base-core.jar file that contains the CardTerminalFactory class
>
> Chuck Williams
> Sr. Systems Engineer - Federal Division
> Vitria Technology, Inc.
> (703) 885-4728 office
> (703) 338-5162 ** NEW Cell  **
> http://www.vitria.com
>
>
>
> -----Original Message-----
> From: Chuck Williams [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 07, 2001 3:55 PM
> To: '[EMAIL PROTECTED]'
> Subject: [OCF] A real puzzler...
>
>
> Thanks again for all who are helping in my never ending quest to get my
> PCT200 card reader working.
>
> Here's where things stand.
>
> I have the G&D jar files and the opencard.properties file for the reader.
> Now here's the problem. When I use their opencard.properties file I get
the
> following stack trace when running the GetCardID demo program:
>
> D:\Chuck>java demos.samples.GetCardID
> ------------------------------------------------------------
> start use case: get a card ID
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> opencard/core/termina
> l/CardTerminalFactory
>         at java.lang.ClassLoader.defineClass0(Native Method)
>         at java.lang.ClassLoader.defineClass(ClassLoader.java:477)
>         at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:10
> 9)
>         at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
>         at java.net.URLClassLoader.access$1(URLClassLoader.java:216)
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:191)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:298)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:291)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:285)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
>         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:314)
>         at java.lang.Class.forName0(Native Method)
>         at java.lang.Class.forName(Class.java:124)
>         at
> opencard.core.service.SmartCard.handleTerminalFactoryEntries(SmartCar
> d.java, Compiled Code)
>         at
> opencard.core.service.SmartCard.configureTerminalRegistry(SmartCard.j
> ava, Compiled Code)
>         at opencard.core.service.SmartCard.start(SmartCard.java:534)
>         at demos.samples.GetCardID.main(GetCardID.java:67)
>
> When I switch back to a generic opencard.properties file, the program
works.
>
> here are the files:
>
> Generic:
>
> ###############################
> # Card service configuration  #
> ###############################
>
> OpenCard.services = \
>     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
>
> ------------------- end of file -------------------------
>
> G&D provided opencard.properties:
>
> # --------------------------------------------------------------------- #
> #
> #          file: opencard.properties
> #       purpose: Property settings for G & D CardServices Demo
> #       project: OCF CardServices for STARCOS SPK Signature Card
> #                Giesecke & Devrient GmbH, Munich.
> #  requirements: OCF1.2, javax.comm, OCF CT, JDK1.1.7 or JDK1.2
> #
> #
> # --------------------------------------------------------------------- #
>
> OpenCard.terminals =
>
com.gieseckedevrient.opencard.terminal.GDCardTerminalFactory|COM1CardReader|
> GDGeneric|0
> #OpenCard.terminals =
>
com.gieseckedevrient.opencard.terminal.GDCardTerminalFactory|COM2CardReader|
> GDGeneric|1
> OpenCard.services  =
> com.gieseckedevrient.opencard.spksigg.factory.SPKSigGCardServiceFactory
>
> # set this entry to D27600006601 for "real" DIN Signature Cards
> # set this entry to D27600000510000B for test Signature Cards
>
com.gieseckedevrient.opencard.spksigg.factory.SPKSigGCardServiceFactory.AID
> = D27600000510000B
>
>
> OpenCard.trace = com.gieseckedevrient.opencard.terminal.transport:1 \
>      com.gieseckedevrient.opencard.spksigg:2 \
>      opencard.core.terminal.CardTerminalRegistry:1
>
> # ---- Settings for journaling of serial communication:
> #      A value of 0 for 'logLevel' disables logging of data exchange.
> #      The number of the serial port will be appended to the file name
> specified.
> #
> GieseckeDevrient.OpenCard.SerialIO.logLevel = 2
> GieseckeDevrient.OpenCard.SerialIO.logFile = CardFile.log
>
> # --------------------------------------------------------------------- #
>
> --------------------- end of file --------------------------------------
>
> Any clues?
>
> Chuck Williams
> Sr. Systems Engineer - Federal Division
> Vitria Technology, Inc.
> (703) 885-4728 office
> (703) 338-5162 ** NEW Cell  **
> http://www.vitria.com
>
>
> ---
> > 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.



_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com



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