I'm trying to build a simple client test case based on the
clientsumilator module using VAPChannel and GenericPackager.
A recent post on this list (How to test Visa using jOS-EE May 12) -
suggested "to use base1.xml in the channel - see
10_clientsimulator_channel.xml".
However I'm not sure of the correct syntax to use. Based on the
GenericPackager constructor I feel I should be able to define
10_clientsimulator_channel.xml as
<?xml version="1.0" ?>
<channel-adaptor name='clientsimulator-adaptor'
class="org.jpos.q2.iso.ChannelAdaptor" logger="Q2">
<channel class="org.jpos.iso.channel.VAPChannel" logger="Q2"
packager="org.jpos.iso.packager.GenericPackager('/base1.xml')">
<property name="host" value="127.0.0.1" />
<property name="port" value="10000" />
</channel>
<in>clientsimulator-send</in>
<out>clientsimulator-receive</out>
<reconnect-delay>10000</reconnect-delay>
</channel-adaptor>
However this results in errors when executed (The unmodified
clientsimulator example build works fine).
Can anyone point me in the right direction?
Many Thanks in advance
JP
<log realm="org.jpos.q2.iso.ChannelAdaptor" at="Tue Jun 14 11:44:49 BST
2005.789"> <warn>
error starting service
<iso-exception>
org.jpos.core.ConfigurationException: org.jpos.iso.ISOException:
java.net.MalformedURLException: no protocol:
(java.net.MalformedURLException: no protocol: )
(org.jpos.iso.ISOException: java.net.MalformedURLException: no
protocol: (java.net.MalformedURLException: no protocol: ))
<iso-exception>
org.jpos.iso.ISOException: java.net.MalformedURLException: no
protocol: (java.net.MalformedURLException: no protocol
: )
<iso-exception>
java.net.MalformedURLException: no protocol:
<nested-exception>
java.net.MalformedURLException: no protocol:
at java.net.URL.<init>(URL.java:537)
...
...
...
JP
yes I had the base1.xml - but forgot the dtd
I also should have read the error message a bit more closely before
posting!
Just a bit eager I guess.
Thanks for your help - great work