Why WSO2 DSS server is not getting started? - wso2

I am trying to run my WSO2 DSS server, but whatever I do I am getting the same error:
JAVA_HOME environment variable is set to C:\Program Files (x86)\Java\jdk1.7.0_09
CARBON_HOME environment variable is set to C:\WSO2DS~1.1\bin\..
Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Here is the link to my WSO2Server.bat: https://gist.github.com/anonymous/c9c107245c763637a4f182b7f2e3e867
Kindly let me know what I need to do inorder to run my WSO2 DSS successfully.
Ram of my system: 8GB. and using Windows 10.

Your JAVA_HOME environment variable is pointing to a 32-bit JVM, which does not support the default 2GB heap that is defined in wso2server.bat.
Please adjust your enviroment and/or define it explicitly in your wso2server.bat

Related

WSO2 APIM 4.1.0 installation issue - CARBON_HOME is set incorrectly or CARBON could not be located. Please set CARBON_HOME

I am trying to install WSO2 APIM 4.1.0 in Windows 11 Enterprise Edition.
Downloaded zip Achieve from wso2 site
JAVA_HOME already set as C:\Program Files\Java\jdk1.8.0_291
Started WSO2 API-M by navigating to the C:\Development_Avecto\WSO2APImServer\ORG\org_wso2am\wso2am-4.1.0\bin and executed api-manager.bat --run
after executing above command below ERROR shown
CARBON_HOME is set incorrectly or CARBON could not be located. Please set CARBON_HOME.
ERROR:
Even after setting up CARBON_HOME in Environment Variable value as C:\Development_Avecto\WSO2APImServer\ORG\org_wso2am\wso2am-4.1.0 getting same ERROR.
Already checked this related question
Update:
As per below suggestion, i have shorten directory of apim which is mentioned below and updated the same in Environment variable too.
C:\Development_Avecto\WSO2APIm\wso2apim-4.1.0\wso2am-4.1.0
Any help to resolve this installation issue?
These a few things you can try:
Try to run the product from a shorter directory path and long directory pats have issues in Windows OS
Check whether JAVA_HOME set properly
Run the command prompt with Admin privileges
Please try the above and share your feedback.
Can you check whether you have version.txt file in the <APIM_HOM>/bin directory?
If it is not there, add the file with the content WSO2 API Manager v4.1.0.
As per suggestion given by #Joy Rathnayake, I have shorten APIm directory and set CARBON_HOME in Environment Variable section which resolves my issue.
APIM Directory: C:\Development_Avecto\WSO2APIm\wso2am-4.1.0\bin
CARBON_HOME: C:\Development_Avecto\WSO2APIm\wso2am-4.1.0
JAVA_HOME: C:\Program Files\Java\jdk1.8.0_291
Now APIm started to run.
Special Thanks to #Joy Rathnayake

Why is my API Manager throwing an error when I use the .bat command?

When I try to run the api-manager.bat command from the bin folder on my cmd I get the following error.
JAVA_HOME environment variable is set to C:\Program Files\WSO2\Enterprise Integrator\6.6.0\jdk\jdk-11.0.5
CARBON_HOME environment variable is set to C:\PROGRA~1\WSO2\APIMAN~1\318FB7~1.0\bin\..
-Djava.endorsed.dirs=.\lib\endorsed;C:\Program Files\WSO2\Enterprise Integrator\6.6.0\jdk\jdk-11.0.5\jre\lib\endorsed;C:\Program Files\WSO2\Enterprise Integrator\6.6.0\jdk\jdk-11.0.5\lib\endorsed is not supported. Endorsed standards and standalone APIs
in modular form will be supported via the concept of upgradeable modules.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
I have no idea what this means as my JAVA_HOME is set in my system variables and my identity server and enterprise integrator run perfectly. I have tried different versions of API Manager and the outcome is the same.
It is pointing to your Integration Studio's JAVA_HOME and not your machine's JAVA_HOME.
Do the export directly in the .bat file at the beginning, and do the test to see if it resolves.
If you decide to adjust your JAVA_HOME in your environment variables.

Error while installing WSO2 EMM on windows for Android

When I use the command wso2server.bat --run, the error is as follows
The filename, directory name, or volume label syntax is incorrect.
JAVA_HOME environment variable is set to C:\Program Files\java\jdk1.8.0_131
CARBON_HOME environment variable is set to C:\Users\MCCHEE~1\DOWNLO~1\WSO2EM~1.0\bin..
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
Error: Could not find or load main class org.wso2.carbon.bootstrap.Bootstrap
I have read previous questions on stackoverflow regarding the issue. But no luck with finding any solution. Please help me resolve this. Thank you!
I dont know if this is an actual thing that could be done, but this is what I did.
Downloaded Wso2 IoT pacakge from WSO2 IoT downloads
replaced the bin folder of Wso2EMM with bin folder from Wso2Iot/core.
This helped me. No errors clean run.

WSO2 EMM Server Error

I am very new to WSO2 and trying to use it. I downloaded wso2emm-2.2.0 . I tried running wso2server.bat start
But getting error :
Could not find or load main class org.wso2.carbon.bootstrap.Bootstrap
D:\Software\WSO2\wso2emm-2.2.0\bin>wso2server.bat
The filename, directory name, or volume label syntax is incorrect.
JAVA_HOME environment variable is set to D:\Software\jdk1.8.0_25
CARBON_HOME environment variable is set to D:\Software\WSO2\wso2emm-2.2.0\bin..
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
Error: Could not find or load main class org.wso2.carbon.bootstrap.Bootstrap
D:\Software\WSO2\wso2emm-2.2.0\bin>

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,