Thanks Ravi and Jagath for looking into this.

On Tue, May 10, 2016 at 3:35 PM, Ravi Undupitiya <[email protected]> wrote:

> In that case we should update the samples doc and document the system
> properties that can be updated. I've created doc JIRA [1] to track this.
>
> [1] https://wso2.org/jira/browse/DOCUMENTATION-3316
>
>
> Thanks,
>
> On Tue, May 10, 2016 at 2:49 PM, Jagath Sisirakumara Ariyarathne <
> [email protected]> wrote:
>
>> Hi Ravi,
>>
>> Seems activemq is used by GenericJMSClient [1] by default.
>>
>> [1] -
>> https://github.com/wso2/product-esb/blob/master/modules/samples/product/src/main/java/samples/userguide/GenericJMSClient.java
>>
>> Thanks.
>>
>> On Tue, May 10, 2016 at 2:37 PM, Ravi Undupitiya <[email protected]> wrote:
>>
>>> Hi Aruna,
>>>
>>> ActiveMQ jars are not required to connect to MB. Would you happen to
>>> have ActiveMQ context factory set in some config file?
>>>
>>>
>>> On Tue, May 10, 2016 at 2:24 PM, Aruna Karunarathna <[email protected]>
>>> wrote:
>>>
>>>> Hi Jagath,
>>>>
>>>> Thanks for the reply, No I haven't setup ActiveMQ, instead I've
>>>> followed instructions in [1] to configure with WSO2MB, and it doesn't
>>>> mention to add ActiveMQ jars,
>>>>
>>>> After adding the mentioned jars resolved the issue.
>>>>
>>>> Isn't it better to add as a prerequisite before configuring MB?.
>>>>
>>>> [1].
>>>> https://docs.wso2.com/display/ESB490/Configure+with+WSO2+Message+Broker
>>>>
>>>> Regards,
>>>> Aruna
>>>>
>>>> On Tue, May 10, 2016 at 2:01 PM, Jagath Sisirakumara Ariyarathne <
>>>> [email protected]> wrote:
>>>>
>>>>> Hi Aruna,
>>>>>
>>>>> Did you add required jar files to lib folder as mentioned in[1].
>>>>>
>>>>> [1] - https://docs.wso2.com/display/ESB490/Configure+with+ActiveMQ
>>>>>
>>>>> Thanks.
>>>>>
>>>>> On Tue, May 10, 2016 at 1:39 PM, Aruna Karunarathna <[email protected]>
>>>>> wrote:
>>>>>
>>>>>> Hi ESB team,
>>>>>>
>>>>>> When trying to invoke the JMSClient [1] getting the below error.
>>>>>> Seems like the activemq jar is not present in the classpath.
>>>>>>
>>>>>>  ant jmsclient -Djms_type=pox
>>>>>> -Djms_dest=dynamicQueues/StockQuoteProxy -Djms_payload=MSFT
>>>>>> Buildfile: /home/aruna//wso2esb-4.9.0/samples/axis2Client/build.xml
>>>>>>
>>>>>> init:
>>>>>>
>>>>>> compile:
>>>>>>
>>>>>> jmsclient:
>>>>>>      [java] Exception in thread "main"
>>>>>> javax.naming.NoInitialContextException: Cannot instantiate class:
>>>>>> org.apache.activemq.jndi.ActiveMQInitialContextFactory [Root exception is
>>>>>> java.lang.ClassNotFoundException:
>>>>>> org.apache.activemq.jndi.ActiveMQInitialContextFactory]
>>>>>>      [java] at
>>>>>> javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:674)
>>>>>>      [java] at
>>>>>> javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:307)
>>>>>>      [java] at
>>>>>> javax.naming.InitialContext.init(InitialContext.java:242)
>>>>>>      [java] at
>>>>>> javax.naming.InitialContext.<init>(InitialContext.java:216)
>>>>>>      [java] at samples.userguide.GenericJMSClient.connect(Unknown
>>>>>> Source)
>>>>>>      [java] at samples.userguide.GenericJMSClient.main(Unknown
>>>>>> Source)
>>>>>>      [java] Caused by: java.lang.ClassNotFoundException:
>>>>>> org.apache.activemq.jndi.ActiveMQInitialContextFactory
>>>>>>      [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
>>>>>>      [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
>>>>>>      [java] at java.security.AccessController.doPrivileged(Native
>>>>>> Method)
>>>>>>      [java] at
>>>>>> java.net.URLClassLoader.findClass(URLClassLoader.java:354)
>>>>>>      [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
>>>>>>      [java] at
>>>>>> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
>>>>>>      [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
>>>>>>      [java] at java.lang.Class.forName0(Native Method)
>>>>>>      [java] at java.lang.Class.forName(Class.java:270)
>>>>>>      [java] at
>>>>>> com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:72)
>>>>>>      [java] at
>>>>>> com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:61)
>>>>>>      [java] at
>>>>>> javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:671)
>>>>>>      [java] ... 5 more
>>>>>>      [java] Java Result: 1
>>>>>>
>>>>>> BUILD SUCCESSFUL
>>>>>>
>>>>>> [1]. https://docs.wso2.com/display/ESB490/JMS+Transactions
>>>>>>
>>>>>> Regards,
>>>>>> Aruna
>>>>>> --
>>>>>>
>>>>>> *Aruna Sujith Karunarathna *
>>>>>> WSO2, Inc | lean. enterprise. middleware.
>>>>>> #20, Palm Grove, Colombo 03, Sri Lanka
>>>>>> Mobile: +94 71 9040362 | Work: +94 112145345
>>>>>> Email: [email protected] | Web: www.wso2.com
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> Dev mailing list
>>>>>> [email protected]
>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Jagath Ariyarathne
>>>>> Technical Lead
>>>>> WSO2 Inc.  http://wso2.com/
>>>>> Email: [email protected]
>>>>> Mob  : +94 77 386 7048
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> *Aruna Sujith Karunarathna *
>>>> WSO2, Inc | lean. enterprise. middleware.
>>>> #20, Palm Grove, Colombo 03, Sri Lanka
>>>> Mobile: +94 71 9040362 | Work: +94 112145345
>>>> Email: [email protected] | Web: www.wso2.com
>>>>
>>>>
>>>> _______________________________________________
>>>> Dev mailing list
>>>> [email protected]
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> *Ravi Undupitiya*
>>> Senior Software Engineer; WSO2 http://wso2.com
>>>
>>>
>>> *E-mail: [email protected] <http://wso2.com>**M: **+94 772 930 712
>>> <%2B94%C2%A0772%20930%20712>*
>>>
>>> Lean . Enterprise . Middleware
>>>
>>
>>
>>
>> --
>> Jagath Ariyarathne
>> Technical Lead
>> WSO2 Inc.  http://wso2.com/
>> Email: [email protected]
>> Mob  : +94 77 386 7048
>>
>>
>
>
> --
> *Ravi Undupitiya*
> Senior Software Engineer; WSO2 http://wso2.com
>
>
> *E-mail: [email protected] <http://wso2.com>**M: **+94 772 930 712
> <%2B94%C2%A0772%20930%20712>*
>
> Lean . Enterprise . Middleware
>



-- 

*Aruna Sujith Karunarathna *
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 9040362 | Work: +94 112145345
Email: [email protected] | Web: www.wso2.com
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to