代码之家  ›  专栏  ›  技术社区  ›  fred basset

初级专业人员应该去哪里。可以为JavaPos Tomcat应用找到xml。?

  •  0
  • fred basset  · 技术社区  · 16 年前

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

    我试着把它放在tomcat\common\类中,但还是得到了一个JPOSException 当我试图打开服务时,“加载的JCL注册表中不存在服务”。帮助


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

    非常感谢,弗雷德。

    2 回复  |  直到 14 年前
        1
  •  0
  •   hram908    10 年前

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

    /*
     * 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");
    
        2
  •  -1
  •   Federico González    16 年前

    我想你说的是JavaPOS,不是JPO?

    推荐文章