WSO2 IS - "The system cannot find the path specified" when trying to start server - wso2

I set the path "JAVA_HOME" and installed WSO2 IS 5.6.0 x64 on Windows 2016 Server. After the installation, I try to start the server via "wso2server.bat", but I get the message "The system cannot find the path specified. The batch file cannot be found". After doing this operation, when I looked into the folder where the server was installed, I noticed that all files are deleted.
Am I doing something wrong? How to correctly run WSO2 Identity Server?

Thank you for pointing this issue with WSO2 Windows Product Installers. The issue is resolved and updated product installers are now available in WSO2 website.
You can download WSO2 IS 5.6.0 x64 Windows Installer from here. Then install WSO2 IS 5.6.0 on your machine using downloaded '.msi' file. After installation, start the server by clicking on the shortcut that build by the installer. You can find WSO2 IS 5.6.0 shortcut in following location.
Start Menu -> All apps -> WSO2
or you can search "Identity Server 5.6.0" in Windows search and click on the shortcut. This will start the WSO2 Identity Server on your machine.
For new WSO2 Products Installers you do not need to set JAVA_HOME separately. It contain jdk1.8.0_192 and if JAVA_HOME is not set, it will automatically set JAVA_HOME to jdk1.8.0_192 and start the WSO2 Product.
This blog could be a help for you to understand the installation progress.

For me the problem was solved with not downloading the windows x64 installer but rather the binary
wso2is 5.6.0 binary.
After downloading you just open bin directory and run the wso2server.bat file.
If you need to make it windows service use the NSSM

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:

WSO2: Where to get a working Eclipse plugin from to start WSO2 from within Eclipse?

I have an Eclipse Luna installation and want to start the already installed WSO2 5.2.1 from within Eclipse. How can I do this and where can I get a plugin which is able to be installed successfully? I tried to install it via Eclipse Marketplace but always get an error
An error occurred while collecting items to be installed session
context was:(profile=epp.package.jee,
phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=,
action=). Unable to read repository at
http://dist.wso2.org/p2/developer-studio/releases/3.6.0/plugins/org.wso2.developerstudio.eclipse.libraries-3.6.0.jar.
Connection reset
I also tried to download the WSO2 Developer Studio 3.7.0 (wso2-developer-studio_3.7.0.zip) but it also doesn't work.
In the end I want to start the WSO2 Application Server from within Eclipse and to debug the implemented web service.
Well, first I ran Eclipse under jdk 1.6.30. Now with jdk 1.7.45 I see a lot of WSO2 features...
Correction:
I had to install WSO2 Developer Studio 3.6.0 via Eclipse Marketplace first and have to update to version 3.7.0 afterwards because http://dist.wso2.org/p2/developer-studio/releases/3.7.0/plugins/org.wso2.developerstudio.eclipse.libraries-3.7.0.jar is not readable.

How to install wso2 BAM

I downloaded zip file in wso2 and i extracted the file as /home/Downloads/jacksphere/LatestVersion/wso2bam-2.3.0/bin and run at server side,but it is not showing some errors,is there any pre requisites to install the product any one help us and explain the procedure how to run the bam server..
The only pre-requisite required for running WSO2 BAM is JDK1.6 or higher. For further information please checkout the documentation WSO2 BAM Documentation
If you have downloaded the zip file then you can simply extract it and start the server by moving to bin directory and executing the command ./wso2server.sh (in Linux) or wso2server.bat (in Windows).
You also need to install JDK 1.6 or 1.7. Apache Ant and Curl will also be required to run samples.
If you are working with Windows you need to install Cygwin.
You can further refer to the BAM documents in [1] about installing the product.
[1] http://docs.wso2.org/wiki/display/BAM230/Installing+the+Product

wso2 BAM hive ExecDriver error

Installed WSO2 BAM and AM today and I'm trying to get the API usage statistics to work. I can submit API requests that get authenticated and passed through correctly, but no statistics.
From API UI when I go to Statistics I get:
"No data found. Check BAM server connectivity ..."
The BAM server is up and running and I can login to it.
However in the BAM logs I see this:
ERROR {org.apache.hadoop.hive.ql.exec.ExecDriver} - Exception: Cannot run program "C:\Program" (in directory "C:\Temp\wso2\wso2bam-2.3.0"): CreateProcess error=2, The system cannot find the file specified {org.apache.hadoop.hive.ql.exec.ExecDriver}
It looks like BAM is trying to launch something in "Program Files" but didn't escape the command properly in windows. (I suspect Java, since JAVA_HOME is pointing to a sub-directory of Program Files.)
I'm using BAM 2.3.0, AM 1.4.0 with JDK 1.7 on Windows 7.
Would this be why there is no data? Is there a workaround to the escaping issue?
Thanks,
Chris
To run BAM in windows you need to install, Cygwin tool. If you have linux OS, run BAM in linux.
I had the same problem, tried double quoting the JAVA_HOME variable however BAM then through out the following on startup
Files\Java\jdk1.6.0_45"" was unexpected at this time.
Only solution I found was to re-install java into a directory without spaces
Note - Am using version 2.0.1 of BAM
Had the same problem with WSO2 BAM 2.4.0.
Also linked with the path to JDK.
For me, no need to reinstall the JDK but just change the JAVA_HOME environment variable to use the short version of the path (C:\Progra~1\Java... instead of C:\Program Files\Java...).
Cygwin is installed for me in a path with no space c:\cygwin. Did not test if this is mandatory. Be also sure to install all the cygwin package required in the WSO2 documentation.
regards,

How to run WSO2 API Manager from source code

I am trying to run the WSO2 API Manager from source code.
I have installed orbit,kernel and platform of version 4.0.0
After installing the platform(mvn clean install -Dmaven.test.skip=true -Dproduct=apimgt), what
is the next step to see the API Manger portal in browser
and play around it.
If you built everything successfully go into product/apimgt//modules/distribution/product/target in platform. then you will find the binary distribution as a zip file you can extract this to a place of your choice and run the wso2server.sh( linux) or wso2server.bat( windows) in the bin folder.
Thanks,
Pulasthi