Tag: karaf

Jetty:设置普通主机

我如何强制Jetty打开所有部署的webapps,从特定的虚拟主机开始,如test.localhost:8080/myapp而不是localhost:8181/myapp ? 这是jetty.xml的片段: … …我试图玩jetty.host值,但仍然没有成功。 🙁 如何?

如何将Hibernate 5安装到Apache Karaf v4中

我已经安装了Apache Karaf v4.03并查询了Hibernate的可用function列表,如下所示。 不幸的是,我正在使用Hibernate v5。 hibernate | 3.3.2.GA | | Uninstalled | enterprise-4.0.3 | Hibernate 3.x JPA persistence engine support hibernate | 4.2.15.Final | | Uninstalled | enterprise-4.0.3 | Hibernate 4.2.x JPA persistence engine support hibernate-envers | 4.2.15.Final | | Uninstalled | enterprise-4.0.3 | Hibernate Envers 4.2.x hibernate | 4.3.6.Final | | Uninstalled | enterprise-4.0.3 […]

karaf在组件工厂示例时不显示任何错误

我从这个链接尝试过组件工厂示例。 接口: package com.java.examplefactoryservice; public interface ExampleFactoryService { public void start(); public void stop(); } 工厂提供者: package com.java.examplecomponentfactoryserviceprovider; import java.util.Map; import org.apache.felix.scr.annotations.Activate; import org.apache.felix.scr.annotations.Component; import com.java.examplefactoryservice.ExampleFactoryService; @Component(name = “ExampleComponentFactoryServiceProvider”, factory = “example.factory.provider”) public class ExampleComponentFactoryServiceProvider implements ExampleFactoryService { @Activate public void activate(Map properties) { System.out.println(“Actiavted!!!”); } @Override public void start() { System.out.println(“Started !!!!”); } @Override […]