gpt4 book ai didi

jpos - 从 jPOS 开始

转载 作者:行者123 更新时间:2023-12-02 01:54:49 24 4
gpt4 key购买 nike

我已经从这个链接下载了 jPOS-master.zip。 (https://github.com/jpos/jPOS)。

运行命令gradle clean dist installApp

找到jPOS-master\jpos\build\install\jpos\jpos-1.9.5-SNAPSHOT.jar

运行命令 java -jar jpos-1.9.5-SNAPSHOT.jar

得到以下控制台:

<log realm="Q2.system" at="Mon Dec 30 14:47:08 IST 2013.183" lifespan="10ms">
<info>
Q2 started, deployDir=D:\jPOS-master\jPOS-master\jpos\build\install\jpos\deploy

jPOS 1.9.5-SNAPSHOT unknown/unknown (2013-12-30 14:44:39 IST)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

jPOS Community Edition, licensed under GNU AGPL v3.0.
This software is probably not suitable for commercial use.
Please see http://jpos.org/license for details.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)

iQEcBAEBAgAGBQJMolHDAAoJEOQyeO71nYtFv74H/3OgehDGEy1VXp2U3/GcAobg
HH2eZjPUz53r38ARPiU3pzm9LwDa3WZgJJaa/b9VrJwKvbPwe9+0kY3gScDE1skT
ladHt+KHHmGQArEutkzHlpZa73RbroFEIa1qmN6MaDEHGoxZqDh0Sv2cpvOaVYGO
St8ZaddLBPC17bSjAPWo9sWbvL7FgPFOHhnPmbeux8SLtnfWxXWsgo5hLBanKmO1
1z+I/w/6DL6ZYZU6bAJUk+eyVVImJqw0x3IEElI07Nh9MC6BA4iJ77ejobj8HI2r
q9ulRPEqH9NR79619lNKVUkE206dVlXo7xHmJS1QZy5v/GT66xBxyDVfTduPFXk=
=oP+v
-----END PGP SIGNATURE-----

</info>
</log>
<log realm="Q2.system" at="Mon Dec 30 14:47:08 IST 2013.200" lifespan="8ms">
<info>
deploy: D:\jPOS-master\jPOS-master\jpos\build\install\jpos\deploy\99_sysmon.xml
</info>
</log>
<log realm="org.jpos.q2.qbean.SystemMonitor" at="Mon Dec 30 14:47:08 IST 2013.202">
<info>
Starting SystemMonitor
</info>
</log>
<log realm="org.jpos.q2.qbean.SystemMonitor" at="Mon Dec 30 14:47:08 IST 2013.203">
<info>
OS: Windows 7
host: *****/*******
version: 1.9.5-SNAPSHOT (unknown)
instance: a0032410-aff4-4128-9bf1-1d14966f2ea9
uptime: 00:00:00.280
processors: 4
drift : 0
memory(t/u/f): 121/8/113
threads: 4
Thread[Reference Handler,10,system]
Thread[Finalizer,8,system]
Thread[Signal Dispatcher,9,system]
Thread[Attach Listener,5,system]
Thread[Q2-a0032410-aff4-4128-9bf1-1d14966f2ea9,5,main]
Thread[DestroyJavaVM,5,main]
Thread[Timer-0,5,main]
Thread[SystemMonitor,5,main]
name-registrar:
logger.Q2.buffered: org.jpos.util.BufferedLogListener
logger.Q2: org.jpos.util.Logger
</info>
</log>

当我对本地主机执行 telnet 时,出现以下异常......这意味着 Q2 服务器未启动。

Connecting To 127.0.0.1...Could not open connection to the host, on port 10000: Connect failed

当我进行 gradle 测试时,出现以下异常

org.jpos.iso.packagers.PackagerTestCase > testXMLPackager FAILED
junit.framework.AssertionFailedError at PackagerTestCase.java:214

org.jpos.util.DailyLogListenerTest > testLogRotationAndCompressionWorks FAILED
java.lang.AssertionError at DailyLogListenerTest.java:303
> Building > :jpos:test > 3145 tests completed, 2 failed, 54 skipped

请问有人可以帮忙调出Q2服务器吗?我已阅读 proguide-draft.pdf,但无法理解问题所在。我想启动并运行服务器,并向其发送一些示例请求并获取响应。

我是否需要在部署目录中放置更多的 xml 以用于服务器部署?同样在运行 gradle installApp 之后,我在安装目录中找不到任何 q2.bat,我只能找到 ..

 bsh q2 start stop files.

提前致谢,Varun Kumar A.

最佳答案

Can somebody please help as how to bring up the Q2 Server ? I have read proguide-draft.pdf, but could not understand what is the issue. I want to get a server up and running and hit it with some sample requests and get the responses back.

您可以使用"jpos-template" 进行服务器和客户端模拟。在这些精美的博客文章中详细介绍了操作方法。根据文档,[实现 jpos dateway] 第 8 页

We connect here to jPOS' auto-responder, which is usually up and listening on port 9000. You could use a local server, for example based on jPOS-EE's server simulator.

您可以使用服务器模拟器作为自动响应器(如图所示的远程主机)来准备jpos 的演示环境。

Sever Simulator

Client Simulator

关于jpos - 从 jPOS 开始,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20837367/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com