[jpos-users] The MBean class could not be loaded (JPOS)

classic Classic list List threaded Threaded
19 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[jpos-users] The MBean class could not be loaded (JPOS)

derinlois1
While trying to build my JPOS using gradle, i am experiencing this error.

below is the error log which I am getting.

<log realm="org.jpos.q2.iso.QServer" at="2016-11-14T16:59:47.151">
  <warn>
    error starting service
    <iso-exception>
      com.access.server.JposListenerServer
      <nested-exception>
      javax.management.ReflectionException: The MBean class could not be loaded
        at com.sun.jmx.mbeanserver.MBeanInstantiator.loadClass(Unknown Source)
        at com.sun.jmx.mbeanserver.MBeanInstantiator.findClass(Unknown Source)
        at com.sun.jmx.mbeanserver.MBeanInstantiator.findClass(Unknown Source)
        at com.sun.jmx.mbeanserver.MBeanInstantiator.instantiate(Unknown Source)
        at com.sun.jmx.mbeanserver.MBeanInstantiator.instantiate(Unknown Source)
        at com.sun.jmx.mbeanserver.JmxMBeanServer.instantiate(Unknown Source)
        at org.jpos.q2.QFactory.newInstance(QFactory.java:321)
        at org.jpos.q2.iso.QServer.addListeners(QServer.java:296)
        at org.jpos.q2.iso.QServer.initServer(QServer.java:120)
        at org.jpos.q2.iso.QServer.startService(QServer.java:155)
        at org.jpos.q2.QBeanSupport.start(QBeanSupport.java:118)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at sun.reflect.misc.Trampoline.invoke(Unknown Source)
        at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at sun.reflect.misc.MethodUtil.invoke(Unknown Source)
        at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(Unknown Source)
        at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(Unknown Source)
        at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(Unknown Source)
        at com.sun.jmx.mbeanserver.PerInterface.invoke(Unknown Source)
        at com.sun.jmx.mbeanserver.MBeanSupport.invoke(Unknown Source)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown Source)
        at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source)
        at org.jpos.q2.QFactory.startQBean(QFactory.java:187)
        at org.jpos.q2.Q2.start(Q2.java:576)
        at org.jpos.q2.Q2.deploy(Q2.java:360)
        at org.jpos.q2.Q2.run(Q2.java:220)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: com.access.server.JposListenerServer
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        ... 32 more
      </nested-exception>
      org.jpos.core.ConfigurationException: com.access.server.JposListenerServer (javax.management.ReflectionException: The MBean class could not be loaded)
        at org.jpos.q2.QFactory.newInstance(QFactory.java:323)
        at org.jpos.q2.iso.QServer.addListeners(QServer.java:296)
        at org.jpos.q2.iso.QServer.initServer(QServer.java:120)
        at org.jpos.q2.iso.QServer.startService(QServer.java:155)
        at org.jpos.q2.QBeanSupport.start(QBeanSupport.java:118)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
  t sun.reflect.misc.Trampoline.invoke(Unknown Source)
        at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at sun.reflect.misc.MethodUtil.invoke(Unknown Source)
        at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(Unknown Source)
        at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(Unknown Source)
        at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(Unknown Source)
        at com.sun.jmx.mbeanserver.PerInterface.invoke(Unknown Source)
        at com.sun.jmx.mbeanserver.MBeanSupport.invoke(Unknown Source)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown Source)
        at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source)
        at org.jpos.q2.QFactory.startQBean(QFactory.java:187)
        at org.jpos.q2.Q2.start(Q2.java:576)
        at org.jpos.q2.Q2.deploy(Q2.java:360)
        at org.jpos.q2.Q2.run(Q2.java:220)
        at java.lang.Thread.run(Unknown Source)
Nested:javax.management.ReflectionException: The MBean class could not be loaded
        at com.sun.jmx.mbeanserver.MBeanInstantiator.loadClass(Unknown Source)
        at com.sun.jmx.mbeanserver.MBeanInstantiator.findClass(Unknown Source)
        at com.sun.jmx.mbeanserver.MBeanInstantiator.findClass(Unknown Source)
        at com.sun.jmx.mbeanserver.MBeanInstantiator.instantiate(Unknown Source)
        at com.sun.jmx.mbeanserver.MBeanInstantiator.instantiate(Unknown Source)
        at com.sun.jmx.mbeanserver.JmxMBeanServer.instantiate(Unknown Source)
        at org.jpos.q2.QFactory.newInstance(QFactory.java:321)
        at org.jpos.q2.iso.QServer.addListeners(QServer.java:296)
        at org.jpos.q2.iso.QServer.initServer(QServer.java:120)
        at org.jpos.q2.iso.QServer.startService(QServer.java:155)
        at org.jpos.q2.QBeanSupport.start(QBeanSupport.java:118)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at ng.reflect.Method.invoke(Unknown Source)
        at sun.reflect.misc.Trampoline.invoke(Unknown Source)
        at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at sun.reflect.misc.MethodUtil.invoke(Unknown Source)
        at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(Unknown Source)
        at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(Unknown Source)
        at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(Unknown Source)
        at com.sun.jmx.mbeanserver.PerInterface.invoke(Unknown Source)
        at com.sun.jmx.mbeanserver.MBeanSupport.invoke(Unknown Source)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown Source)
        at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source)
        at org.jpos.q2.QFactory.startQBean(QFactory.java:187)
        at org.jpos.q2.Q2.start(Q2.java:576)
        at org.jpos.q2.Q2.deploy(Q2.java:360)
        at org.jpos.q2.Q2.run(Q2.java:220)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: com.access.server.JposListenerServer
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        ... 32 more
    </iso-exception>
  </warn>
</log>
NOTE: I have this class JposListenerServer in my package, but..i still can't figure out where the error is coming from.
below is my 10_server.xml file

<server name="access-server"  class="org.jpos.q2.iso.QServer" logger="Q2">

<attr name="port" type="java.lang.Integer">10100</attr>
<attr name="maxSessions" type="java.lang.Integer">100</attr>
<attr name="minSessions" type="java.lang.Integer">0</attr>
 <channel class="org.jpos.iso.channel.PostChannel" logger="Q2"
       packager="org.jpos.iso.packager.ISO87APackagerBBitmap">

  <property name="host" value="192.168.3.10" />
  <property name="port" value="1010" />
 </channel>

<request-listener class="com.access.server.JposListenerServer" logger="Q2">
<property name = "source" value = "com/access/server/JposListenerServer.java"/>
<property name="space" value="tspace:mySpace" />
<property name="queue" value="TransactionQueue" />
<property name="timeout" value="10000" />
</request-listener>

</server>

I will appreciate any pointer to what i am doing wrong here.
Thanks so much for your time.

--
--
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: [hidden email]
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/509777fc-176d-4726-aa47-31458fa782ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [jpos-users] The MBean class could not be loaded (JPOS)

Andrés Alcarraz

Clearly your class com.access.server.JposListenerServer is not in the classpath, are you sure you are adding your jar to the classpath?

<request-listener class="com.access.server.JposListenerServer" logger="Q2">
<property name = "source" value = "com/access/server/JposListenerServer.java"/> <--- what does this mean??????
<property name="space" value="tspace:mySpace" />
<property name="queue" value="TransactionQueue" />
<property name="timeout" value="10000" />
</request-listener>

Best regards

Andrés?


El 14/11/16 a las 13:14, [hidden email] escribió:

While trying to build my JPOS using gradle, i am experiencing this error.

below is the error log which I am getting.

<log realm="org.jpos.q2.iso.QServer" at="2016-11-14T16:59:47.151">
  <warn>
    error starting service
    <iso-exception>
      com.access.server.JposListenerServer
      <nested-exception>
      javax.management.ReflectionException: The MBean class could not be loaded
        at com.sun.jmx.mbeanserver.MBeanInstantiator.loadClass(Unknown Source)
        at com.sun.jmx.mbeanserver.MBeanInstantiator.findClass(Unknown Source)
        at com.sun.jmx.mbeanserver.MBeanInstantiator.findClass(Unknown Source)
        at com.sun.jmx.mbeanserver.MBeanInstantiator.instantiate(Unknown Source)
        at com.sun.jmx.mbeanserver.MBeanInstantiator.instantiate(Unknown Source)
        at com.sun.jmx.mbeanserver.JmxMBeanServer.instantiate(Unknown Source)
        at org.jpos.q2.QFactory.newInstance(QFactory.java:321)
        at org.jpos.q2.iso.QServer.addListeners(QServer.java:296)
        at org.jpos.q2.iso.QServer.initServer(QServer.java:120)
        at org.jpos.q2.iso.QServer.startService(QServer.java:155)
        at org.jpos.q2.QBeanSupport.start(QBeanSupport.java:118)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at sun.reflect.misc.Trampoline.invoke(Unknown Source)
        at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at sun.reflect.misc.MethodUtil.invoke(Unknown Source)
        at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(Unknown Source)
        at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(Unknown Source)
        at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(Unknown Source)
        at com.sun.jmx.mbeanserver.PerInterface.invoke(Unknown Source)
        at com.sun.jmx.mbeanserver.MBeanSupport.invoke(Unknown Source)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown Source)
        at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source)
        at org.jpos.q2.QFactory.startQBean(QFactory.java:187)
        at org.jpos.q2.Q2.start(Q2.java:576)
        at org.jpos.q2.Q2.deploy(Q2.java:360)
        at org.jpos.q2.Q2.run(Q2.java:220)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: com.access.server.JposListenerServer
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        ... 32 more
      </nested-exception>
      org.jpos.core.ConfigurationException: com.access.server.JposListenerServer (javax.management.ReflectionException: The MBean class could not be loaded)
        at org.jpos.q2.QFactory.newInstance(QFactory.java:323)
        at org.jpos.q2.iso.QServer.addListeners(QServer.java:296)
        at org.jpos.q2.iso.QServer.initServer(QServer.java:120)
        at org.jpos.q2.iso.QServer.startService(QServer.java:155)
        at org.jpos.q2.QBeanSupport.start(QBeanSupport.java:118)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
  t sun.reflect.misc.Trampoline.invoke(Unknown Source)
        at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at sun.reflect.misc.MethodUtil.invoke(Unknown Source)
        at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(Unknown Source)
        at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(Unknown Source)
        at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(Unknown Source)
        at com.sun.jmx.mbeanserver.PerInterface.invoke(Unknown Source)
        at com.sun.jmx.mbeanserver.MBeanSupport.invoke(Unknown Source)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown Source)
        at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source)
        at org.jpos.q2.QFactory.startQBean(QFactory.java:187)
        at org.jpos.q2.Q2.start(Q2.java:576)
        at org.jpos.q2.Q2.deploy(Q2.java:360)
        at org.jpos.q2.Q2.run(Q2.java:220)
        at java.lang.Thread.run(Unknown Source)
Nested:javax.management.ReflectionException: The MBean class could not be loaded
        at com.sun.jmx.mbeanserver.MBeanInstantiator.loadClass(Unknown Source)
        at com.sun.jmx.mbeanserver.MBeanInstantiator.findClass(Unknown Source)
        at com.sun.jmx.mbeanserver.MBeanInstantiator.findClass(Unknown Source)
        at com.sun.jmx.mbeanserver.MBeanInstantiator.instantiate(Unknown Source)
        at com.sun.jmx.mbeanserver.MBeanInstantiator.instantiate(Unknown Source)
        at com.sun.jmx.mbeanserver.JmxMBeanServer.instantiate(Unknown Source)
        at org.jpos.q2.QFactory.newInstance(QFactory.java:321)
        at org.jpos.q2.iso.QServer.addListeners(QServer.java:296)
        at org.jpos.q2.iso.QServer.initServer(QServer.java:120)
        at org.jpos.q2.iso.QServer.startService(QServer.java:155)
        at org.jpos.q2.QBeanSupport.start(QBeanSupport.java:118)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at ng.reflect.Method.invoke(Unknown Source)
        at sun.reflect.misc.Trampoline.invoke(Unknown Source)
        at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at sun.reflect.misc.MethodUtil.invoke(Unknown Source)
        at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(Unknown Source)
        at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(Unknown Source)
        at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(Unknown Source)
        at com.sun.jmx.mbeanserver.PerInterface.invoke(Unknown Source)
        at com.sun.jmx.mbeanserver.MBeanSupport.invoke(Unknown Source)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown Source)
        at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source)
        at org.jpos.q2.QFactory.startQBean(QFactory.java:187)
        at org.jpos.q2.Q2.start(Q2.java:576)
        at org.jpos.q2.Q2.deploy(Q2.java:360)
        at org.jpos.q2.Q2.run(Q2.java:220)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: com.access.server.JposListenerServer
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        ... 32 more
    </iso-exception>
  </warn>
</log>
NOTE: I have this class JposListenerServer in my package, but..i still can't figure out where the error is coming from.
below is my 10_server.xml file

<server name="access-server"  class="org.jpos.q2.iso.QServer" logger="Q2">

<attr name="port" type="java.lang.Integer">10100</attr>
<attr name="maxSessions" type="java.lang.Integer">100</attr>
<attr name="minSessions" type="java.lang.Integer">0</attr>
 <channel class="org.jpos.iso.channel.PostChannel" logger="Q2"
       packager="org.jpos.iso.packager.ISO87APackagerBBitmap">

  <property name="host" value="192.168.3.10" />
  <property name="port" value="1010" />
 </channel>

<request-listener class="com.access.server.JposListenerServer" logger="Q2">
<property name = "source" value = "com/access/server/JposListenerServer.java"/>
<property name="space" value="tspace:mySpace" />
<property name="queue" value="TransactionQueue" />
<property name="timeout" value="10000" />
</request-listener>

</server>

I will appreciate any pointer to what i am doing wrong here.
Thanks so much for your time.
--
--
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: [hidden email]
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/509777fc-176d-4726-aa47-31458fa782ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


El 14/11/16 a las 13:14, [hidden email] escribió:
While trying to build my JPOS using gradle, i am experiencing this error.

below is the error log which I am getting.

<log realm="org.jpos.q2.iso.QServer" at="2016-11-14T16:59:47.151">
  <warn>
    error starting service
    <iso-exception>
      com.access.server.JposListenerServer
      <nested-exception>
      javax.management.ReflectionException: The MBean class could not be loaded
        at com.sun.jmx.mbeanserver.MBeanInstantiator.loadClass(Unknown Source)
        at com.sun.jmx.mbeanserver.MBeanInstantiator.findClass(Unknown Source)
        at com.sun.jmx.mbeanserver.MBeanInstantiator.findClass(Unknown Source)
        at com.sun.jmx.mbeanserver.MBeanInstantiator.instantiate(Unknown Source)
        at com.sun.jmx.mbeanserver.MBeanInstantiator.instantiate(Unknown Source)
        at com.sun.jmx.mbeanserver.JmxMBeanServer.instantiate(Unknown Source)
        at org.jpos.q2.QFactory.newInstance(QFactory.java:321)
        at org.jpos.q2.iso.QServer.addListeners(QServer.java:296)
        at org.jpos.q2.iso.QServer.initServer(QServer.java:120)
        at org.jpos.q2.iso.QServer.startService(QServer.java:155)
        at org.jpos.q2.QBeanSupport.start(QBeanSupport.java:118)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at sun.reflect.misc.Trampoline.invoke(Unknown Source)
        at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at sun.reflect.misc.MethodUtil.invoke(Unknown Source)
        at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(Unknown Source)
        at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(Unknown Source)
        at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(Unknown Source)
        at com.sun.jmx.mbeanserver.PerInterface.invoke(Unknown Source)
        at com.sun.jmx.mbeanserver.MBeanSupport.invoke(Unknown Source)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown Source)
        at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source)
        at org.jpos.q2.QFactory.startQBean(QFactory.java:187)
        at org.jpos.q2.Q2.start(Q2.java:576)
        at org.jpos.q2.Q2.deploy(Q2.java:360)
        at org.jpos.q2.Q2.run(Q2.java:220)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: com.access.server.JposListenerServer
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        ... 32 more
      </nested-exception>
      org.jpos.core.ConfigurationException: com.access.server.JposListenerServer (javax.management.ReflectionException: The MBean class could not be loaded)
        at org.jpos.q2.QFactory.newInstance(QFactory.java:323)
        at org.jpos.q2.iso.QServer.addListeners(QServer.java:296)
        at org.jpos.q2.iso.QServer.initServer(QServer.java:120)
        at org.jpos.q2.iso.QServer.startService(QServer.java:155)
        at org.jpos.q2.QBeanSupport.start(QBeanSupport.java:118)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
  t sun.reflect.misc.Trampoline.invoke(Unknown Source)
        at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at sun.reflect.misc.MethodUtil.invoke(Unknown Source)
        at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(Unknown Source)
        at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(Unknown Source)
        at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(Unknown Source)
        at com.sun.jmx.mbeanserver.PerInterface.invoke(Unknown Source)
        at com.sun.jmx.mbeanserver.MBeanSupport.invoke(Unknown Source)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown Source)
        at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source)
        at org.jpos.q2.QFactory.startQBean(QFactory.java:187)
        at org.jpos.q2.Q2.start(Q2.java:576)
        at org.jpos.q2.Q2.deploy(Q2.java:360)
        at org.jpos.q2.Q2.run(Q2.java:220)
        at java.lang.Thread.run(Unknown Source)
Nested:javax.management.ReflectionException: The MBean class could not be loaded
        at com.sun.jmx.mbeanserver.MBeanInstantiator.loadClass(Unknown Source)
        at com.sun.jmx.mbeanserver.MBeanInstantiator.findClass(Unknown Source)
        at com.sun.jmx.mbeanserver.MBeanInstantiator.findClass(Unknown Source)
        at com.sun.jmx.mbeanserver.MBeanInstantiator.instantiate(Unknown Source)
        at com.sun.jmx.mbeanserver.MBeanInstantiator.instantiate(Unknown Source)
        at com.sun.jmx.mbeanserver.JmxMBeanServer.instantiate(Unknown Source)
        at org.jpos.q2.QFactory.newInstance(QFactory.java:321)
        at org.jpos.q2.iso.QServer.addListeners(QServer.java:296)
        at org.jpos.q2.iso.QServer.initServer(QServer.java:120)
        at org.jpos.q2.iso.QServer.startService(QServer.java:155)
        at org.jpos.q2.QBeanSupport.start(QBeanSupport.java:118)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at ng.reflect.Method.invoke(Unknown Source)
        at sun.reflect.misc.Trampoline.invoke(Unknown Source)
        at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at sun.reflect.misc.MethodUtil.invoke(Unknown Source)
        at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(Unknown Source)
        at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(Unknown Source)
        at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(Unknown Source)
        at com.sun.jmx.mbeanserver.PerInterface.invoke(Unknown Source)
        at com.sun.jmx.mbeanserver.MBeanSupport.invoke(Unknown Source)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown Source)
        at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source)
        at org.jpos.q2.QFactory.startQBean(QFactory.java:187)
        at org.jpos.q2.Q2.start(Q2.java:576)
        at org.jpos.q2.Q2.deploy(Q2.java:360)
        at org.jpos.q2.Q2.run(Q2.java:220)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: com.access.server.JposListenerServer
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        ... 32 more
    </iso-exception>
  </warn>
</log>
NOTE: I have this class JposListenerServer in my package, but..i still can't figure out where the error is coming from.
below is my 10_server.xml file

<server name="access-server"  class="org.jpos.q2.iso.QServer" logger="Q2">

<attr name="port" type="java.lang.Integer">10100</attr>
<attr name="maxSessions" type="java.lang.Integer">100</attr>
<attr name="minSessions" type="java.lang.Integer">0</attr>
 <channel class="org.jpos.iso.channel.PostChannel" logger="Q2"
       packager="org.jpos.iso.packager.ISO87APackagerBBitmap">

  <property name="host" value="192.168.3.10" />
  <property name="port" value="1010" />
 </channel>

<request-listener class="com.access.server.JposListenerServer" logger="Q2">
<property name = "source" value = "com/access/server/JposListenerServer.java"/>
<property name="space" value="tspace:mySpace" />
<property name="queue" value="TransactionQueue" />
<property name="timeout" value="10000" />
</request-listener>

</server>

I will appreciate any pointer to what i am doing wrong here.
Thanks so much for your time.
--
--
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: [hidden email]
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/509777fc-176d-4726-aa47-31458fa782ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
--
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: [hidden email]
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/f8bf0793-a9b6-a99d-ba9f-69a01e6f11e7%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [jpos-users] The MBean class could not be loaded (JPOS)

derinlois1
Yes, i added it to my classpath.

public class JposListenerServer implements ISORequestListener, Configurable {
    
    private String queueName;
    private Space<String, Context> sp;
    private Long timeout;
    
    public JposListenerServer() {
        super();
    }
    
    public static void main(String[] args) {
        Q2 q2 = new Q2();
        q2.start();
    }
    
    @Override
    public boolean process(ISOSource isos, ISOMsg isomsg) {
        Context ctx = new Context();
                
        ctx.put("REQUEST", isomsg);
        ctx.put("ISOSOURCE", isos);
        sp.out(queueName, ctx, timeout);
        return true;
        
    }

    @Override
    public void setConfiguration(Configuration c) throws ConfigurationException {
        queueName = c.get("queue");
        timeout = c.getLong("timeout");
        sp = SpaceFactory.getSpace(c.get("space"));
    }

that's the content of the class.

So sorry for deleting the previous POST, i sensed it wasn't well formatted.
Thanks so much for your time Andres
On Monday, November 14, 2016 at 5:19:10 PM UTC+1, Andrés Alcarraz wrote:

Clearly your class com.access.server.JposListenerServer is not in the classpath, are you sure you are adding your jar to the classpath?

<request-listener class="com.access.server.JposListenerServer" logger="Q2">
<property name = "source" value = "com/access/server/JposListenerServer.java"/> <--- what does this mean??????
<property name="space" value="tspace:mySpace" />
<property name="queue" value="TransactionQueue" />
<property name="timeout" value="10000" />
</request-listener>

Best regards

Andrés?




--
--
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: [hidden email]
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/48a0fec1-89d3-40ba-96ab-0db60d49c6e5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [jpos-users] The MBean class could not be loaded (JPOS)

Andrés Alcarraz

I'm not sure you understand what adding to the classpath mean .... How did you generate your jar or .class and how did you added to the classpath?


El 14/11/16 a las 13:24, [hidden email] escribió:
Yes, i added it to my classpath.

public class JposListenerServer implements ISORequestListener, Configurable {
    
    private String queueName;
    private Space<String, Context> sp;
    private Long timeout;
    
    public JposListenerServer() {
        super();
    }
    
    public static void main(String[] args) {
        Q2 q2 = new Q2();
        q2.start();
    }
    
    @Override
    public boolean process(ISOSource isos, ISOMsg isomsg) {
        Context ctx = new Context();
                
        ctx.put("REQUEST", isomsg);
        ctx.put("ISOSOURCE", isos);
        sp.out(queueName, ctx, timeout);
        return true;
        
    }

    @Override
    public void setConfiguration(Configuration c) throws ConfigurationException {
        queueName = c.get("queue");
        timeout = c.getLong("timeout");
        sp = SpaceFactory.getSpace(c.get("space"));
    }

that's the content of the class.

So sorry for deleting the previous POST, i sensed it wasn't well formatted.
Thanks so much for your time Andres
On Monday, November 14, 2016 at 5:19:10 PM UTC+1, Andrés Alcarraz wrote:

Clearly your class com.access.server.JposListenerServer is not in the classpath, are you sure you are adding your jar to the classpath?

<request-listener class="com.access.server.JposListenerServer" logger="Q2">
<property name = "source" value = "com/access/server/JposListenerServer.java"/> <--- what does this mean??????
<property name="space" value="tspace:mySpace" />
<property name="queue" value="TransactionQueue" />
<property name="timeout" value="10000" />
</request-listener>

Best regards

Andrés?




--
--
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: [hidden email]
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/48a0fec1-89d3-40ba-96ab-0db60d49c6e5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
--
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: [hidden email]
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/773b5a62-ba30-ffd0-0445-1414698a456d%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [jpos-users] The MBean class could not be loaded (JPOS)

derinlois1

I am trying to build it using gradlew which helps to build the .jar file while configuring my xml file.
On Monday, November 14, 2016 at 5:26:23 PM UTC+1, Andrés Alcarraz wrote:

I'm not sure you understand what adding to the classpath mean .... How did you generate your jar or .class and how did you added to the classpath?


--
--
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: [hidden email]
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/94e3805e-2c2c-452b-92e6-ad8a14cf6400%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [jpos-users] The MBean class could not be loaded (JPOS)

Andrés Alcarraz

You didn't respond what the property source="com/...." means.

How are you invonking gradle, where did you put your source file? how does your source tree looks like?

There are too many variables unkown to give you something close to an accurate response.


El 14/11/16 a las 13:31, [hidden email] escribió:

I am trying to build it using gradlew which helps to build the .jar file while configuring my xml file.
On Monday, November 14, 2016 at 5:26:23 PM UTC+1, Andrés Alcarraz wrote:

I'm not sure you understand what adding to the classpath mean .... How did you generate your jar or .class and how did you added to the classpath?


--
--
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: [hidden email]
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/94e3805e-2c2c-452b-92e6-ad8a14cf6400%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
--
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: [hidden email]
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/e39d8b65-4477-ca08-890f-a36b0709696a%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [jpos-users] The MBean class could not be loaded (JPOS)

derinlois1
That was supposed to be commented out (source = "com/...")....It was an error at my own end.
and, this is my source tree

|-- gradlew 
|-- gradlew.bat
|-- gradle 
| `-- wrapper 
   | |-- gradle-wrapper.jar 
   | `-- gradle-wrapper.properties 
... 
...
jpos
     build.gradle
        src
            main
                  java
             main
                  resources
             dist
                   bin
                        bsh
                        q2
                        q2.bat
                        start
                        stop
                   cfg
                         echo_r
                         echo_s
                   com
                          access
                                 client
                                 server
                   deploy
                            00_logger
                            10_clientsimulator_channel
                            10_server
                            20_clientsimulator_mux
                            25_cleintsimulator_ui
                            30_clientsimulator
                            99_sysmon
                   log
                            q2
             
          


On Monday, November 14, 2016 at 5:34:50 PM UTC+1, Andrés Alcarraz wrote:

You didn't respond what the property source="com/...." means.

How are you invonking gradle, where did you put your source file? how does your source tree looks like?

There are too many variables unkown to give you something close to an accurate response.


--
--
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: [hidden email]
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/81a741e5-3179-449c-8e3d-3c08ee8d94ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [jpos-users] The MBean class could not be loaded (JPOS)

Andrés Alcarraz

You still didn't say where you put your source code within that tree...


El 14/11/16 a las 13:57, [hidden email] escribió:
That was supposed to be commented out (source = "com/...")....It was an error at my own end.
and, this is my source tree

|-- gradlew 
|-- gradlew.bat
|-- gradle 
| `-- wrapper 
   | |-- gradle-wrapper.jar 
   | `-- gradle-wrapper.properties 
... 
...
jpos
     build.gradle
        src
            main
                  java
             main
                  resources
             dist
                   bin
                        bsh
                        q2
                        q2.bat
                        start
                        stop
                   cfg
                         echo_r
                         echo_s
                   com
                          access
                                 client
                                 server
                   deploy
                            00_logger
                            10_clientsimulator_channel
                            10_server
                            20_clientsimulator_mux
                            25_cleintsimulator_ui
                            30_clientsimulator
                            99_sysmon
                   log
                            q2
             
          


On Monday, November 14, 2016 at 5:34:50 PM UTC+1, Andrés Alcarraz wrote:

You didn't respond what the property source="com/...." means.

How are you invonking gradle, where did you put your source file? how does your source tree looks like?

There are too many variables unkown to give you something close to an accurate response.


--
--
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: [hidden email]
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/81a741e5-3179-449c-8e3d-3c08ee8d94ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
--
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: [hidden email]
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/4d8d8d48-3c05-ca76-2bc9-ddf4a7076879%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [jpos-users] The MBean class could not be loaded (JPOS)

derinlois1
My source code follows the tree below.
    com
         access
               server

I have the JposListenerServer inside the server directory.

I do appreciate your time pls.


On Monday, November 14, 2016 at 5:58:40 PM UTC+1, Andrés Alcarraz wrote:


--
--
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: [hidden email]
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/cff04eb6-0b1f-4614-ae7b-2240c9ae5dac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [jpos-users] The MBean class could not be loaded (JPOS)

Andrés Alcarraz

Where does you com dir sits in the source tree you passed earlier?


El 14/11/16 a las 14:08, [hidden email] escribió:
My source code follows the tree below.
    com
         access
               server

I have the JposListenerServer inside the server directory.

I do appreciate your time pls.


On Monday, November 14, 2016 at 5:58:40 PM UTC+1, Andrés Alcarraz wrote:


--
--
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: [hidden email]
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/cff04eb6-0b1f-4614-ae7b-2240c9ae5dac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
--
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: [hidden email]
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/3db25f62-6a4b-4539-2af5-b8e4cb1d5921%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [jpos-users] The MBean class could not be loaded (JPOS)

derinlois1
src

   dist

       com
thanks for your response...i sincerely do appreciate your time..
On Monday, November 14, 2016 at 6:21:46 PM UTC+1, Andrés Alcarraz wrote:

Where does you com dir sits in the source tree you passed earlier?



--
--
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: [hidden email]
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/3e580391-6462-4443-b061-9ed44806cc2e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [jpos-users] The MBean class could not be loaded (JPOS)

Andrés Alcarraz

You are putting it in the wrong place, I strongly suggest you take the time to understand what you are doing and why. This involves understanding the tree structure and the build process.

What drove you yo put your source there?

The dist dir is a generated directory where jpos puts generated files from sources, where in the building process do you think your source is being compiled?

You told me your compiled file were in the classpath, I don't see how you supposedly achieved that ....

Also are you modifying the tree cloned from jpos.git? In that case that's far away from the recommended way to work with jpos.

Please respond every question if you want further assistance and do your homework and try to understand what you are really doing.

As Mark didn't do his job yet (:P) I will tell you: You are not  asking a "smart" question, please read and ask one.
<a href="http://www.catb.org/esr/faqs/smart-questions.html" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.catb.org%2Fesr%2Ffaqs%2Fsmart-questions.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHhhUA9YuEBrlp-7xE-dv7wy8nrbA';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.catb.org%2Fesr%2Ffaqs%2Fsmart-questions.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHhhUA9YuEBrlp-7xE-dv7wy8nrbA';return true;" style="margin: 0px; padding: 0px; border: 0px; text-decoration: none; color: rgb(102, 17, 204); cursor: pointer; font-family: Arial, Helvetica, sans-serif; font-size: 13px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);">http://www.catb.org/esr/faqs/smart-questions.html

El 14/11/16 a las 14:31, [hidden email] escribió:
src

   dist

       com
thanks for your response...i sincerely do appreciate your time..
On Monday, November 14, 2016 at 6:21:46 PM UTC+1, Andrés Alcarraz wrote:

Where does you com dir sits in the source tree you passed earlier?



--
--
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: [hidden email]
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/3e580391-6462-4443-b061-9ed44806cc2e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
--
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: [hidden email]
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/90fec9cb-6a9b-20ef-a5de-d715a19eefa5%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [jpos-users] The MBean class could not be loaded (JPOS)

derinlois1

Alright, i really appreciate your time with me, i was trying to follow same suite with JPOS-template git (which works perfectly with my client-side, so...i was trying to integrate the server-side with it.

I really do know understand the flow of the JPOS-EE, and i have also tried to read the document, but still yet to get through it.

I do appreciate your sincere explanation.
Best Regards,
Derin
On Monday, November 14, 2016 at 6:42:09 PM UTC+1, Andrés Alcarraz wrote:


--
--
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: [hidden email]
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/9aa23a70-090e-4aee-a2c7-6ceec219feda%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [jpos-users] The MBean class could not be loaded (JPOS)

derinlois1
In reply to this post by Andrés Alcarraz
I have been able to do it...and, it works perfectly.....maybe, i wasn't able to express myself well..but, all i did was just to add the Server-simulator in JPOS-EE with its .bsh file in my source tree....and, it worked well.

Thanks so much for your time @Andres.
I do appreciate.

--
--
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: [hidden email]
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/dfeb35fc-1f76-4219-8ba4-145df97cfc45%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [jpos-users] The MBean class could not be loaded (JPOS)

Andrés Alcarraz

Hi Derin, I'm glad to here you could solve it. You could solve it with bsh because it's not compiled and so the script is called as is from the server simulator.

If you want your java code to be compiled and included into your generated jar, you need to place it under src/main/java.

The bsh approach is good for prototyping but not for real use in a production environment as it is interpreted and because of that much less performant than the compiled java classes approach, but you need to understand the basics of java and the build process to address that.


Best regards and good luck.

Andrés



El 15/11/16 a las 08:16, [hidden email] escribió:
I have been able to do it...and, it works perfectly.....maybe, i wasn't able to express myself well..but, all i did was just to add the Server-simulator in JPOS-EE with its .bsh file in my source tree....and, it worked well.

Thanks so much for your time @Andres.
I do appreciate.
--
--
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: [hidden email]
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/dfeb35fc-1f76-4219-8ba4-145df97cfc45%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
--
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: [hidden email]
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/1ffc905d-031f-b06a-f4d4-662a8f83cd27%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [jpos-users] The MBean class could not be loaded (JPOS)

derinlois1
Hello Andres, i sincerely do appreciate your time and the explanation.

I will like to understand how i can make use of a genericPackager in the JPOS-template for a test.

although, in my java code, it works perfectly with msg.setPackager(new GenericPackager("config/customized.xml"));

but, while trying to test run this same file using this method <channel class="org.jpos.iso.channel.GenericPackager" logger="Q2"
       packager="org.jpos.iso.packager.GenericPackager[cfg/customized.xml]"> in the JPOS-template... I think I am doing it wrong.

I will gladly appreciate your correction.
Thanks for your time once again.

On Tuesday, November 15, 2016 at 4:28:32 PM UTC+1, Andrés Alcarraz wrote:



--
--
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: [hidden email]
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/7341c077-f076-4ca2-848b-8fbb11e0b4b9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [jpos-users] The MBean class could not be loaded (JPOS)

derinlois1
In reply to this post by Andrés Alcarraz
Hello Andres, i sincerely do appreciate your time and the explanation.

I will like to understand how i can make use of a genericPackager in the JPOS-template for a test.

although, in my java code, it works perfectly with msg.setPackager(new GenericPackager("config/customized.xml"));

but, while trying to test run this same file using this method <channel class="org.jpos.iso.channel.XMLChannel" logger="Q2"
       packager="org.jpos.iso.packager.GenericPackager[cfg/nibsspost.xml]"> in the JPOS-template... I think I am doing it wrong.

I will gladly appreciate your correction.
Thanks for your time once again.

On Tuesday, November 15, 2016 at 4:28:32 PM UTC+1, Andrés Alcarraz wrote:

Hi Derin, I'm glad to here you could solve it. You could solve it with bsh because it's not compiled and so the script is called as is from the server simulator.

If you want your java code to be compiled and included into your generated jar, you need to place it under src/main/java.

The bsh approach is good for prototyping but not for real use in a production environment as it is interpreted and because of that much less performant than the compiled java classes approach, but you need to understand the basics of java and the build process to address that.


Best regards and good luck.

Andrés

--
--
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: [hidden email]
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/ffcbd348-7ac0-47e1-99e0-8648bd63c456%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [jpos-users] The MBean class could not be loaded (JPOS)

chhil

Sample…

<channel-adaptor name='channel_adaptor_nameXYZ' 
    class="org.jpos.q2.iso.ChannelAdaptor" logger="Q2" realm="realmXYZ">

    <channel name="channel.1"
          class="org.jpos.iso.channel.XMLChannel"
          packager="org.jpos.iso.packager.GenericPackager" logger="Q2" realm="realmXYZ">
        <property name="packager-config" value="cfg/nibsspost.xml" />

    </channel>
</channel-adaptor>

On Thu, Nov 17, 2016 at 4:03 PM, <[hidden email]> wrote:
Hello Andres, i sincerely do appreciate your time and the explanation.

I will like to understand how i can make use of a genericPackager in the JPOS-template for a test.

although, in my java code, it works perfectly with msg.setPackager(new GenericPackager("config/customized.xml"));

but, while trying to test run this same file using this method <channel class="org.jpos.iso.channel.XMLChannel" logger="Q2"
       packager="org.jpos.iso.packager.GenericPackager[cfg/nibsspost.xml]"> in the JPOS-template... I think I am doing it wrong.

I will gladly appreciate your correction.
Thanks for your time once again.

On Tuesday, November 15, 2016 at 4:28:32 PM UTC+1, Andrés Alcarraz wrote:

Hi Derin, I'm glad to here you could solve it. You could solve it with bsh because it's not compiled and so the script is called as is from the server simulator.

If you want your java code to be compiled and included into your generated jar, you need to place it under src/main/java.

The bsh approach is good for prototyping but not for real use in a production environment as it is interpreted and because of that much less performant than the compiled java classes approach, but you need to understand the basics of java and the build process to address that.


Best regards and good luck.

Andrés

--
--
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: [hidden email]
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/ffcbd348-7ac0-47e1-99e0-8648bd63c456%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
--
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: [hidden email]
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/CAPazefBXRrUxmxMV5JxDhd5gyOiCoKCG01FOJckGaWWh8po2%2BA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [jpos-users] The MBean class could not be loaded (JPOS)

Alejandro Revilla
I'm late to this thread but I believe NIBSS would need something like NACChannel instead of XMLChannel.

You'll probably have to have some fun with NIBSS proprietary encryption and BTW, say hi to Ajibade if he's still conducting the certifications :)


--
--
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: [hidden email]
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/CAAgSK%3DkT8qE9U6Lk5Sp4hxxzbO6e0MjWQssUUpZgw02jV7p_9g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Loading...