Clearly your class com.access.server.JposListenerServer is not in
the classpath, are you sure you are adding your jar to the
classpath?
Best regards<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>
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 loadedat 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.JposListenerServerat 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 loadedat 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.JposListenerServerat 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.
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 loadedat 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.JposListenerServerat 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 loadedat 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.JposListenerServerat 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.
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/48a0fec1-89d3-40ba-96ab-0db60d49c6e5%40googlegroups.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.
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/94e3805e-2c2c-452b-92e6-ad8a14cf6400%40googlegroups.com.
You still didn't say where you put your source code within that
tree...
--
--
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/81a741e5-3179-449c-8e3d-3c08ee8d94ef%40googlegroups.com.
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: 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/cff04eb6-0b1f-4614-ae7b-2240c9ae5dac%40googlegroups.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.--
--
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/3e580391-6462-4443-b061-9ed44806cc2e%40googlegroups.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
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/dfeb35fc-1f76-4219-8ba4-145df97cfc45%40googlegroups.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>
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/ffcbd348-7ac0-47e1-99e0-8648bd63c456%40googlegroups.com.