[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [tycho-user] javax.servlet resolution problem.
|
https://bugs.eclipse.org/bugs/show_bug.cgi?id=348045
--
Regards,
Igor
On 12-01-10 5:06 PM, Matthew O'Connor wrote:
Hello,
I'm trying to deploy a Servlet to Jetty via HttpService with the Equinox
implementation.
As javax.servlet is present in the Eclipse distribution I expected this
just to work, but I'm getting the below exception:
Attached is a standalone test project that demonstrates this behavior.
Any help would be greatly appreciated.
Thanks,
Matt
[ERROR] Internal error: java.lang.RuntimeException:
org.osgi.framework.BundleException: Bundle com.example.servlet cannot be
resolved
[ERROR] Resolution errors:
[ERROR] Bundle com.example.servlet - Missing Constraint: Import-Package:
javax.servlet; version="2.5.0"
[ERROR] Bundle com.example.servlet - Missing Constraint: Import-Package:
javax.servlet.http; version="0.0.0"
[ERROR] -> [Help 1] org.apache.maven.InternalErrorException: Internal
error: java.lang.RuntimeException: org.osgi.framework.BundleException:
Bundle com.example.servlet cannot be resolved
Resolution errors:
Bundle com.example.servlet - Missing Constraint: Import-Package:
javax.servlet; version="2.5.0"
Bundle com.example.servlet - Missing Constraint: Import-Package:
javax.servlet.http; version="0.0.0"
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:168)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: java.lang.RuntimeException:
org.osgi.framework.BundleException: Bundle com.example.servlet cannot be
resolved
Resolution errors:
Bundle com.example.servlet - Missing Constraint: Import-Package:
javax.servlet; version="2.5.0"
Bundle com.example.servlet - Missing Constraint: Import-Package:
javax.servlet.http; version="0.0.0"
at
org.eclipse.tycho.core.osgitools.OsgiBundleProject.getResolverState(OsgiBundleProject.java:214)
at
org.eclipse.tycho.core.osgitools.OsgiBundleProject.resolveClassPath(OsgiBundleProject.java:154)
at
org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.resolveProject(DefaultTychoDependencyResolver.java:96)
at
org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:91)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:273)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
... 11 more
Caused by: org.osgi.framework.BundleException: Bundle
com.example.servlet cannot be resolved
Resolution errors:
Bundle com.example.servlet - Missing Constraint: Import-Package:
javax.servlet; version="2.5.0"
Bundle com.example.servlet - Missing Constraint: Import-Package:
javax.servlet.http; version="0.0.0"
at
org.eclipse.tycho.core.osgitools.EquinoxResolver.assertResolved(EquinoxResolver.java:242)
at
org.eclipse.tycho.core.osgitools.EquinoxResolver.newResolvedState(EquinoxResolver.java:66)
at
org.eclipse.tycho.core.osgitools.OsgiBundleProject.getResolverState(OsgiBundleProject.java:212)
... 16 more
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user