WSO2 EMM Server Error - wso2

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>

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.

Why WSO2 DSS server is not getting started?

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

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 !