无法使用 Developer Studio 2.1.0 将 Web 应用程序导出到 WSO2 应用程序服务器 [英] Cannot export Web Application to WSO2 Application Server with Developer Studio 2.1.0

查看:15
本文介绍了无法使用 Developer Studio 2.1.0 将 Web 应用程序导出到 WSO2 应用程序服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我下载了最新版本的 WSO2 Developer Studio:

I downloaded the latest version of WSO2 Developer Studio:

developer-studio-eclipse-jee-helios-linux-gtk-x86_64-2.1.0.zip

和基于 WSO2 Carbon 4 的应用服务器版本:

and the WSO2 Carbon 4 based Application Server version:

wso2as-5.0.1.zip

解压并启动 Developer Studio.因为我想部署一个 Mavenwebapp 项目,我在 WSO2 Developer Studio 之上安装了 m2e.

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

除了 WSO2 Carbon 和 WSO2 AS 版本不同而且我已经有一个 Maven 战争项目,它被导入到我的工作区.

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.

为我的 web app 项目创建分发项目后,我添加 webapp 项目到它.之后,我将该分发项目添加到 Carbon 服务器(通过添加/删除").

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').

WSO2 Carbon 服务器已启动,但随后显示一条消息找不到用于战争的导出处理程序".

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)

从 WSO2 Developer Studio 向 WSO2 Carbon 应用服务器部署 mavenized Web 应用程序的正确方法是什么?

What is the correct way of deploying a mavenized web app to the WSO2 Carbon Application Server from WSO2 Developer Studio?

谢谢

推荐答案

您能否将 Eclipse 错误日志的内容粘贴到此处以供更多检查?虽然它说它找不到 WebApp 的处理程序,但我怀疑真正的错误是别的.

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.

您可以在/.metadata/.log 文件中找到 Eclipse 错误日志.

You can find the Eclipse Error log at /.metadata/.log file.

关于从 WSO2 Developer Stidio 将 Web 应用程序部署到 WSO2AS 的正确方法,您参考的这篇文章解释了正确的方法.

Regarding the correct way to deploy a Web-App to WSO2AS from WSO2 Developer Stidio, this article you referred explains the correct approach.

/哈莎娜

这篇关于无法使用 Developer Studio 2.1.0 将 Web 应用程序导出到 WSO2 应用程序服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆