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

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.

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 IS - "The system cannot find the path specified" when trying to start server

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

WSO2 Developer Studio on OSX 10.10.3 freezes on launch

OSX 10.10.3
Dev Studio 3.7.1 installed via complete download from wso2.com or adding working eclipse via marketplace.
Freezes when I try to run the program. The splash shows "loading workspace". When Eclipse runs just fine prior to adding dev studio from the marketplace
How do I get WSO2 working on OSX 10.10.3?
Tom,
WSO2 Developer Studio can be installed using any of the bellow options;
Downloading the full pack from WSO2 site
Download Eclipse from the site and install the P2 repo which is downloaded from WSO2 web site
Download WSO2 DevStudio from Eclipse marketplace
Out of these methods which method(s) did you use? I used method 1 and 2 and works fine for me.

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,

Cannot export Web Application to WSO2 Application Server with Developer Studio 2.1.0

I downloaded the latest version of WSO2 Developer Studio:
developer-studio-eclipse-jee-helios-linux-gtk-x86_64-2.1.0.zip
and the WSO2 Carbon 4 based Application Server version:
wso2as-5.0.1.zip
unzipped both and started Developer Studio. As I want to deploy a Maven
webapp project, I installed m2e on top of WSO2 Developer Studio.
Then I followed this article:
http://wso2.org/library/articles/2012/09/develop-deploy-web-applications-using-wso2-developer-studio#section3
apart from the fact that the WSO2 Carbon and WSO2 AS versions are different and that I already
have a maven war project which is imported into my workspace.
After creating a distribution project for my web app project, I add the webapp project
to it. Afterwards I add that distribution project to the Carbon Server (wit 'Add/Remove').
The WSO2 Carbon server is started, but then a message is shown 'Can't find export handler for war'.
We repeated the steps several times, sometimes this stack trace appears on the console:
java.lang.Exception: Can't find export handler for war
at org.wso2.developerstudio.eclipse.platform.core.project.export.util.ExportUtil.buildProject(ExportUtil.java:84)
at org.wso2.developerstudio.eclipse.distribution.project.export.CarExportHandler.exportArtifact(CarExportHandler.java:184)
at org.wso2.developerstudio.eclipse.platform.core.project.export.util.ExportUtil.buildProject(ExportUtil.java:81)
at org.wso2.developerstudio.eclipse.platform.core.project.export.util.ExportUtil.BuildCAppProject(ExportUtil.java:105)
at org.wso2.developerstudio.eclipse.distribution.project.ui.wizard.DistributionProjectExportWizard.performFinish(DistributionProjectExportWizard.java:181)
at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:811)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:430)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3540)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3161)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
at org.eclipse.jface.window.Window.open(Window.java:801)
at org.wso2.developerstudio.eclipse.distribution.project.ui.action.ExportDistributionAction.run(ExportDistributionAction.java:36)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3540)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3161)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
What is the correct way of deploying a mavenized web app to the WSO2 Carbon Application Server from WSO2 Developer Studio?
Thanks
Can you paste the content of the Eclipse error log here for more inspection? Though it says it cannot find the Handler for WebApp, i suspect the real error is something else.
You can find the Eclipse Error log at /.metadata/.log file.
Regarding the correct way to deploy a Web-App to WSO2AS from WSO2 Developer Stidio, this article you referred explains the correct approach.
/Harshana
Maybe m2e on top of WSO2 Developer Studio is the problem. As I can deploy WARs into WSO2AS without running into any exception, but I don't have installed m2e in my WSO2 Developer Studio.
Have you compared your existing POM with the POM generated for a webproject by the WSO2 Developer Studio?