0

我刚刚开始处理 JBoss Forge 和 Switchyard,但我无法使用 Switchyard 方面创建一个简单的 Forge 项目。

  • 使用 jboss-forge-1.2.2.FINAL(我也尝试过使用 1.1.3)。
  • 我在代理后面,所以我在我的 ~/.forge/config.xml 文件中配置了代理
  • 我的 .m2/settings.xml 文件也设置了代理配置。

伪造配置文件:

<configuration>
  <proxy>
    <host>proxyhost</host>
    <port>proxyport</port>
    <!-- The entries below are necessary only if your proxy needs authentication -->
    <username>username</username>
    <password>password</password>
  </proxy>
</configuration>

然后,当我在我的新项目中输入时(带有详细输出)

[myproject] myproject$ project install-facet switchyard.bean
***ERROR*** Exception encountered: (type "set VERBOSE false" to disable stack traces)
org.jboss.forge.project.facets.FacetNotFoundException: The requested Facet named [switchyard.bean] could not be found.
    at org.jboss.forge.project.services.FacetFactory.getFacetByName(FacetFactory.java:124)
    at org.jboss.forge.shell.plugins.builtin.project.ProjectPlugin.installFacet(ProjectPlugin.java:107)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.jboss.forge.shell.command.Execution.perform(Execution.java:134)
    at org.jboss.forge.shell.command.fshparser.FSHRuntime.run(FSHRuntime.java:109)
    at org.jboss.forge.shell.command.fshparser.FSHRuntime.run(FSHRuntime.java:47)
    at org.jboss.forge.shell.ShellImpl$ExecutorThread.run(ShellImpl.java:789)
    at org.jboss.forge.shell.ShellImpl.execute(ShellImpl.java:812)
    at org.jboss.forge.shell.ShellImpl.doShell(ShellImpl.java:602)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:48)
    at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:125)
    at org.jboss.forge.shell.ShellImpl$Proxy$_$$_WeldClientProxy.doShell(ShellImpl$Proxy$_$$_WeldClientProxy.java)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:305)
    at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)
    at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:163)
    at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:299)
    at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:188)
    at org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java:59)
    at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:198)
    at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:282)
    at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:265)
    at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:234)
    at org.jboss.weld.manager.BeanManagerImpl.notifyObservers(BeanManagerImpl.java:635)
    at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:622)
    at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:616)
    at org.jboss.forge.shell.Bootstrap$1.run(Bootstrap.java:172)
    at java.lang.Thread.run(Unknown Source)

关于发生了什么的任何想法?我错过了什么吗?

提前致谢,

鲁本

4

1 回答 1

1

SwitchYard Forge 工具与旧版本的 Forge (1.0.2) 绑定已经有一段时间了。作为我们即将发布的 1.0 版本的一部分,Forge 版本已升级到 1.2.2。对于任一版本,您都需要使用 SwitchYard 安装程序将插件安装到现有的 Forget 安装中。如果您真的想将 SY 与 Forge 一起使用,我会等待 SY 1.0.0.Final 或提取 1.0.0 的夜间版本。

顺便说一句,您可能想在等待试用 Forge 1.0 版本的同时尝试基于 Eclipse 的工具。如果您想看看那里有什么可用的,请查看 SwitchYard 视频系列中的第 6 集: https ://community.jboss.org/wiki/SwitchYardVideoSeries

于 2013-04-11T11:57:34.673 回答