|
Re: ArtifactGenerationException: Manifest ill-formed. [message #645581 is a reply to message #645557] |
Sat, 18 December 2010 07:34 |
|
The version seems to be invalid according to the specification:
digit ::= [0..9]
alpha ::= [a..zA..Z]
alphanum ::= alpha | digit
number ::= digit+
version ::= major( '.' minor ( '.' micro ( '.' qualifier )? )? )?
major ::= number
minor ::= number
micro ::= number
qualifier ::= ( alphanum | '_' | '-' )+
Therefore the range [11.2.0.1.0, 11.2.0.1.0] has to be changed to comply with the OSGi versions. The last part - qualifier cannot contain '.'
If you just remove .0 in the end - [11.2.0.1, 11.2.0.1] the bundle is deployed ok (provided there are bundles exporting the package).
[Updated on: Sat, 18 December 2010 07:39] Report message to a moderator
|
|
|
|
Re: ArtifactGenerationException: Manifest ill-formed. [message #646421 is a reply to message #645585] |
Thu, 23 December 2010 22:10 |
supercube Missing name Messages: 11 Registered: December 2010 |
Junior Member |
|
|
Thanks for the help.
I installed a new version of the oracle driver in to my local maven repository, with a better version format of 11.2.1.0
I dropped this jar into my .../repository/usr folder too.
I added a dependency to my pom.xml:
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc6</artifactId>
<version>11.2.1.0</version>
</dependency>
I updated my templae.mf to import this version. Here is my MANIFEST.MF:
Manifest-Version: 1.0
Bundle-Version: 2.3.0.RELEASE
Tool: Bundlor 1.0.0.RELEASE
Bundle-Name: Db
Bundle-ManifestVersion: 2
Bundle-Description: Star DataSource
Import-Package: com.jdbc;version="[11.2.1.0, 11.2.1.0]",javax.sql;vers
ion="0",org.apache.commons.dbcp;version="[1.2.2.osgi, 1.2.2.osgi]"
Bundle-SymbolicName: star.db
When I drop the star-db.jar into the pickup folder I still get errors with the imported packages in the jar:
[2010-12-23 16:07:01.278] fs-watcher org.eclipse.virgo.medic.eventlog.default DE0000I Installing bundle 'star.db' version '2.3.0.RELEASE'.
[2010-12-23 16:07:01.278] fs-watcher o.e.virgo.kernel.userregion.internal.quasi.DependencyCalcula tor Calculating missing dependencies of bundle(s) 'star.db_2.3.0.RELEASE'
[2010-12-23 16:07:02.496] fs-watcher org.eclipse.virgo.medic.eventlog.default ME0003I Dump 'serviceability\dump\2010-12-23-16-07-293' generated
[2010-12-23 16:07:02.512] fs-watcher org.eclipse.virgo.medic.eventlog.default DE0002E Installation of bundle 'star.db' version '2.3.0.RELEASE' failed. org.eclipse.virgo.kernel.osgi.framework.UnableToSatisfyBundl eDependenciesException: Unable to satisfy dependencies of bundle 'star.db' at version '2.3.0.RELEASE': Cannot resolve: star.db
Resolver report:
An Import-Package could not be resolved. Caused by missing constraint in bundle <star.db_2.3.0.RELEASE>
constraint: <Import-Package: com.jdbc; version="[11.2.1.0,11.2.1.0]">
at org.eclipse.virgo.kernel.install.pipeline.stage.resolve.inte rnal.QuasiResolveStage.process(QuasiResolveStage.java:45)
at org.eclipse.virgo.kernel.install.pipeline.internal.StandardP ipeline.doProcessTree(StandardPipeline.java:62)
at org.eclipse.virgo.kernel.install.pipeline.internal.Compensat ingPipeline.doProcessTree(CompensatingPipeline.java:72)
at org.eclipse.virgo.kernel.install.pipeline.stage.AbstractPipe lineStage.process(AbstractPipelineStage.java:41)
at org.eclipse.virgo.kernel.install.pipeline.internal.StandardP ipeline.doProcessTree(StandardPipeline.java:62)
at org.eclipse.virgo.kernel.install.pipeline.stage.AbstractPipe lineStage.process(AbstractPipelineStage.java:41)
at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApp licationDeployer.driveInstallPipeline(PipelinedApplicationDe ployer.java:271)
at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApp licationDeployer.doInstall(PipelinedApplicationDeployer.java :151)
at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApp licationDeployer.install(PipelinedApplicationDeployer.java:1 23)
at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApp licationDeployer.deploy(PipelinedApplicationDeployer.java:19 0)
at org.eclipse.virgo.kernel.deployer.hot.HotDeploymentFileSyste mListener.deploy(HotDeploymentFileSystemListener.java:174)
at org.eclipse.virgo.kernel.deployer.hot.HotDeploymentFileSyste mListener.onChange(HotDeploymentFileSystemListener.java:78)
at org.eclipse.virgo.util.io.FileSystemChecker.notifyListeners( FileSystemChecker.java:245)
at org.eclipse.virgo.util.io.FileSystemChecker.check(FileSystem Checker.java:166)
at org.eclipse.virgo.kernel.deployer.hot.WatchTask.run(WatchTas k.java:58)
at java.lang.Thread.run(Thread.java:619)
[2010-12-23 16:07:02.512] fs-watcher o.e.v.k.m.i.deployer.ModelInstallArtifactLifecycleListener Processing install failed event for bundle 'star.db' version '2.3.0.RELEASE'
[2010-12-23 16:07:02.512] fs-watcher org.eclipse.virgo.medic.eventlog.default DE0003E Install failed for bundle 'star.db' version '2.3.0.RELEASE'.
[2010-12-23 16:07:02.512] fs-watcher org.eclipse.virgo.medic.eventlog.default DE0500E Unable to install application from URI 'file:/C:/virgo-web-server-2.1.0.RELEASE/pickup/star.db-2.3. 0.RELEASE.jar'. Cannot satisfy constraints for bundle 'star.db' version '2.3.0.RELEASE'. Cannot resolve: star.db
Resolver report:
An Import-Package could not be resolved. Caused by missing constraint in bundle <star.db_2.3.0.RELEASE>
constraint: <Import-Package: com.jdbc; version="[11.2.1.0,11.2.1.0]">
. org.eclipse.virgo.kernel.osgi.framework.UnableToSatisfyBundl eDependenciesException: Unable to satisfy dependencies of bundle 'star.db' at version '2.3.0.RELEASE': Cannot resolve: star.db
Resolver report:
An Import-Package could not be resolved. Caused by missing constraint in bundle <star.db_2.3.0.RELEASE>
constraint: <Import-Package: com.jdbc; version="[11.2.1.0,11.2.1.0]">
at org.eclipse.virgo.kernel.install.pipeline.stage.resolve.inte rnal.QuasiResolveStage.process(QuasiResolveStage.java:45)
at org.eclipse.virgo.kernel.install.pipeline.internal.StandardP ipeline.doProcessTree(StandardPipeline.java:62)
at org.eclipse.virgo.kernel.install.pipeline.internal.Compensat ingPipeline.doProcessTree(CompensatingPipeline.java:72)
at org.eclipse.virgo.kernel.install.pipeline.stage.AbstractPipe lineStage.process(AbstractPipelineStage.java:41)
at org.eclipse.virgo.kernel.install.pipeline.internal.StandardP ipeline.doProcessTree(StandardPipeline.java:62)
at org.eclipse.virgo.kernel.install.pipeline.stage.AbstractPipe lineStage.process(AbstractPipelineStage.java:41)
at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApp licationDeployer.driveInstallPipeline(PipelinedApplicationDe ployer.java:271)
at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApp licationDeployer.doInstall(PipelinedApplicationDeployer.java :151)
at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApp licationDeployer.install(PipelinedApplicationDeployer.java:1 23)
at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApp licationDeployer.deploy(PipelinedApplicationDeployer.java:19 0)
at org.eclipse.virgo.kernel.deployer.hot.HotDeploymentFileSyste mListener.deploy(HotDeploymentFileSystemListener.java:174)
at org.eclipse.virgo.kernel.deployer.hot.HotDeploymentFileSyste mListener.onChange(HotDeploymentFileSystemListener.java:78)
at org.eclipse.virgo.util.io.FileSystemChecker.notifyListeners( FileSystemChecker.java:245)
at org.eclipse.virgo.util.io.FileSystemChecker.check(FileSystem Checker.java:166)
at org.eclipse.virgo.kernel.deployer.hot.WatchTask.run(WatchTas k.java:58)
at java.lang.Thread.run(Thread.java:619)
[2010-12-23 16:07:02.528] fs-watcher System.out org.eclipse.virgo.kernel.deployer.core.DeploymentException: Dependency satisfaction failed
[2010-12-23 16:07:02.528] fs-watcher System.out at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApp licationDeployer.driveInstallPipeline(PipelinedApplicationDe ployer.java:274)
[2010-12-23 16:07:02.528] fs-watcher System.out at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApp licationDeployer.doInstall(PipelinedApplicationDeployer.java :151)
[2010-12-23 16:07:02.528] fs-watcher System.out at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApp licationDeployer.install(PipelinedApplicationDeployer.java:1 23)
[2010-12-23 16:07:02.528] fs-watcher System.out at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApp licationDeployer.deploy(PipelinedApplicationDeployer.java:19 0)
[2010-12-23 16:07:02.528] fs-watcher System.out at org.eclipse.virgo.kernel.deployer.hot.HotDeploymentFileSyste mListener.deploy(HotDeploymentFileSystemListener.java:174)
[2010-12-23 16:07:02.528] fs-watcher System.out at org.eclipse.virgo.kernel.deployer.hot.HotDeploymentFileSyste mListener.onChange(HotDeploymentFileSystemListener.java:78)
[2010-12-23 16:07:02.528] fs-watcher System.out at org.eclipse.virgo.util.io.FileSystemChecker.notifyListeners( FileSystemChecker.java:245)
[2010-12-23 16:07:02.528] fs-watcher System.out at org.eclipse.virgo.util.io.FileSystemChecker.check(FileSystem Checker.java:166)
[2010-12-23 16:07:02.528] fs-watcher System.out at org.eclipse.virgo.kernel.deployer.hot.WatchTask.run(WatchTas k.java:58)
[2010-12-23 16:07:02.528] fs-watcher System.out at java.lang.Thread.run(Thread.java:619)
[2010-12-23 16:07:02.528] fs-watcher System.out Caused by: org.eclipse.virgo.kernel.osgi.framework.UnableToSatisfyBundl eDependenciesException: Unable to satisfy dependencies of bundle 'star.db' at version '2.3.0.RELEASE': Cannot resolve: star.db
[2010-12-23 16:07:02.528] fs-watcher System.out Resolver report:
[2010-12-23 16:07:02.528] fs-watcher System.out An Import-Package could not be resolved. Caused by missing constraint in bundle <star.db_2.3.0.RELEASE>
[2010-12-23 16:07:02.528] fs-watcher System.out constraint: <Import-Package: com.jdbc; version="[11.2.1.0,11.2.1.0]">
[2010-12-23 16:07:02.528] fs-watcher System.out
[2010-12-23 16:07:02.528] fs-watcher System.out at org.eclipse.virgo.kernel.install.pipeline.stage.resolve.inte rnal.QuasiResolveStage.process(QuasiResolveStage.java:45)
[2010-12-23 16:07:02.528] fs-watcher System.out at org.eclipse.virgo.kernel.install.pipeline.internal.StandardP ipeline.doProcessTree(StandardPipeline.java:62)
[2010-12-23 16:07:02.528] fs-watcher System.out at org.eclipse.virgo.kernel.install.pipeline.internal.Compensat ingPipeline.doProcessTree(CompensatingPipeline.java:72)
[2010-12-23 16:07:02.528] fs-watcher System.out at org.eclipse.virgo.kernel.install.pipeline.stage.AbstractPipe lineStage.process(AbstractPipelineStage.java:41)
[2010-12-23 16:07:02.528] fs-watcher System.out at org.eclipse.virgo.kernel.install.pipeline.internal.StandardP ipeline.doProcessTree(StandardPipeline.java:62)
[2010-12-23 16:07:02.528] fs-watcher System.out at org.eclipse.virgo.kernel.install.pipeline.stage.AbstractPipe lineStage.process(AbstractPipelineStage.java:41)
[2010-12-23 16:07:02.528] fs-watcher System.out at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApp licationDeployer.driveInstallPipeline(PipelinedApplicationDe ployer.java:271)
[2010-12-23 16:07:02.528] fs-watcher System.out ... 9 more
[2010-12-23 16:07:02.528] fs-watcher org.eclipse.virgo.medic.eventlog.default HD0002E Hot deploy failed for file 'star.db-2.3.0.RELEASE.jar'. org.eclipse.virgo.kernel.deployer.core.DeploymentException: Dependency satisfaction failed
at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApp licationDeployer.driveInstallPipeline(PipelinedApplicationDe ployer.java:274)
at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApp licationDeployer.doInstall(PipelinedApplicationDeployer.java :151)
at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApp licationDeployer.install(PipelinedApplicationDeployer.java:1 23)
at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApp licationDeployer.deploy(PipelinedApplicationDeployer.java:19 0)
at org.eclipse.virgo.kernel.deployer.hot.HotDeploymentFileSyste mListener.deploy(HotDeploymentFileSystemListener.java:174)
at org.eclipse.virgo.kernel.deployer.hot.HotDeploymentFileSyste mListener.onChange(HotDeploymentFileSystemListener.java:78)
at org.eclipse.virgo.util.io.FileSystemChecker.notifyListeners( FileSystemChecker.java:245)
at org.eclipse.virgo.util.io.FileSystemChecker.check(FileSystem Checker.java:166)
at org.eclipse.virgo.kernel.deployer.hot.WatchTask.run(WatchTas k.java:58)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.eclipse.virgo.kernel.osgi.framework.UnableToSatisfyBundl eDependenciesException: Unable to satisfy dependencies of bundle 'star.db' at version '2.3.0.RELEASE': Cannot resolve: star.db
Resolver report:
An Import-Package could not be resolved. Caused by missing constraint in bundle <star.db_2.3.0.RELEASE>
constraint: <Import-Package: com.jdbc; version="[11.2.1.0,11.2.1.0]">
at org.eclipse.virgo.kernel.install.pipeline.stage.resolve.inte rnal.QuasiResolveStage.process(QuasiResolveStage.java:45)
at org.eclipse.virgo.kernel.install.pipeline.internal.StandardP ipeline.doProcessTree(StandardPipeline.java:62)
at org.eclipse.virgo.kernel.install.pipeline.internal.Compensat ingPipeline.doProcessTree(CompensatingPipeline.java:72)
at org.eclipse.virgo.kernel.install.pipeline.stage.AbstractPipe lineStage.process(AbstractPipelineStage.java:41)
at org.eclipse.virgo.kernel.install.pipeline.internal.StandardP ipeline.doProcessTree(StandardPipeline.java:62)
at org.eclipse.virgo.kernel.install.pipeline.stage.AbstractPipe lineStage.process(AbstractPipelineStage.java:41)
at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApp licationDeployer.driveInstallPipeline(PipelinedApplicationDe ployer.java:271)
... 9 common frames omitted
|
|
|
|
Powered by
FUDForum. Page generated in 0.15110 seconds