Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » Weird Bundle Deployment Issue - Help Please :)(Class Not Found issue when deploying bundle)
Weird Bundle Deployment Issue - Help Please :) [message #718903] Thu, 25 August 2011 15:29 Go to next message
Jamal  is currently offline Jamal Friend
Messages: 3
Registered: August 2011
Junior Member
Hi,

I am very new to OSGI and virgo and have run into a problem migrating a simple application to the platform. I have hit a wall with this issue and can't quite figure it out, so any help will be greatly appreciated.

I have a bundle which contains the following manifest import definition:

Import-Package: com.my.package.external;version="[0.1,1)",
 com.my.schema;version="[0.1,1)",org.apache.activemq,org.s
 lf4j;version="[1.6,2)",org.springframework.beans.factory.annotation;ver
 sion="[3.0,4)",org.springframework.context;version="[3.0,4)",org.spring
 framework.integration.annotation;version="[2.0,3)",org.springframework.
 jms.connection
Tool: Bnd-1.43.0


When I attempt to deploy it to Virgo (Virgo Server Version 2.1.1.RELEASE), I receive the following error:
Quote:


Artifact Console: 'Deployment Error 'Cannot find class [org.springframework.scheduling.config.TaskExecutorFactoryBean] for bean with name 'queueexecutor' defined in null; nested exception is java.lang.ClassNotFoundException: org.springframework.scheduling.config.TaskExecutorFactoryBean not found from bundle [com.my.bundle.package.XXX]''


I have the following bundles running (or displayed as Active):
springsource.com.sun.xml.bind: 2.2.0
+ com.springsource.com.sun.xml.fastinfoset: 1.2.2
+ com.springsource.javax.management.j2ee: 1.0.1
+ com.springsource.javax.xml.bind: 2.2.0
+ com.springsource.net.sf.cglib: 2.2.0
+ com.springsource.org.apache.activeio: 3.1.2
+ com.springsource.org.apache.activemq: 5.3.0
+ com.springsource.org.apache.kahadb: 5.3.0
+ com.springsource.org.junit: 4.8.2
+ com.springsource.org.jvnet.staxex: 1.0.0
+ com.springsource.org.objectweb.howl: 1.0.2
+ helloweb: 0.0.0
+ java-uuid-generator: 3.1.1
+ javaee-api-6.0: 0.0.0
+ org.apache.activemq.kahadb: 5.5.0
+ org.apache.xbean.spring: 3.7.0
+ org.eclipse.virgo.apps.splash: 2.1.1.RELEASE
+ org.jvnet.jaxb2_commons.jaxb2-basics-runtime: 0.6.2
+ org.springframework.aop: 3.0.5.RELEASE
+ org.springframework.asm: 3.0.5.RELEASE
+ org.springframework.beans: 3.0.5.RELEASE
+ org.springframework.context: 3.0.5.RELEASE
+ org.springframework.context.support: 3.0.5.RELEASE
+ org.springframework.core: 3.0.5.RELEASE
+ org.springframework.expression: 3.0.5.RELEASE
+ org.springframework.integration: 2.0.5.RELEASE
+ org.springframework.integration.http: 2.0.5.RELEASE
+ org.springframework.integration.httpinvoker: 2.0.5.RELEASE
+ org.springframework.integration.jms: 2.0.5.RELEASE
+ org.springframework.integration.mail: 2.0.5.RELEASE
+ org.springframework.integration.stream: 2.0.5.RELEASE
+ org.springframework.jdbc: 3.0.5.RELEASE
+ org.springframework.jms: 3.0.5.RELEASE
+ org.springframework.orm: 3.0.5.RELEASE
+ org.springframework.oxm: 3.0.5.RELEASE
+ org.springframework.test: 3.0.5.RELEASE
+ org.springframework.transaction: 3.0.5.RELEASE
+ org.springframework.web: 3.0.5.RELEASE


[Updated on: Thu, 25 August 2011 15:30]

Report message to a moderator

Re: Weird Bundle Deployment Issue - Help Please :) [message #718911 is a reply to message #718903] Thu, 25 August 2011 15:35 Go to previous messageGo to next message
Jamal  is currently offline Jamal Friend
Messages: 3
Registered: August 2011
Junior Member
Forgive this follow on post, but this is the only part of the config I can post because of the link restriction due to my < 5 post count.

This bundle has a META-INF/spring/bundle-context.xml configuration like so:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="www.springframework.org/schema/beans"
	xmlns:xsi="www.w3.org/2001/XMLSchema-instance" xmlns:context="www.springframework.org/schema/context"
	xmlns:task="www.springframework.org/schema/task" xmlns:p=".springframework.org/schema/p"
	xsi:schemaLocation="www.springframework.org/schema/task www.springframework.org/schema/task/spring-task-3.0.xsd
		www.springframework.org/schema/beans www.springframework.org/schema/beans/spring-beans.xsd
		www.springframework.org/schema/context www.springframework.org/schema/context/spring-context-3.0.xsd">
		

	<context:annotation-config />
	<context:component-scan base-package="com.my.package" />
	<context:property-placeholder location="classpath*:spring/*.properties" />

	<task:executor id="queueexecutor" pool-size="2-5"
		queue-capacity="20000" />


<!-- Other bean definitions here.... -->
</beans>

Re: Weird Bundle Deployment Issue - Help Please :) [message #718925 is a reply to message #718911] Thu, 25 August 2011 15:51 Go to previous messageGo to next message
Glyn Normington is currently offline Glyn NormingtonFriend
Messages: 1222
Registered: July 2009
Senior Member
Try the FAQ for starters. Could be a missing package import, for example.

[Updated on: Thu, 25 August 2011 15:52]

Report message to a moderator

Re: Weird Bundle Deployment Issue - Help Please :) [message #719015 is a reply to message #718925] Thu, 25 August 2011 19:35 Go to previous message
Jamal  is currently offline Jamal Friend
Messages: 3
Registered: August 2011
Junior Member

Thanks, this got me closer. The thing that fixed it for me was to copy the spring jars under the <virgo>/repository/ex folder, then add the following to the manifiest

Import-Bundle: org.springframework.context,org.springframework.beans


I don't know why this worked, but I'm happy again.

Thanks
Previous Topic:Virgo Maya (3.0) Available for Download
Next Topic:OSGi preferences service
Goto Forum:
  


Current Time: Fri Apr 26 03:36:24 GMT 2024

Powered by FUDForum. Page generated in 0.03324 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top