问题标签 [fuseesb]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
910 浏览

apache-camel - Apache Camel 2.x 和 Servicemix 3.x/4

我正在尝试使用 Servicemix 运行 Camel 2.1 SU。据我了解,无法使用 Servicemix 3 运行 Camel 2,我正在尝试使用 FUSE Servicemix 4.0.0.1 运行它

当我用 maven 开始我的项目时:mvn jbi:servicemix我收到以下错误:

这意味着 mycamel-context.xml已被 Camel 1.x 解析

有什么方法可以使用我提供的 SA/SU 版本的 Camel?是的,我知道我可以下载 Servicemix,删除现有的 Camel 1.x,然后将我的版本放在那里,但我不想要那些 hacks :( 我mvn jbi:servicemix只需要使用命令运行它

您可以在http://github.com/splix/smx-currency-rates/tree/skeleton 查看该项目的所有来源(poms 等)

0 投票
1 回答
705 浏览

osgi - Fuse ESB 4.2 中是否具有功能(捆绑包组)?

当我在 karaf 控制台上看到可用命令时,没有“功能: ”命令。他们是 4.2 中唯一的 osgi 捆绑包还是我下载了其他东西

@Claszen

谢谢你的回答,但它没有用。我下载了适用于 Windows 的 66.54 mb zip 文件。并在运行 servicemix.bat 时,在 servicemix 徽标之前出现以下错误。任何帮助将不胜感激

找不到在 startup.properties 配置中列出的包:org/apache/felix/karaf/deployer/org.apache.felix.karaf.deployer.features/1.4.0-fuse-02-00/org.apache.felix 中列出的包找不到startup.properties配置:org/apache/felix/karaf/deployer/org.apache.felix.karaf.deployer.blueprint/1.4.0-fuse-02-00/org.apache.feli Bundle在startup.properties中列出找不到配置:org/apache/felix/karaf/features/org.apache.felix.karaf.features.management/1.4.0-fuse-02-00/org.apache.fel 找不到在startup.properties配置中列出的捆绑包:org/apache/felix/karaf/features/org.apache.felix.karaf.features.command/1.4.0-fuse-02-00/org.apache.felix。找不到在 startup.properties 配置中列出的捆绑包:org/apache/felix/karaf/admin/org.apache.felix.karaf.admin.management/1.4.0-fuse-02-00/org.apache。

0 投票
1 回答
354 浏览

apache-camel - Apache camel 2.4 版本的问题

当我将骆驼版本从 1.6 更改为 2.4 时,这是一个问题。我想使用 1.6 中不支持的方法 userOriginaLmessage。因此我开始使用骆驼 2.4 版本。代码正在编译。但是当我在 Fuse ESB 环境中部署它时,我得到了以下错误。

从类路径资源 [camel-route.xml] 解析 XML 文档时出现意外异常;嵌套异常是 java.lang.VerifyError:

你能帮我解决这个问题吗?可能是什么问题。

在此先感谢您的帮助。

0 投票
2 回答
2280 浏览

activemq - 无法在 Fuse 服务组合中安装 activemq-web-console

“执行命令时出错:无法解析 URL [mvn:org.apache.activemq/activemq-web-console/5.4.0/war]。”

当我做功能时抛出:安装activemq-web-console 我正在使用fuse 4.3

0 投票
1 回答
2346 浏览

spring - Has anyone succesfully got Tomcat running via Spring OSGi Web in ServiceMix4?

We've been using Fuse's Apache ServiceMix version 4.2.0-fuse-02-00 for a while now for standard OSGi applications and have been fairly successful. We've also been leveraging CXF for making web services available.

Now we'd like to deploy our webapps to servicemix4 and leverage the OSGi layer for dependencies and services. However it seems that the packed in PAX Web does not support taglibs, which we've used heavily: Richfaces, facelets, etc. It seems that the springDM solution which allows for working taglibs outlined here: http://static.springsource.org/osgi/docs/current/reference/html/web.html should work, however I've had a hard time starting up the webserver, i currently get this error.

I've created 2 Fragments as the Spring documentation suggests. but they will not resolve, they remain as Installed

1) the webserver config fragment has the following fragment host defined:

and has a file META-INF/spring/extender/tomcat-deployer.xml containing

2) and a Catalina Config fragment with the following host:

and a conf/server.xml defined which is mostly a copy of a generic windows install of tomcat 6 server.xml file.

I've also been messing with the dependencies for a few days now, it has been difficult. but here are the features I've been messing with to get this far. I've also been installing the fuse-servicemix default "jpa-hibernate" feature.

I've considered switching to SpringDM but it seems like the project has been moved to Virgo which is only in incubator right now. Plus we've been mostly happy with Sericemix, including it's maven install feature.

Any insight or resources would be appreciated, thanks, Jeremy

0 投票
1 回答
4631 浏览

java - Why does Activemq-web-console does not work on Fuse Servicemix 4.3.0-fuse-02-00?

I am unable to get activemq-web-console up and running after following instructions located at:
http://activemq.apache.org/osgi-integration.html
or this thread:

unable to install activemq-web-console in Fuse service mix

In short, the steps I followed:
1) Fresh copy of Fuse Servicemix.
2) Install activemq-spring
3) create a new broker
4) Add web configuration settings to system.properties
4) Install war
5) Install activemq-web-console

Tried accessing:

http://localhost:8181/activemqweb/

gives the stacktrace mentioned below.

Any help is appreciated. Frankly, I do not understand what fuse is trying to do here. I was able to get the activemq-web-console on 4.3.0-00-00 but it doesn't work anymore in the newer version. I am not sure why additional bugs keep popping up. Sorry but I am just a little too frustrated right now.

karaf@root> log:display-exception javax.el.ELException: Error reading 'brokerName' on type org.apache.activemq.web.RemoteJMXBrokerFacade at javax.el.BeanELResolver.getValue(BeanELResolver.java:66) at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53) at org.apache.el.parser.AstValue.getValue(AstValue.java:118) at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186) at org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:925) at org.apache.jsp.index_jsp._jspService(index_jsp.java:75) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.ops4j.pax.web.jsp.JspServletWrapper$2.call(JspServletWrapper.java:132) at org.ops4j.pax.web.jsp.JspServletWrapper$2.call(JspServletWrapper.java:127) at org.ops4j.pax.swissbox.core.ContextClassLoaderUtils.doWithClassLoader(ContextClassLoaderUtils.java:60) at org.ops4j.pax.web.jsp.JspServletWrapper.service(JspServletWrapper.java:124) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166) at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:83) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at org.apache.activemq.web.SessionFilter.doFilter(SessionFilter.java:45) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at org.apache.activemq.web.filter.ApplicationContextFilter.doFilter(ApplicationContextFilter.java:81) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118) at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at org.ops4j.pax.web.service.internal.WelcomeFilesFilter.doFilter(WelcomeFilesFilter.java:169) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388) at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.handle(HttpServiceServletHandler.java:64) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.handle(HttpServiceContext.java:111) at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:68) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582) Caused by: java.lang.SecurityException: Authentication failed at org.apache.karaf.management.JaasAuthenticator.authenticate(JaasAuthenticator.java:69) at javax.management.remote.rmi.RMIServerImpl.doNewClient(RMIServerImpl.java:213) at javax.management.remote.rmi.RMIServerImpl.newClient(RMIServerImpl.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305) at sun.rmi.transport.Transport$1.run(Transport.java:159) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:155) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255) at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:142) at javax.management.remote.rmi.RMIServerImpl_Stub.newClient(Unknown Source) at javax.management.remote.rmi.RMIConnector.getConnection(RMIConnector.java:2327) at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:279) at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:248) at org.apache.activemq.web.RemoteJMXBrokerFacade.createConnection(RemoteJMXBrokerFacade.java:146) at org.apache.activemq.web.RemoteJMXBrokerFacade.getMBeanServerConnection(RemoteJMXBrokerFacade.java:114) at org.apache.activemq.web.RemoteJMXBrokerFacade.getBrokerAdmin(RemoteJMXBrokerFacade.java:88) at org.apache.activemq.web.RemoteJMXBrokerFacade.getBrokerName(RemoteJMXBrokerFacade.java:101) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at javax.el.BeanELResolver.getValue(BeanELResolver.java:62) ... 44 more Caused by: javax.security.auth.login.FailedLoginException: User smx does not exist at org.apache.karaf.jaas.modules.properties.PropertiesLoginModule.login(PropertiesLoginModule.java:104) at org.apache.karaf.jaas.boot.ProxyLoginModule.login(ProxyLoginModule.java:83) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769) at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186) at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680) at javax.security.auth.login.LoginContext.login(LoginContext.java:579) at org.apache.karaf.management.JaasAuthenticator.authenticate(JaasAuthenticator.java:66) at javax.management.remote.rmi.RMIServerImpl.doNewClient(RMIServerImpl.java:213) at javax.management.remote.rmi.RMIServerImpl.newClient(RMIServerImpl.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305) at sun.rmi.transport.Transport$1.run(Transport.java:159) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:155) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619)

What is surprising is that I am able to verify smx:smx as the login credential for service:jmx:rmi:///jndi/rmi://localhost:1099/karaf-root using jconsole.

0 投票
2 回答
1339 浏览

java - 如果我离开 karaf 控制台,为什么 FUSE ESB (ServiceMix) 4.3 会在 linux 上关闭?

我在本地 Windows 机器上使用 ServiceMix 4.2 进行开发。

现在我在 Linux 环境中安装了 FUSE ESB 4.3,并在 linux 机器上通过 SSH 启动它。离开 karaf 控制台后,容器总是关闭。如何让 karaf 控制台运行 ServiceMix?

(可能只是配置,但我无法通过 Google 或 FUSE 文档找到它)

0 投票
1 回答
2149 浏览

spring - apache-servicemix-4.3.0-fuse-00-00 中的 ClasspathXMLApplicationContext 问题


我遵循了《行动中的骆驼》这本书第 14 章中的示例。我希望通过业务逻辑隐藏中间件。使用“camel:run:”进行开发时,一切似乎都运行良好。配置文件如下:

然后出现了在 servicemix 中部署它的要求。我遵循了保险丝指南并了解了所需的步骤。我需要将 bean 模式更改为(我假设)

<

最后,为了在客户端使用代理,我这样做:

我收到以下错误,我似乎无法修复。我不认为我在这里做错了什么,请帮助。我已经用尽了我的搜索,似乎没有人能够回答这个问题。感谢这里的任何帮助。我的 karaf.framework=equinox 和正确的包已经安装。

0 投票
3 回答
1027 浏览

apache-camel - 在使用 ActiveMQ/Apache Camel 使用另一个服务的 ServiceMix 4.3 启动时加载服务

在 SericeMix 启动期间,我们正在尝试使用 ServiceA 在加载捆绑包时立即调用 ServiceB。Service2 具有 activemq 端点,我们需要调用该特定服务的方法。我尝试了 bean 标记中的 spring init-method 属性,这有助于在我调用 serviceB 的方法中自动触发 ServiceA 中的方法。我得到了端点没有可用的异常之类的异常。我假设只要 Service1 启动,它就不会获得需要使用 @Produce 注释 activemq 端点初始化的 service2 的实例。相同的服务在其他正常情况下工作正常。

异常:由以下 原因引起:org.apache.camel.CamelExchangeException:端点上没有可用的消费者:端点 [direct://ServiceB]。Exchange [消息:BeanInvocation public java.lang.String java.lang.Object.toString() with null]] 在 org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:46) 在 org.apache。 camel.component.bean.CamelInvocationHandler.invoke(CamelInvocationHandler.java:64) ... 还有 35 个

我复制粘贴代码块供您参考。



或者如果我需要达到这个要求,他们还有其他方式吗?我可以在 servicemix 启动期间自动加载服务(使用其他服务)。

0 投票
5 回答
16192 浏览

osgi - OSGi feature uninstall works, but bundles are still installed

EDIT: updated this question with latest information...

I'm having issues running back-to-back "features:uninstall" commands for dependent features. OSGi responds back with "State change in progress...", but by accepting other requests, we run into issues.

Strangely, this results in successful feature uninstalls, but unsuccessful bundle uninstalls. We are addressing this by trying to order uninstall requests appropriately and adding a delay between steps, but I'm hoping for a more robust solution.

As suggested, I also tried adding "osgi:refresh" in between steps...same behavior. Is there another way to detect that "Refresh Packages" is still running to delay subsequent requests, etc?

Here are the details...