WSO2 ESB 4.0.3 not working - wso2

I downloaded binary version for WSO2 ESB 4.0.3
Now when i run wso2server.bat , it simply executes for 2-3 seconds and quits with followin output:
>wso2server.bat
JAVA_HOME environment variable is set to D:\Java\jdk1.6.0_24
CARBON_HOME environment variable is set to D:\iprint\WSO2ES~1.3\bin\..
[2012-11-08 10:02:12,250] INFO - Main Initializing system...
[2012-11-08 10:02:12,375] INFO - HttpTransport Created Connector [HTTP_11_NIO:/
/*:9763]
[2012-11-08 10:02:12,390] INFO - HttpTransport Created Connector [HTTPS_11_NIO:
//*:9443]
[2012-11-08 10:02:12,453] INFO - TomcatCarbonWebappDeployer Deployed Carbon web
app: StandardEngine[Tomcat].StandardHost[defaulthost].StandardContext[/]
[2012-11-08 10:02:12,593] INFO - TransactionFactory Starting Atomikos Transacti
on Manager 3.7.0
>
I can not find anything in the logs as well.
The documentation also seems to be poor for 4.0.3 on wso2.org site as there is no step on how to configure DB for the ESB.
Thanks
deepak

WSO2 ESB documentation clearly specifies these information. As you are working with 4.0.3 version, this is the doc location. http://docs.wso2.org/wiki/display/ESB403
And please follow up; http://docs.wso2.org/wiki/display/ESB403/Installing+ESB+on+Windows+from+Binary+Distribution to run the ESB on windows.
Adding a db:
http://docs.wso2.org/wiki/display/ESB403/Adding+a+Database
FYI: Latest WSO2 ESB can be downloaded from http://wso2.com/products/enterprise-service-bus/
ESB 4.5.1 doc: http://docs.wso2.org/wiki/display/ESB451/Enterprise+Service+Bus+Documentation
Thanks
Thilini

Related

WSO2 APIM 3.1.0 doesn't start and gives JAVA_HOME missing error when installed via installer

I have installed WSO2 APIM 3.1.0 via product installer on my local. As, in the documentation it's written "If you are using the product installer to install the product, by default, WSO2 API-M is installed with OpenJDK, which allows you to run the product as soon as it is installed.", so, i have not set JAVA_HOME explicitly. But when i run the wso2server.bat command, it gives an error as shown below. Need help with this issue.
I tried by setting JAVA_HOME to jdk 11 that comes with the APIM 3.1.0 installer. But when trying to start the server getting the error as seen below:

Issue with API Manager migration from 1.8.0 to 2.1.0: IS migration client 5.1.0 does nothing

I am doing a migration from APIM 1.8.0 to APIM 2.1.0 and facing an issue with one of migration tools.
Naturally, I am following the steps described in migration guide: https://docs.wso2.com/display/AM210/Upgrading+from+the+Previous+Release
My OS is Windows 7 Enterprise x64, Java - Oracle JDK 7u67, DB - MySQL 5.7, user store - LDAP.
I downloaded WSO2 Identity Server 5.1.0 Migration Client (org.wso2.carbon.is.migrate.client-5.1.0-migration.zip SHA1: ece8ff9a33167751268d205293cc1404fbe4c567) from docs.wso2.com/download/attachments/50518205/org.wso2.carbon.is.migrate.client-5.1.0-migration.zip?version=2&modificationDate=1470811755000&api=v2 as described in guide metioned above (step 7).
Then I unzipped it and put necessary DB scripts into directory APIM_2.1.0_HOME/dbscripts/ (steps 7-a, 7-b) and JAR file into directory APIM_2.1.0_HOME/repository/components/dropins/ (step 7-c).
After that when I try to migrate Identity and User Store DBs (step 9) using IS migration client starting APIM instance with command
wso2server.bat -Dmigrate -DmigrateIdentityDB -Dcomponent=identity
it looks like nothing happens.
I've even configured a logger for this client in APIM_2.1.0_HOME/repository/conf/log4j.properties as
log4j.logger.org.wso2.carbon.is.migration=DEBUG
but only two DEBUG rows appear in logs telling me that migration component activated successfully:
INFO {org.wso2.carbon.databridge.core.internal.DataBridgeDS} - Successfully deployed Agent Server {org.wso2.carbon.databridge.core.internal.DataBridgeDS}
DEBUG {org.wso2.carbon.is.migration.client.internal.ISMigrationServiceComponent} - Setting RealmService to WSO2 IS Migration component {org.wso2.carbon.is.migration.client.internal.ISMigrationServiceComponent}
DEBUG {org.wso2.carbon.is.migration.client.internal.ISMigrationServiceComponent} - WSO2 IS migration bundle is activated {org.wso2.carbon.is.migration.client.internal.ISMigrationServiceComponent}
INFO {org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService} - Configured Registry in 63ms {org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService}
Moreover, I looked at the source code of the client at github.com/wso2/product-is/tree/v5.1.0/modules/migration/migration-5.0.0_to_5.1.0/wso2-is-migration-client, especially at class org.wso2.carbon.is.migration.client.internal.ISMigrationServiceComponent and its method activate(ComponentContext context), which in fact does nothing in contrast to similar class github.com/wso2/product-apim/blob/v2.1.0/modules/distribution/resources/migration/wso2-api-migration-client/src/main/java/org/wso2/carbon/apimgt/migration/client/internal/APIMMigrationServiceComponent.java from another migration client, also provided in migration guide mentioned above (step 4).
And finally, I noticed that relevant code was removed in one of the commits: "removing the migration from pack and adding script changes" https://github.com/wso2/product-is/pull/362/files#diff-789b1c66c0ca3e073080a2b8e6c27834L49
So, my questions are:
Why were those lines of code removed?
And the main question is how to trigger migration client properly? What did I do wrong?
I would appreciate any kind of help.
It was an issue with the migration document. Documentation is now changed. you will have to do a migration to 2.0.0 from 1.8.0 and then to 2.1.0.
https://docs.wso2.com/display/AM210/Upgrading+from+the+Previous+Release#8910

Is it possible to run WSO2 ESB in Openshift?

We are trying to create a WSO2 ESB cartridge to run on Openshift but haven't had much success yet. Is it even possible to run WSO2 ESB on Openshift or do we have to rely on Fuse ESB? Happy to run WSO2 either through cartridge option or just an EAR file if that's possible.
I was trying to install WSO2 ESB in an Openshift DIY cartridge. But I'm getting an port binding issue. The nasty thing is the message does not say which port it is unable to be bind into.
Please let me know if you passed this stage while trying to deploy WSO2 ESB in Openshift.
[esb3-yasas.rhcloud.com bin]> sh wso2server.sh
Starting WSO2 Carbon (in unsupported JDK) [ERROR] CARBON is
supported only on JDK 1.6 and 1.7 JAVA_HOME environment variable is
set to
/var/lib/openshift/57dca6070c1e66b48000003c/app-root/data/java/jdk1.8.0_45/
CARBON_HOME environment variable is set to
/var/lib/openshift/57dca6070c1e66b48000003c/app-root/data/esb Java
HotSpot(TM) 64-Bit Server VM warning: ignoring option
MaxPermSize=256m; support was removed in 8.0 Error: Exception thrown
by the agent : java.rmi.server.ExportException: Port already in use:
0; nested exception is:
java.net.BindException: Permission denied
Snapshot
Thanks !

Integrate API manager with BAM, there are an exception

environment:
os: Ubuntu 12.04.2 LTS (GNU/Linux 3.5.0-23-generic x86_64)
java: 1.7.0_25
Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)
API manager: 1.4.0
BAM: 2.3.0
We follow this guide: http://docs.wso2.org/wiki/display/AM140/Monitoring+Using+WSO2+BAM
When we log in the API publisher Web in purpose of viewing the statics ,it shows an error "No data found. Check BAM server connectivity... Refer our wiki to configure BAM correctly".
And WSO2 AM appears an message:(without call stack)
ERROR - stats:jag "java.lang.NullPointerException: null
Does anyone know what reason is this?
This is due to you have not enabled the API Usage tracking from API Manager level from API manager config.
Go to ..APIM_HOME/repository/conf/ and edit the file api-manager.xml
Enable Usage tracking as below
<APIUsageTracking>
<Enabled>true</Enabled>

can wso2 carbon 4.1 run as a web app (war)?

I'm limited to what applications I can deploy in my environment, however, standard WAR files are usually not a problem.
Can carbon 4.1.0 run as a web app?
This link describes how it can be done for carbon 3.2.2. Are these steps still valid for 4.1.0?
According to the answer in this link some functionality is limited in webapp mode for 3.2.2. What functionality is limited if 4.1.0 is deployed in webapp mode?
EDIT:
A webapp-mode folder is available in $CARBON_HOME
C:\Users\snowc\Desktop\wso2carbon-4.1.0>type webapp-mode\README.txt
Running WSO2 Carbon in Webapp mode
-------------------------------------
Standalone mode is the recommended way of running All WSO2 Carbon products. However you have the
option of running WSO2 Carbon products in Webapp mode (hosted as a web-app in an application
server).
1. The 'WEB-INF' directory contains the webapp archive
2. The 'bundles' directory contains the additional jars that needs, during the web-app mode
deployment.
Please refer the WSO2 Carbon documentation for step-by-step guide on web-app mode deployment of the
product.
"Can carbon 4.1.0 run as a web app?"
No, we stopped supporting webapp deployment in later 4.x.x carbon versions