Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-user] javax.servlet resolution problem

Hi,

My project build against Indigo and Kepler compiles fine, but when I switch to the juno repo, there is a dependency missing (commons.io). When I add orbit to resolve this issue I get a javax.servlet resolution problem [3]. However, the javax.servlet version is also in the same orbit repo.

I have read [1] and [2] but they i'm unable to asses if they are related and how to resolve the problem.

Both dependencies are package dependencies.

I have attached a short example. Your help is greatly appreciated.

Regards,

Wim

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=348045
[2] https://bugs.eclipse.org/bugs/show_bug.cgi?id=398780

[3]
[INFO] Fetching p2.index from http://download.eclipse.org/technology/epp/packages/juno/ (0B at 0B/s)
[INFO] 1 operation remaining.
[INFO] Fetching p2.index from http://download.eclipse.org/technology/epp/packages/juno/ (116B at 0B/s)
[INFO] Resolving dependencies of MavenProject: tycho.test.parent:tycho.test:1.0.0-SNAPSHOT @ C:\Users\jongw\workspaces\gravity\tycho.test\pom.xml
[INFO] Resolving class path of MavenProject: tycho.test.parent:tycho.test:1.0.0-SNAPSHOT @ C:\Users\jongw\workspaces\gravity\tycho.test\pom.xml
[ERROR] Internal error: java.lang.RuntimeException: org.osgi.framework.BundleException: Bundle tycho.test cannot be resolved
[ERROR] Resolution errors:
[ERROR] Bundle tycho.test - Missing Constraint: Import-Package: javax.servlet; version="2.4.0"
[ERROR] -> [Help 1]
org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: org.osgi.framework.BundleException: Bundle tycho.test cannot be resolved
Resolution errors:
   Bundle tycho.test - Missing Constraint: Import-Package: javax.servlet; version="2.4.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:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        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 tycho.test cannot be resolved
Resolution errors:
   Bundle tycho.test - Missing Constraint: Import-Package: javax.servlet; version="2.4.0"

        at org.eclipse.tycho.core.osgitools.OsgiBundleProject.getResolverState(OsgiBundleProject.java:252)
        at org.eclipse.tycho.core.osgitools.OsgiBundleProject.resolveClassPath(OsgiBundleProject.java:158)
        at org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.resolveProject(DefaultTychoDependencyResolver.java:122)
        at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:82)
        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 tycho.test cannot be resolved
Resolution errors:
   Bundle tycho.test - Missing Constraint: Import-Package: javax.servlet; version="2.4.0"

        at org.eclipse.tycho.core.osgitools.EquinoxResolver.assertResolved(EquinoxResolver.java:284)
        at org.eclipse.tycho.core.osgitools.EquinoxResolver.newResolvedState(EquinoxResolver.java:70)
        at org.eclipse.tycho.core.osgitools.OsgiBundleProject.getResolverState(OsgiBundleProject.java:250)
        ... 16 more
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:

Attachment: javax_resolution_problem.zip
Description: Zip archive


Back to the top