0

Tomcat で実行しているシステムに新しいドライバーを追加しようとしています。ベンダーは JavaPos ドライバーを提供しています。私の質問は、Tomcat が見つけられるように jpos.xml ファイルをどこに置くかです。

tomcat\common\classes に配置しようとしましたが、開こうとすると「ロードされた JCL レジストリにサービスが存在しません」という JPOSException が表示されます。ヘルプ!


はい、JavaPOS です。JavaPos を既存のクライアント側の Tomcat アプリに統合しています。(拡張された war ファイル内の) jpos.xml と jpos.properties を配置する正しい場所を知りたいです。

どうもありがとう、フレッド。

4

2 に答える 2

0

これが5年前の質問に役立つかどうかわかりません!

/*
 * If you want to place the jpos.xml file elsewhere on your local file
 * system then uncomment the following line and specify the full path to
 * jpos.xml.
 *
 * If you want to place the jpos.xml file on a webserver for access over the
 * internet then uncomment the second System.setProperty line below and
 * specify the full URL to jpos.xml.
 */
System.setProperty( JposPropertiesConst.JPOS_POPULATOR_FILE_PROP_NAME, "jpos.xml" );
//System.setProperty(JposPropertiesConst.JPOS_POPULATOR_FILE_URL_PROP_NAME, "http://some-where-remote.com/jpos.xml");

System.setProperty("jpos.loader.serviceManagerClass", "jpos.loader.simple.SimpleServiceManager");
System.setProperty("jpos.util.tracing.TurnOnNamedTracers", "JposServiceLoader,SimpleEntryRegistry,SimpleRegPopulator,XercesRegPopulator");
System.setProperty("jpos.util.tracing.TurnOnAllNamedTracers", "ON");
于 2015-12-08T19:34:27.173 に答える
-1

jPOSではなくJavaPOSについて話していると思いますか?

于 2010-06-24T01:34:44.847 に答える