Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » An Import-Package could not be resolved. constraint: <Import-Package: javax.validation; version=
An Import-Package could not be resolved. constraint: <Import-Package: javax.validation; version= [message #640344] Sat, 20 November 2010 23:58 Go to next message
Bojan Kraut is currently offline Bojan KrautFriend
Messages: 22
Registered: July 2009
Location: Maribor
Junior Member

Hi,

I'm getting this error although I have the jar included:

Caused by: org.eclipse.virgo.kernel.osgi.framework.UnableToSatisfyBundleDependenciesException: Unable to satisfy dependencies of bundle 'objectverse-1-objectverse.db' at version '1.0.0': Cannot resolve: objectverse-1-objectverse.db
    Resolver report:
        An Import-Package could not be resolved. Caused by missing constraint in bundle <objectverse-1-objectverse.db_1.0.0>
             constraint: <Import-Package: javax.validation; version="0.0.0">


Regarding this error I guess there is no javax.validation present, but here is part of my pom.xml, that prooves that javax.validation is present.

<dependency>
	      		<groupId>org.hibernate</groupId>
	      		<artifactId>hibernate-commons-annotations</artifactId>
	      		<version>3.1.0.GA</version>
	  		</dependency>
	  		<dependency>
				<groupId>javax.persistence</groupId>
				<artifactId>persistence-api</artifactId>
				<version>1.0</version>
			</dependency>
			<dependency>
			  	<groupId>javax.validation</groupId>
			  	<artifactId>validation-api</artifactId>
			  	<version>1.0.0.GA</version>
			  	<scope>runtime</scope>
			</dependency>


I also checked repository and all jars are there.

What and how can I trace the error? I chacked also the logs and thee is the same info present - nothing more.

Any help appreciated.

Best regards,
Bojan
Re: An Import-Package could not be resolved. constraint: <Import-Package: javax.validation; vers [message #640346 is a reply to message #640344] Sun, 21 November 2010 00:43 Go to previous message
Dmitry Sklyut is currently offline Dmitry SklyutFriend
Messages: 279
Registered: January 2010
Senior Member
Are you sure that javax.validation jar is a valid osgi bundle?
Previous Topic:org.osgi.framework.bootdelegation and org.osgi.framework.system.packages, how they function?
Next Topic:Hudson CI
Goto Forum:
  


Current Time: Sun Dec 08 03:22:12 GMT 2024

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

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

Back to the top