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

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

Related

WSO2 AS 5.3.0 Linkage Error with slf4j

I try to deploy a war web application into WSO2 AS (5.3.0) and get an unexpected error regarding to slf4j as below,
The application is working well in both Tomcat 8.0.32 and Wildfly 10 Application Server.
Thanks,
Sean
If Carbon runtime environment is not needed, you may add the webapp-classloading.xml into your webapp, and configure it to use Tomcat runtime as explained in "Webapp Classloading" document.

WS02 CAR deployment to Carbon and ESB server : No artifacts found to be deployed in this server

I created test.car in WSO2 Developer Studio 3.5.0. CAR contains your default example SimpleStockQuoteSample. I can deploy this CAR into WS02 ESB Server 4.8.1. successfully. CAR is listed in CarbonAplication and works correctly.
When I try to deploy same CAR into SW02 Carbon Server 4.2.0, it fails on
No artifacts found to be deployed in this server. Ignoring Carbon Application : test.car
Can you help me?
This is because the Server Role for the artifacts inside your CAR is "EnterpriseServiceBus" : edit the pom.xml of your Carbon app in Dev Studio and look at Dependencies -> artifact / Server Role
Actually you need to do 2 steps:
Modify the wso2esb carbon.xml file in config folder.
location: {base}wso2esb-4.9.0\repository\conf -- carbon.xml
Add the ApplicationServer as role in the tag ServerRoles.
<Role>ApplicationServer</Role>
Modify in your eclipse develop studio the Role of your application to ApplicationServer, this is into Dependencies->artifact and modify the Role.

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?

How to install WSO2 products (ESB, AS, BPEL, IS) on a single Carbon platform?

I was able to install Carbon 4.0.1 with ESB and AS features installed.
However, when I try to install Identity Server and BPEL, there is an error because the Carbon core is not the same. I think there are not compatible with Carbon 4 yet.
Is there still a way to install these two products on Carbon 4.0.1?
If not and I have to install Identity Server and BPEL separately, will I encounter compatibility issues?
BPEL and Identity features for the new carbon version will be released soon under 4.0.2 release very soon. You need to use older carbon version 3.2.3 and install features using this p2 repo.If you are going to use BPEL and IS separately installed it should work.
You have to setup the Offset parameter in $CARBON_HOME/repository/conf/carbon.xml file in order to setup multiple wso2 products on the same server. For example if you want to setup ESB, BPS and IS you have to modify the installation for each of the product and specify a different offset.
Currently, we cannot configure multiple wso2 products on the same carbon platform. You can install multiple products on the same server but each of them will run in their own carbon environment.

Deploying web app on Stratos Live

I Need to deploy a web application on Stratos server. I went through this blog post http://dakshithar.blogspot.com/2011/08/how-to-deploy-web-application-in.html and this slideshow http://engwar.com/p/java-paas-gs/#wa01. They have information on deploying a web app to Stratos using Eclipse and Carbon Studio.
I have already created my web application on Netbeans IDE, so is there anyway to configure Carbon Studio with Netbeans?
Is it necessary to use Carbon Studio with Eclipse application deployment, or can I run web applications that I have developed in Netbeans on Stratos Live server? Or is migrating from Netbeans to Eclipse the only option?
Carbon studio is a Eclipse-based SOA development environment for the Carbon platform.Here are the Answers for your questions.
Q :- Is there anyway to configure Carbon Studio with Netbeans?
A :- NO,since carbon studio is eclipse based tooling environment it can not be configured with Netbeans.
Q :- Is it necessary to use Carbon studio with Eclipse application deployment can I run web applications that I have developed in Netbeans on Stratos Live server?
A :- When it comes to web application development,it is not necessary to use Carbon studio for Stratos Live or WSO2 Application server deployment.But if you going to develop any other SOA components with WSO2 products life will be easier with Carbon Studio.
As an alternative you can import your .war file (that you already have) in to carbon studio by using New Web Application wizard.