问题标签 [spring-dm]
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.
spring - 在 RCP 应用程序中从 Spring 3.0.5 升级到 3.2.1 后出现 ClassNotFoundException
我有一个包含数百个捆绑包的 RCP 应用程序,这些捆绑包与 Spring dm 连接。升级到 Spring 3.2.1 后,我现在在几个捆绑包中得到以下异常。起初我认为这可能是由 dm 中的一些魔法引起的,但在通过初始化没有 dm 的包(只需以编程方式启动 ApplicationContext)来测试该理论之后,我仍然面临同样的异常。
堆栈跟踪:
原始清单是 Require-Bundle 和 Package-Import 的混合体,所以我尝试完全删除 Require-Bundle。没想到这会改变任何事情,但绝望的时代需要绝望的措施,我是对的,仍然一无所获。
作为最后的手段,我也尝试添加这个属性,仍然没有改变。
我知道 Spring 在 3.1 版左右改变了他们对 cglib 的使用,将 cglib 和 asm 嵌入到他们的核心 jar 中,但是我已经包含了所有 cglib 和 asm 包的导入,但无济于事。
显现:
更新:我现在意识到只有在使用查找方法注入时才会出现这种特殊情况。由于我仍然不知道如何修复它,我不得不更改配置以不使用此功能。
spring - 导出的服务未在 Spring Dynamic Modules 中注入我的包中
我第一次使用 Spring 动态模块。我试图通过一个包公开一个服务(简单的listofValuesDAO Bean),并试图将它注入另一个包以使用该bean。下面是 Bundle1 的 osgi-context.xml 中的配置标签,通过它暴露了服务:
我正在尝试通过 osgi-context.xml 中的以下标记在 Bundle2 中获取它:
问题是,当我尝试使用以下配置将其注入 Bundle2 中的 bean 时:
系统抛出以下异常:
以下是我的 ExportServiceImpl 类中的属性:
有人可以帮我解决这个问题吗?
osgi - Difference between utilization of service and creating new object in OSGi
i am new to CQ5, when i am going through the OSGi concepts, i found some thing called services. I created a bundle which has an interface and implementation class for that, which overrides the method (simply returns a string "hello world").If i want to utilize that class in jsp/some java class i will create a new instance of that object and use its methods.So my question is, what is the exact difference between creating a new object and utilizing service. And please mention the advantages of services over a new object.And help with configuring services using spring-DM.
websphere - 需要window 7和linux的websphere server和spring dm server下载文件
朋友们,我需要在 windows 7 和 linux(fedora) 机器上安装 websphere 服务器和 spring dm 服务器,所以请给出我可以下载这些文件的位置,并告诉我安装这些服务器的过程......
spring - 为什么使用 Spring DM?
1/ Spring DM 现在在企业应用程序上是否非常使用?这个框架有什么好处,为什么它看起来像一个死技术
2/ 我正在开发一个 Spring 应用程序,我想将它作为 SOA 来做,我不知道 spring DM 是否对我有用。
3/ 我还有一个问题,我们可以将开源解决方案 ESB 与 Spring 集成吗?ESB 的最佳选择是什么。
谢谢 !
apache - 骆驼豆方法参数转换
我正在创建骆驼路线,第一步还可以,但我无法调用我制作的另一个 osgi 包的方法。我的服务期望参数中有一个 Long 值,而我的 pojo 只有这个 id。
我的服务:
我的路线:
我的路线数据格式:
使用此代码,您得到了 NoTypeConversionAvailableException
没有类型转换器可用于将类型:my.company.MyDto 转换为所需的类型:java.lang.Long,值为 MyDto [myId=141564]
我找不到转换 Dto 的地方。
我试图让我的服务期望一个与路由之一具有相同结构的 dto,但我有同样的错误。
任何的想法?
spring-mvc - 运行时将 Spring MVC 控制器添加到现有的 Spring MVC 容器中
我有一种插件架构,每个插件都是 webapps。
1. 我想将每个插件开发为一个 spring MVC 组件(控制器)
2. 然后在运行时添加它们,同时 spring 容器仍然启动并运行。
这些组件也可以相互依赖。
我正在研究 Spring DM 和 OSGI,但我不相信 OSGI。
有人可以帮忙吗。
service - OSGi - 如何从 Spring-DM 获取 OSGI 服务?
如何从 Spring-DM 获取 OSGI 服务?
比如,Spring Bean.. ApplicationContext.getBean(id)...
spring - 通过 API 在 OSGI 中创建 Spring 上下文
为了进一步澄清我的问题:
我有一个带有骆驼路线的 spring xml 文件。我想在 BundleActivator 中引导这条路线。OSGI 世界中初始化和启动 SpringContext 以及向 OSGI 注册中心注册的步骤是什么。我想通过 api 来做这个自定义——需要控制这个而不是使用 spring DM。我知道我需要使用 OSGI 类。要遵循的任何示例:
这不会启动路线:
谢谢。
spring - 如何将 OsgiBundleXmlApplicationContext 设置为 WebApplicationContext 的父级
在我的 Camel (2.14.0) 应用程序中,我使用 Spring Web Services 来触发 Camel 路由。该工件被构建为一个 OSGi 包并部署在 Karaf (3.0.2) 中。
对于第一个版本,我将 spring-ws 配置为通过 JVM 内部 Web 服务器org.springframework.remoting.support.SimpleHttpServerFactoryBean
来公开 Web 服务。这工作得很好。但不是很 OSGi-ish。因此,我想将org.springframework.ws.transport.http.MessageDispatcherServlet
作为服务发布到Karaf 白板扩展器,如下所示:
这对于“常规” servlet 来说就像一个魅力。但是MessageDispatcherServlet
想要构建自己的WebApplicationContext
,并希望org.springframework.ws.server.EndpointMapping
在该上下文中找到类型的 bean。Camel 提供了一个EndpointMapping
必须与其 spring-ws 组件一起使用的实现。
我面临的问题是端点映射 bean 的同一个实例必须在OsgiBundleXmlApplicationContext
创建 Camel 上下文和由MessageDispatcherServlet
. 如果 myOsgiBundleXmlApplicationContext
是WebApplicationContext
. 尽管如何将 servlet 的父上下文设置为WebApplicationContext
我将 servlet 作为服务发布的“当前”上下文却让我望而却步。
WebApplicationContext
从内部实例化 aOsgiBundleXmlApplicationContext
以将其传递给 MessageDispatcherServlet 给了我一个例外:
不幸的是WebServiceMessageReceiver
( 封装了EndpointMapping
)MessageDispatcherServlet
是一个私有成员。所以我不能直接设置映射bean。
有没有办法创建上下文层次结构?或者可以以另一种方式跨上下文共享 bean 实例?