Uploaded image for project: 'TomEE'
  1. TomEE
  2. TOMEE-1026

Web Profile distro (javaee-api-6.0-5-tomcat.jar) includes APIs it should not

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.1, 1.5.2, 1.5.3, 1.6.0, 1.7.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Environment:
      Windows 7, Java 7

      Description

      TomEE Web Profile contains javaee-api-6.0-5-tomcat.jar (or javaee-api-6.0-5-SNAPSHOT-tomcat.jar) which includes the javax.ws.rs package.

      This would be okay for the JAX-RS version or the PLUS version but the Web Profile should not include the javax.ws.rs package.

      This is important because developers should be able to add the JAX-RS 2 reference implementation (Jersey 2.X) to TomEE Web Profile because it should install on any Servlet 2.5 or 3 container but the JAX-RS 1.1 libraries that are incorrectly bundled in the Web Profile distro and cause exceptions.

      In my apache-tomee-webprofile-1.5.2\logs\localhost.2013-09-07.log file I have:

      Sep 07, 2013 12:50:57 PM org.apache.catalina.core.ApplicationContext log
      SEVERE: StandardWrapper.Throwable
      java.lang.NoSuchMethodError: javax.ws.rs.core.Application.getProperties()Ljava/util/Map;
      at org.glassfish.jersey.server.ApplicationHandler.<init>(ApplicationHandler.java:271)
      at org.glassfish.jersey.servlet.WebComponent.<init>(WebComponent.java:298)
      at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:167)
      at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:349)
      at javax.servlet.GenericServlet.init(GenericServlet.java:160)
      at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1280)
      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1193)
      at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1088)
      at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5033)
      at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5317)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
      at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:657)
      at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1637)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      at java.util.concurrent.FutureTask.run(FutureTask.java:166)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:724)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              chase@osdev.org Matthieu Chase Heimer
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: