2010-06-01 80 views
0

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

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


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

非常感谢,弗雷德。

回答

-1

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

+0

这不是答案。请将其移动为对原始问题的评论。 – 2014-02-01 21:38:52

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"); 
相关问题