Osgi 如何在karaf运行时环境中运行java web应用程序包
我正在尝试将一个简单的web应用程序java捆绑包部署到karaf中。我通过maven插件创建了一个bundle:“maven bundle plugin”和“maven scr plugin”。一切似乎都正常,所有依赖项都添加了标记。仅供参考,以下是我的插件的外观:Osgi 如何在karaf运行时环境中运行java web应用程序包,osgi,apache-karaf,osgi-bundle,Osgi,Apache Karaf,Osgi Bundle,我正在尝试将一个简单的web应用程序java捆绑包部署到karaf中。我通过maven插件创建了一个bundle:“maven bundle plugin”和“maven scr plugin”。一切似乎都正常,所有依赖项都添加了标记。仅供参考,以下是我的插件的外观: <plugin> <groupId>org.apache.felix</groupId> <artifactId>ma
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-scr-plugin</artifactId>
<version>1.25.0</version>
<executions>
<execution>
<id>generate-scr-scrdescriptor</id>
<goals>
<goal>scr</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<instructions>
<Bundle-SymbolicName>
${project.groupId}.${project.artifactId}
</Bundle-SymbolicName>
<Bundle-Name>${project.name}</Bundle-Name>
<Bundle-Version>${project.version}</Bundle-Version>
<Bundle-Activator>
vaadin.visual.FrontEndActivator</Bundle-Activator>
<Embed-Dependency>*;scope=compile|runtime</Embed-Dependency>
</instructions>
</configuration>
</plugin>
每当我尝试开始捆绑时:
捆绑:启动瓦丁
然后我得到以下错误:
未解决的需求:[[home.overtime.vaadin[12](R12.0)]osgi.willing.package;(osgi.willing.package=com.bea.portlet.container)]
据我所知,容器已经填充了我添加到pom中的所有依赖项,但它需要某种web容器,需要提供表单中提到的portlet容器和其他一些web依赖项(我没有明确声明)
所以我最关心的是如何启动web容器来满足这些依赖关系
提前谢谢 您使用的是哪个瓦丁版本?@TatuLund Vaadin 7
12 | Installed | 80 | 0.0.1.SNAPSHOT | vaadin
23 | Active | 80 | 4.2.8 | Apache Karaf :: OSGi Services :: Event
63 | Active | 80 | 4.14.0 | Apache XBean OSGI Bundle Utilities
64 | Active | 80 | 4.14.0 | Apache XBean :: Classpath Resource Finder
85 | Active | 80 | 7.2.0 | org.objectweb.asm
86 | Active | 80 | 7.2.0 | org.objectweb.asm.commons
87 | Active | 80 | 7.2.0 | org.objectweb.asm.tree