WSO2 ESB : all of samples not working - wso2

Problem:
I can't run any sample of WSO2 ESB (version 4.5.1)
Detail:
After I finish to config WSO2 ESB which follow the Installation Guide and ESB Sample setup.
I can access the ESB console via the link :
https://localhost:9443/carbon/
It's working well, but when I try to run the first sample by command:
ant stockquote
-Daddurl=http://127.0.0.1:9000/services/SimpleStockQuoteService
-Dtrpurl=http://localhost:8280 -Dsymbol=IBM -Dmode=quote
I got the error code:
ERROR_CODE = 101504
ERROR_MESSAGE = Connection timeout For :
127.0.0.1:9000 For Request : Axis2Request [Message ID : urn:uuid:0b3c9526-289f-4e65-a525-93ecb32f323d] [Status Completed :
false]
I think maybe the problem is related about the axis2Server but I not sure because I did follow the instructions
Question:
Please help me to fix this issue.

It seems StockQuote service not visible to the Axis client. can you check whether you can see stockquote service wsdl once you started esb and axis2 server properly.link [1] will open stockquote service wsdl.
1. http://127.0.0.1:9000/services/SimpleStockQuoteService?wsdl

Related

How to start the JMS provider in WSO2 IoT server

I have downloaded the necessitated jars as mentioned here in $CARBON_HOME/repository/components/lib folder. I am getting the following error
Unable to continue server startup as it seems the JMS Provider is not yet started. Please start the JMS provider now.
What am I doing wrong ?
Please find the complete answer on my blog post

unable to handle wso2 ESB with Activemq

In my project We are trying to configure activemq with wso2 esb.
Successfully configured and we are getting successful responses for first 4 or 5 requests. After that getting socket timed out error.
Can anyone know this issue?
Thanks in advance.
You can change the activeMQ socket time out configuration using transport.soTimeout property. This property can be configured as java.naming.provider.url in your axis2.xml of ESB.
eg: tcp://localhost:61616?transport.trace=false&transport.soTimeout=60000
Please refer [1] for more TCP transport options
[1] http://activemq.apache.org/tcp-transport-reference.html

Configuring WSO2 API Manager to use the WSO2 BAM Server

Using WSO2 API Manager 1.3 and WSO2 BAM 2.0.
I followed the instructions found in the README.txt in /statistics.
I am getting the following error when starting API Manager:
TID: [0] [AM] [2013-05-02 11:42:44,239] ERROR
{org.wso2.carbon.apimgt.usage.publisher.APIMgtUsageDataBridgeDataPublisher}
- Error initializing APIMgtUsageDataBridgeDataPublisher {org.wso2.carbon.apimgt.usage.publisher.APIMgtUsageDataBridgeDataPublisher}
org.wso2.carbon.databridge.agent.thrift.exception.AgentException:
Error when finding event stream definition for :
org.wso2.apimgt.statistics.request 1.0.0
Any suggestions on where to start looking for the issue?
It looks like you have not properly configured WSO2 API Manager 1.3 to work with WSO2 BAM.
For proper configuration follow the official docs[1]
This issue might also occur When you set an offset to BAM by 1 as described in the README.txt, as it needs its Cassandra DB configurations to be changed for the offset by 1 at BAM_HOME/repository/conf/etc/cassandra-component.xml. Therefore follow the like provided[1] where we change the API Manager's offset.
Suho
[1]http://docs.wso2.org/wiki/display/AM130/Monitoring+and+Statistics

Getting error when running WSO2 API Manager with WSO2 BAM Server

I got the following error when runnning WSO2 API Manager 1.3.1 to use the WSO2 BAM Server 2.0.1.
TID: [0] [AM] [2013-05-02 18:58:40,609] ERROR
{org.wso2.carbon.apimgt.usage.publisher.APIMgtUsageDataBridgeDataPublisher}
- Error initializing APIMgtUsageDataBridgeDataPublisher {org.wso2.carbon.apimgt.usage.publisher.APIMgtUsageDataBridgeDataPublisher}
org.wso2.carbon.databridge.agent.thrift.exception.AgentException:
Error when finding event stream definition for :
org.wso2.apimgt.statistics.request 1.0.0
Both API Manager and BAM are running on the same machine and I changed offset to 1 in /home/jtao/api/wso2bam-2.0.1/repository/conf/carbon.xml based on Monetization of API Usage.
I also checked that BAM_HOME/repository/conf/etc/cassandra-component.xml doesn't exist in BAM 2.0.1. as someone suggested in the answer of another question "Configuring WSO2 API Manager to use the WSO2 BAM Server"
Any ideas?
I ran the same scenario described in guide and it works without any error. May be your have missed a part in the configuration guide? Make sure BAM_HOME is set correctly and BAM server is started before the AM server.
The following guide too can be used to integrate AM 1.3.1 with BAM 2.0.1
http://docs.wso2.org/wiki/display/AM131/Monitoring+and+Statistics
Ishara

Authentication and Autherization using ESB and IS

I am trying to follow up with the samples as mentioned in:
http://blog.facilelogin.com/2012/05/authentication-and-authorization-with.html
After following up with everystep, when I try to test it using TryIt, the Identity Server throws the following error:
Access Denied. Please Login First.
The Servers are running at their default configuration, except for the ports - ESB on 9443 and IS on 9445.
ESB version: 4.5.1
IS version: 3.2.3
Kindly let me know what configuration is missing.
Thanks,
Praveen
refer this to understand more on Authentication and Autherization using ESB and IS Patterns.
furthermore, this slide set has interesting Security patterns with ESB