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

246 views
Skip to first unread message
Message has been deleted

Andrés Alcarraz

unread,
Nov 14, 2016, 11:19:10 AM11/14/16
to jpos-...@googlegroups.com

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, derin...@gmail.com 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: sa...@jpos.org
---
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 jpos-users+...@googlegroups.com.
To post to this group, send email to jpos-...@googlegroups.com.
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, derin...@gmail.com 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: sa...@jpos.org
---
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 jpos-users+...@googlegroups.com.
To post to this group, send email to jpos-...@googlegroups.com.
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.

derin...@gmail.com

unread,
Nov 14, 2016, 11:24:38 AM11/14/16
to jPOS Users
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

Andrés Alcarraz

unread,
Nov 14, 2016, 11:26:23 AM11/14/16
to jpos-...@googlegroups.com

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, derin...@gmail.com escribió:
--
--
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 Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+...@googlegroups.com.
To post to this group, send email to jpos-...@googlegroups.com.

derin...@gmail.com

unread,
Nov 14, 2016, 11:31:29 AM11/14/16
to jPOS Users

I am trying to build it using gradlew which helps to build the .jar file while configuring my xml file.

Andrés Alcarraz

unread,
Nov 14, 2016, 11:34:50 AM11/14/16
to jpos-...@googlegroups.com

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, derin...@gmail.com 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: sa...@jpos.org
---
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 jpos-users+...@googlegroups.com.
To post to this group, send email to jpos-...@googlegroups.com.

derin...@gmail.com

unread,
Nov 14, 2016, 11:57:04 AM11/14/16
to jPOS Users
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

Andrés Alcarraz

unread,
Nov 14, 2016, 11:58:40 AM11/14/16
to jpos-...@googlegroups.com

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


El 14/11/16 a las 13:57, derin...@gmail.com escribió:
--
--
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 Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+...@googlegroups.com.
To post to this group, send email to jpos-...@googlegroups.com.

derin...@gmail.com

unread,
Nov 14, 2016, 12:08:39 PM11/14/16
to jPOS Users
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:


Andrés Alcarraz

unread,
Nov 14, 2016, 12:21:46 PM11/14/16
to jpos-...@googlegroups.com

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


El 14/11/16 a las 14:08, derin...@gmail.com escribió:
--
--
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 Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+...@googlegroups.com.
To post to this group, send email to jpos-...@googlegroups.com.

derin...@gmail.com

unread,
Nov 14, 2016, 12:31:06 PM11/14/16
to jPOS Users
src

   dist

       com
thanks for your response...i sincerely do appreciate your time..

Andrés Alcarraz

unread,
Nov 14, 2016, 12:42:09 PM11/14/16
to jpos-...@googlegroups.com

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.
http://www.catb.org/esr/faqs/smart-questions.html

El 14/11/16 a las 14:31, derin...@gmail.com escribió:
--
--
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 Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+...@googlegroups.com.
To post to this group, send email to jpos-...@googlegroups.com.

derin...@gmail.com

unread,
Nov 14, 2016, 1:02:23 PM11/14/16
to jPOS Users

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:


derin...@gmail.com

unread,
Nov 15, 2016, 6:16:34 AM11/15/16
to jPOS Users
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.

Andrés Alcarraz

unread,
Nov 15, 2016, 10:28:32 AM11/15/16
to jpos-...@googlegroups.com

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, derin...@gmail.com 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: sa...@jpos.org
---
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 jpos-users+...@googlegroups.com.
To post to this group, send email to jpos-...@googlegroups.com.
Message has been deleted
Message has been deleted

chhil

unread,
Nov 17, 2016, 6:27:30 AM11/17/16
to jpos-...@googlegroups.com

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, <derin...@gmail.com> 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: sa...@jpos.org
---
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 jpos-users+unsubscribe@googlegroups.com.

To post to this group, send email to jpos-...@googlegroups.com.

Alejandro Revilla

unread,
Nov 17, 2016, 8:23:28 PM11/17/16
to jPOS Users
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 :)


Reply all
Reply to author
Forward
0 new messages