汽车文件到 0kb 这真的很令人沮丧,似乎没有任何意义。我之前确实让这个工作(不是这个项目),但是这个只是不想打球。我可以通过 maven 在 Dev Studio 外部生成汽车文件,但是它不能从 Studio 内部部署,并且在任何情况下似乎都受到上述错误的影响。对我可能出错的地方有什么建议吗?
这是我的日志文件中的堆栈跟踪...
!ENTRY org.wso2.developerstudio.eclipse.distribution.project 4 0 2014-05-14 08:55:30.677 !MESSAGE 创建碳存档文件时出错 !STACK 0 java.io.FileNotFoundException: C:\wso2workspace\ AthenaHRInterfaceApplication\AthenaHRInterfaceCAP\target\AthenaHRInterfaceCAP_0.1.car(系统找不到指定的文件)在 java.io.FileInputStream.open(Native Method) 在 java.io.FileInputStream.(FileInputStream.java:146) 在 org.wso2 .developerstudio.eclipse.utils.file.FileUtils.copy(FileUtils.java:227) at org.wso2.developerstudio.eclipse.distribution.project.editor.DistProjectEditorPage.exportCar(DistProjectEditorPage.java:791) at org.wso2.developerstudio .eclipse.distribution.project.editor.DistProjectEditorPage$8.run(DistProjectEditorPage.java:755) 在 org.eclipse.jface.action.Action。runWithEvent(Action.java:499) 在 org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584) 在 org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501) 在 org. eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:452) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget .java:1057) 在 org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4170) 在 org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3759) 在 org.eclipse.e4。 ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.e4.ui.internal 。工作台。swt.PartRenderingEngine.run(PartRenderingEngine.java:997) at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:140) at org.eclipse.ui.internal.Workbench$5.run(Workbench .java:611)在 org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) 在 org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567) 在 org.eclipse。 ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124) at org.eclipse.equinox.internal.app.EclipseAppHandle.run( EclipseAppHandle.java:196) 在 org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) 在 org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) 在 org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354) 在 org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181) 在 sun.reflect.NativeMethodAccessorImpl .invoke0(Native Method) 在 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 在 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 在 java.lang.reflect.Method.invoke(Method.java :606)在 org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636) 在 org.eclipse.equinox.launcher.Main.basicRun(Main.java:591) 在 org.eclipse.equinox.launcher。 Main.run(Main.java:1450) 在 org.eclipse.equinox.launcher.Main.main(Main.java:1426)EclipseStarter.run(EclipseStarter.java:181) 在 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 在 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 在 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 43) 在 java.lang.reflect.Method.invoke(Method.java:606) 在 org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636) 在 org.eclipse.equinox.launcher.Main.basicRun (Main.java:591) 在 org.eclipse.equinox.launcher.Main.run(Main.java:1450) 在 org.eclipse.equinox.launcher.Main.main(Main.java:1426)EclipseStarter.run(EclipseStarter.java:181) 在 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 在 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 在 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 43) 在 java.lang.reflect.Method.invoke(Method.java:606) 在 org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636) 在 org.eclipse.equinox.launcher.Main.basicRun (Main.java:591) 在 org.eclipse.equinox.launcher.Main.run(Main.java:1450) 在 org.eclipse.equinox.launcher.Main.main(Main.java:1426)在 org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636) 在 org.eclipse.equinox 的 java.lang.reflect.Method.invoke(Method.java:606) 调用(DelegatingMethodAccessorImpl.java:43) .launcher.Main.basicRun(Main.java:591) 在 org.eclipse.equinox.launcher.Main.run(Main.java:1450) 在 org.eclipse.equinox.launcher.Main.main(Main.java:1426 )在 org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636) 在 org.eclipse.equinox 的 java.lang.reflect.Method.invoke(Method.java:606) 调用(DelegatingMethodAccessorImpl.java:43) .launcher.Main.basicRun(Main.java:591) 在 org.eclipse.equinox.launcher.Main.run(Main.java:1450) 在 org.eclipse.equinox.launcher.Main.main(Main.java:1426 )
这是一个错误 - 它看起来像它。发生在全新安装 DS 和新项目时。
除了关于 java 版本的评论之外,并不是任何人似乎都在关注这个,但为了完整起见,我将继续添加到这个线程。看来错误是由我选择“目标”目录的位置引起的,我怀疑在幕后 DS 正在使用相同的位置(如在 maven 中),它试图用相同的文件写入相同的目录导致文件未找到异常的名称。保存到不同的目录似乎至少可以克服这个错误。但是,我遇到的新问题是,使用复合应用程序 POM 编辑器右上角的按钮,注册表资源没有包含在生成的 .car 文件中。如果我 mvn 安装(从命令行或从运行(ing)DS 中的 pom,则会生成正确的 .car 文件。我认为我应该针对这个特定问题创建另一个线程并自己回答这个问题。意见?