Q2 Server help

339 views
Skip to first unread message

Gabyokal

unread,
Feb 14, 2012, 2:24:56 PM2/14/12
to jPOS Users
Hola: quiero crear un servidor Q2 pero no tengo idea de cómo hacerlo,
me pueden ayudar por favor
Gracias


-------------------------------------------------------------------------------------------------------------------------------------------

Hi, I want to create a server Q2 but I have no idea how to do, can you
help please
thanks

Alejandro Revilla

unread,
Feb 14, 2012, 3:50:58 PM2/14/12
to jpos-...@googlegroups.com
Do you want to create a Q2 server or perhaps you want to configure Q2 to run an ISO-8583 based server?

--
@apr



--
jPOS is licensed under AGPL - free for community usage for your open-source project. Licenses are also available for commercial usage.
Please support jPOS, contact: sa...@jpos.org

You received this message because you are subscribed to the  "jPOS Users" group.
Please see http://jpos.org/wiki/JPOS_Mailing_List_Readme_first
To post to this group, send email to jpos-...@googlegroups.com
To unsubscribe, send email to jpos-users+...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/jpos-users

Gabyokal

unread,
Feb 14, 2012, 6:15:11 PM2/14/12
to jPOS Users

I want to configure a Q2 server, I followed an example and put it in a
xml file:

*****************************************************************************************************************************
<server name="xml-server" class="org.jpos.q2.iso.QServer"
logger="Q2">
<attr name="port" type="java.lang.Integer">2005</attr>
<channel name="dummyclient.channel"
class="org.jpos.iso.channel.BASE24Channel"
packager="org.jpos.iso.packager.GenericPackager"
logger="Q2">
<property name="packager-config" value="cfg/packager/
base24.xml" />
</channel>
</server>
*****************************************************************************************************************************


but I get this error:

*****************************************************************************************************************************

<exception name="The MBean class could not be loaded by the context
classloader">
javax.management.ReflectionException: The MBean class could not be
loaded by the context classloader
at
com.sun.jmx.mbeanserver.MBeanInstantiator.loadClass(MBeanInstantiator.java:
639)
at
com.sun.jmx.mbeanserver.MBeanInstantiator.findClass(MBeanInstantiator.java:
111)
at
com.sun.jmx.mbeanserver.MBeanInstantiator.findClass(MBeanInstantiator.java:
135)
at
com.sun.jmx.mbeanserver.MBeanInstantiator.instantiate(MBeanInstantiator.java:
604)
at
com.sun.jmx.mbeanserver.MBeanInstantiator.instantiate(MBeanInstantiator.java:
513)
at
com.sun.jmx.mbeanserver.JmxMBeanServer.instantiate(JmxMBeanServer.java:
984)
at org.jpos.q2.QFactory.instantiate(QFactory.java:107)
at org.jpos.q2.Q2.deploy(Q2.java:348)
at org.jpos.q2.Q2.deploy(Q2.java:212)
at org.jpos.q2.Q2.start(Q2.java:167)
at org.jpos.q2.Q2.main(Q2.java:519)
*****************************************************************************************************************************


my question is, I need to create some class or add a .jar to make
references my xml?
the path cfg/packager/base24.xml must be in the deploy directory?
this error do you mean?

Alejandro Revilla

unread,
Feb 14, 2012, 6:38:10 PM2/14/12
to jpos-...@googlegroups.com
How are you starting Q2? java -jar jpos.jar ?

--
@apr




Gabyokal

unread,
Feb 14, 2012, 6:47:53 PM2/14/12
to jPOS Users


yes, even I made the example that comes in the guide that displays a
message every second, but when I tried to make this example I got this
error.
In the deploy directory I have this xml, jpos.jar and cfg directory

Thnks :D

Alejandro Revilla

unread,
Feb 14, 2012, 7:53:13 PM2/14/12
to jpos-...@googlegroups.com
You have a classpath issue there, jpos.jar has to be in the main directory and all the dependencies in the 'lib' directory.

--
@apr




Gabyokal

unread,
Feb 15, 2012, 2:10:25 PM2/15/12
to jPOS Users
Sorry!!! ... the example I mentioned is for version 1.6 and I have the
1.4, would a setup like this but for version 1.4.8?

tnks =)

Mark Salter

unread,
Feb 15, 2012, 2:11:48 PM2/15/12
to jpos-...@googlegroups.com
On 15/02/2012 19:10, Gabyokal wrote:
> Sorry!!! ... the example I mentioned is for version 1.6 and I have the
> 1.4, would a setup like this but for version 1.4.8?
>
Same set-up and approach is needed.


Why not upgrade to the latest and greatest - especially as it sounds
like you are just starting out?

:-)

--
Mark

Gabyokal

unread,
Feb 15, 2012, 2:15:46 PM2/15/12
to jPOS Users

thanks for responding MArk and yes, just beginning, but the company
only use 1.4.8, can you help me plis? ...

Mark Salter

unread,
Feb 15, 2012, 2:20:16 PM2/15/12
to jpos-...@googlegroups.com
On 15/02/2012 19:15, Gabyokal wrote:
>
> thanks for responding MArk and yes, just beginning, but the company
> only use 1.4.8, can you help me plis? ...
>
I wonder why, but anyway, I would suggest you see if you can ask them to
progress :-)

I don't know what you need?

The versions vary, but the approach and setup should remain the same,
follow Alejandro's already provided guidance first :-

"
You have a classpath issue there, jpos.jar has to be in the main
directory and all the dependencies in the 'lib' directory.
"

and then ask a smart question if it still gives you problems.


--
Mark

Gabyokal

unread,
Feb 16, 2012, 2:21:12 PM2/16/12
to jPOS Users

I requested the company changed version and used the code mentioned
before, thanks for your answersthey are very polite =D

Gabyokal

unread,
Mar 2, 2012, 2:08:33 PM3/2/12
to jPOS Users

Hello, I'm using a server Q2, when I send three transactions, the
first answer is fast but the second takes to send the answer and the
third did not receive until the second send the answer, how I can do
to make me answer the transactions without depending on the above?
Thank you.
Gaby

Alejandro Revilla

unread,
Mar 2, 2012, 3:03:34 PM3/2/12
to jpos-...@googlegroups.com
Don't think we have enough information about your application to answer this question.

--
@apr



Reply all
Reply to author
Forward
0 new messages