Home » Eclipse Projects » Virgo » Deploying Grails Webapp(Deploy fails with unexpected UnableToSatisfyBundleDependenciesException)
Deploying Grails Webapp [message #741520] |
Wed, 19 October 2011 15:55 |
Tony Day Messages: 9 Registered: October 2011 |
Junior Member |
|
|
We're trying to run a Grails application on a Virgo Tomcat Server by dropping it in the /pickup folder. This works fine for some other web applications and bundles but doesn't seem to work with a Grails bundle.
Please see the following error:
[2011-10-19 14:42:08.492] INFO http-bio-8080-exec-6 o.e.v.k.m.i.deployer.ModelInstallArtifactLifecycleListener Processing installing event for bundle 'WebClient' version '0.1.0'
[2011-10-19 14:42:08.494] INFO http-bio-8080-exec-6 org.eclipse.virgo.medic.eventlog.default DE0000I Installing bundle 'WebClient' version '0.1.0'.
[2011-10-19 14:42:08.497] INFO http-bio-8080-exec-6 o.e.virgo.kernel.userregion.internal.quasi.DependencyCalculator Calculating missing dependencies of bundle(s) 'WebClient_0.1.0'
[2011-10-19 14:42:10.638] INFO http-bio-8080-exec-6 org.eclipse.virgo.medic.eventlog.default ME0003I Dump 'serviceability\dump\2011-10-19-14-42-513' generated
[2011-10-19 14:42:10.655] ERROR http-bio-8080-exec-6 org.eclipse.virgo.medic.eventlog.default DE0002E Installation of bundle 'WebClient' version '0.1.0' failed. org.eclipse.virgo.kernel.osgi.framework.UnableToSatisfyBundleDependenciesException: Unable to satisfy dependencies of bundle 'WebClient' at version '0.1.0': Cannot resolve: WebClient
Resolver report:
An Import-Package could not be resolved. Caused by missing constraint in bundle <WebClient_0.1.0>
constraint: <Import-Package: javax.servlet.resources; version="[2.4.0,3.0.0)">
at org.eclipse.virgo.kernel.install.pipeline.stage.resolve.internal.QuasiResolveStage.process(QuasiResolveStage.java:45)
at org.eclipse.virgo.kernel.install.pipeline.internal.StandardPipeline.doProcessTree(StandardPipeline.java:62)
at org.eclipse.virgo.kernel.install.pipeline.internal.CompensatingPipeline.doProcessTree(CompensatingPipeline.java:72)
more ...
[2011-10-19 14:42:10.656] INFO http-bio-8080-exec-6 o.e.v.k.m.i.deployer.ModelInstallArtifactLifecycleListener Processing install failed event for bundle 'WebClient' version '0.1.0'
[2011-10-19 14:42:10.658] ERROR http-bio-8080-exec-6 org.eclipse.virgo.medic.eventlog.default DE0003E Install failed for bundle 'WebClient' version '0.1.0'.
[2011-10-19 14:42:10.669] ERROR http-bio-8080-exec-6 org.eclipse.virgo.medic.eventlog.default DE0500E Unable to install application from URI 'file:/C:/VIRGO-~1/work/org.eclipse.virgo.apps.admin.core_3.0.1.RELEASE/upload/WebClient.war'. Cannot satisfy constraints for bundle 'WebClient' version '0.1.0'. Cannot resolve: WebClient
Resolver report:
An Import-Package could not be resolved. Caused by missing constraint in bundle <WebClient_0.1.0>
constraint: <Import-Package: javax.servlet.resources; version="[2.4.0,3.0.0)">
. org.eclipse.virgo.kernel.osgi.framework.UnableToSatisfyBundleDependenciesException: Unable to satisfy dependencies of bundle 'WebClient' at version '0.1.0': Cannot resolve: WebClient
Resolver report:
An Import-Package could not be resolved. Caused by missing constraint in bundle <WebClient_0.1.0>
constraint: <Import-Package: javax.servlet.resources; version="[2.4.0,3.0.0)">
at org.eclipse.virgo.kernel.install.pipeline.stage.resolve.internal.QuasiResolveStage.process(QuasiResolveStage.java:45)
at org.eclipse.virgo.kernel.install.pipeline.internal.StandardPipeline.doProcessTree(StandardPipeline.java:62)
at org.eclipse.virgo.kernel.install.pipeline.internal.CompensatingPipeline.doProcessTree(CompensatingPipeline.java:72)
more ...
At first glance it seems to be missing javax.servlet.resources but according to VTS, this is being exported from the javax.servlet bundle which is running fine.
Also note that the manifest does in-fact contain the Import-Package line in the error. Below is the manifest from the WAR file:
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.7.1
Created-By: 19.1-b02 (Sun Microsystems Inc.)
Bundle-ManifestVersion: 2
Bundle-Name: WebClient
Bundle-SymbolicName: WebClient
Bundle-Version: 0.1
Bundle-ClassPath: .,WEB-INF/classes,WEB-INF/lib/commons-codec-1.4.jar,
WEB-INF/lib/commons-dbcp-1.3.jar,WEB-INF/lib/commons-pool-1.5.5.jar,W
EB-INF/lib/concurrentlinkedhashmap-lru-1.0_jdk5.jar,WEB-INF/lib/ehcac
he-core-1.7.1.jar,WEB-INF/lib/ejb3-persistence-1.0.2.GA.jar,WEB-INF/l
ib/grails-bootstrap-1.3.7.jar,WEB-INF/lib/grails-core-1.3.7.jar,WEB-I
NF/lib/grails-crud-1.3.7.jar,WEB-INF/lib/grails-gorm-1.3.7.jar,WEB-IN
F/lib/grails-resources-1.3.7.jar,WEB-INF/lib/grails-spring-1.3.7.jar,
WEB-INF/lib/grails-tomcat-plugin-1.0.jar,WEB-INF/lib/grails-web-1.3.7
.jar,WEB-INF/lib/groovy-all-1.7.8.jar,WEB-INF/lib/hibernate-annotatio
ns-3.4.0.GA.jar,WEB-INF/lib/hibernate-commons-annotations-3.1.0.GA.ja
r,WEB-INF/lib/hibernate-core-3.3.1.GA.jar,WEB-INF/lib/hibernate-ehcac
he-3.3.1.GA.jar,WEB-INF/lib/hibernate-validator-3.1.0.GA.jar,WEB-INF/
lib/hsqldb-1.8.0.10.jar,WEB-INF/lib/log4j-1.2.16.jar,WEB-INF/lib/org.
springframework.aop-3.0.5.RELEASE.jar,WEB-INF/lib/org.springframework
.asm-3.0.5.RELEASE.jar,WEB-INF/lib/org.springframework.aspects-3.0.5.
RELEASE.jar,WEB-INF/lib/org.springframework.beans-3.0.5.RELEASE.jar,W
EB-INF/lib/org.springframework.context-3.0.5.RELEASE.jar,WEB-INF/lib/
org.springframework.context.support-3.0.5.RELEASE.jar,WEB-INF/lib/org
.springframework.core-3.0.5.RELEASE.jar,WEB-INF/lib/org.springframewo
rk.expression-3.0.5.RELEASE.jar,WEB-INF/lib/org.springframework.instr
ument-3.0.5.RELEASE.jar,WEB-INF/lib/org.springframework.jdbc-3.0.5.RE
LEASE.jar,WEB-INF/lib/org.springframework.jms-3.0.5.RELEASE.jar,WEB-I
NF/lib/org.springframework.orm-3.0.5.RELEASE.jar,WEB-INF/lib/org.spri
ngframework.oxm-3.0.5.RELEASE.jar,WEB-INF/lib/org.springframework.tra
nsaction-3.0.5.RELEASE.jar,WEB-INF/lib/org.springframework.web-3.0.5.
RELEASE.jar,WEB-INF/lib/org.springframework.web.servlet-3.0.5.RELEASE
.jar,WEB-INF/lib/sitemesh-2.4.jar
Import-Package: javax.servlet;version="[2.4.0, 2.6.0)",javax.servlet.h
ttp;version="[2.4.0, 2.6.0)",javax.servlet.resources;version="[2.4.0,
2.6.0)",javax.servlet.jsp;version="[2.1.0, 2.3.0)";resolution:=optio
nal,javax.servlet.jsp.el;version="[2.1.0, 2.3.0)";resolution:=optiona
l,javax.servlet.jsp.jstl.core;version="[1.1.0, 2.0.0)";resolution:=op
tional,javax.servlet.jsp.jstl.fmt;version="[1.1.0, 2.0.0)";resolution
:=optional,javax.servlet.jsp.jstl.sql;version="[1.1.0, 2.0.0)";resolu
tion:=optional,javax.servlet.jsp.jstl.tlv;version="[1.1.0, 2.0.0)";re
solution:=optional,javax.servlet.jsp.tagext;version="[2.1.0, 2.3.0)";
resolution:=optional,javax.servlet.jsp.resources;version="[2.1.0, 2.3
.0)";resolution:=optional,javax.xml.parsers,org.w3c.dom,org.xml.sax,o
rg.xml.sax.ext,org.xml.sax.helpers,org.apache.xml.security;resolution
:=optional,org.apache.xml.security.exceptions;resolution:=optional,or
g.osgi.framework;version="[1.5.0, 5.0.0)";resolution:=optional,org.sp
ringframework.context;version="[3.0.1, 4.0.0)",org.springframework.we
b.context;version="[3.0.1, 4.0.0)",org.springframework.osgi.context;v
ersion="[2.0.0, 3.0.0)";resolution:=optional,org.springframework.osgi
.web.context.support;version="[2.0.0, 3.0.0)";resolution:=optional,or
g.apache.log4j,org.apache.log4j.xml,org.apache.log4j.helpers,org.apac
he.log4j.jdbc;resolution:=optional,org.apache.log4j.varia;resolution:
=optional,org.aopalliance.aop;version="1.0.0",org.aopalliance.interce
pt;version="1.0.0",org.apache.commons.logging;version="[1.1.1, 1.2.0)
",javax.transaction,org.slf4j;version="[1.5.6, 1.6.0)"
Require-Bundle: com.springsource.antlr;version="[2.7.7,2.7.7]",com.spr
ingsource.org.aspectj.runtime;version="1.6.8.RELEASE",com.springsourc
e.org.aspectj.runtime;version="1.6.8.RELEASE",com.springsource.net.sf
.cglib;version="[2.1.3,2.2.0)",com.springsource.org.apache.commons.be
anutils;version="1.8.0",com.springsource.org.apache.commons.collectio
ns;version="3.2.1",com.springsource.org.apache.commons.el;version="1.
0.0",com.springsource.org.apache.commons.fileupload;version="1.2.1",c
om.springsource.org.apache.commons.io;version="1.4.0",com.springsourc
e.org.apache.commons.lang;version="2.4.0",com.springsource.org.apache
.commons.validator;version="1.3.1",com.springsource.org.dom4j;version
="1.6.1",com.springsource.org.apache.ivy;version="[2.0, 2.2.0)",com.s
pringsource.javassist;version="[3.9.0, 4.0.0)",com.springsource.org.a
pache.oro;version="[2.0.8, 2.1.0)"
Webapp-Context: WebClient
Has anyone had a Grails application running on VTS? We did try building the WAR using the Grails OSGi Plugin (0.21) as well and that made no difference.
We are using Virgo 3.0.1.Release.
Any advice would be greatly appreciated.
Thanks!
[Updated on: Wed, 19 October 2011 15:57] Report message to a moderator
|
|
| | | |
Goto Forum:
Current Time: Sat Oct 19 15:57:42 GMT 2024
Powered by FUDForum. Page generated in 0.04457 seconds
|