eclipse-virgo

Maven Web Project with Apache Felix Plugin

六月ゝ 毕业季﹏ 提交于 2019-12-14 02:27:58
问题 What's the best way to create a simple osgi (deploying into virgo server ) project using maven , to create a war structure with pom.xml maven descriptor? A Structure target is *.jsp *.html META-INF MANIFEST (OSGI-CONFIG) WEB-INF classes lib web.xml Then when I create a project This is my pom.xml project properties <groupId>com.aaaa</groupId> <artifactId>first-maven-virgo-project</artifactId> <version>1.0.0</version> <packaging>war</packaging> Felix Plugin <plugin> <groupId>org.apache.felix<

spring framework security @preauthorize annotation not working in osgi

爷,独闯天下 提交于 2019-12-12 03:36:52
问题 I am using osgi with spring annotations based config. (using virgo to deploy the app) @preauthorize annotations on the method impl are not working. It is allowing the user to access it despite not having the role. If I put the same annotations on interface, it throws AccessDenied exception for all the users. Exception: org.springframework.security.access.AccessDeniedException: Access is denied 252881 [http-bio-8080-exec-3] ERROR c.w.HomeController - handleAccessDeniedException####Access is

How to include Maven dependencies in Manifest file

那年仲夏 提交于 2019-12-12 03:24:34
问题 I am developing a plugin for the OSGI application, using maven to compile. In order to install the plugin, the OSGI application should read the information about plugin dependencies. This information should be provided in the MANIFEST.MF file. What I'm wondering is how to use Virgo Tooling to generate a proper MANIFEST.MF file. These are the dependencies I would like to include in the MANIFEST.MF UPDATE According to the answer I used the Apache Felix To the pom.xml I have added <plugin>

JSP Spring internationalization using OSGi as service changing locale not working properly

三世轮回 提交于 2019-12-12 02:09:29
问题 First of all! Don't judge me the reason that I'm using MessageSource as a service. Since I'm in a phase learning OSGi and Spring. I have a project that has many modules, in their pages, since I'm making internationalization for it. I saw that they use the same messages, so I put the codes in a common module that every module uses it. And I shared the message as a service osgi-context.xml: <osgi:service ref="messageSource" interface="org.springframework.context.support

Resolving workspace dependencies for Virgo in Eclipse

こ雲淡風輕ζ 提交于 2019-12-11 15:28:24
问题 I'm looking to get started with Eclipse Virgo, so I grabbed the required plugins for Eclipse based on the Programmer Guide. Next, I started two new projects in my Eclipse workspace, both configured as Virgo bundles (call these A and B). Then, I created a new class com.foo.Bar in bundle B. I modified the Manifest of bundle B to export com.foo , saved. Last, I imported com.foo in bundle A. Bundle A's manifest has an error: Import-Package: com.foo [0.0.0, oo) could not be resolved What do I need

osgi spring hibernate virgo example ClassNotFoundException: org.hibernate.cfg.Configuration

让人想犯罪 __ 提交于 2019-12-11 07:42:40
问题 I'm trying to build very simple app that saving data to DB run as osgi bundle (under Virgo). When I try to upload jar to virgo trough webinterface, and get next error. [2011-02-13 23:19:26.317] start-signalling-4 org.eclipse.virgo.medic.eventlog.default DE0006E Start failed for bundle 'com.company.heartbeat' version '0.1.0'. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'beatDao' defined in URL [bundleentry://63.fwk1755147655/META-INF/spring