JavaPos Tomcat 应用程序的 jpos.xml 应该位于哪里?

发布于 2024-09-03 19:06:05 字数 325 浏览 3 评论 0原文

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

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


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

非常感谢,弗雷德。

I am trying to add in a new driver to our system running under Tomcat. The vendor has provided a JavaPos driver, my question is where to put the jpos.xml file so Tomcat can find it?

I tried putting it in tomcat\common\classes but still get a JPOSException
"Service does not exist in loaded JCL registry" when I try to open it. Help!


Yes correct, JavaPOS. I'm integrating JavaPos into an existing client side Tomcat app., and would like to know the correct place (in the expanded war file) to put jpos.xml and also jpos.properties.

Thanks a lot, fred.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

抠脚大汉 2024-09-10 19:06:05

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

/*
 * 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");

I Don't know if this would help a five year old question!

/*
 * 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");
多像笑话 2024-09-10 19:06:05

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

I think you are talking about JavaPOS, not jPOS?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文