0

我正在尝试将新驱动程序添加到我们在 Tomcat 下运行的系统中。供应商提供了JavaPos 驱动程序,我的问题是jpos.xml 文件放在哪里以便Tomcat 可以找到它?

我尝试将它放在 tomcat\common\classes 中,但当我尝试打开它时仍然得到 JPOSException“服务在加载的 JCL 注册表中不存在”。帮助!


是的,正确的,JavaPOS。我正在将 JavaPos 集成到现有的客户端 Tomcat 应用程序中,并且想知道放置 jpos.xml 和 jpos.properties 的正确位置(在扩展的 war 文件中)。

非常感谢,弗雷德。

4

2 回答 2

0

我不知道这是否会帮助一个五年前的问题!

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

我认为您在谈论JavaPOS,而不是jPOS?

于 2010-06-24T01:34:44.847 回答